From a9901b82e0497e81c16f3c3b857954698461b7cf Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Wed, 12 Jul 2017 14:10:42 -0600 Subject: [PATCH] Regenerate APIs --- CHANGELOG.md | 3 + api_names_out.yaml | 10810 ++++++++-------- .../acceleratedmobilepageurl_v1/classes.rb | 92 +- .../representations.rb | 30 +- .../acceleratedmobilepageurl_v1/service.rb | 8 +- .../google/apis/adexchangebuyer2_v2beta1.rb | 2 +- .../apis/adexchangebuyer2_v2beta1/classes.rb | 877 +- .../representations.rb | 258 +- .../apis/adexchangebuyer2_v2beta1/service.rb | 1620 ++- generated/google/apis/admin_directory_v1.rb | 2 +- .../google/apis/admin_directory_v1/classes.rb | 50 +- .../admin_directory_v1/representations.rb | 16 + .../google/apis/admin_directory_v1/service.rb | 5 +- generated/google/apis/admin_reports_v1.rb | 2 +- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- .../google/apis/analyticsreporting_v4.rb | 2 +- .../apis/analyticsreporting_v4/classes.rb | 784 +- .../analyticsreporting_v4/representations.rb | 212 +- .../apis/analyticsreporting_v4/service.rb | 20 +- generated/google/apis/androidenterprise_v1.rb | 2 +- generated/google/apis/appengine_v1.rb | 8 +- generated/google/apis/appengine_v1/classes.rb | 1432 +- .../apis/appengine_v1/representations.rb | 334 +- generated/google/apis/appengine_v1/service.rb | 616 +- generated/google/apis/appsactivity_v1.rb | 2 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 6 + .../apis/bigquery_v2/representations.rb | 2 + generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/classroom_v1.rb | 14 +- generated/google/apis/classroom_v1/classes.rb | 1108 +- .../apis/classroom_v1/representations.rb | 316 +- generated/google/apis/classroom_v1/service.rb | 2177 ++-- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 819 +- .../apis/cloudbuild_v1/representations.rb | 284 +- .../google/apis/cloudbuild_v1/service.rb | 582 +- generated/google/apis/clouddebugger_v2.rb | 2 +- .../google/apis/clouddebugger_v2/classes.rb | 976 +- .../apis/clouddebugger_v2/representations.rb | 292 +- .../google/apis/clouddebugger_v2/service.rb | 360 +- .../apis/clouderrorreporting_v1beta1.rb | 2 +- .../clouderrorreporting_v1beta1/classes.rb | 294 +- .../representations.rb | 60 +- .../clouderrorreporting_v1beta1/service.rb | 174 +- generated/google/apis/cloudfunctions_v1.rb | 2 +- .../google/apis/cloudfunctions_v1/service.rb | 12 +- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 1261 +- .../apis/cloudkms_v1/representations.rb | 402 +- generated/google/apis/cloudkms_v1/service.rb | 1010 +- .../google/apis/cloudresourcemanager_v1.rb | 2 +- .../apis/cloudresourcemanager_v1/classes.rb | 2254 ++-- .../representations.rb | 628 +- .../apis/cloudresourcemanager_v1/service.rb | 577 +- .../apis/cloudresourcemanager_v1beta1.rb | 8 +- .../cloudresourcemanager_v1beta1/classes.rb | 732 +- .../representations.rb | 250 +- .../cloudresourcemanager_v1beta1/service.rb | 812 +- generated/google/apis/cloudtrace_v1.rb | 8 +- .../google/apis/cloudtrace_v1/classes.rb | 136 +- .../apis/cloudtrace_v1/representations.rb | 80 +- .../google/apis/cloudtrace_v1/service.rb | 96 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 88 +- .../apis/compute_beta/representations.rb | 4 + generated/google/apis/compute_beta/service.rb | 2011 +-- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 372 +- .../google/apis/compute_v1/representations.rb | 139 + generated/google/apis/compute_v1/service.rb | 266 +- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 1434 +- .../apis/container_v1/representations.rb | 420 +- generated/google/apis/container_v1/service.rb | 848 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/service.rb | 4 +- generated/google/apis/customsearch_v1.rb | 2 +- generated/google/apis/dataflow_v1b3.rb | 8 +- .../google/apis/dataflow_v1b3/classes.rb | 4726 +++---- .../apis/dataflow_v1b3/representations.rb | 2704 ++-- .../google/apis/dataflow_v1b3/service.rb | 870 +- generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 875 +- .../apis/dataproc_v1/representations.rb | 184 +- generated/google/apis/dataproc_v1/service.rb | 550 +- generated/google/apis/datastore_v1.rb | 8 +- generated/google/apis/datastore_v1/classes.rb | 744 +- .../apis/datastore_v1/representations.rb | 222 +- generated/google/apis/datastore_v1/service.rb | 198 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- .../apis/deploymentmanager_v2/classes.rb | 82 +- .../deploymentmanager_v2/representations.rb | 33 + .../apis/deploymentmanager_v2/service.rb | 35 +- generated/google/apis/dns_v1.rb | 2 +- generated/google/apis/dns_v2beta1.rb | 2 +- .../google/apis/doubleclickbidmanager_v1.rb | 2 +- .../apis/doubleclickbidmanager_v1/classes.rb | 4 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/service.rb | 2 +- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/service.rb | 2 +- .../google/apis/firebasedynamiclinks_v1.rb | 2 +- .../apis/firebasedynamiclinks_v1/classes.rb | 184 +- .../representations.rb | 58 +- .../google/apis/firebaserules_v1/classes.rb | 820 +- .../apis/firebaserules_v1/representations.rb | 322 +- .../google/apis/firebaserules_v1/service.rb | 302 +- .../games_configuration_v1configuration.rb | 2 +- .../apis/games_management_v1management.rb | 2 +- generated/google/apis/games_v1.rb | 2 +- generated/google/apis/genomics_v1.rb | 20 +- generated/google/apis/genomics_v1/classes.rb | 2426 ++-- .../apis/genomics_v1/representations.rb | 650 +- generated/google/apis/genomics_v1/service.rb | 2850 ++-- generated/google/apis/gmail_v1.rb | 2 +- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 494 +- .../google/apis/iam_v1/representations.rb | 162 +- generated/google/apis/iam_v1/service.rb | 310 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 18 + .../identitytoolkit_v3/representations.rb | 3 + generated/google/apis/kgsearch_v1/classes.rb | 18 +- .../apis/kgsearch_v1/representations.rb | 4 +- generated/google/apis/kgsearch_v1/service.rb | 8 +- generated/google/apis/language_v1.rb | 2 +- generated/google/apis/language_v1/classes.rb | 966 +- .../apis/language_v1/representations.rb | 206 +- generated/google/apis/language_v1/service.rb | 206 +- generated/google/apis/language_v1beta1.rb | 2 +- .../google/apis/language_v1beta1/classes.rb | 764 +- .../apis/language_v1beta1/representations.rb | 238 +- .../google/apis/language_v1beta1/service.rb | 194 +- generated/google/apis/logging_v2.rb | 16 +- generated/google/apis/logging_v2/classes.rb | 1268 +- .../google/apis/logging_v2/representations.rb | 286 +- generated/google/apis/logging_v2/service.rb | 952 +- generated/google/apis/logging_v2beta1.rb | 16 +- .../google/apis/logging_v2beta1/classes.rb | 1802 +-- .../apis/logging_v2beta1/representations.rb | 332 +- .../google/apis/logging_v2beta1/service.rb | 518 +- generated/google/apis/manufacturers_v1.rb | 2 +- .../google/apis/manufacturers_v1/classes.rb | 679 +- .../apis/manufacturers_v1/representations.rb | 204 +- .../google/apis/manufacturers_v1/service.rb | 125 +- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 1350 +- .../google/apis/ml_v1/representations.rb | 307 +- generated/google/apis/ml_v1/service.rb | 923 +- generated/google/apis/monitoring_v3.rb | 12 +- .../google/apis/monitoring_v3/classes.rb | 1578 +-- .../apis/monitoring_v3/representations.rb | 528 +- .../google/apis/monitoring_v3/service.rb | 820 +- generated/google/apis/partners_v2.rb | 2 +- generated/google/apis/partners_v2/classes.rb | 3854 +++--- .../apis/partners_v2/representations.rb | 568 +- generated/google/apis/partners_v2/service.rb | 1406 +- generated/google/apis/people_v1.rb | 14 +- generated/google/apis/people_v1/classes.rb | 2907 +++-- .../google/apis/people_v1/representations.rb | 848 +- generated/google/apis/people_v1/service.rb | 563 +- generated/google/apis/plus_domains_v1.rb | 2 +- generated/google/apis/plus_v1.rb | 2 +- .../google/apis/proximitybeacon_v1beta1.rb | 2 +- .../apis/proximitybeacon_v1beta1/classes.rb | 1124 +- .../representations.rb | 356 +- .../apis/proximitybeacon_v1beta1/service.rb | 562 +- generated/google/apis/pubsub_v1.rb | 8 +- generated/google/apis/pubsub_v1/classes.rb | 589 +- .../google/apis/pubsub_v1/representations.rb | 296 +- generated/google/apis/pubsub_v1/service.rb | 356 +- generated/google/apis/runtimeconfig_v1.rb | 2 +- .../google/apis/runtimeconfig_v1/classes.rb | 116 +- .../apis/runtimeconfig_v1/representations.rb | 48 +- .../google/apis/runtimeconfig_v1/service.rb | 42 +- generated/google/apis/script_v1.rb | 8 +- generated/google/apis/script_v1/classes.rb | 362 +- .../google/apis/script_v1/representations.rb | 134 +- generated/google/apis/script_v1/service.rb | 12 +- generated/google/apis/searchconsole_v1.rb | 2 +- .../google/apis/searchconsole_v1/classes.rb | 12 +- .../apis/searchconsole_v1/representations.rb | 2 +- generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/servicecontrol_v1/classes.rb | 2430 ++-- .../apis/servicecontrol_v1/representations.rb | 640 +- .../google/apis/servicecontrol_v1/service.rb | 132 +- generated/google/apis/servicemanagement_v1.rb | 12 +- .../apis/servicemanagement_v1/classes.rb | 6428 ++++----- .../servicemanagement_v1/representations.rb | 1292 +- .../apis/servicemanagement_v1/service.rb | 668 +- generated/google/apis/serviceuser_v1.rb | 2 +- .../google/apis/serviceuser_v1/classes.rb | 2506 ++-- .../apis/serviceuser_v1/representations.rb | 527 +- .../google/apis/serviceuser_v1/service.rb | 150 +- generated/google/apis/sheets_v4.rb | 10 +- generated/google/apis/sheets_v4/classes.rb | 7369 +++++------ .../google/apis/sheets_v4/representations.rb | 2085 +-- generated/google/apis/sheets_v4/service.rb | 464 +- generated/google/apis/slides_v1.rb | 2 +- generated/google/apis/slides_v1/classes.rb | 5201 ++++---- .../google/apis/slides_v1/representations.rb | 2165 ++-- generated/google/apis/slides_v1/service.rb | 102 +- .../google/apis/sourcerepo_v1/classes.rb | 286 +- .../apis/sourcerepo_v1/representations.rb | 86 +- .../google/apis/sourcerepo_v1/service.rb | 124 +- generated/google/apis/spanner_v1.rb | 8 +- generated/google/apis/spanner_v1/classes.rb | 3663 +++--- .../google/apis/spanner_v1/representations.rb | 995 +- generated/google/apis/spanner_v1/service.rb | 960 +- generated/google/apis/speech_v1beta1.rb | 2 +- .../google/apis/speech_v1beta1/classes.rb | 672 +- .../apis/speech_v1beta1/representations.rb | 244 +- .../google/apis/speech_v1beta1/service.rb | 278 +- generated/google/apis/storage_v1.rb | 2 +- generated/google/apis/storagetransfer_v1.rb | 2 +- .../google/apis/storagetransfer_v1/classes.rb | 1777 +-- .../storagetransfer_v1/representations.rb | 504 +- .../google/apis/storagetransfer_v1/service.rb | 458 +- generated/google/apis/toolresults_v1beta3.rb | 2 +- .../apis/toolresults_v1beta3/classes.rb | 91 +- .../toolresults_v1beta3/representations.rb | 18 + generated/google/apis/translate_v2/classes.rb | 370 +- .../apis/translate_v2/representations.rb | 158 +- generated/google/apis/translate_v2/service.rb | 208 +- generated/google/apis/vision_v1.rb | 5 +- generated/google/apis/vision_v1/classes.rb | 992 +- .../google/apis/vision_v1/representations.rb | 286 +- generated/google/apis/youtube_analytics_v1.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- generated/google/apis/youtubereporting_v1.rb | 2 +- .../apis/youtubereporting_v1/classes.rb | 456 +- .../youtubereporting_v1/representations.rb | 162 +- .../apis/youtubereporting_v1/service.rb | 226 +- lib/google/apis/version.rb | 2 +- 238 files changed, 68012 insertions(+), 64176 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 730de1b9e..a9ecf3d67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.13.1 +* Regenerate APIs + # 0.13.0 * Regenerate APIs * Revert api\_names.yaml to an earlier revision to restore some manual name diff --git a/api_names_out.yaml b/api_names_out.yaml index 64f3aa2f6..86f7d64f6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -3583,7 +3583,9 @@ "/compute:beta/AutoscalingPolicyCpuUtilization": autoscaling_policy_cpu_utilization "/compute:beta/AutoscalingPolicyCpuUtilization/utilizationTarget": utilization_target "/compute:beta/AutoscalingPolicyCustomMetricUtilization": autoscaling_policy_custom_metric_utilization +"/compute:beta/AutoscalingPolicyCustomMetricUtilization/filter": filter "/compute:beta/AutoscalingPolicyCustomMetricUtilization/metric": metric +"/compute:beta/AutoscalingPolicyCustomMetricUtilization/singleInstanceAssignment": single_instance_assignment "/compute:beta/AutoscalingPolicyCustomMetricUtilization/utilizationTarget": utilization_target "/compute:beta/AutoscalingPolicyCustomMetricUtilization/utilizationTargetType": utilization_target_type "/compute:beta/AutoscalingPolicyLoadBalancingUtilization": autoscaling_policy_load_balancing_utilization @@ -3873,8 +3875,12 @@ "/compute:beta/Firewall/selfLink": self_link "/compute:beta/Firewall/sourceRanges": source_ranges "/compute:beta/Firewall/sourceRanges/source_range": source_range +"/compute:beta/Firewall/sourceServiceAccounts": source_service_accounts +"/compute:beta/Firewall/sourceServiceAccounts/source_service_account": source_service_account "/compute:beta/Firewall/sourceTags": source_tags "/compute:beta/Firewall/sourceTags/source_tag": source_tag +"/compute:beta/Firewall/targetServiceAccounts": target_service_accounts +"/compute:beta/Firewall/targetServiceAccounts/target_service_account": target_service_account "/compute:beta/Firewall/targetTags": target_tags "/compute:beta/Firewall/targetTags/target_tag": target_tag "/compute:beta/FirewallList": firewall_list @@ -5507,68 +5513,148 @@ "/mybusiness:v3/AttributeValueMetadata": attribute_value_metadata "/mybusiness:v3/AttributeValueMetadata/value": value "/mybusiness:v3/AttributeValueMetadata/displayName": display_name -"/monitoring:v3/fields": fields "/monitoring:v3/key": key "/monitoring:v3/quotaUser": quota_user +"/monitoring:v3/fields": fields +"/monitoring:v3/monitoring.projects.collectdTimeSeries.create": create_collectd_time_series +"/monitoring:v3/monitoring.projects.collectdTimeSeries.create/name": name +"/monitoring:v3/monitoring.projects.timeSeries.list": list_project_time_series +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.crossSeriesReducer": aggregation_cross_series_reducer +"/monitoring:v3/monitoring.projects.timeSeries.list/filter": filter +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.perSeriesAligner": aggregation_per_series_aligner +"/monitoring:v3/monitoring.projects.timeSeries.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.timeSeries.list/interval.startTime": interval_start_time +"/monitoring:v3/monitoring.projects.timeSeries.list/view": view +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.groupByFields": aggregation_group_by_fields +"/monitoring:v3/monitoring.projects.timeSeries.list/name": name +"/monitoring:v3/monitoring.projects.timeSeries.list/interval.endTime": interval_end_time +"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.alignmentPeriod": aggregation_alignment_period +"/monitoring:v3/monitoring.projects.timeSeries.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.timeSeries.list/orderBy": order_by +"/monitoring:v3/monitoring.projects.timeSeries.create": create_time_series +"/monitoring:v3/monitoring.projects.timeSeries.create/name": name +"/monitoring:v3/monitoring.projects.metricDescriptors.create": create_project_metric_descriptor +"/monitoring:v3/monitoring.projects.metricDescriptors.create/name": name +"/monitoring:v3/monitoring.projects.metricDescriptors.delete": delete_project_metric_descriptor +"/monitoring:v3/monitoring.projects.metricDescriptors.delete/name": name +"/monitoring:v3/monitoring.projects.metricDescriptors.get": get_project_metric_descriptor +"/monitoring:v3/monitoring.projects.metricDescriptors.get/name": name +"/monitoring:v3/monitoring.projects.metricDescriptors.list": list_project_metric_descriptors +"/monitoring:v3/monitoring.projects.metricDescriptors.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.metricDescriptors.list/name": name +"/monitoring:v3/monitoring.projects.metricDescriptors.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.metricDescriptors.list/filter": filter +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get": get_project_monitored_resource_descriptor +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get/name": name +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list": list_project_monitored_resource_descriptors +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/name": name +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/filter": filter "/monitoring:v3/monitoring.projects.groups.delete": delete_project_group "/monitoring:v3/monitoring.projects.groups.delete/name": name +"/monitoring:v3/monitoring.projects.groups.get": get_project_group +"/monitoring:v3/monitoring.projects.groups.get/name": name "/monitoring:v3/monitoring.projects.groups.list": list_project_groups -"/monitoring:v3/monitoring.projects.groups.list/pageToken": page_token -"/monitoring:v3/monitoring.projects.groups.list/pageSize": page_size -"/monitoring:v3/monitoring.projects.groups.list/ancestorsOfGroup": ancestors_of_group "/monitoring:v3/monitoring.projects.groups.list/name": name "/monitoring:v3/monitoring.projects.groups.list/childrenOfGroup": children_of_group "/monitoring:v3/monitoring.projects.groups.list/descendantsOfGroup": descendants_of_group -"/monitoring:v3/monitoring.projects.groups.get": get_project_group -"/monitoring:v3/monitoring.projects.groups.get/name": name +"/monitoring:v3/monitoring.projects.groups.list/pageToken": page_token +"/monitoring:v3/monitoring.projects.groups.list/pageSize": page_size +"/monitoring:v3/monitoring.projects.groups.list/ancestorsOfGroup": ancestors_of_group "/monitoring:v3/monitoring.projects.groups.update": update_project_group -"/monitoring:v3/monitoring.projects.groups.update/name": name "/monitoring:v3/monitoring.projects.groups.update/validateOnly": validate_only +"/monitoring:v3/monitoring.projects.groups.update/name": name "/monitoring:v3/monitoring.projects.groups.create": create_project_group -"/monitoring:v3/monitoring.projects.groups.create/name": name "/monitoring:v3/monitoring.projects.groups.create/validateOnly": validate_only +"/monitoring:v3/monitoring.projects.groups.create/name": name "/monitoring:v3/monitoring.projects.groups.members.list": list_project_group_members "/monitoring:v3/monitoring.projects.groups.members.list/name": name "/monitoring:v3/monitoring.projects.groups.members.list/interval.endTime": interval_end_time "/monitoring:v3/monitoring.projects.groups.members.list/filter": filter "/monitoring:v3/monitoring.projects.groups.members.list/pageToken": page_token -"/monitoring:v3/monitoring.projects.groups.members.list/interval.startTime": interval_start_time "/monitoring:v3/monitoring.projects.groups.members.list/pageSize": page_size -"/monitoring:v3/monitoring.projects.collectdTimeSeries.create": create_collectd_time_series -"/monitoring:v3/monitoring.projects.collectdTimeSeries.create/name": name -"/monitoring:v3/monitoring.projects.timeSeries.create": create_time_series -"/monitoring:v3/monitoring.projects.timeSeries.create/name": name -"/monitoring:v3/monitoring.projects.timeSeries.list": list_project_time_series -"/monitoring:v3/monitoring.projects.timeSeries.list/name": name -"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.groupByFields": aggregation_group_by_fields -"/monitoring:v3/monitoring.projects.timeSeries.list/interval.endTime": interval_end_time -"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.alignmentPeriod": aggregation_alignment_period -"/monitoring:v3/monitoring.projects.timeSeries.list/pageSize": page_size -"/monitoring:v3/monitoring.projects.timeSeries.list/orderBy": order_by -"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.crossSeriesReducer": aggregation_cross_series_reducer -"/monitoring:v3/monitoring.projects.timeSeries.list/filter": filter -"/monitoring:v3/monitoring.projects.timeSeries.list/pageToken": page_token -"/monitoring:v3/monitoring.projects.timeSeries.list/aggregation.perSeriesAligner": aggregation_per_series_aligner -"/monitoring:v3/monitoring.projects.timeSeries.list/interval.startTime": interval_start_time -"/monitoring:v3/monitoring.projects.timeSeries.list/view": view -"/monitoring:v3/monitoring.projects.metricDescriptors.delete": delete_project_metric_descriptor -"/monitoring:v3/monitoring.projects.metricDescriptors.delete/name": name -"/monitoring:v3/monitoring.projects.metricDescriptors.list": list_project_metric_descriptors -"/monitoring:v3/monitoring.projects.metricDescriptors.list/filter": filter -"/monitoring:v3/monitoring.projects.metricDescriptors.list/name": name -"/monitoring:v3/monitoring.projects.metricDescriptors.list/pageToken": page_token -"/monitoring:v3/monitoring.projects.metricDescriptors.list/pageSize": page_size -"/monitoring:v3/monitoring.projects.metricDescriptors.get": get_project_metric_descriptor -"/monitoring:v3/monitoring.projects.metricDescriptors.get/name": name -"/monitoring:v3/monitoring.projects.metricDescriptors.create": create_project_metric_descriptor -"/monitoring:v3/monitoring.projects.metricDescriptors.create/name": name -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list": list_project_monitored_resource_descriptors -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/name": name -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageToken": page_token -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/pageSize": page_size -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.list/filter": filter -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get": get_project_monitored_resource_descriptor -"/monitoring:v3/monitoring.projects.monitoredResourceDescriptors.get/name": name +"/monitoring:v3/monitoring.projects.groups.members.list/interval.startTime": interval_start_time +"/monitoring:v3/Range": range +"/monitoring:v3/Range/min": min +"/monitoring:v3/Range/max": max +"/monitoring:v3/ListGroupsResponse": list_groups_response +"/monitoring:v3/ListGroupsResponse/group": group +"/monitoring:v3/ListGroupsResponse/group/group": group +"/monitoring:v3/ListGroupsResponse/nextPageToken": next_page_token +"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdVersion": collectd_version +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads +"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload +"/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource +"/monitoring:v3/ListGroupMembersResponse": list_group_members_response +"/monitoring:v3/ListGroupMembersResponse/members": members +"/monitoring:v3/ListGroupMembersResponse/members/member": member +"/monitoring:v3/ListGroupMembersResponse/nextPageToken": next_page_token +"/monitoring:v3/ListGroupMembersResponse/totalSize": total_size +"/monitoring:v3/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response +"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token +"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors +"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor +"/monitoring:v3/TimeSeries": time_series +"/monitoring:v3/TimeSeries/resource": resource +"/monitoring:v3/TimeSeries/metricKind": metric_kind +"/monitoring:v3/TimeSeries/points": points +"/monitoring:v3/TimeSeries/points/point": point +"/monitoring:v3/TimeSeries/metric": metric +"/monitoring:v3/TimeSeries/valueType": value_type +"/monitoring:v3/CreateTimeSeriesRequest": create_time_series_request +"/monitoring:v3/CreateTimeSeriesRequest/timeSeries": time_series +"/monitoring:v3/CreateTimeSeriesRequest/timeSeries/time_series": time_series +"/monitoring:v3/Distribution": distribution +"/monitoring:v3/Distribution/bucketCounts": bucket_counts +"/monitoring:v3/Distribution/bucketCounts/bucket_count": bucket_count +"/monitoring:v3/Distribution/bucketOptions": bucket_options +"/monitoring:v3/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation +"/monitoring:v3/Distribution/range": range +"/monitoring:v3/Distribution/count": count +"/monitoring:v3/Distribution/mean": mean +"/monitoring:v3/MonitoredResource": monitored_resource +"/monitoring:v3/MonitoredResource/labels": labels +"/monitoring:v3/MonitoredResource/labels/label": label +"/monitoring:v3/MonitoredResource/type": type +"/monitoring:v3/ListMetricDescriptorsResponse": list_metric_descriptors_response +"/monitoring:v3/ListMetricDescriptorsResponse/nextPageToken": next_page_token +"/monitoring:v3/ListMetricDescriptorsResponse/metricDescriptors": metric_descriptors +"/monitoring:v3/ListMetricDescriptorsResponse/metricDescriptors/metric_descriptor": metric_descriptor +"/monitoring:v3/MonitoredResourceDescriptor": monitored_resource_descriptor +"/monitoring:v3/MonitoredResourceDescriptor/type": type +"/monitoring:v3/MonitoredResourceDescriptor/labels": labels +"/monitoring:v3/MonitoredResourceDescriptor/labels/label": label +"/monitoring:v3/MonitoredResourceDescriptor/name": name +"/monitoring:v3/MonitoredResourceDescriptor/description": description +"/monitoring:v3/MonitoredResourceDescriptor/displayName": display_name +"/monitoring:v3/TypedValue": typed_value +"/monitoring:v3/TypedValue/doubleValue": double_value +"/monitoring:v3/TypedValue/int64Value": int64_value +"/monitoring:v3/TypedValue/distributionValue": distribution_value +"/monitoring:v3/TypedValue/stringValue": string_value +"/monitoring:v3/TypedValue/boolValue": bool_value +"/monitoring:v3/CollectdPayload": collectd_payload +"/monitoring:v3/CollectdPayload/typeInstance": type_instance +"/monitoring:v3/CollectdPayload/type": type +"/monitoring:v3/CollectdPayload/metadata": metadata +"/monitoring:v3/CollectdPayload/metadata/metadatum": metadatum +"/monitoring:v3/CollectdPayload/plugin": plugin +"/monitoring:v3/CollectdPayload/pluginInstance": plugin_instance +"/monitoring:v3/CollectdPayload/endTime": end_time +"/monitoring:v3/CollectdPayload/startTime": start_time +"/monitoring:v3/CollectdPayload/values": values +"/monitoring:v3/CollectdPayload/values/value": value +"/monitoring:v3/Linear": linear +"/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/Linear/width": width +"/monitoring:v3/Linear/offset": offset +"/monitoring:v3/Empty": empty +"/monitoring:v3/Option": option +"/monitoring:v3/Option/value": value +"/monitoring:v3/Option/value/value": value +"/monitoring:v3/Option/name": name "/monitoring:v3/Explicit": explicit "/monitoring:v3/Explicit/bounds": bounds "/monitoring:v3/Explicit/bounds/bound": bound @@ -5576,19 +5662,19 @@ "/monitoring:v3/TimeInterval/startTime": start_time "/monitoring:v3/TimeInterval/endTime": end_time "/monitoring:v3/Exponential": exponential -"/monitoring:v3/Exponential/growthFactor": growth_factor "/monitoring:v3/Exponential/scale": scale "/monitoring:v3/Exponential/numFiniteBuckets": num_finite_buckets +"/monitoring:v3/Exponential/growthFactor": growth_factor "/monitoring:v3/Point": point "/monitoring:v3/Point/interval": interval "/monitoring:v3/Point/value": value "/monitoring:v3/Metric": metric -"/monitoring:v3/Metric/type": type "/monitoring:v3/Metric/labels": labels "/monitoring:v3/Metric/labels/label": label +"/monitoring:v3/Metric/type": type "/monitoring:v3/Field": field -"/monitoring:v3/Field/jsonName": json_name "/monitoring:v3/Field/kind": kind +"/monitoring:v3/Field/jsonName": json_name "/monitoring:v3/Field/options": options "/monitoring:v3/Field/options/option": option "/monitoring:v3/Field/oneofIndex": oneof_index @@ -5599,19 +5685,19 @@ "/monitoring:v3/Field/typeUrl": type_url "/monitoring:v3/Field/number": number "/monitoring:v3/LabelDescriptor": label_descriptor -"/monitoring:v3/LabelDescriptor/key": key "/monitoring:v3/LabelDescriptor/description": description "/monitoring:v3/LabelDescriptor/valueType": value_type +"/monitoring:v3/LabelDescriptor/key": key "/monitoring:v3/ListTimeSeriesResponse": list_time_series_response "/monitoring:v3/ListTimeSeriesResponse/timeSeries": time_series "/monitoring:v3/ListTimeSeriesResponse/timeSeries/time_series": time_series "/monitoring:v3/ListTimeSeriesResponse/nextPageToken": next_page_token "/monitoring:v3/Group": group +"/monitoring:v3/Group/parentName": parent_name +"/monitoring:v3/Group/name": name "/monitoring:v3/Group/displayName": display_name "/monitoring:v3/Group/isCluster": is_cluster "/monitoring:v3/Group/filter": filter -"/monitoring:v3/Group/name": name -"/monitoring:v3/Group/parentName": parent_name "/monitoring:v3/Type": type "/monitoring:v3/Type/options": options "/monitoring:v3/Type/options/option": option @@ -5620,129 +5706,49 @@ "/monitoring:v3/Type/name": name "/monitoring:v3/Type/oneofs": oneofs "/monitoring:v3/Type/oneofs/oneof": oneof -"/monitoring:v3/Type/syntax": syntax "/monitoring:v3/Type/sourceContext": source_context +"/monitoring:v3/Type/syntax": syntax "/monitoring:v3/BucketOptions": bucket_options "/monitoring:v3/BucketOptions/exponentialBuckets": exponential_buckets -"/monitoring:v3/BucketOptions/linearBuckets": linear_buckets "/monitoring:v3/BucketOptions/explicitBuckets": explicit_buckets +"/monitoring:v3/BucketOptions/linearBuckets": linear_buckets "/monitoring:v3/CollectdValue": collectd_value +"/monitoring:v3/CollectdValue/dataSourceType": data_source_type "/monitoring:v3/CollectdValue/dataSourceName": data_source_name "/monitoring:v3/CollectdValue/value": value -"/monitoring:v3/CollectdValue/dataSourceType": data_source_type +"/monitoring:v3/SourceContext": source_context +"/monitoring:v3/SourceContext/fileName": file_name "/monitoring:v3/MetricDescriptor": metric_descriptor -"/monitoring:v3/MetricDescriptor/name": name -"/monitoring:v3/MetricDescriptor/type": type -"/monitoring:v3/MetricDescriptor/valueType": value_type "/monitoring:v3/MetricDescriptor/metricKind": metric_kind "/monitoring:v3/MetricDescriptor/displayName": display_name "/monitoring:v3/MetricDescriptor/description": description "/monitoring:v3/MetricDescriptor/unit": unit "/monitoring:v3/MetricDescriptor/labels": labels "/monitoring:v3/MetricDescriptor/labels/label": label -"/monitoring:v3/SourceContext": source_context -"/monitoring:v3/SourceContext/fileName": file_name -"/monitoring:v3/Range": range -"/monitoring:v3/Range/min": min -"/monitoring:v3/Range/max": max -"/monitoring:v3/ListGroupsResponse": list_groups_response -"/monitoring:v3/ListGroupsResponse/group": group -"/monitoring:v3/ListGroupsResponse/group/group": group -"/monitoring:v3/ListGroupsResponse/nextPageToken": next_page_token -"/monitoring:v3/ListGroupMembersResponse": list_group_members_response -"/monitoring:v3/ListGroupMembersResponse/members": members -"/monitoring:v3/ListGroupMembersResponse/members/member": member -"/monitoring:v3/ListGroupMembersResponse/nextPageToken": next_page_token -"/monitoring:v3/ListGroupMembersResponse/totalSize": total_size -"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request -"/monitoring:v3/CreateCollectdTimeSeriesRequest/resource": resource -"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads -"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload -"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdVersion": collectd_version -"/monitoring:v3/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response -"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors -"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor -"/monitoring:v3/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token -"/monitoring:v3/TimeSeries": time_series -"/monitoring:v3/TimeSeries/metric": metric -"/monitoring:v3/TimeSeries/points": points -"/monitoring:v3/TimeSeries/points/point": point -"/monitoring:v3/TimeSeries/valueType": value_type -"/monitoring:v3/TimeSeries/resource": resource -"/monitoring:v3/TimeSeries/metricKind": metric_kind -"/monitoring:v3/CreateTimeSeriesRequest": create_time_series_request -"/monitoring:v3/CreateTimeSeriesRequest/timeSeries": time_series -"/monitoring:v3/CreateTimeSeriesRequest/timeSeries/time_series": time_series -"/monitoring:v3/Distribution": distribution -"/monitoring:v3/Distribution/range": range -"/monitoring:v3/Distribution/count": count -"/monitoring:v3/Distribution/mean": mean -"/monitoring:v3/Distribution/bucketCounts": bucket_counts -"/monitoring:v3/Distribution/bucketCounts/bucket_count": bucket_count -"/monitoring:v3/Distribution/bucketOptions": bucket_options -"/monitoring:v3/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation -"/monitoring:v3/MonitoredResource": monitored_resource -"/monitoring:v3/MonitoredResource/type": type -"/monitoring:v3/MonitoredResource/labels": labels -"/monitoring:v3/MonitoredResource/labels/label": label -"/monitoring:v3/ListMetricDescriptorsResponse": list_metric_descriptors_response -"/monitoring:v3/ListMetricDescriptorsResponse/metricDescriptors": metric_descriptors -"/monitoring:v3/ListMetricDescriptorsResponse/metricDescriptors/metric_descriptor": metric_descriptor -"/monitoring:v3/ListMetricDescriptorsResponse/nextPageToken": next_page_token -"/monitoring:v3/MonitoredResourceDescriptor": monitored_resource_descriptor -"/monitoring:v3/MonitoredResourceDescriptor/labels": labels -"/monitoring:v3/MonitoredResourceDescriptor/labels/label": label -"/monitoring:v3/MonitoredResourceDescriptor/name": name -"/monitoring:v3/MonitoredResourceDescriptor/displayName": display_name -"/monitoring:v3/MonitoredResourceDescriptor/description": description -"/monitoring:v3/MonitoredResourceDescriptor/type": type -"/monitoring:v3/TypedValue": typed_value -"/monitoring:v3/TypedValue/doubleValue": double_value -"/monitoring:v3/TypedValue/int64Value": int64_value -"/monitoring:v3/TypedValue/distributionValue": distribution_value -"/monitoring:v3/TypedValue/boolValue": bool_value -"/monitoring:v3/TypedValue/stringValue": string_value -"/monitoring:v3/CollectdPayload": collectd_payload -"/monitoring:v3/CollectdPayload/typeInstance": type_instance -"/monitoring:v3/CollectdPayload/metadata": metadata -"/monitoring:v3/CollectdPayload/metadata/metadatum": metadatum -"/monitoring:v3/CollectdPayload/type": type -"/monitoring:v3/CollectdPayload/plugin": plugin -"/monitoring:v3/CollectdPayload/pluginInstance": plugin_instance -"/monitoring:v3/CollectdPayload/endTime": end_time -"/monitoring:v3/CollectdPayload/startTime": start_time -"/monitoring:v3/CollectdPayload/values": values -"/monitoring:v3/CollectdPayload/values/value": value -"/monitoring:v3/Linear": linear -"/monitoring:v3/Linear/width": width -"/monitoring:v3/Linear/offset": offset -"/monitoring:v3/Linear/numFiniteBuckets": num_finite_buckets -"/monitoring:v3/Empty": empty -"/monitoring:v3/Option": option -"/monitoring:v3/Option/name": name -"/monitoring:v3/Option/value": value -"/monitoring:v3/Option/value/value": value -"/acceleratedmobilepageurl:v1/fields": fields +"/monitoring:v3/MetricDescriptor/name": name +"/monitoring:v3/MetricDescriptor/type": type +"/monitoring:v3/MetricDescriptor/valueType": value_type "/acceleratedmobilepageurl:v1/key": key "/acceleratedmobilepageurl:v1/quotaUser": quota_user +"/acceleratedmobilepageurl:v1/fields": fields "/acceleratedmobilepageurl:v1/acceleratedmobilepageurl.ampUrls.batchGet": batch_get_amp_urls -"/acceleratedmobilepageurl:v1/AmpUrl": amp_url -"/acceleratedmobilepageurl:v1/AmpUrl/cdnAmpUrl": cdn_amp_url -"/acceleratedmobilepageurl:v1/AmpUrl/originalUrl": original_url -"/acceleratedmobilepageurl:v1/AmpUrl/ampUrl": amp_url -"/acceleratedmobilepageurl:v1/AmpUrlError": amp_url_error -"/acceleratedmobilepageurl:v1/AmpUrlError/errorCode": error_code -"/acceleratedmobilepageurl:v1/AmpUrlError/originalUrl": original_url -"/acceleratedmobilepageurl:v1/AmpUrlError/errorMessage": error_message -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest": batch_get_amp_urls_request -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/lookupStrategy": lookup_strategy -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls": urls -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls/url": url "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse": batch_get_amp_urls_response -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/ampUrls": amp_urls -"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/ampUrls/amp_url": amp_url "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/urlErrors": url_errors "/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/urlErrors/url_error": url_error +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/ampUrls": amp_urls +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsResponse/ampUrls/amp_url": amp_url +"/acceleratedmobilepageurl:v1/AmpUrl": amp_url +"/acceleratedmobilepageurl:v1/AmpUrl/cdnAmpUrl": cdn_amp_url +"/acceleratedmobilepageurl:v1/AmpUrl/ampUrl": amp_url +"/acceleratedmobilepageurl:v1/AmpUrl/originalUrl": original_url +"/acceleratedmobilepageurl:v1/AmpUrlError": amp_url_error +"/acceleratedmobilepageurl:v1/AmpUrlError/errorMessage": error_message +"/acceleratedmobilepageurl:v1/AmpUrlError/errorCode": error_code +"/acceleratedmobilepageurl:v1/AmpUrlError/originalUrl": original_url +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest": batch_get_amp_urls_request +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls": urls +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/urls/url": url +"/acceleratedmobilepageurl:v1/BatchGetAmpUrlsRequest/lookupStrategy": lookup_strategy "/adexchangebuyer:v1.4/fields": fields "/adexchangebuyer:v1.4/key": key "/adexchangebuyer:v1.4/quotaUser": quota_user @@ -6388,147 +6394,140 @@ "/adexchangebuyer2:v2beta1/key": key "/adexchangebuyer2:v2beta1/quotaUser": quota_user "/adexchangebuyer2:v2beta1/fields": fields -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update": update_account_creative -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list": list_account_creatives -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/query": query +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list": list_account_clients +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get": get_account_client +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update": update_account_client +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.create": create_account_client +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.create/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list": list_account_client_invitations +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get": get_account_client_invitation +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/invitationId": invitation_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create": create_account_client_invitation +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get": get_account_client_user +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/userId": user_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list": list_account_client_users +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update": update_account_client_user +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/userId": user_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.create": create_account_creative "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.create/duplicateIdMode": duplicate_id_mode "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.create/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.stopWatching": stop_watching_creative -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.stopWatching/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.stopWatching/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.stopWatching/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.watch": watch_creative "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.watch/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.watch/creativeId": creative_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.get": get_account_creative "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.get/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.get/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update": update_account_creative +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.update/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list": list_account_creatives +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.list/query": query "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list": list_account_creative_deal_associations "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/query": query "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.list/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove": remove_deal_association +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove/creativeId": creative_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.add": add_deal_association "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.add/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.add/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove": remove_deal_association -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.creatives.dealAssociations.remove/creativeId": creative_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.delete": delete_account_filter_set "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.delete/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.delete/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get": get_account_filter_set -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.list": list_account_filter_sets "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get": get_account_filter_set +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.get/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.create": create_account_filter_set -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.create/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.create/isTransient": is_transient -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list": list_account_filter_set_filtered_bids -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list": list_account_filter_set_filtered_bid_creatives -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/creativeStatusId": creative_status_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list": list_account_filter_set_filtered_bid_creative_details -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/creativeStatusId": creative_status_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list/creativeId": creative_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list": list_account_filter_set_filtered_bid_details -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/creativeStatusId": creative_status_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredImpressions.list": list_account_filter_set_filtered_impressions -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredImpressions.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredImpressions.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredImpressions.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredImpressions.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list": list_account_filter_set_losing_bids -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list": list_account_filter_set_impression_metrics -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.create/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list": list_account_filter_set_bid_metrics "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidMetrics.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list": list_account_filter_set_impression_metrics +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.impressionMetrics.list/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list": list_account_filter_set_bid_response_errors "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponseErrors.list/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list": list_account_filter_set_bid_responses_without_bids "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.bidResponsesWithoutBids.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list": list_account_filter_set_filtered_bid_requests "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBidRequests.list/filterSetId": filter_set_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get": get_account_client -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.get/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list": list_account_clients -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update": update_account_client -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.update/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.create": create_account_client -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.create/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get": get_account_client_invitation -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/invitationId": invitation_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.get/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list": list_account_client_invitations -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create": create_account_client_invitation -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.invitations.create/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list": list_account_client_users -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/pageSize": page_size -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.list/pageToken": page_token -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get": get_account_client_user -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/clientAccountId": client_account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/userId": user_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.get/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update": update_account_client_user -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/userId": user_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/accountId": account_id -"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.users.update/clientAccountId": client_account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list": list_account_filter_set_filtered_bids +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list": list_account_filter_set_filtered_bid_creatives +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/creativeStatusId": creative_status_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.creatives.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list": list_account_filter_set_filtered_bid_details +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/creativeStatusId": creative_status_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.filteredBids.details.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list": list_account_filter_set_non_billable_winning_bids +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list": list_account_filter_set_losing_bids +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/filterSetId": filter_set_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.losingBids.list/pageToken": page_token "/adexchangebuyer2:v2beta1/AuctionContext": auction_context "/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes": auction_types "/adexchangebuyer2:v2beta1/AuctionContext/auctionTypes/auction_type": auction_type @@ -6536,17 +6535,14 @@ "/adexchangebuyer2:v2beta1/ListImpressionMetricsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListImpressionMetricsResponse/impressionMetricsRows": impression_metrics_rows "/adexchangebuyer2:v2beta1/ListImpressionMetricsResponse/impressionMetricsRows/impression_metrics_row": impression_metrics_row -"/adexchangebuyer2:v2beta1/ImpressionStatusRow": impression_status_row -"/adexchangebuyer2:v2beta1/ImpressionStatusRow/impressionCount": impression_count -"/adexchangebuyer2:v2beta1/ImpressionStatusRow/status": status -"/adexchangebuyer2:v2beta1/ImpressionStatusRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/BidMetricsRow": bid_metrics_row +"/adexchangebuyer2:v2beta1/BidMetricsRow/impressionsWon": impressions_won +"/adexchangebuyer2:v2beta1/BidMetricsRow/viewableImpressions": viewable_impressions +"/adexchangebuyer2:v2beta1/BidMetricsRow/measurableImpressions": measurable_impressions +"/adexchangebuyer2:v2beta1/BidMetricsRow/bids": bids "/adexchangebuyer2:v2beta1/BidMetricsRow/billedImpressions": billed_impressions "/adexchangebuyer2:v2beta1/BidMetricsRow/bidsInAuction": bids_in_auction "/adexchangebuyer2:v2beta1/BidMetricsRow/rowDimensions": row_dimensions -"/adexchangebuyer2:v2beta1/BidMetricsRow/impressionsWon": impressions_won -"/adexchangebuyer2:v2beta1/BidMetricsRow/viewableImpressions": viewable_impressions -"/adexchangebuyer2:v2beta1/BidMetricsRow/bids": bids "/adexchangebuyer2:v2beta1/ListBidResponseErrorsResponse": list_bid_response_errors_response "/adexchangebuyer2:v2beta1/ListBidResponseErrorsResponse/calloutStatusRows": callout_status_rows "/adexchangebuyer2:v2beta1/ListBidResponseErrorsResponse/calloutStatusRows/callout_status_row": callout_status_row @@ -6557,13 +6553,17 @@ "/adexchangebuyer2:v2beta1/CreativeStatusRow/creativeStatusId": creative_status_id "/adexchangebuyer2:v2beta1/RealtimeTimeRange": realtime_time_range "/adexchangebuyer2:v2beta1/RealtimeTimeRange/startTimestamp": start_timestamp +"/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow": non_billable_winning_bid_status_row +"/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/bidCount": bid_count +"/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/status": status "/adexchangebuyer2:v2beta1/FilteredBidDetailRow": filtered_bid_detail_row -"/adexchangebuyer2:v2beta1/FilteredBidDetailRow/bidCount": bid_count -"/adexchangebuyer2:v2beta1/FilteredBidDetailRow/detailId": detail_id "/adexchangebuyer2:v2beta1/FilteredBidDetailRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/FilteredBidDetailRow/detailId": detail_id +"/adexchangebuyer2:v2beta1/FilteredBidDetailRow/bidCount": bid_count "/adexchangebuyer2:v2beta1/AbsoluteDateRange": absolute_date_range -"/adexchangebuyer2:v2beta1/AbsoluteDateRange/endDate": end_date "/adexchangebuyer2:v2beta1/AbsoluteDateRange/startDate": start_date +"/adexchangebuyer2:v2beta1/AbsoluteDateRange/endDate": end_date "/adexchangebuyer2:v2beta1/AddDealAssociationRequest": add_deal_association_request "/adexchangebuyer2:v2beta1/AddDealAssociationRequest/association": association "/adexchangebuyer2:v2beta1/WatchCreativeRequest": watch_creative_request @@ -6572,42 +6572,42 @@ "/adexchangebuyer2:v2beta1/TimeInterval/endTime": end_time "/adexchangebuyer2:v2beta1/TimeInterval/startTime": start_time "/adexchangebuyer2:v2beta1/FilteredBidCreativeRow": filtered_bid_creative_row +"/adexchangebuyer2:v2beta1/FilteredBidCreativeRow/bidCount": bid_count "/adexchangebuyer2:v2beta1/FilteredBidCreativeRow/creativeId": creative_id "/adexchangebuyer2:v2beta1/FilteredBidCreativeRow/rowDimensions": row_dimensions -"/adexchangebuyer2:v2beta1/FilteredBidCreativeRow/bidCount": bid_count "/adexchangebuyer2:v2beta1/RelativeDateRange": relative_date_range -"/adexchangebuyer2:v2beta1/RelativeDateRange/offsetDays": offset_days "/adexchangebuyer2:v2beta1/RelativeDateRange/durationDays": duration_days +"/adexchangebuyer2:v2beta1/RelativeDateRange/offsetDays": offset_days "/adexchangebuyer2:v2beta1/ListClientsResponse": list_clients_response "/adexchangebuyer2:v2beta1/ListClientsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListClientsResponse/clients": clients "/adexchangebuyer2:v2beta1/ListClientsResponse/clients/client": client "/adexchangebuyer2:v2beta1/NativeContent": native_content +"/adexchangebuyer2:v2beta1/NativeContent/callToAction": call_to_action "/adexchangebuyer2:v2beta1/NativeContent/body": body "/adexchangebuyer2:v2beta1/NativeContent/starRating": star_rating "/adexchangebuyer2:v2beta1/NativeContent/videoUrl": video_url -"/adexchangebuyer2:v2beta1/NativeContent/clickLinkUrl": click_link_url "/adexchangebuyer2:v2beta1/NativeContent/logo": logo +"/adexchangebuyer2:v2beta1/NativeContent/clickLinkUrl": click_link_url "/adexchangebuyer2:v2beta1/NativeContent/priceDisplayText": price_display_text -"/adexchangebuyer2:v2beta1/NativeContent/image": image "/adexchangebuyer2:v2beta1/NativeContent/clickTrackingUrl": click_tracking_url +"/adexchangebuyer2:v2beta1/NativeContent/image": image "/adexchangebuyer2:v2beta1/NativeContent/advertiserName": advertiser_name "/adexchangebuyer2:v2beta1/NativeContent/storeUrl": store_url "/adexchangebuyer2:v2beta1/NativeContent/headline": headline "/adexchangebuyer2:v2beta1/NativeContent/appIcon": app_icon -"/adexchangebuyer2:v2beta1/NativeContent/callToAction": call_to_action "/adexchangebuyer2:v2beta1/ListBidResponsesWithoutBidsResponse": list_bid_responses_without_bids_response +"/adexchangebuyer2:v2beta1/ListBidResponsesWithoutBidsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListBidResponsesWithoutBidsResponse/bidResponseWithoutBidsStatusRows": bid_response_without_bids_status_rows ? "/adexchangebuyer2:v2beta1/ListBidResponsesWithoutBidsResponse/bidResponseWithoutBidsStatusRows/bid_response_without_bids_status_row" : bid_response_without_bids_status_row -"/adexchangebuyer2:v2beta1/ListBidResponsesWithoutBidsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ServingContext": serving_context +"/adexchangebuyer2:v2beta1/ServingContext/securityType": security_type +"/adexchangebuyer2:v2beta1/ServingContext/platform": platform "/adexchangebuyer2:v2beta1/ServingContext/location": location "/adexchangebuyer2:v2beta1/ServingContext/auctionType": auction_type "/adexchangebuyer2:v2beta1/ServingContext/all": all "/adexchangebuyer2:v2beta1/ServingContext/appType": app_type -"/adexchangebuyer2:v2beta1/ServingContext/securityType": security_type -"/adexchangebuyer2:v2beta1/ServingContext/platform": platform "/adexchangebuyer2:v2beta1/Image": image "/adexchangebuyer2:v2beta1/Image/url": url "/adexchangebuyer2:v2beta1/Image/height": height @@ -6621,22 +6621,22 @@ "/adexchangebuyer2:v2beta1/BidResponseWithoutBidsStatusRow/status": status "/adexchangebuyer2:v2beta1/BidResponseWithoutBidsStatusRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/ClientUserInvitation": client_user_invitation -"/adexchangebuyer2:v2beta1/ClientUserInvitation/email": email "/adexchangebuyer2:v2beta1/ClientUserInvitation/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/ClientUserInvitation/invitationId": invitation_id +"/adexchangebuyer2:v2beta1/ClientUserInvitation/email": email "/adexchangebuyer2:v2beta1/ListClientUserInvitationsResponse": list_client_user_invitations_response "/adexchangebuyer2:v2beta1/ListClientUserInvitationsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListClientUserInvitationsResponse/invitations": invitations "/adexchangebuyer2:v2beta1/ListClientUserInvitationsResponse/invitations/invitation": invitation "/adexchangebuyer2:v2beta1/ListClientUsersResponse": list_client_users_response -"/adexchangebuyer2:v2beta1/ListClientUsersResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListClientUsersResponse/users": users "/adexchangebuyer2:v2beta1/ListClientUsersResponse/users/user": user +"/adexchangebuyer2:v2beta1/ListClientUsersResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse": list_creative_status_breakdown_by_detail_response -"/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/detailType": detail_type +"/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/filteredBidDetailRows": filtered_bid_detail_rows "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/filteredBidDetailRows/filtered_bid_detail_row": filtered_bid_detail_row -"/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByDetailResponse/detailType": detail_type "/adexchangebuyer2:v2beta1/LocationContext": location_context "/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds": geo_criteria_ids "/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds/geo_criteria_id": geo_criteria_id @@ -6648,20 +6648,14 @@ "/adexchangebuyer2:v2beta1/MetricValue/value": value "/adexchangebuyer2:v2beta1/ClientUser": client_user "/adexchangebuyer2:v2beta1/ClientUser/status": status -"/adexchangebuyer2:v2beta1/ClientUser/userId": user_id "/adexchangebuyer2:v2beta1/ClientUser/email": email +"/adexchangebuyer2:v2beta1/ClientUser/userId": user_id "/adexchangebuyer2:v2beta1/ClientUser/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation": creative_deal_association +"/adexchangebuyer2:v2beta1/CreativeDealAssociation/accountId": account_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/creativeId": creative_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/dealsId": deals_id -"/adexchangebuyer2:v2beta1/CreativeDealAssociation/accountId": account_id "/adexchangebuyer2:v2beta1/Creative": creative -"/adexchangebuyer2:v2beta1/Creative/filteringStats": filtering_stats -"/adexchangebuyer2:v2beta1/Creative/attributes": attributes -"/adexchangebuyer2:v2beta1/Creative/attributes/attribute": attribute -"/adexchangebuyer2:v2beta1/Creative/apiUpdateTime": api_update_time -"/adexchangebuyer2:v2beta1/Creative/detectedLanguages": detected_languages -"/adexchangebuyer2:v2beta1/Creative/detectedLanguages/detected_language": detected_language "/adexchangebuyer2:v2beta1/Creative/creativeId": creative_id "/adexchangebuyer2:v2beta1/Creative/accountId": account_id "/adexchangebuyer2:v2beta1/Creative/native": native @@ -6693,35 +6687,37 @@ "/adexchangebuyer2:v2beta1/Creative/detectedAdvertiserIds/detected_advertiser_id": detected_advertiser_id "/adexchangebuyer2:v2beta1/Creative/detectedDomains": detected_domains "/adexchangebuyer2:v2beta1/Creative/detectedDomains/detected_domain": detected_domain +"/adexchangebuyer2:v2beta1/Creative/filteringStats": filtering_stats +"/adexchangebuyer2:v2beta1/Creative/attributes": attributes +"/adexchangebuyer2:v2beta1/Creative/attributes/attribute": attribute +"/adexchangebuyer2:v2beta1/Creative/apiUpdateTime": api_update_time +"/adexchangebuyer2:v2beta1/Creative/detectedLanguages": detected_languages +"/adexchangebuyer2:v2beta1/Creative/detectedLanguages/detected_language": detected_language "/adexchangebuyer2:v2beta1/FilteringStats": filtering_stats +"/adexchangebuyer2:v2beta1/FilteringStats/date": date "/adexchangebuyer2:v2beta1/FilteringStats/reasons": reasons "/adexchangebuyer2:v2beta1/FilteringStats/reasons/reason": reason -"/adexchangebuyer2:v2beta1/FilteringStats/date": date "/adexchangebuyer2:v2beta1/RemoveDealAssociationRequest": remove_deal_association_request "/adexchangebuyer2:v2beta1/RemoveDealAssociationRequest/association": association -"/adexchangebuyer2:v2beta1/ListFilteredImpressionsResponse": list_filtered_impressions_response -"/adexchangebuyer2:v2beta1/ListFilteredImpressionsResponse/nextPageToken": next_page_token -"/adexchangebuyer2:v2beta1/ListFilteredImpressionsResponse/impressionsStatusRows": impressions_status_rows -"/adexchangebuyer2:v2beta1/ListFilteredImpressionsResponse/impressionsStatusRows/impressions_status_row": impressions_status_row "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByCreativeResponse": list_creative_status_breakdown_by_creative_response "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByCreativeResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByCreativeResponse/filteredBidCreativeRows": filtered_bid_creative_rows "/adexchangebuyer2:v2beta1/ListCreativeStatusBreakdownByCreativeResponse/filteredBidCreativeRows/filtered_bid_creative_row": filtered_bid_creative_row "/adexchangebuyer2:v2beta1/Client": client -"/adexchangebuyer2:v2beta1/Client/entityType": entity_type -"/adexchangebuyer2:v2beta1/Client/clientName": client_name -"/adexchangebuyer2:v2beta1/Client/role": role "/adexchangebuyer2:v2beta1/Client/visibleToSeller": visible_to_seller "/adexchangebuyer2:v2beta1/Client/entityId": entity_id "/adexchangebuyer2:v2beta1/Client/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/Client/entityName": entity_name "/adexchangebuyer2:v2beta1/Client/status": status +"/adexchangebuyer2:v2beta1/Client/entityType": entity_type +"/adexchangebuyer2:v2beta1/Client/clientName": client_name +"/adexchangebuyer2:v2beta1/Client/role": role "/adexchangebuyer2:v2beta1/Correction": correction -"/adexchangebuyer2:v2beta1/Correction/details": details -"/adexchangebuyer2:v2beta1/Correction/details/detail": detail "/adexchangebuyer2:v2beta1/Correction/type": type "/adexchangebuyer2:v2beta1/Correction/contexts": contexts "/adexchangebuyer2:v2beta1/Correction/contexts/context": context +"/adexchangebuyer2:v2beta1/Correction/details": details +"/adexchangebuyer2:v2beta1/Correction/details/detail": detail "/adexchangebuyer2:v2beta1/FilterSet": filter_set "/adexchangebuyer2:v2beta1/FilterSet/sellerNetworkIds": seller_network_ids "/adexchangebuyer2:v2beta1/FilterSet/sellerNetworkIds/seller_network_id": seller_network_id @@ -6729,8 +6725,8 @@ "/adexchangebuyer2:v2beta1/FilterSet/absoluteDateRange": absolute_date_range "/adexchangebuyer2:v2beta1/FilterSet/buyerAccountId": buyer_account_id "/adexchangebuyer2:v2beta1/FilterSet/environment": environment -"/adexchangebuyer2:v2beta1/FilterSet/format": format "/adexchangebuyer2:v2beta1/FilterSet/dealId": deal_id +"/adexchangebuyer2:v2beta1/FilterSet/format": format "/adexchangebuyer2:v2beta1/FilterSet/timeSeriesGranularity": time_series_granularity "/adexchangebuyer2:v2beta1/FilterSet/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/FilterSet/realtimeTimeRange": realtime_time_range @@ -6738,75 +6734,74 @@ "/adexchangebuyer2:v2beta1/FilterSet/platforms": platforms "/adexchangebuyer2:v2beta1/FilterSet/platforms/platform": platform "/adexchangebuyer2:v2beta1/FilterSet/relativeDateRange": relative_date_range -"/adexchangebuyer2:v2beta1/CalloutStatusRow": callout_status_row -"/adexchangebuyer2:v2beta1/CalloutStatusRow/rowDimensions": row_dimensions -"/adexchangebuyer2:v2beta1/CalloutStatusRow/calloutStatusId": callout_status_id -"/adexchangebuyer2:v2beta1/CalloutStatusRow/impressionCount": impression_count "/adexchangebuyer2:v2beta1/ListDealAssociationsResponse": list_deal_associations_response "/adexchangebuyer2:v2beta1/ListDealAssociationsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListDealAssociationsResponse/associations": associations "/adexchangebuyer2:v2beta1/ListDealAssociationsResponse/associations/association": association -"/adexchangebuyer2:v2beta1/StopWatchingCreativeRequest": stop_watching_creative_request +"/adexchangebuyer2:v2beta1/CalloutStatusRow": callout_status_row +"/adexchangebuyer2:v2beta1/CalloutStatusRow/impressionCount": impression_count +"/adexchangebuyer2:v2beta1/CalloutStatusRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/CalloutStatusRow/calloutStatusId": callout_status_id "/adexchangebuyer2:v2beta1/Disapproval": disapproval "/adexchangebuyer2:v2beta1/Disapproval/details": details "/adexchangebuyer2:v2beta1/Disapproval/details/detail": detail "/adexchangebuyer2:v2beta1/Disapproval/reason": reason +"/adexchangebuyer2:v2beta1/StopWatchingCreativeRequest": stop_watching_creative_request "/adexchangebuyer2:v2beta1/ServingRestriction": serving_restriction +"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons": disapproval_reasons +"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons/disapproval_reason": disapproval_reason "/adexchangebuyer2:v2beta1/ServingRestriction/contexts": contexts "/adexchangebuyer2:v2beta1/ServingRestriction/contexts/context": context "/adexchangebuyer2:v2beta1/ServingRestriction/status": status -"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons": disapproval_reasons -"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons/disapproval_reason": disapproval_reason "/adexchangebuyer2:v2beta1/Date": date -"/adexchangebuyer2:v2beta1/Date/year": year "/adexchangebuyer2:v2beta1/Date/day": day +"/adexchangebuyer2:v2beta1/Date/year": year "/adexchangebuyer2:v2beta1/Date/month": month "/adexchangebuyer2:v2beta1/RowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/RowDimensions/timeInterval": time_interval "/adexchangebuyer2:v2beta1/Empty": empty -"/adexchangebuyer2:v2beta1/ListCreativeStatusAndCreativeBreakdownByDetailResponse": list_creative_status_and_creative_breakdown_by_detail_response -"/adexchangebuyer2:v2beta1/ListCreativeStatusAndCreativeBreakdownByDetailResponse/filteredBidDetailRows": filtered_bid_detail_rows -"/adexchangebuyer2:v2beta1/ListCreativeStatusAndCreativeBreakdownByDetailResponse/filteredBidDetailRows/filtered_bid_detail_row": filtered_bid_detail_row -"/adexchangebuyer2:v2beta1/ListCreativeStatusAndCreativeBreakdownByDetailResponse/nextPageToken": next_page_token -"/adexchangebuyer2:v2beta1/ListCreativeStatusAndCreativeBreakdownByDetailResponse/detailType": detail_type "/adexchangebuyer2:v2beta1/AppContext": app_context "/adexchangebuyer2:v2beta1/AppContext/appTypes": app_types "/adexchangebuyer2:v2beta1/AppContext/appTypes/app_type": app_type "/adexchangebuyer2:v2beta1/ListFilteredBidsResponse": list_filtered_bids_response +"/adexchangebuyer2:v2beta1/ListFilteredBidsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListFilteredBidsResponse/creativeStatusRows": creative_status_rows "/adexchangebuyer2:v2beta1/ListFilteredBidsResponse/creativeStatusRows/creative_status_row": creative_status_row -"/adexchangebuyer2:v2beta1/ListFilteredBidsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/SecurityContext": security_context "/adexchangebuyer2:v2beta1/SecurityContext/securities": securities "/adexchangebuyer2:v2beta1/SecurityContext/securities/security": security -"/adexchangebuyer2:v2beta1/HtmlContent": html_content -"/adexchangebuyer2:v2beta1/HtmlContent/height": height -"/adexchangebuyer2:v2beta1/HtmlContent/width": width -"/adexchangebuyer2:v2beta1/HtmlContent/snippet": snippet -"/adexchangebuyer2:v2beta1/ListCreativesResponse": list_creatives_response -"/adexchangebuyer2:v2beta1/ListCreativesResponse/nextPageToken": next_page_token -"/adexchangebuyer2:v2beta1/ListCreativesResponse/creatives": creatives -"/adexchangebuyer2:v2beta1/ListCreativesResponse/creatives/creative": creative "/adexchangebuyer2:v2beta1/ListFilteredBidRequestsResponse": list_filtered_bid_requests_response "/adexchangebuyer2:v2beta1/ListFilteredBidRequestsResponse/calloutStatusRows": callout_status_rows "/adexchangebuyer2:v2beta1/ListFilteredBidRequestsResponse/calloutStatusRows/callout_status_row": callout_status_row "/adexchangebuyer2:v2beta1/ListFilteredBidRequestsResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListCreativesResponse": list_creatives_response +"/adexchangebuyer2:v2beta1/ListCreativesResponse/creatives": creatives +"/adexchangebuyer2:v2beta1/ListCreativesResponse/creatives/creative": creative +"/adexchangebuyer2:v2beta1/ListCreativesResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/HtmlContent": html_content +"/adexchangebuyer2:v2beta1/HtmlContent/height": height +"/adexchangebuyer2:v2beta1/HtmlContent/width": width +"/adexchangebuyer2:v2beta1/HtmlContent/snippet": snippet "/adexchangebuyer2:v2beta1/ListBidMetricsResponse": list_bid_metrics_response +"/adexchangebuyer2:v2beta1/ListBidMetricsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListBidMetricsResponse/bidMetricsRows": bid_metrics_rows "/adexchangebuyer2:v2beta1/ListBidMetricsResponse/bidMetricsRows/bid_metrics_row": bid_metrics_row -"/adexchangebuyer2:v2beta1/ListBidMetricsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/Reason": reason "/adexchangebuyer2:v2beta1/Reason/status": status "/adexchangebuyer2:v2beta1/Reason/count": count +"/adexchangebuyer2:v2beta1/VideoContent": video_content +"/adexchangebuyer2:v2beta1/VideoContent/videoUrl": video_url "/adexchangebuyer2:v2beta1/ListLosingBidsResponse": list_losing_bids_response "/adexchangebuyer2:v2beta1/ListLosingBidsResponse/creativeStatusRows": creative_status_rows "/adexchangebuyer2:v2beta1/ListLosingBidsResponse/creativeStatusRows/creative_status_row": creative_status_row "/adexchangebuyer2:v2beta1/ListLosingBidsResponse/nextPageToken": next_page_token -"/adexchangebuyer2:v2beta1/VideoContent": video_content -"/adexchangebuyer2:v2beta1/VideoContent/videoUrl": video_url +"/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse": list_non_billable_winning_bids_response +"/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nonBillableWinningBidStatusRows": non_billable_winning_bid_status_rows +"/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nonBillableWinningBidStatusRows/non_billable_winning_bid_status_row": non_billable_winning_bid_status_row "/adexchangebuyer2:v2beta1/ImpressionMetricsRow": impression_metrics_row -"/adexchangebuyer2:v2beta1/ImpressionMetricsRow/availableImpressions": available_impressions "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/ImpressionMetricsRow/availableImpressions": available_impressions "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/inventoryMatches": inventory_matches "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/bidRequests": bid_requests "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/responsesWithBids": responses_with_bids @@ -7056,6 +7051,7 @@ "/admin:directory_v1/directory.chromeosdevices.list/customerId": customer_id "/admin:directory_v1/directory.chromeosdevices.list/maxResults": max_results "/admin:directory_v1/directory.chromeosdevices.list/orderBy": order_by +"/admin:directory_v1/directory.chromeosdevices.list/orgUnitPath": org_unit_path "/admin:directory_v1/directory.chromeosdevices.list/pageToken": page_token "/admin:directory_v1/directory.chromeosdevices.list/projection": projection "/admin:directory_v1/directory.chromeosdevices.list/query": query @@ -7682,6 +7678,7 @@ "/admin:directory_v1/User/isEnrolledIn2Sv": is_enrolled_in2_sv "/admin:directory_v1/User/isMailboxSetup": is_mailbox_setup "/admin:directory_v1/User/kind": kind +"/admin:directory_v1/User/languages": languages "/admin:directory_v1/User/lastLoginTime": last_login_time "/admin:directory_v1/User/locations": locations "/admin:directory_v1/User/name": name @@ -7736,6 +7733,9 @@ "/admin:directory_v1/UserIm/primary": primary "/admin:directory_v1/UserIm/protocol": protocol "/admin:directory_v1/UserIm/type": type +"/admin:directory_v1/UserLanguage": user_language +"/admin:directory_v1/UserLanguage/customLanguage": custom_language +"/admin:directory_v1/UserLanguage/languageCode": language_code "/admin:directory_v1/UserLocation": user_location "/admin:directory_v1/UserLocation/area": area "/admin:directory_v1/UserLocation/buildingId": building_id @@ -7756,6 +7756,7 @@ "/admin:directory_v1/UserOrganization/department": department "/admin:directory_v1/UserOrganization/description": description "/admin:directory_v1/UserOrganization/domain": domain +"/admin:directory_v1/UserOrganization/fullTimeEquivalent": full_time_equivalent "/admin:directory_v1/UserOrganization/location": location "/admin:directory_v1/UserOrganization/name": name "/admin:directory_v1/UserOrganization/primary": primary @@ -9475,22 +9476,41 @@ "/analytics:v3/Webproperty/starred": starred "/analytics:v3/Webproperty/updated": updated "/analytics:v3/Webproperty/websiteUrl": website_url -"/analyticsreporting:v4/quotaUser": quota_user "/analyticsreporting:v4/fields": fields "/analyticsreporting:v4/key": key +"/analyticsreporting:v4/quotaUser": quota_user +"/analyticsreporting:v4/SegmentSequenceStep": segment_sequence_step +"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment": or_filters_for_segment +"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment +"/analyticsreporting:v4/SegmentSequenceStep/matchType": match_type +"/analyticsreporting:v4/Metric": metric +"/analyticsreporting:v4/Metric/formattingType": formatting_type +"/analyticsreporting:v4/Metric/alias": alias +"/analyticsreporting:v4/Metric/expression": expression +"/analyticsreporting:v4/PivotValueRegion": pivot_value_region +"/analyticsreporting:v4/PivotValueRegion/values": values +"/analyticsreporting:v4/PivotValueRegion/values/value": value +"/analyticsreporting:v4/Report": report +"/analyticsreporting:v4/Report/nextPageToken": next_page_token +"/analyticsreporting:v4/Report/data": data +"/analyticsreporting:v4/Report/columnHeader": column_header "/analyticsreporting:v4/PivotHeader": pivot_header +"/analyticsreporting:v4/PivotHeader/totalPivotGroupsCount": total_pivot_groups_count "/analyticsreporting:v4/PivotHeader/pivotHeaderEntries": pivot_header_entries "/analyticsreporting:v4/PivotHeader/pivotHeaderEntries/pivot_header_entry": pivot_header_entry -"/analyticsreporting:v4/PivotHeader/totalPivotGroupsCount": total_pivot_groups_count "/analyticsreporting:v4/DateRange": date_range "/analyticsreporting:v4/DateRange/startDate": start_date "/analyticsreporting:v4/DateRange/endDate": end_date -"/analyticsreporting:v4/MetricFilter": metric_filter -"/analyticsreporting:v4/MetricFilter/metricName": metric_name -"/analyticsreporting:v4/MetricFilter/comparisonValue": comparison_value -"/analyticsreporting:v4/MetricFilter/operator": operator -"/analyticsreporting:v4/MetricFilter/not": not "/analyticsreporting:v4/ReportRequest": report_request +"/analyticsreporting:v4/ReportRequest/samplingLevel": sampling_level +"/analyticsreporting:v4/ReportRequest/dimensions": dimensions +"/analyticsreporting:v4/ReportRequest/dimensions/dimension": dimension +"/analyticsreporting:v4/ReportRequest/pageToken": page_token +"/analyticsreporting:v4/ReportRequest/dateRanges": date_ranges +"/analyticsreporting:v4/ReportRequest/dateRanges/date_range": date_range +"/analyticsreporting:v4/ReportRequest/pivots": pivots +"/analyticsreporting:v4/ReportRequest/pivots/pivot": pivot +"/analyticsreporting:v4/ReportRequest/includeEmptyRows": include_empty_rows "/analyticsreporting:v4/ReportRequest/metricFilterClauses": metric_filter_clauses "/analyticsreporting:v4/ReportRequest/metricFilterClauses/metric_filter_clause": metric_filter_clause "/analyticsreporting:v4/ReportRequest/pageSize": page_size @@ -9507,15 +9527,11 @@ "/analyticsreporting:v4/ReportRequest/orderBys/order_by": order_by "/analyticsreporting:v4/ReportRequest/segments": segments "/analyticsreporting:v4/ReportRequest/segments/segment": segment -"/analyticsreporting:v4/ReportRequest/samplingLevel": sampling_level -"/analyticsreporting:v4/ReportRequest/dimensions": dimensions -"/analyticsreporting:v4/ReportRequest/dimensions/dimension": dimension -"/analyticsreporting:v4/ReportRequest/dateRanges": date_ranges -"/analyticsreporting:v4/ReportRequest/dateRanges/date_range": date_range -"/analyticsreporting:v4/ReportRequest/pageToken": page_token -"/analyticsreporting:v4/ReportRequest/pivots": pivots -"/analyticsreporting:v4/ReportRequest/pivots/pivot": pivot -"/analyticsreporting:v4/ReportRequest/includeEmptyRows": include_empty_rows +"/analyticsreporting:v4/MetricFilter": metric_filter +"/analyticsreporting:v4/MetricFilter/metricName": metric_name +"/analyticsreporting:v4/MetricFilter/comparisonValue": comparison_value +"/analyticsreporting:v4/MetricFilter/operator": operator +"/analyticsreporting:v4/MetricFilter/not": not "/analyticsreporting:v4/Dimension": dimension "/analyticsreporting:v4/Dimension/histogramBuckets": histogram_buckets "/analyticsreporting:v4/Dimension/histogramBuckets/histogram_bucket": histogram_bucket @@ -9524,30 +9540,30 @@ "/analyticsreporting:v4/SimpleSegment/orFiltersForSegment": or_filters_for_segment "/analyticsreporting:v4/SimpleSegment/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment "/analyticsreporting:v4/DynamicSegment": dynamic_segment +"/analyticsreporting:v4/DynamicSegment/userSegment": user_segment "/analyticsreporting:v4/DynamicSegment/sessionSegment": session_segment "/analyticsreporting:v4/DynamicSegment/name": name -"/analyticsreporting:v4/DynamicSegment/userSegment": user_segment "/analyticsreporting:v4/ColumnHeader": column_header +"/analyticsreporting:v4/ColumnHeader/metricHeader": metric_header "/analyticsreporting:v4/ColumnHeader/dimensions": dimensions "/analyticsreporting:v4/ColumnHeader/dimensions/dimension": dimension -"/analyticsreporting:v4/ColumnHeader/metricHeader": metric_header "/analyticsreporting:v4/SegmentFilterClause": segment_filter_clause "/analyticsreporting:v4/SegmentFilterClause/not": not "/analyticsreporting:v4/SegmentFilterClause/dimensionFilter": dimension_filter "/analyticsreporting:v4/SegmentFilterClause/metricFilter": metric_filter -"/analyticsreporting:v4/Cohort": cohort -"/analyticsreporting:v4/Cohort/name": name -"/analyticsreporting:v4/Cohort/dateRange": date_range -"/analyticsreporting:v4/Cohort/type": type "/analyticsreporting:v4/ReportRow": report_row "/analyticsreporting:v4/ReportRow/metrics": metrics "/analyticsreporting:v4/ReportRow/metrics/metric": metric "/analyticsreporting:v4/ReportRow/dimensions": dimensions "/analyticsreporting:v4/ReportRow/dimensions/dimension": dimension "/analyticsreporting:v4/MetricFilterClause": metric_filter_clause -"/analyticsreporting:v4/MetricFilterClause/operator": operator "/analyticsreporting:v4/MetricFilterClause/filters": filters "/analyticsreporting:v4/MetricFilterClause/filters/filter": filter +"/analyticsreporting:v4/MetricFilterClause/operator": operator +"/analyticsreporting:v4/Cohort": cohort +"/analyticsreporting:v4/Cohort/dateRange": date_range +"/analyticsreporting:v4/Cohort/name": name +"/analyticsreporting:v4/Cohort/type": type "/analyticsreporting:v4/OrFiltersForSegment": or_filters_for_segment "/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses": segment_filter_clauses "/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses/segment_filter_clause": segment_filter_clause @@ -9557,53 +9573,53 @@ "/analyticsreporting:v4/MetricHeader/metricHeaderEntries": metric_header_entries "/analyticsreporting:v4/MetricHeader/metricHeaderEntries/metric_header_entry": metric_header_entry "/analyticsreporting:v4/DimensionFilterClause": dimension_filter_clause -"/analyticsreporting:v4/DimensionFilterClause/operator": operator "/analyticsreporting:v4/DimensionFilterClause/filters": filters "/analyticsreporting:v4/DimensionFilterClause/filters/filter": filter +"/analyticsreporting:v4/DimensionFilterClause/operator": operator "/analyticsreporting:v4/GetReportsResponse": get_reports_response "/analyticsreporting:v4/GetReportsResponse/reports": reports "/analyticsreporting:v4/GetReportsResponse/reports/report": report "/analyticsreporting:v4/SequenceSegment": sequence_segment +"/analyticsreporting:v4/SequenceSegment/firstStepShouldMatchFirstHit": first_step_should_match_first_hit "/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps": segment_sequence_steps "/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps/segment_sequence_step": segment_sequence_step -"/analyticsreporting:v4/SequenceSegment/firstStepShouldMatchFirstHit": first_step_should_match_first_hit "/analyticsreporting:v4/SegmentMetricFilter": segment_metric_filter +"/analyticsreporting:v4/SegmentMetricFilter/operator": operator "/analyticsreporting:v4/SegmentMetricFilter/metricName": metric_name "/analyticsreporting:v4/SegmentMetricFilter/scope": scope "/analyticsreporting:v4/SegmentMetricFilter/maxComparisonValue": max_comparison_value "/analyticsreporting:v4/SegmentMetricFilter/comparisonValue": comparison_value -"/analyticsreporting:v4/SegmentMetricFilter/operator": operator "/analyticsreporting:v4/DateRangeValues": date_range_values "/analyticsreporting:v4/DateRangeValues/values": values "/analyticsreporting:v4/DateRangeValues/values/value": value "/analyticsreporting:v4/DateRangeValues/pivotValueRegions": pivot_value_regions "/analyticsreporting:v4/DateRangeValues/pivotValueRegions/pivot_value_region": pivot_value_region "/analyticsreporting:v4/CohortGroup": cohort_group -"/analyticsreporting:v4/CohortGroup/lifetimeValue": lifetime_value "/analyticsreporting:v4/CohortGroup/cohorts": cohorts "/analyticsreporting:v4/CohortGroup/cohorts/cohort": cohort +"/analyticsreporting:v4/CohortGroup/lifetimeValue": lifetime_value "/analyticsreporting:v4/GetReportsRequest": get_reports_request "/analyticsreporting:v4/GetReportsRequest/reportRequests": report_requests "/analyticsreporting:v4/GetReportsRequest/reportRequests/report_request": report_request "/analyticsreporting:v4/Pivot": pivot +"/analyticsreporting:v4/Pivot/maxGroupCount": max_group_count "/analyticsreporting:v4/Pivot/startGroup": start_group "/analyticsreporting:v4/Pivot/metrics": metrics "/analyticsreporting:v4/Pivot/metrics/metric": metric -"/analyticsreporting:v4/Pivot/dimensions": dimensions -"/analyticsreporting:v4/Pivot/dimensions/dimension": dimension "/analyticsreporting:v4/Pivot/dimensionFilterClauses": dimension_filter_clauses "/analyticsreporting:v4/Pivot/dimensionFilterClauses/dimension_filter_clause": dimension_filter_clause -"/analyticsreporting:v4/Pivot/maxGroupCount": max_group_count +"/analyticsreporting:v4/Pivot/dimensions": dimensions +"/analyticsreporting:v4/Pivot/dimensions/dimension": dimension "/analyticsreporting:v4/PivotHeaderEntry": pivot_header_entry +"/analyticsreporting:v4/PivotHeaderEntry/metric": metric "/analyticsreporting:v4/PivotHeaderEntry/dimensionNames": dimension_names "/analyticsreporting:v4/PivotHeaderEntry/dimensionNames/dimension_name": dimension_name -"/analyticsreporting:v4/PivotHeaderEntry/metric": metric "/analyticsreporting:v4/PivotHeaderEntry/dimensionValues": dimension_values "/analyticsreporting:v4/PivotHeaderEntry/dimensionValues/dimension_value": dimension_value "/analyticsreporting:v4/SegmentFilter": segment_filter +"/analyticsreporting:v4/SegmentFilter/sequenceSegment": sequence_segment "/analyticsreporting:v4/SegmentFilter/not": not "/analyticsreporting:v4/SegmentFilter/simpleSegment": simple_segment -"/analyticsreporting:v4/SegmentFilter/sequenceSegment": sequence_segment "/analyticsreporting:v4/SegmentDefinition": segment_definition "/analyticsreporting:v4/SegmentDefinition/segmentFilters": segment_filters "/analyticsreporting:v4/SegmentDefinition/segmentFilters/segment_filter": segment_filter @@ -9619,50 +9635,35 @@ "/analyticsreporting:v4/ReportData/totals/total": total "/analyticsreporting:v4/ReportData/samplesReadCounts": samples_read_counts "/analyticsreporting:v4/ReportData/samplesReadCounts/samples_read_count": samples_read_count -"/analyticsreporting:v4/ReportData/rowCount": row_count +"/analyticsreporting:v4/ReportData/isDataGolden": is_data_golden "/analyticsreporting:v4/ReportData/rows": rows "/analyticsreporting:v4/ReportData/rows/row": row -"/analyticsreporting:v4/ReportData/isDataGolden": is_data_golden +"/analyticsreporting:v4/ReportData/rowCount": row_count "/analyticsreporting:v4/ReportData/dataLastRefreshed": data_last_refreshed "/analyticsreporting:v4/ReportData/maximums": maximums "/analyticsreporting:v4/ReportData/maximums/maximum": maximum "/analyticsreporting:v4/DimensionFilter": dimension_filter -"/analyticsreporting:v4/DimensionFilter/dimensionName": dimension_name +"/analyticsreporting:v4/DimensionFilter/caseSensitive": case_sensitive "/analyticsreporting:v4/DimensionFilter/operator": operator -"/analyticsreporting:v4/DimensionFilter/not": not +"/analyticsreporting:v4/DimensionFilter/dimensionName": dimension_name "/analyticsreporting:v4/DimensionFilter/expressions": expressions "/analyticsreporting:v4/DimensionFilter/expressions/expression": expression -"/analyticsreporting:v4/DimensionFilter/caseSensitive": case_sensitive +"/analyticsreporting:v4/DimensionFilter/not": not "/analyticsreporting:v4/SegmentDimensionFilter": segment_dimension_filter +"/analyticsreporting:v4/SegmentDimensionFilter/maxComparisonValue": max_comparison_value "/analyticsreporting:v4/SegmentDimensionFilter/dimensionName": dimension_name "/analyticsreporting:v4/SegmentDimensionFilter/operator": operator "/analyticsreporting:v4/SegmentDimensionFilter/expressions": expressions "/analyticsreporting:v4/SegmentDimensionFilter/expressions/expression": expression "/analyticsreporting:v4/SegmentDimensionFilter/caseSensitive": case_sensitive "/analyticsreporting:v4/SegmentDimensionFilter/minComparisonValue": min_comparison_value -"/analyticsreporting:v4/SegmentDimensionFilter/maxComparisonValue": max_comparison_value "/analyticsreporting:v4/OrderBy": order_by -"/analyticsreporting:v4/OrderBy/sortOrder": sort_order -"/analyticsreporting:v4/OrderBy/fieldName": field_name "/analyticsreporting:v4/OrderBy/orderType": order_type +"/analyticsreporting:v4/OrderBy/fieldName": field_name +"/analyticsreporting:v4/OrderBy/sortOrder": sort_order "/analyticsreporting:v4/Segment": segment "/analyticsreporting:v4/Segment/dynamicSegment": dynamic_segment "/analyticsreporting:v4/Segment/segmentId": segment_id -"/analyticsreporting:v4/SegmentSequenceStep": segment_sequence_step -"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment": or_filters_for_segment -"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment -"/analyticsreporting:v4/SegmentSequenceStep/matchType": match_type -"/analyticsreporting:v4/Metric": metric -"/analyticsreporting:v4/Metric/alias": alias -"/analyticsreporting:v4/Metric/expression": expression -"/analyticsreporting:v4/Metric/formattingType": formatting_type -"/analyticsreporting:v4/PivotValueRegion": pivot_value_region -"/analyticsreporting:v4/PivotValueRegion/values": values -"/analyticsreporting:v4/PivotValueRegion/values/value": value -"/analyticsreporting:v4/Report": report -"/analyticsreporting:v4/Report/columnHeader": column_header -"/analyticsreporting:v4/Report/data": data -"/analyticsreporting:v4/Report/nextPageToken": next_page_token "/androidenterprise:v1/fields": fields "/androidenterprise:v1/key": key "/androidenterprise:v1/quotaUser": quota_user @@ -10612,114 +10613,92 @@ "/appengine:v1/fields": fields "/appengine:v1/key": key "/appengine:v1/quotaUser": quota_user -"/appengine:v1/appengine.apps.get": get_app -"/appengine:v1/appengine.apps.get/appsId": apps_id -"/appengine:v1/appengine.apps.patch": patch_app -"/appengine:v1/appengine.apps.patch/updateMask": update_mask -"/appengine:v1/appengine.apps.patch/appsId": apps_id -"/appengine:v1/appengine.apps.create": create_app "/appengine:v1/appengine.apps.repair": repair_application "/appengine:v1/appengine.apps.repair/appsId": apps_id -"/appengine:v1/appengine.apps.operations.list": list_app_operations -"/appengine:v1/appengine.apps.operations.list/appsId": apps_id -"/appengine:v1/appengine.apps.operations.list/pageToken": page_token -"/appengine:v1/appengine.apps.operations.list/pageSize": page_size -"/appengine:v1/appengine.apps.operations.list/filter": filter +"/appengine:v1/appengine.apps.patch": patch_app +"/appengine:v1/appengine.apps.patch/appsId": apps_id +"/appengine:v1/appengine.apps.patch/updateMask": update_mask +"/appengine:v1/appengine.apps.get": get_app +"/appengine:v1/appengine.apps.get/appsId": apps_id +"/appengine:v1/appengine.apps.create": create_app "/appengine:v1/appengine.apps.operations.get": get_app_operation "/appengine:v1/appengine.apps.operations.get/appsId": apps_id "/appengine:v1/appengine.apps.operations.get/operationsId": operations_id -"/appengine:v1/appengine.apps.locations.list": list_app_locations -"/appengine:v1/appengine.apps.locations.list/appsId": apps_id -"/appengine:v1/appengine.apps.locations.list/pageToken": page_token -"/appengine:v1/appengine.apps.locations.list/pageSize": page_size -"/appengine:v1/appengine.apps.locations.list/filter": filter +"/appengine:v1/appengine.apps.operations.list": list_app_operations +"/appengine:v1/appengine.apps.operations.list/pageSize": page_size +"/appengine:v1/appengine.apps.operations.list/filter": filter +"/appengine:v1/appengine.apps.operations.list/pageToken": page_token +"/appengine:v1/appengine.apps.operations.list/appsId": apps_id "/appengine:v1/appengine.apps.locations.get": get_app_location -"/appengine:v1/appengine.apps.locations.get/locationsId": locations_id "/appengine:v1/appengine.apps.locations.get/appsId": apps_id +"/appengine:v1/appengine.apps.locations.get/locationsId": locations_id +"/appengine:v1/appengine.apps.locations.list": list_app_locations +"/appengine:v1/appengine.apps.locations.list/filter": filter +"/appengine:v1/appengine.apps.locations.list/pageToken": page_token +"/appengine:v1/appengine.apps.locations.list/appsId": apps_id +"/appengine:v1/appengine.apps.locations.list/pageSize": page_size "/appengine:v1/appengine.apps.services.delete": delete_app_service "/appengine:v1/appengine.apps.services.delete/servicesId": services_id "/appengine:v1/appengine.apps.services.delete/appsId": apps_id -"/appengine:v1/appengine.apps.services.list": list_app_services -"/appengine:v1/appengine.apps.services.list/appsId": apps_id -"/appengine:v1/appengine.apps.services.list/pageToken": page_token -"/appengine:v1/appengine.apps.services.list/pageSize": page_size -"/appengine:v1/appengine.apps.services.get": get_app_service -"/appengine:v1/appengine.apps.services.get/appsId": apps_id -"/appengine:v1/appengine.apps.services.get/servicesId": services_id "/appengine:v1/appengine.apps.services.patch": patch_app_service "/appengine:v1/appengine.apps.services.patch/updateMask": update_mask "/appengine:v1/appengine.apps.services.patch/servicesId": services_id "/appengine:v1/appengine.apps.services.patch/appsId": apps_id "/appengine:v1/appengine.apps.services.patch/migrateTraffic": migrate_traffic +"/appengine:v1/appengine.apps.services.get": get_app_service +"/appengine:v1/appengine.apps.services.get/servicesId": services_id +"/appengine:v1/appengine.apps.services.get/appsId": apps_id +"/appengine:v1/appengine.apps.services.list": list_app_services +"/appengine:v1/appengine.apps.services.list/pageToken": page_token +"/appengine:v1/appengine.apps.services.list/appsId": apps_id +"/appengine:v1/appengine.apps.services.list/pageSize": page_size +"/appengine:v1/appengine.apps.services.versions.create": create_app_service_version +"/appengine:v1/appengine.apps.services.versions.create/servicesId": services_id +"/appengine:v1/appengine.apps.services.versions.create/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.delete": delete_app_service_version "/appengine:v1/appengine.apps.services.versions.delete/servicesId": services_id "/appengine:v1/appengine.apps.services.versions.delete/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.delete/versionsId": versions_id -"/appengine:v1/appengine.apps.services.versions.list": list_app_service_versions -"/appengine:v1/appengine.apps.services.versions.list/appsId": apps_id -"/appengine:v1/appengine.apps.services.versions.list/pageToken": page_token -"/appengine:v1/appengine.apps.services.versions.list/pageSize": page_size -"/appengine:v1/appengine.apps.services.versions.list/view": view -"/appengine:v1/appengine.apps.services.versions.list/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.get": get_app_service_version -"/appengine:v1/appengine.apps.services.versions.get/appsId": apps_id -"/appengine:v1/appengine.apps.services.versions.get/versionsId": versions_id -"/appengine:v1/appengine.apps.services.versions.get/view": view -"/appengine:v1/appengine.apps.services.versions.get/servicesId": services_id "/appengine:v1/appengine.apps.services.versions.patch": patch_app_service_version -"/appengine:v1/appengine.apps.services.versions.patch/appsId": apps_id -"/appengine:v1/appengine.apps.services.versions.patch/versionsId": versions_id "/appengine:v1/appengine.apps.services.versions.patch/updateMask": update_mask "/appengine:v1/appengine.apps.services.versions.patch/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.create": create_app_service_version -"/appengine:v1/appengine.apps.services.versions.create/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.create/appsId": apps_id +"/appengine:v1/appengine.apps.services.versions.patch/appsId": apps_id +"/appengine:v1/appengine.apps.services.versions.patch/versionsId": versions_id +"/appengine:v1/appengine.apps.services.versions.get": get_app_service_version +"/appengine:v1/appengine.apps.services.versions.get/view": view +"/appengine:v1/appengine.apps.services.versions.get/versionsId": versions_id +"/appengine:v1/appengine.apps.services.versions.get/servicesId": services_id +"/appengine:v1/appengine.apps.services.versions.get/appsId": apps_id +"/appengine:v1/appengine.apps.services.versions.list": list_app_service_versions +"/appengine:v1/appengine.apps.services.versions.list/servicesId": services_id +"/appengine:v1/appengine.apps.services.versions.list/pageToken": page_token +"/appengine:v1/appengine.apps.services.versions.list/appsId": apps_id +"/appengine:v1/appengine.apps.services.versions.list/pageSize": page_size +"/appengine:v1/appengine.apps.services.versions.list/view": view "/appengine:v1/appengine.apps.services.versions.instances.delete": delete_app_service_version_instance "/appengine:v1/appengine.apps.services.versions.instances.delete/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.instances.delete/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.instances.delete/instancesId": instances_id +"/appengine:v1/appengine.apps.services.versions.instances.delete/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.instances.delete/versionsId": versions_id +"/appengine:v1/appengine.apps.services.versions.instances.get": get_app_service_version_instance +"/appengine:v1/appengine.apps.services.versions.instances.get/servicesId": services_id +"/appengine:v1/appengine.apps.services.versions.instances.get/instancesId": instances_id +"/appengine:v1/appengine.apps.services.versions.instances.get/appsId": apps_id +"/appengine:v1/appengine.apps.services.versions.instances.get/versionsId": versions_id "/appengine:v1/appengine.apps.services.versions.instances.list": list_app_service_version_instances "/appengine:v1/appengine.apps.services.versions.instances.list/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.instances.list/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.instances.list/pageToken": page_token +"/appengine:v1/appengine.apps.services.versions.instances.list/appsId": apps_id "/appengine:v1/appengine.apps.services.versions.instances.list/pageSize": page_size "/appengine:v1/appengine.apps.services.versions.instances.list/versionsId": versions_id -"/appengine:v1/appengine.apps.services.versions.instances.get": get_app_service_version_instance -"/appengine:v1/appengine.apps.services.versions.instances.get/appsId": apps_id -"/appengine:v1/appengine.apps.services.versions.instances.get/instancesId": instances_id -"/appengine:v1/appengine.apps.services.versions.instances.get/versionsId": versions_id -"/appengine:v1/appengine.apps.services.versions.instances.get/servicesId": services_id "/appengine:v1/appengine.apps.services.versions.instances.debug": debug_instance -"/appengine:v1/appengine.apps.services.versions.instances.debug/servicesId": services_id -"/appengine:v1/appengine.apps.services.versions.instances.debug/appsId": apps_id -"/appengine:v1/appengine.apps.services.versions.instances.debug/instancesId": instances_id "/appengine:v1/appengine.apps.services.versions.instances.debug/versionsId": versions_id -"/appengine:v1/OperationMetadataV1Alpha": operation_metadata_v1_alpha -"/appengine:v1/OperationMetadataV1Alpha/endTime": end_time -"/appengine:v1/OperationMetadataV1Alpha/warning": warning -"/appengine:v1/OperationMetadataV1Alpha/warning/warning": warning -"/appengine:v1/OperationMetadataV1Alpha/insertTime": insert_time -"/appengine:v1/OperationMetadataV1Alpha/user": user -"/appengine:v1/OperationMetadataV1Alpha/target": target -"/appengine:v1/OperationMetadataV1Alpha/ephemeralMessage": ephemeral_message -"/appengine:v1/OperationMetadataV1Alpha/method": method_prop -"/appengine:v1/UrlDispatchRule": url_dispatch_rule -"/appengine:v1/UrlDispatchRule/domain": domain -"/appengine:v1/UrlDispatchRule/service": service -"/appengine:v1/UrlDispatchRule/path": path -"/appengine:v1/ListVersionsResponse": list_versions_response -"/appengine:v1/ListVersionsResponse/versions": versions -"/appengine:v1/ListVersionsResponse/versions/version": version -"/appengine:v1/ListVersionsResponse/nextPageToken": next_page_token +"/appengine:v1/appengine.apps.services.versions.instances.debug/servicesId": services_id +"/appengine:v1/appengine.apps.services.versions.instances.debug/instancesId": instances_id +"/appengine:v1/appengine.apps.services.versions.instances.debug/appsId": apps_id "/appengine:v1/ApiEndpointHandler": api_endpoint_handler "/appengine:v1/ApiEndpointHandler/scriptPath": script_path "/appengine:v1/AutomaticScaling": automatic_scaling -"/appengine:v1/AutomaticScaling/requestUtilization": request_utilization -"/appengine:v1/AutomaticScaling/maxIdleInstances": max_idle_instances -"/appengine:v1/AutomaticScaling/minIdleInstances": min_idle_instances -"/appengine:v1/AutomaticScaling/maxTotalInstances": max_total_instances -"/appengine:v1/AutomaticScaling/minTotalInstances": min_total_instances "/appengine:v1/AutomaticScaling/networkUtilization": network_utilization "/appengine:v1/AutomaticScaling/maxConcurrentRequests": max_concurrent_requests "/appengine:v1/AutomaticScaling/coolDownPeriod": cool_down_period @@ -10727,12 +10706,17 @@ "/appengine:v1/AutomaticScaling/cpuUtilization": cpu_utilization "/appengine:v1/AutomaticScaling/diskUtilization": disk_utilization "/appengine:v1/AutomaticScaling/minPendingLatency": min_pending_latency +"/appengine:v1/AutomaticScaling/maxIdleInstances": max_idle_instances +"/appengine:v1/AutomaticScaling/requestUtilization": request_utilization +"/appengine:v1/AutomaticScaling/minIdleInstances": min_idle_instances +"/appengine:v1/AutomaticScaling/maxTotalInstances": max_total_instances +"/appengine:v1/AutomaticScaling/minTotalInstances": min_total_instances "/appengine:v1/ZipInfo": zip_info "/appengine:v1/ZipInfo/filesCount": files_count "/appengine:v1/ZipInfo/sourceUrl": source_url "/appengine:v1/Library": library -"/appengine:v1/Library/version": version "/appengine:v1/Library/name": name +"/appengine:v1/Library/version": version "/appengine:v1/ListLocationsResponse": list_locations_response "/appengine:v1/ListLocationsResponse/nextPageToken": next_page_token "/appengine:v1/ListLocationsResponse/locations": locations @@ -10742,9 +10726,6 @@ "/appengine:v1/RequestUtilization": request_utilization "/appengine:v1/RequestUtilization/targetRequestCountPerSecond": target_request_count_per_second "/appengine:v1/RequestUtilization/targetConcurrentRequests": target_concurrent_requests -"/appengine:v1/EndpointsApiService": endpoints_api_service -"/appengine:v1/EndpointsApiService/name": name -"/appengine:v1/EndpointsApiService/configId": config_id "/appengine:v1/UrlMap": url_map "/appengine:v1/UrlMap/securityLevel": security_level "/appengine:v1/UrlMap/authFailAction": auth_fail_action @@ -10754,179 +10735,171 @@ "/appengine:v1/UrlMap/apiEndpoint": api_endpoint "/appengine:v1/UrlMap/staticFiles": static_files "/appengine:v1/UrlMap/redirectHttpResponseCode": redirect_http_response_code -"/appengine:v1/ApiConfigHandler": api_config_handler -"/appengine:v1/ApiConfigHandler/login": login -"/appengine:v1/ApiConfigHandler/url": url -"/appengine:v1/ApiConfigHandler/securityLevel": security_level -"/appengine:v1/ApiConfigHandler/authFailAction": auth_fail_action -"/appengine:v1/ApiConfigHandler/script": script +"/appengine:v1/EndpointsApiService": endpoints_api_service +"/appengine:v1/EndpointsApiService/configId": config_id +"/appengine:v1/EndpointsApiService/name": name "/appengine:v1/Operation": operation +"/appengine:v1/Operation/response": response +"/appengine:v1/Operation/response/response": response +"/appengine:v1/Operation/name": name "/appengine:v1/Operation/error": error "/appengine:v1/Operation/metadata": metadata "/appengine:v1/Operation/metadata/metadatum": metadatum "/appengine:v1/Operation/done": done -"/appengine:v1/Operation/response": response -"/appengine:v1/Operation/response/response": response -"/appengine:v1/Operation/name": name +"/appengine:v1/ApiConfigHandler": api_config_handler +"/appengine:v1/ApiConfigHandler/url": url +"/appengine:v1/ApiConfigHandler/securityLevel": security_level +"/appengine:v1/ApiConfigHandler/authFailAction": auth_fail_action +"/appengine:v1/ApiConfigHandler/script": script +"/appengine:v1/ApiConfigHandler/login": login "/appengine:v1/StaticFilesHandler": static_files_handler +"/appengine:v1/StaticFilesHandler/applicationReadable": application_readable "/appengine:v1/StaticFilesHandler/httpHeaders": http_headers "/appengine:v1/StaticFilesHandler/httpHeaders/http_header": http_header -"/appengine:v1/StaticFilesHandler/applicationReadable": application_readable "/appengine:v1/StaticFilesHandler/uploadPathRegex": upload_path_regex "/appengine:v1/StaticFilesHandler/path": path "/appengine:v1/StaticFilesHandler/mimeType": mime_type "/appengine:v1/StaticFilesHandler/requireMatchingFile": require_matching_file "/appengine:v1/StaticFilesHandler/expiration": expiration +"/appengine:v1/BasicScaling": basic_scaling +"/appengine:v1/BasicScaling/maxInstances": max_instances +"/appengine:v1/BasicScaling/idleTimeout": idle_timeout "/appengine:v1/DiskUtilization": disk_utilization +"/appengine:v1/DiskUtilization/targetReadOpsPerSecond": target_read_ops_per_second +"/appengine:v1/DiskUtilization/targetReadBytesPerSecond": target_read_bytes_per_second "/appengine:v1/DiskUtilization/targetWriteOpsPerSecond": target_write_ops_per_second "/appengine:v1/DiskUtilization/targetWriteBytesPerSecond": target_write_bytes_per_second -"/appengine:v1/DiskUtilization/targetReadBytesPerSecond": target_read_bytes_per_second -"/appengine:v1/DiskUtilization/targetReadOpsPerSecond": target_read_ops_per_second -"/appengine:v1/BasicScaling": basic_scaling -"/appengine:v1/BasicScaling/idleTimeout": idle_timeout -"/appengine:v1/BasicScaling/maxInstances": max_instances "/appengine:v1/CpuUtilization": cpu_utilization "/appengine:v1/CpuUtilization/aggregationWindowLength": aggregation_window_length "/appengine:v1/CpuUtilization/targetUtilization": target_utilization -"/appengine:v1/IdentityAwareProxy": identity_aware_proxy -"/appengine:v1/IdentityAwareProxy/enabled": enabled -"/appengine:v1/IdentityAwareProxy/oauth2ClientSecret": oauth2_client_secret -"/appengine:v1/IdentityAwareProxy/oauth2ClientId": oauth2_client_id -"/appengine:v1/IdentityAwareProxy/oauth2ClientSecretSha256": oauth2_client_secret_sha256 "/appengine:v1/Status": status "/appengine:v1/Status/details": details "/appengine:v1/Status/details/detail": detail "/appengine:v1/Status/details/detail/detail": detail "/appengine:v1/Status/code": code "/appengine:v1/Status/message": message +"/appengine:v1/IdentityAwareProxy": identity_aware_proxy +"/appengine:v1/IdentityAwareProxy/enabled": enabled +"/appengine:v1/IdentityAwareProxy/oauth2ClientSecret": oauth2_client_secret +"/appengine:v1/IdentityAwareProxy/oauth2ClientId": oauth2_client_id +"/appengine:v1/IdentityAwareProxy/oauth2ClientSecretSha256": oauth2_client_secret_sha256 "/appengine:v1/ManualScaling": manual_scaling "/appengine:v1/ManualScaling/instances": instances "/appengine:v1/LocationMetadata": location_metadata -"/appengine:v1/LocationMetadata/standardEnvironmentAvailable": standard_environment_available "/appengine:v1/LocationMetadata/flexibleEnvironmentAvailable": flexible_environment_available +"/appengine:v1/LocationMetadata/standardEnvironmentAvailable": standard_environment_available "/appengine:v1/Service": service +"/appengine:v1/Service/split": split "/appengine:v1/Service/id": id "/appengine:v1/Service/name": name -"/appengine:v1/Service/split": split "/appengine:v1/ListOperationsResponse": list_operations_response +"/appengine:v1/ListOperationsResponse/nextPageToken": next_page_token "/appengine:v1/ListOperationsResponse/operations": operations "/appengine:v1/ListOperationsResponse/operations/operation": operation -"/appengine:v1/ListOperationsResponse/nextPageToken": next_page_token "/appengine:v1/OperationMetadata": operation_metadata -"/appengine:v1/OperationMetadata/insertTime": insert_time "/appengine:v1/OperationMetadata/user": user "/appengine:v1/OperationMetadata/target": target "/appengine:v1/OperationMetadata/method": method_prop "/appengine:v1/OperationMetadata/endTime": end_time "/appengine:v1/OperationMetadata/operationType": operation_type +"/appengine:v1/OperationMetadata/insertTime": insert_time "/appengine:v1/OperationMetadataV1": operation_metadata_v1 +"/appengine:v1/OperationMetadataV1/target": target +"/appengine:v1/OperationMetadataV1/user": user "/appengine:v1/OperationMetadataV1/ephemeralMessage": ephemeral_message "/appengine:v1/OperationMetadataV1/method": method_prop "/appengine:v1/OperationMetadataV1/endTime": end_time +"/appengine:v1/OperationMetadataV1/insertTime": insert_time "/appengine:v1/OperationMetadataV1/warning": warning "/appengine:v1/OperationMetadataV1/warning/warning": warning -"/appengine:v1/OperationMetadataV1/insertTime": insert_time -"/appengine:v1/OperationMetadataV1/user": user -"/appengine:v1/OperationMetadataV1/target": target "/appengine:v1/ErrorHandler": error_handler -"/appengine:v1/ErrorHandler/errorCode": error_code "/appengine:v1/ErrorHandler/mimeType": mime_type +"/appengine:v1/ErrorHandler/errorCode": error_code "/appengine:v1/ErrorHandler/staticFile": static_file "/appengine:v1/Network": network +"/appengine:v1/Network/subnetworkName": subnetwork_name +"/appengine:v1/Network/instanceTag": instance_tag "/appengine:v1/Network/forwardedPorts": forwarded_ports "/appengine:v1/Network/forwardedPorts/forwarded_port": forwarded_port -"/appengine:v1/Network/instanceTag": instance_tag -"/appengine:v1/Network/subnetworkName": subnetwork_name "/appengine:v1/Network/name": name "/appengine:v1/Application": application -"/appengine:v1/Application/name": name -"/appengine:v1/Application/id": id -"/appengine:v1/Application/defaultCookieExpiration": default_cookie_expiration -"/appengine:v1/Application/locationId": location_id -"/appengine:v1/Application/servingStatus": serving_status -"/appengine:v1/Application/defaultHostname": default_hostname -"/appengine:v1/Application/iap": iap "/appengine:v1/Application/authDomain": auth_domain +"/appengine:v1/Application/iap": iap "/appengine:v1/Application/codeBucket": code_bucket "/appengine:v1/Application/defaultBucket": default_bucket "/appengine:v1/Application/dispatchRules": dispatch_rules "/appengine:v1/Application/dispatchRules/dispatch_rule": dispatch_rule "/appengine:v1/Application/gcrDomain": gcr_domain +"/appengine:v1/Application/name": name +"/appengine:v1/Application/defaultCookieExpiration": default_cookie_expiration +"/appengine:v1/Application/id": id +"/appengine:v1/Application/locationId": location_id +"/appengine:v1/Application/servingStatus": serving_status +"/appengine:v1/Application/defaultHostname": default_hostname "/appengine:v1/Instance": instance -"/appengine:v1/Instance/vmId": vm_id -"/appengine:v1/Instance/qps": qps -"/appengine:v1/Instance/vmZoneName": vm_zone_name -"/appengine:v1/Instance/name": name "/appengine:v1/Instance/averageLatency": average_latency "/appengine:v1/Instance/vmIp": vm_ip "/appengine:v1/Instance/memoryUsage": memory_usage "/appengine:v1/Instance/id": id +"/appengine:v1/Instance/vmStatus": vm_status "/appengine:v1/Instance/errors": errors "/appengine:v1/Instance/availability": availability -"/appengine:v1/Instance/vmStatus": vm_status "/appengine:v1/Instance/startTime": start_time "/appengine:v1/Instance/vmDebugEnabled": vm_debug_enabled "/appengine:v1/Instance/requests": requests "/appengine:v1/Instance/appEngineRelease": app_engine_release "/appengine:v1/Instance/vmName": vm_name +"/appengine:v1/Instance/vmId": vm_id +"/appengine:v1/Instance/qps": qps +"/appengine:v1/Instance/vmZoneName": vm_zone_name +"/appengine:v1/Instance/name": name "/appengine:v1/LivenessCheck": liveness_check -"/appengine:v1/LivenessCheck/checkInterval": check_interval -"/appengine:v1/LivenessCheck/timeout": timeout -"/appengine:v1/LivenessCheck/failureThreshold": failure_threshold "/appengine:v1/LivenessCheck/initialDelay": initial_delay "/appengine:v1/LivenessCheck/path": path "/appengine:v1/LivenessCheck/successThreshold": success_threshold "/appengine:v1/LivenessCheck/host": host +"/appengine:v1/LivenessCheck/checkInterval": check_interval +"/appengine:v1/LivenessCheck/failureThreshold": failure_threshold +"/appengine:v1/LivenessCheck/timeout": timeout "/appengine:v1/NetworkUtilization": network_utilization -"/appengine:v1/NetworkUtilization/targetSentPacketsPerSecond": target_sent_packets_per_second -"/appengine:v1/NetworkUtilization/targetReceivedBytesPerSecond": target_received_bytes_per_second "/appengine:v1/NetworkUtilization/targetReceivedPacketsPerSecond": target_received_packets_per_second "/appengine:v1/NetworkUtilization/targetSentBytesPerSecond": target_sent_bytes_per_second +"/appengine:v1/NetworkUtilization/targetReceivedBytesPerSecond": target_received_bytes_per_second +"/appengine:v1/NetworkUtilization/targetSentPacketsPerSecond": target_sent_packets_per_second "/appengine:v1/Location": location -"/appengine:v1/Location/labels": labels -"/appengine:v1/Location/labels/label": label -"/appengine:v1/Location/name": name "/appengine:v1/Location/locationId": location_id "/appengine:v1/Location/metadata": metadata "/appengine:v1/Location/metadata/metadatum": metadatum +"/appengine:v1/Location/labels": labels +"/appengine:v1/Location/labels/label": label +"/appengine:v1/Location/name": name "/appengine:v1/HealthCheck": health_check +"/appengine:v1/HealthCheck/timeout": timeout "/appengine:v1/HealthCheck/unhealthyThreshold": unhealthy_threshold "/appengine:v1/HealthCheck/disableHealthCheck": disable_health_check "/appengine:v1/HealthCheck/host": host "/appengine:v1/HealthCheck/restartThreshold": restart_threshold "/appengine:v1/HealthCheck/healthyThreshold": healthy_threshold "/appengine:v1/HealthCheck/checkInterval": check_interval -"/appengine:v1/HealthCheck/timeout": timeout "/appengine:v1/ReadinessCheck": readiness_check "/appengine:v1/ReadinessCheck/path": path -"/appengine:v1/ReadinessCheck/host": host "/appengine:v1/ReadinessCheck/successThreshold": success_threshold +"/appengine:v1/ReadinessCheck/host": host "/appengine:v1/ReadinessCheck/checkInterval": check_interval "/appengine:v1/ReadinessCheck/failureThreshold": failure_threshold "/appengine:v1/ReadinessCheck/timeout": timeout "/appengine:v1/DebugInstanceRequest": debug_instance_request "/appengine:v1/DebugInstanceRequest/sshKey": ssh_key "/appengine:v1/OperationMetadataV1Beta5": operation_metadata_v1_beta5 +"/appengine:v1/OperationMetadataV1Beta5/method": method_prop "/appengine:v1/OperationMetadataV1Beta5/insertTime": insert_time "/appengine:v1/OperationMetadataV1Beta5/endTime": end_time -"/appengine:v1/OperationMetadataV1Beta5/user": user "/appengine:v1/OperationMetadataV1Beta5/target": target -"/appengine:v1/OperationMetadataV1Beta5/method": method_prop +"/appengine:v1/OperationMetadataV1Beta5/user": user "/appengine:v1/Version": version -"/appengine:v1/Version/manualScaling": manual_scaling -"/appengine:v1/Version/name": name -"/appengine:v1/Version/apiConfig": api_config -"/appengine:v1/Version/endpointsApiService": endpoints_api_service -"/appengine:v1/Version/versionUrl": version_url -"/appengine:v1/Version/vm": vm -"/appengine:v1/Version/instanceClass": instance_class -"/appengine:v1/Version/servingStatus": serving_status -"/appengine:v1/Version/runtimeApiVersion": runtime_api_version -"/appengine:v1/Version/deployment": deployment -"/appengine:v1/Version/createTime": create_time +"/appengine:v1/Version/resources": resources "/appengine:v1/Version/inboundServices": inbound_services "/appengine:v1/Version/inboundServices/inbound_service": inbound_service -"/appengine:v1/Version/resources": resources "/appengine:v1/Version/errorHandlers": error_handlers "/appengine:v1/Version/errorHandlers/error_handler": error_handler "/appengine:v1/Version/defaultExpiration": default_expiration @@ -10951,23 +10924,34 @@ "/appengine:v1/Version/healthCheck": health_check "/appengine:v1/Version/threadsafe": threadsafe "/appengine:v1/Version/readinessCheck": readiness_check +"/appengine:v1/Version/manualScaling": manual_scaling +"/appengine:v1/Version/name": name +"/appengine:v1/Version/apiConfig": api_config +"/appengine:v1/Version/endpointsApiService": endpoints_api_service +"/appengine:v1/Version/vm": vm +"/appengine:v1/Version/versionUrl": version_url +"/appengine:v1/Version/instanceClass": instance_class +"/appengine:v1/Version/servingStatus": serving_status +"/appengine:v1/Version/runtimeApiVersion": runtime_api_version +"/appengine:v1/Version/deployment": deployment +"/appengine:v1/Version/createTime": create_time "/appengine:v1/RepairApplicationRequest": repair_application_request "/appengine:v1/ScriptHandler": script_handler "/appengine:v1/ScriptHandler/scriptPath": script_path "/appengine:v1/FileInfo": file_info +"/appengine:v1/FileInfo/sourceUrl": source_url "/appengine:v1/FileInfo/sha1Sum": sha1_sum "/appengine:v1/FileInfo/mimeType": mime_type -"/appengine:v1/FileInfo/sourceUrl": source_url "/appengine:v1/OperationMetadataExperimental": operation_metadata_experimental -"/appengine:v1/OperationMetadataExperimental/user": user -"/appengine:v1/OperationMetadataExperimental/target": target -"/appengine:v1/OperationMetadataExperimental/method": method_prop "/appengine:v1/OperationMetadataExperimental/insertTime": insert_time "/appengine:v1/OperationMetadataExperimental/endTime": end_time +"/appengine:v1/OperationMetadataExperimental/target": target +"/appengine:v1/OperationMetadataExperimental/user": user +"/appengine:v1/OperationMetadataExperimental/method": method_prop "/appengine:v1/TrafficSplit": traffic_split -"/appengine:v1/TrafficSplit/shardBy": shard_by "/appengine:v1/TrafficSplit/allocations": allocations "/appengine:v1/TrafficSplit/allocations/allocation": allocation +"/appengine:v1/TrafficSplit/shardBy": shard_by "/appengine:v1/OperationMetadataV1Beta": operation_metadata_v1_beta "/appengine:v1/OperationMetadataV1Beta/warning": warning "/appengine:v1/OperationMetadataV1Beta/warning/warning": warning @@ -10978,28 +10962,45 @@ "/appengine:v1/OperationMetadataV1Beta/method": method_prop "/appengine:v1/OperationMetadataV1Beta/endTime": end_time "/appengine:v1/ListServicesResponse": list_services_response +"/appengine:v1/ListServicesResponse/nextPageToken": next_page_token "/appengine:v1/ListServicesResponse/services": services "/appengine:v1/ListServicesResponse/services/service": service -"/appengine:v1/ListServicesResponse/nextPageToken": next_page_token -"/appengine:v1/Deployment": deployment -"/appengine:v1/Deployment/files": files -"/appengine:v1/Deployment/files/file": file -"/appengine:v1/Deployment/zip": zip -"/appengine:v1/Deployment/container": container "/appengine:v1/Resources": resources +"/appengine:v1/Resources/memoryGb": memory_gb +"/appengine:v1/Resources/cpu": cpu "/appengine:v1/Resources/volumes": volumes "/appengine:v1/Resources/volumes/volume": volume "/appengine:v1/Resources/diskGb": disk_gb -"/appengine:v1/Resources/cpu": cpu -"/appengine:v1/Resources/memoryGb": memory_gb +"/appengine:v1/Deployment": deployment +"/appengine:v1/Deployment/zip": zip +"/appengine:v1/Deployment/container": container +"/appengine:v1/Deployment/files": files +"/appengine:v1/Deployment/files/file": file "/appengine:v1/Volume": volume -"/appengine:v1/Volume/volumeType": volume_type "/appengine:v1/Volume/sizeGb": size_gb "/appengine:v1/Volume/name": name +"/appengine:v1/Volume/volumeType": volume_type "/appengine:v1/ListInstancesResponse": list_instances_response "/appengine:v1/ListInstancesResponse/instances": instances "/appengine:v1/ListInstancesResponse/instances/instance": instance "/appengine:v1/ListInstancesResponse/nextPageToken": next_page_token +"/appengine:v1/OperationMetadataV1Alpha": operation_metadata_v1_alpha +"/appengine:v1/OperationMetadataV1Alpha/warning": warning +"/appengine:v1/OperationMetadataV1Alpha/warning/warning": warning +"/appengine:v1/OperationMetadataV1Alpha/insertTime": insert_time +"/appengine:v1/OperationMetadataV1Alpha/target": target +"/appengine:v1/OperationMetadataV1Alpha/user": user +"/appengine:v1/OperationMetadataV1Alpha/ephemeralMessage": ephemeral_message +"/appengine:v1/OperationMetadataV1Alpha/method": method_prop +"/appengine:v1/OperationMetadataV1Alpha/endTime": end_time +"/appengine:v1/UrlDispatchRule": url_dispatch_rule +"/appengine:v1/UrlDispatchRule/path": path +"/appengine:v1/UrlDispatchRule/service": service +"/appengine:v1/UrlDispatchRule/domain": domain +"/appengine:v1/ListVersionsResponse": list_versions_response +"/appengine:v1/ListVersionsResponse/nextPageToken": next_page_token +"/appengine:v1/ListVersionsResponse/versions": versions +"/appengine:v1/ListVersionsResponse/versions/version": version "/appsactivity:v1/fields": fields "/appsactivity:v1/key": key "/appsactivity:v1/quotaUser": quota_user @@ -11571,6 +11572,7 @@ "/bigquery:v2/TableList/tables/table/labels": labels "/bigquery:v2/TableList/tables/table/labels/label": label "/bigquery:v2/TableList/tables/table/tableReference": table_reference +"/bigquery:v2/TableList/tables/table/timePartitioning": time_partitioning "/bigquery:v2/TableList/tables/table/type": type "/bigquery:v2/TableList/tables/table/view": view "/bigquery:v2/TableList/tables/table/view/useLegacySql": use_legacy_sql @@ -13354,7 +13356,46 @@ "/classroom:v1/fields": fields "/classroom:v1/key": key "/classroom:v1/quotaUser": quota_user -"/classroom:v1/classroom.courses.create": create_course +"/classroom:v1/classroom.invitations.list": list_invitations +"/classroom:v1/classroom.invitations.list/pageToken": page_token +"/classroom:v1/classroom.invitations.list/userId": user_id +"/classroom:v1/classroom.invitations.list/pageSize": page_size +"/classroom:v1/classroom.invitations.list/courseId": course_id +"/classroom:v1/classroom.invitations.get": get_invitation +"/classroom:v1/classroom.invitations.get/id": id +"/classroom:v1/classroom.invitations.create": create_invitation +"/classroom:v1/classroom.invitations.accept": accept_invitation +"/classroom:v1/classroom.invitations.accept/id": id +"/classroom:v1/classroom.invitations.delete": delete_invitation +"/classroom:v1/classroom.invitations.delete/id": id +"/classroom:v1/classroom.userProfiles.get": get_user_profile +"/classroom:v1/classroom.userProfiles.get/userId": user_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.patch": patch_user_profile_guardian_invitation +"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/updateMask": update_mask +"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/invitationId": invitation_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.get": get_user_profile_guardian_invitation +"/classroom:v1/classroom.userProfiles.guardianInvitations.get/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.get/invitationId": invitation_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.list": list_user_profile_guardian_invitations +"/classroom:v1/classroom.userProfiles.guardianInvitations.list/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageToken": page_token +"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageSize": page_size +"/classroom:v1/classroom.userProfiles.guardianInvitations.list/states": states +"/classroom:v1/classroom.userProfiles.guardianInvitations.list/invitedEmailAddress": invited_email_address +"/classroom:v1/classroom.userProfiles.guardianInvitations.create": create_user_profile_guardian_invitation +"/classroom:v1/classroom.userProfiles.guardianInvitations.create/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardians.get": get_user_profile_guardian +"/classroom:v1/classroom.userProfiles.guardians.get/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardians.get/guardianId": guardian_id +"/classroom:v1/classroom.userProfiles.guardians.list": list_user_profile_guardians +"/classroom:v1/classroom.userProfiles.guardians.list/studentId": student_id +"/classroom:v1/classroom.userProfiles.guardians.list/pageToken": page_token +"/classroom:v1/classroom.userProfiles.guardians.list/pageSize": page_size +"/classroom:v1/classroom.userProfiles.guardians.list/invitedEmailAddress": invited_email_address +"/classroom:v1/classroom.userProfiles.guardians.delete": delete_user_profile_guardian +"/classroom:v1/classroom.userProfiles.guardians.delete/guardianId": guardian_id +"/classroom:v1/classroom.userProfiles.guardians.delete/studentId": student_id "/classroom:v1/classroom.courses.get": get_course "/classroom:v1/classroom.courses.get/id": id "/classroom:v1/classroom.courses.patch": patch_course @@ -13368,40 +13409,57 @@ "/classroom:v1/classroom.courses.list/studentId": student_id "/classroom:v1/classroom.courses.list/pageToken": page_token "/classroom:v1/classroom.courses.list/pageSize": page_size -"/classroom:v1/classroom.courses.list/teacherId": teacher_id "/classroom:v1/classroom.courses.list/courseStates": course_states -"/classroom:v1/classroom.courses.students.get": get_course_student -"/classroom:v1/classroom.courses.students.get/courseId": course_id -"/classroom:v1/classroom.courses.students.get/userId": user_id +"/classroom:v1/classroom.courses.list/teacherId": teacher_id +"/classroom:v1/classroom.courses.create": create_course +"/classroom:v1/classroom.courses.aliases.create": create_course_alias +"/classroom:v1/classroom.courses.aliases.create/courseId": course_id +"/classroom:v1/classroom.courses.aliases.delete": delete_course_alias +"/classroom:v1/classroom.courses.aliases.delete/alias": alias_ +"/classroom:v1/classroom.courses.aliases.delete/courseId": course_id +"/classroom:v1/classroom.courses.aliases.list": list_course_aliases +"/classroom:v1/classroom.courses.aliases.list/pageToken": page_token +"/classroom:v1/classroom.courses.aliases.list/pageSize": page_size +"/classroom:v1/classroom.courses.aliases.list/courseId": course_id +"/classroom:v1/classroom.courses.students.create": create_course_student +"/classroom:v1/classroom.courses.students.create/courseId": course_id +"/classroom:v1/classroom.courses.students.create/enrollmentCode": enrollment_code +"/classroom:v1/classroom.courses.students.delete": delete_course_student +"/classroom:v1/classroom.courses.students.delete/userId": user_id +"/classroom:v1/classroom.courses.students.delete/courseId": course_id "/classroom:v1/classroom.courses.students.list": list_course_students "/classroom:v1/classroom.courses.students.list/pageToken": page_token "/classroom:v1/classroom.courses.students.list/pageSize": page_size "/classroom:v1/classroom.courses.students.list/courseId": course_id -"/classroom:v1/classroom.courses.students.create": create_course_student -"/classroom:v1/classroom.courses.students.create/enrollmentCode": enrollment_code -"/classroom:v1/classroom.courses.students.create/courseId": course_id -"/classroom:v1/classroom.courses.students.delete": delete_course_student -"/classroom:v1/classroom.courses.students.delete/courseId": course_id -"/classroom:v1/classroom.courses.students.delete/userId": user_id +"/classroom:v1/classroom.courses.students.get": get_course_student +"/classroom:v1/classroom.courses.students.get/userId": user_id +"/classroom:v1/classroom.courses.students.get/courseId": course_id "/classroom:v1/classroom.courses.courseWork.delete": delete_course_course_work "/classroom:v1/classroom.courses.courseWork.delete/courseId": course_id "/classroom:v1/classroom.courses.courseWork.delete/id": id +"/classroom:v1/classroom.courses.courseWork.list/pageToken": page_token +"/classroom:v1/classroom.courses.courseWork.list/orderBy": order_by +"/classroom:v1/classroom.courses.courseWork.list/pageSize": page_size +"/classroom:v1/classroom.courses.courseWork.list/courseWorkStates": course_work_states +"/classroom:v1/classroom.courses.courseWork.list/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.get/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.get/id": id "/classroom:v1/classroom.courses.courseWork.patch": patch_course_course_work "/classroom:v1/classroom.courses.courseWork.patch/courseId": course_id "/classroom:v1/classroom.courses.courseWork.patch/id": id "/classroom:v1/classroom.courses.courseWork.patch/updateMask": update_mask -"/classroom:v1/classroom.courses.courseWork.get/courseId": course_id -"/classroom:v1/classroom.courses.courseWork.get/id": id -"/classroom:v1/classroom.courses.courseWork.list/pageSize": page_size -"/classroom:v1/classroom.courses.courseWork.list/courseWorkStates": course_work_states -"/classroom:v1/classroom.courses.courseWork.list/courseId": course_id -"/classroom:v1/classroom.courses.courseWork.list/orderBy": order_by -"/classroom:v1/classroom.courses.courseWork.list/pageToken": page_token "/classroom:v1/classroom.courses.courseWork.create/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/updateMask": update_mask "/classroom:v1/classroom.courses.courseWork.studentSubmissions.return": return_student_submission -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/courseId": course_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim": reclaim_student_submission "/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim/courseId": course_id @@ -13410,112 +13468,41 @@ "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseId": course_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/id": id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/userId": user_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseWorkId": course_work_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseId": course_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/late": late "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/pageToken": page_token "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/states": states "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/pageSize": page_size +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/userId": user_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseId": course_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments": modify_student_submission_attachments +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/id": id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/courseWorkId": course_work_id "/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/courseId": course_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/id": id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/updateMask": update_mask -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseWorkId": course_work_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseId": course_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/id": id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseWorkId": course_work_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseId": course_id -"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/id": id +"/classroom:v1/classroom.courses.teachers.delete": delete_course_teacher +"/classroom:v1/classroom.courses.teachers.delete/userId": user_id +"/classroom:v1/classroom.courses.teachers.delete/courseId": course_id +"/classroom:v1/classroom.courses.teachers.list": list_course_teachers +"/classroom:v1/classroom.courses.teachers.list/pageToken": page_token +"/classroom:v1/classroom.courses.teachers.list/pageSize": page_size +"/classroom:v1/classroom.courses.teachers.list/courseId": course_id "/classroom:v1/classroom.courses.teachers.get": get_course_teacher "/classroom:v1/classroom.courses.teachers.get/userId": user_id "/classroom:v1/classroom.courses.teachers.get/courseId": course_id -"/classroom:v1/classroom.courses.teachers.list": list_course_teachers -"/classroom:v1/classroom.courses.teachers.list/courseId": course_id -"/classroom:v1/classroom.courses.teachers.list/pageToken": page_token -"/classroom:v1/classroom.courses.teachers.list/pageSize": page_size "/classroom:v1/classroom.courses.teachers.create": create_course_teacher "/classroom:v1/classroom.courses.teachers.create/courseId": course_id -"/classroom:v1/classroom.courses.teachers.delete": delete_course_teacher -"/classroom:v1/classroom.courses.teachers.delete/courseId": course_id -"/classroom:v1/classroom.courses.teachers.delete/userId": user_id -"/classroom:v1/classroom.courses.aliases.delete": delete_course_alias -"/classroom:v1/classroom.courses.aliases.delete/courseId": course_id -"/classroom:v1/classroom.courses.aliases.delete/alias": alias_ -"/classroom:v1/classroom.courses.aliases.list": list_course_aliases -"/classroom:v1/classroom.courses.aliases.list/pageSize": page_size -"/classroom:v1/classroom.courses.aliases.list/courseId": course_id -"/classroom:v1/classroom.courses.aliases.list/pageToken": page_token -"/classroom:v1/classroom.courses.aliases.create": create_course_alias -"/classroom:v1/classroom.courses.aliases.create/courseId": course_id -"/classroom:v1/classroom.userProfiles.get": get_user_profile -"/classroom:v1/classroom.userProfiles.get/userId": user_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.list": list_user_profile_guardian_invitations -"/classroom:v1/classroom.userProfiles.guardianInvitations.list/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageToken": page_token -"/classroom:v1/classroom.userProfiles.guardianInvitations.list/invitedEmailAddress": invited_email_address -"/classroom:v1/classroom.userProfiles.guardianInvitations.list/states": states -"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageSize": page_size -"/classroom:v1/classroom.userProfiles.guardianInvitations.get": get_user_profile_guardian_invitation -"/classroom:v1/classroom.userProfiles.guardianInvitations.get/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.get/invitationId": invitation_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.patch": patch_user_profile_guardian_invitation -"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/invitationId": invitation_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/updateMask": update_mask -"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardianInvitations.create": create_user_profile_guardian_invitation -"/classroom:v1/classroom.userProfiles.guardianInvitations.create/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardians.delete": delete_user_profile_guardian -"/classroom:v1/classroom.userProfiles.guardians.delete/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardians.delete/guardianId": guardian_id -"/classroom:v1/classroom.userProfiles.guardians.list": list_user_profile_guardians -"/classroom:v1/classroom.userProfiles.guardians.list/invitedEmailAddress": invited_email_address -"/classroom:v1/classroom.userProfiles.guardians.list/pageSize": page_size -"/classroom:v1/classroom.userProfiles.guardians.list/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardians.list/pageToken": page_token -"/classroom:v1/classroom.userProfiles.guardians.get": get_user_profile_guardian -"/classroom:v1/classroom.userProfiles.guardians.get/studentId": student_id -"/classroom:v1/classroom.userProfiles.guardians.get/guardianId": guardian_id -"/classroom:v1/classroom.invitations.get": get_invitation -"/classroom:v1/classroom.invitations.get/id": id -"/classroom:v1/classroom.invitations.list": list_invitations -"/classroom:v1/classroom.invitations.list/userId": user_id -"/classroom:v1/classroom.invitations.list/pageToken": page_token -"/classroom:v1/classroom.invitations.list/pageSize": page_size -"/classroom:v1/classroom.invitations.list/courseId": course_id -"/classroom:v1/classroom.invitations.create": create_invitation -"/classroom:v1/classroom.invitations.accept": accept_invitation -"/classroom:v1/classroom.invitations.accept/id": id -"/classroom:v1/classroom.invitations.delete": delete_invitation -"/classroom:v1/classroom.invitations.delete/id": id -"/classroom:v1/Date": date -"/classroom:v1/Date/year": year -"/classroom:v1/Date/day": day -"/classroom:v1/Date/month": month -"/classroom:v1/MultipleChoiceSubmission": multiple_choice_submission -"/classroom:v1/MultipleChoiceSubmission/answer": answer -"/classroom:v1/CourseMaterial": course_material -"/classroom:v1/CourseMaterial/driveFile": drive_file -"/classroom:v1/CourseMaterial/youTubeVideo": you_tube_video -"/classroom:v1/CourseMaterial/form": form -"/classroom:v1/CourseMaterial/link": link -"/classroom:v1/Name": name -"/classroom:v1/Name/givenName": given_name -"/classroom:v1/Name/familyName": family_name -"/classroom:v1/Name/fullName": full_name "/classroom:v1/Assignment": assignment "/classroom:v1/Assignment/studentWorkFolder": student_work_folder "/classroom:v1/SharedDriveFile": shared_drive_file -"/classroom:v1/SharedDriveFile/driveFile": drive_file "/classroom:v1/SharedDriveFile/shareMode": share_mode +"/classroom:v1/SharedDriveFile/driveFile": drive_file "/classroom:v1/Empty": empty "/classroom:v1/MultipleChoiceQuestion": multiple_choice_question "/classroom:v1/MultipleChoiceQuestion/choices": choices "/classroom:v1/MultipleChoiceQuestion/choices/choice": choice "/classroom:v1/Course": course -"/classroom:v1/Course/calendarId": calendar_id "/classroom:v1/Course/updateTime": update_time +"/classroom:v1/Course/calendarId": calendar_id "/classroom:v1/Course/alternateLink": alternate_link "/classroom:v1/Course/guardiansEnabled": guardians_enabled "/classroom:v1/Course/ownerId": owner_id @@ -13534,51 +13521,55 @@ "/classroom:v1/Course/enrollmentCode": enrollment_code "/classroom:v1/Course/descriptionHeading": description_heading "/classroom:v1/DriveFile": drive_file -"/classroom:v1/DriveFile/thumbnailUrl": thumbnail_url "/classroom:v1/DriveFile/id": id "/classroom:v1/DriveFile/title": title "/classroom:v1/DriveFile/alternateLink": alternate_link +"/classroom:v1/DriveFile/thumbnailUrl": thumbnail_url +"/classroom:v1/ReturnStudentSubmissionRequest": return_student_submission_request "/classroom:v1/GlobalPermission": global_permission "/classroom:v1/GlobalPermission/permission": permission -"/classroom:v1/ReturnStudentSubmissionRequest": return_student_submission_request "/classroom:v1/Teacher": teacher +"/classroom:v1/Teacher/courseId": course_id "/classroom:v1/Teacher/profile": profile "/classroom:v1/Teacher/userId": user_id -"/classroom:v1/Teacher/courseId": course_id "/classroom:v1/ReclaimStudentSubmissionRequest": reclaim_student_submission_request "/classroom:v1/AssignmentSubmission": assignment_submission "/classroom:v1/AssignmentSubmission/attachments": attachments "/classroom:v1/AssignmentSubmission/attachments/attachment": attachment "/classroom:v1/Material": material -"/classroom:v1/Material/youtubeVideo": youtube_video "/classroom:v1/Material/driveFile": drive_file "/classroom:v1/Material/form": form "/classroom:v1/Material/link": link +"/classroom:v1/Material/youtubeVideo": youtube_video "/classroom:v1/CourseWork": course_work -"/classroom:v1/CourseWork/courseId": course_id -"/classroom:v1/CourseWork/id": id -"/classroom:v1/CourseWork/dueTime": due_time -"/classroom:v1/CourseWork/title": title +"/classroom:v1/CourseWork/associatedWithDeveloper": associated_with_developer "/classroom:v1/CourseWork/materials": materials "/classroom:v1/CourseWork/materials/material": material -"/classroom:v1/CourseWork/associatedWithDeveloper": associated_with_developer "/classroom:v1/CourseWork/updateTime": update_time "/classroom:v1/CourseWork/alternateLink": alternate_link "/classroom:v1/CourseWork/maxPoints": max_points +"/classroom:v1/CourseWork/assignment": assignment "/classroom:v1/CourseWork/workType": work_type "/classroom:v1/CourseWork/multipleChoiceQuestion": multiple_choice_question -"/classroom:v1/CourseWork/assignment": assignment -"/classroom:v1/CourseWork/description": description "/classroom:v1/CourseWork/scheduledTime": scheduled_time +"/classroom:v1/CourseWork/description": description "/classroom:v1/CourseWork/creationTime": creation_time "/classroom:v1/CourseWork/dueDate": due_date "/classroom:v1/CourseWork/submissionModificationMode": submission_modification_mode "/classroom:v1/CourseWork/state": state +"/classroom:v1/CourseWork/courseId": course_id +"/classroom:v1/CourseWork/id": id +"/classroom:v1/CourseWork/dueTime": due_time +"/classroom:v1/CourseWork/title": title "/classroom:v1/Guardian": guardian -"/classroom:v1/Guardian/studentId": student_id -"/classroom:v1/Guardian/guardianId": guardian_id "/classroom:v1/Guardian/invitedEmailAddress": invited_email_address +"/classroom:v1/Guardian/guardianId": guardian_id "/classroom:v1/Guardian/guardianProfile": guardian_profile +"/classroom:v1/Guardian/studentId": student_id +"/classroom:v1/ListStudentsResponse": list_students_response +"/classroom:v1/ListStudentsResponse/nextPageToken": next_page_token +"/classroom:v1/ListStudentsResponse/students": students +"/classroom:v1/ListStudentsResponse/students/student": student "/classroom:v1/UserProfile": user_profile "/classroom:v1/UserProfile/emailAddress": email_address "/classroom:v1/UserProfile/photoUrl": photo_url @@ -13587,33 +13578,28 @@ "/classroom:v1/UserProfile/name": name "/classroom:v1/UserProfile/id": id "/classroom:v1/UserProfile/verifiedTeacher": verified_teacher -"/classroom:v1/ListStudentsResponse": list_students_response -"/classroom:v1/ListStudentsResponse/students": students -"/classroom:v1/ListStudentsResponse/students/student": student -"/classroom:v1/ListStudentsResponse/nextPageToken": next_page_token "/classroom:v1/Student": student -"/classroom:v1/Student/courseId": course_id -"/classroom:v1/Student/profile": profile "/classroom:v1/Student/studentWorkFolder": student_work_folder +"/classroom:v1/Student/profile": profile "/classroom:v1/Student/userId": user_id +"/classroom:v1/Student/courseId": course_id "/classroom:v1/Invitation": invitation -"/classroom:v1/Invitation/userId": user_id "/classroom:v1/Invitation/courseId": course_id "/classroom:v1/Invitation/id": id "/classroom:v1/Invitation/role": role +"/classroom:v1/Invitation/userId": user_id "/classroom:v1/DriveFolder": drive_folder -"/classroom:v1/DriveFolder/id": id "/classroom:v1/DriveFolder/title": title "/classroom:v1/DriveFolder/alternateLink": alternate_link +"/classroom:v1/DriveFolder/id": id "/classroom:v1/ShortAnswerSubmission": short_answer_submission "/classroom:v1/ShortAnswerSubmission/answer": answer +"/classroom:v1/TurnInStudentSubmissionRequest": turn_in_student_submission_request +"/classroom:v1/ListStudentSubmissionsResponse": list_student_submissions_response +"/classroom:v1/ListStudentSubmissionsResponse/nextPageToken": next_page_token +"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions": student_submissions +"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions/student_submission": student_submission "/classroom:v1/StudentSubmission": student_submission -"/classroom:v1/StudentSubmission/late": late -"/classroom:v1/StudentSubmission/draftGrade": draft_grade -"/classroom:v1/StudentSubmission/courseWorkType": course_work_type -"/classroom:v1/StudentSubmission/creationTime": creation_time -"/classroom:v1/StudentSubmission/state": state -"/classroom:v1/StudentSubmission/userId": user_id "/classroom:v1/StudentSubmission/courseWorkId": course_work_id "/classroom:v1/StudentSubmission/courseId": course_id "/classroom:v1/StudentSubmission/id": id @@ -13624,78 +13610,94 @@ "/classroom:v1/StudentSubmission/shortAnswerSubmission": short_answer_submission "/classroom:v1/StudentSubmission/updateTime": update_time "/classroom:v1/StudentSubmission/alternateLink": alternate_link -"/classroom:v1/TurnInStudentSubmissionRequest": turn_in_student_submission_request -"/classroom:v1/ListStudentSubmissionsResponse": list_student_submissions_response -"/classroom:v1/ListStudentSubmissionsResponse/nextPageToken": next_page_token -"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions": student_submissions -"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions/student_submission": student_submission -"/classroom:v1/ModifyAttachmentsRequest": modify_attachments_request -"/classroom:v1/ModifyAttachmentsRequest/addAttachments": add_attachments -"/classroom:v1/ModifyAttachmentsRequest/addAttachments/add_attachment": add_attachment +"/classroom:v1/StudentSubmission/late": late +"/classroom:v1/StudentSubmission/draftGrade": draft_grade +"/classroom:v1/StudentSubmission/courseWorkType": course_work_type +"/classroom:v1/StudentSubmission/creationTime": creation_time +"/classroom:v1/StudentSubmission/state": state +"/classroom:v1/StudentSubmission/userId": user_id "/classroom:v1/ListCourseWorkResponse": list_course_work_response "/classroom:v1/ListCourseWorkResponse/nextPageToken": next_page_token "/classroom:v1/ListCourseWorkResponse/courseWork": course_work "/classroom:v1/ListCourseWorkResponse/courseWork/course_work": course_work +"/classroom:v1/ModifyAttachmentsRequest": modify_attachments_request +"/classroom:v1/ModifyAttachmentsRequest/addAttachments": add_attachments +"/classroom:v1/ModifyAttachmentsRequest/addAttachments/add_attachment": add_attachment "/classroom:v1/YouTubeVideo": you_tube_video -"/classroom:v1/YouTubeVideo/title": title "/classroom:v1/YouTubeVideo/alternateLink": alternate_link "/classroom:v1/YouTubeVideo/thumbnailUrl": thumbnail_url "/classroom:v1/YouTubeVideo/id": id +"/classroom:v1/YouTubeVideo/title": title "/classroom:v1/ListInvitationsResponse": list_invitations_response -"/classroom:v1/ListInvitationsResponse/nextPageToken": next_page_token "/classroom:v1/ListInvitationsResponse/invitations": invitations "/classroom:v1/ListInvitationsResponse/invitations/invitation": invitation -"/classroom:v1/Attachment": attachment -"/classroom:v1/Attachment/form": form -"/classroom:v1/Attachment/link": link -"/classroom:v1/Attachment/driveFile": drive_file -"/classroom:v1/Attachment/youTubeVideo": you_tube_video +"/classroom:v1/ListInvitationsResponse/nextPageToken": next_page_token "/classroom:v1/GuardianInvitation": guardian_invitation -"/classroom:v1/GuardianInvitation/studentId": student_id "/classroom:v1/GuardianInvitation/state": state +"/classroom:v1/GuardianInvitation/studentId": student_id "/classroom:v1/GuardianInvitation/invitedEmailAddress": invited_email_address "/classroom:v1/GuardianInvitation/creationTime": creation_time "/classroom:v1/GuardianInvitation/invitationId": invitation_id +"/classroom:v1/Attachment": attachment +"/classroom:v1/Attachment/link": link +"/classroom:v1/Attachment/youTubeVideo": you_tube_video +"/classroom:v1/Attachment/driveFile": drive_file +"/classroom:v1/Attachment/form": form "/classroom:v1/CourseMaterialSet": course_material_set -"/classroom:v1/CourseMaterialSet/title": title "/classroom:v1/CourseMaterialSet/materials": materials "/classroom:v1/CourseMaterialSet/materials/material": material +"/classroom:v1/CourseMaterialSet/title": title "/classroom:v1/TimeOfDay": time_of_day -"/classroom:v1/TimeOfDay/hours": hours -"/classroom:v1/TimeOfDay/nanos": nanos "/classroom:v1/TimeOfDay/seconds": seconds "/classroom:v1/TimeOfDay/minutes": minutes +"/classroom:v1/TimeOfDay/hours": hours +"/classroom:v1/TimeOfDay/nanos": nanos "/classroom:v1/ListCoursesResponse": list_courses_response +"/classroom:v1/ListCoursesResponse/nextPageToken": next_page_token "/classroom:v1/ListCoursesResponse/courses": courses "/classroom:v1/ListCoursesResponse/courses/course": course -"/classroom:v1/ListCoursesResponse/nextPageToken": next_page_token "/classroom:v1/Form": form "/classroom:v1/Form/thumbnailUrl": thumbnail_url "/classroom:v1/Form/responseUrl": response_url "/classroom:v1/Form/formUrl": form_url "/classroom:v1/Form/title": title "/classroom:v1/ListTeachersResponse": list_teachers_response -"/classroom:v1/ListTeachersResponse/nextPageToken": next_page_token "/classroom:v1/ListTeachersResponse/teachers": teachers "/classroom:v1/ListTeachersResponse/teachers/teacher": teacher +"/classroom:v1/ListTeachersResponse/nextPageToken": next_page_token "/classroom:v1/Link": link -"/classroom:v1/Link/title": title "/classroom:v1/Link/thumbnailUrl": thumbnail_url "/classroom:v1/Link/url": url +"/classroom:v1/Link/title": title "/classroom:v1/ListGuardiansResponse": list_guardians_response +"/classroom:v1/ListGuardiansResponse/nextPageToken": next_page_token "/classroom:v1/ListGuardiansResponse/guardians": guardians "/classroom:v1/ListGuardiansResponse/guardians/guardian": guardian -"/classroom:v1/ListGuardiansResponse/nextPageToken": next_page_token +"/classroom:v1/CourseAlias": course_alias +"/classroom:v1/CourseAlias/alias": alias "/classroom:v1/ListCourseAliasesResponse": list_course_aliases_response "/classroom:v1/ListCourseAliasesResponse/aliases": aliases "/classroom:v1/ListCourseAliasesResponse/aliases/alias": alias "/classroom:v1/ListCourseAliasesResponse/nextPageToken": next_page_token "/classroom:v1/ListGuardianInvitationsResponse": list_guardian_invitations_response -"/classroom:v1/ListGuardianInvitationsResponse/nextPageToken": next_page_token "/classroom:v1/ListGuardianInvitationsResponse/guardianInvitations": guardian_invitations "/classroom:v1/ListGuardianInvitationsResponse/guardianInvitations/guardian_invitation": guardian_invitation -"/classroom:v1/CourseAlias": course_alias -"/classroom:v1/CourseAlias/alias": alias +"/classroom:v1/ListGuardianInvitationsResponse/nextPageToken": next_page_token +"/classroom:v1/Date": date +"/classroom:v1/Date/day": day +"/classroom:v1/Date/year": year +"/classroom:v1/Date/month": month +"/classroom:v1/MultipleChoiceSubmission": multiple_choice_submission +"/classroom:v1/MultipleChoiceSubmission/answer": answer +"/classroom:v1/CourseMaterial": course_material +"/classroom:v1/CourseMaterial/youTubeVideo": you_tube_video +"/classroom:v1/CourseMaterial/driveFile": drive_file +"/classroom:v1/CourseMaterial/form": form +"/classroom:v1/CourseMaterial/link": link +"/classroom:v1/Name": name +"/classroom:v1/Name/familyName": family_name +"/classroom:v1/Name/givenName": given_name +"/classroom:v1/Name/fullName": full_name "/cloudbilling:v1/key": key "/cloudbilling:v1/quotaUser": quota_user "/cloudbilling:v1/fields": fields @@ -13729,120 +13731,101 @@ "/cloudbilling:v1/BillingAccount/displayName": display_name "/cloudbilling:v1/BillingAccount/open": open "/cloudbilling:v1/BillingAccount/name": name +"/cloudbuild:v1/fields": fields "/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/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.builds.get/id": id -"/cloudbuild:v1/cloudbuild.projects.builds.list": list_project_builds -"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token -"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size -"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.builds.list/filter": filter -"/cloudbuild:v1/cloudbuild.projects.builds.create": create_project_build -"/cloudbuild:v1/cloudbuild.projects.builds.create/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.projects.builds.list": list_project_builds +"/cloudbuild:v1/cloudbuild.projects.builds.list/filter": filter +"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token +"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size +"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id +"/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.triggers.create": create_project_trigger +"/cloudbuild:v1/cloudbuild.projects.triggers.create/projectId": project_id "/cloudbuild:v1/cloudbuild.projects.triggers.delete": delete_project_trigger "/cloudbuild:v1/cloudbuild.projects.triggers.delete/triggerId": trigger_id "/cloudbuild:v1/cloudbuild.projects.triggers.delete/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.triggers.get": get_project_trigger -"/cloudbuild:v1/cloudbuild.projects.triggers.get/triggerId": trigger_id -"/cloudbuild:v1/cloudbuild.projects.triggers.get/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.triggers.list": list_project_triggers -"/cloudbuild:v1/cloudbuild.projects.triggers.list/projectId": project_id "/cloudbuild:v1/cloudbuild.projects.triggers.patch": patch_project_trigger "/cloudbuild:v1/cloudbuild.projects.triggers.patch/triggerId": trigger_id "/cloudbuild:v1/cloudbuild.projects.triggers.patch/projectId": project_id -"/cloudbuild:v1/cloudbuild.projects.triggers.create": create_project_trigger -"/cloudbuild:v1/cloudbuild.projects.triggers.create/projectId": project_id -"/cloudbuild:v1/cloudbuild.operations.list": list_operations -"/cloudbuild:v1/cloudbuild.operations.list/filter": filter -"/cloudbuild:v1/cloudbuild.operations.list/name": name -"/cloudbuild:v1/cloudbuild.operations.list/pageToken": page_token -"/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size -"/cloudbuild:v1/cloudbuild.operations.get": get_operation -"/cloudbuild:v1/cloudbuild.operations.get/name": name +"/cloudbuild:v1/cloudbuild.projects.triggers.list": list_project_triggers +"/cloudbuild:v1/cloudbuild.projects.triggers.list/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.triggers.get": get_project_trigger +"/cloudbuild:v1/cloudbuild.projects.triggers.get/triggerId": trigger_id +"/cloudbuild:v1/cloudbuild.projects.triggers.get/projectId": project_id "/cloudbuild:v1/cloudbuild.operations.cancel": cancel_operation "/cloudbuild:v1/cloudbuild.operations.cancel/name": name -"/cloudbuild:v1/CancelBuildRequest": cancel_build_request -"/cloudbuild:v1/ListBuildsResponse": list_builds_response -"/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token -"/cloudbuild:v1/ListBuildsResponse/builds": builds -"/cloudbuild:v1/ListBuildsResponse/builds/build": build -"/cloudbuild:v1/ListOperationsResponse": list_operations_response -"/cloudbuild:v1/ListOperationsResponse/operations": operations -"/cloudbuild:v1/ListOperationsResponse/operations/operation": operation -"/cloudbuild:v1/ListOperationsResponse/nextPageToken": next_page_token -"/cloudbuild:v1/Source": source -"/cloudbuild:v1/Source/storageSource": storage_source -"/cloudbuild:v1/Source/repoSource": repo_source -"/cloudbuild:v1/BuildOptions": build_options -"/cloudbuild:v1/BuildOptions/sourceProvenanceHash": source_provenance_hash -"/cloudbuild:v1/BuildOptions/sourceProvenanceHash/source_provenance_hash": source_provenance_hash -"/cloudbuild:v1/BuildOptions/requestedVerifyOption": requested_verify_option -"/cloudbuild:v1/StorageSource": storage_source -"/cloudbuild:v1/StorageSource/generation": generation -"/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/Results/buildStepImages": build_step_images -"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image +"/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/pageToken": page_token +"/cloudbuild:v1/cloudbuild.operations.list/name": name +"/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size +"/cloudbuild:v1/cloudbuild.operations.list/filter": filter "/cloudbuild:v1/BuildOperationMetadata": build_operation_metadata "/cloudbuild:v1/BuildOperationMetadata/build": build "/cloudbuild:v1/SourceProvenance": source_provenance -"/cloudbuild:v1/SourceProvenance/resolvedRepoSource": resolved_repo_source "/cloudbuild:v1/SourceProvenance/resolvedStorageSource": resolved_storage_source "/cloudbuild:v1/SourceProvenance/fileHashes": file_hashes "/cloudbuild:v1/SourceProvenance/fileHashes/file_hash": file_hash +"/cloudbuild:v1/SourceProvenance/resolvedRepoSource": resolved_repo_source "/cloudbuild:v1/CancelOperationRequest": cancel_operation_request +"/cloudbuild:v1/ListBuildTriggersResponse": list_build_triggers_response +"/cloudbuild:v1/ListBuildTriggersResponse/triggers": triggers +"/cloudbuild:v1/ListBuildTriggersResponse/triggers/trigger": trigger "/cloudbuild:v1/Operation": operation -"/cloudbuild:v1/Operation/done": done "/cloudbuild:v1/Operation/response": response "/cloudbuild:v1/Operation/response/response": response "/cloudbuild:v1/Operation/name": name "/cloudbuild:v1/Operation/error": error "/cloudbuild:v1/Operation/metadata": metadata "/cloudbuild:v1/Operation/metadata/metadatum": metadatum -"/cloudbuild:v1/ListBuildTriggersResponse": list_build_triggers_response -"/cloudbuild:v1/ListBuildTriggersResponse/triggers": triggers -"/cloudbuild:v1/ListBuildTriggersResponse/triggers/trigger": trigger +"/cloudbuild:v1/Operation/done": done "/cloudbuild:v1/BuiltImage": built_image "/cloudbuild:v1/BuiltImage/name": name "/cloudbuild:v1/BuiltImage/digest": digest +"/cloudbuild:v1/Hash": hash_prop +"/cloudbuild:v1/Hash/value": value +"/cloudbuild:v1/Hash/type": type +"/cloudbuild:v1/RepoSource": repo_source +"/cloudbuild:v1/RepoSource/commitSha": commit_sha +"/cloudbuild:v1/RepoSource/tagName": tag_name +"/cloudbuild:v1/RepoSource/branchName": branch_name +"/cloudbuild:v1/RepoSource/repoName": repo_name +"/cloudbuild:v1/RepoSource/projectId": project_id "/cloudbuild:v1/BuildStep": build_step -"/cloudbuild:v1/BuildStep/id": id "/cloudbuild:v1/BuildStep/dir": dir -"/cloudbuild:v1/BuildStep/waitFor": wait_for -"/cloudbuild:v1/BuildStep/waitFor/wait_for": wait_for "/cloudbuild:v1/BuildStep/env": env "/cloudbuild:v1/BuildStep/env/env": env +"/cloudbuild:v1/BuildStep/waitFor": wait_for +"/cloudbuild:v1/BuildStep/waitFor/wait_for": wait_for "/cloudbuild:v1/BuildStep/args": args "/cloudbuild:v1/BuildStep/args/arg": arg "/cloudbuild:v1/BuildStep/name": name "/cloudbuild:v1/BuildStep/entrypoint": entrypoint -"/cloudbuild:v1/RepoSource": repo_source -"/cloudbuild:v1/RepoSource/tagName": tag_name -"/cloudbuild:v1/RepoSource/commitSha": commit_sha -"/cloudbuild:v1/RepoSource/projectId": project_id -"/cloudbuild:v1/RepoSource/repoName": repo_name -"/cloudbuild:v1/RepoSource/branchName": branch_name -"/cloudbuild:v1/Hash": hash_prop -"/cloudbuild:v1/Hash/value": value -"/cloudbuild:v1/Hash/type": type +"/cloudbuild:v1/BuildStep/id": id +"/cloudbuild:v1/BuildStep/secretEnv": secret_env +"/cloudbuild:v1/BuildStep/secretEnv/secret_env": secret_env "/cloudbuild:v1/FileHashes": file_hashes "/cloudbuild:v1/FileHashes/fileHash": file_hash "/cloudbuild:v1/FileHashes/fileHash/file_hash": file_hash +"/cloudbuild:v1/Secret": secret +"/cloudbuild:v1/Secret/secretEnv": secret_env +"/cloudbuild:v1/Secret/secretEnv/secret_env": secret_env +"/cloudbuild:v1/Secret/kmsKeyName": kms_key_name "/cloudbuild:v1/Status": status -"/cloudbuild:v1/Status/code": code "/cloudbuild:v1/Status/message": message "/cloudbuild:v1/Status/details": details "/cloudbuild:v1/Status/details/detail": detail "/cloudbuild:v1/Status/details/detail/detail": detail +"/cloudbuild:v1/Status/code": code "/cloudbuild:v1/Empty": empty "/cloudbuild:v1/BuildTrigger": build_trigger "/cloudbuild:v1/BuildTrigger/createTime": create_time @@ -13855,22 +13838,11 @@ "/cloudbuild:v1/BuildTrigger/substitutions/substitution": substitution "/cloudbuild:v1/BuildTrigger/description": description "/cloudbuild:v1/Build": build -"/cloudbuild:v1/Build/statusDetail": status_detail -"/cloudbuild:v1/Build/status": status -"/cloudbuild:v1/Build/timeout": timeout -"/cloudbuild:v1/Build/logsBucket": logs_bucket -"/cloudbuild:v1/Build/results": results -"/cloudbuild:v1/Build/steps": steps -"/cloudbuild:v1/Build/steps/step": step -"/cloudbuild:v1/Build/buildTriggerId": build_trigger_id -"/cloudbuild:v1/Build/tags": tags -"/cloudbuild:v1/Build/tags/tag": tag -"/cloudbuild:v1/Build/id": id -"/cloudbuild:v1/Build/startTime": start_time "/cloudbuild:v1/Build/substitutions": substitutions "/cloudbuild:v1/Build/substitutions/substitution": substitution -"/cloudbuild:v1/Build/createTime": create_time +"/cloudbuild:v1/Build/startTime": start_time "/cloudbuild:v1/Build/sourceProvenance": source_provenance +"/cloudbuild:v1/Build/createTime": create_time "/cloudbuild:v1/Build/images": images "/cloudbuild:v1/Build/images/image": image "/cloudbuild:v1/Build/projectId": project_id @@ -13878,55 +13850,143 @@ "/cloudbuild:v1/Build/logUrl": log_url "/cloudbuild:v1/Build/source": source "/cloudbuild:v1/Build/options": options +"/cloudbuild:v1/Build/timeout": timeout +"/cloudbuild:v1/Build/status": status +"/cloudbuild:v1/Build/statusDetail": status_detail +"/cloudbuild:v1/Build/secrets": secrets +"/cloudbuild:v1/Build/secrets/secret": secret +"/cloudbuild:v1/Build/results": results +"/cloudbuild:v1/Build/logsBucket": logs_bucket +"/cloudbuild:v1/Build/steps": steps +"/cloudbuild:v1/Build/steps/step": step +"/cloudbuild:v1/Build/buildTriggerId": build_trigger_id +"/cloudbuild:v1/Build/id": id +"/cloudbuild:v1/Build/tags": tags +"/cloudbuild:v1/Build/tags/tag": tag +"/cloudbuild:v1/CancelBuildRequest": cancel_build_request +"/cloudbuild:v1/ListBuildsResponse": list_builds_response +"/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token +"/cloudbuild:v1/ListBuildsResponse/builds": builds +"/cloudbuild:v1/ListBuildsResponse/builds/build": build +"/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/Source": source +"/cloudbuild:v1/Source/storageSource": storage_source +"/cloudbuild:v1/Source/repoSource": repo_source +"/cloudbuild:v1/BuildOptions": build_options +"/cloudbuild:v1/BuildOptions/sourceProvenanceHash": source_provenance_hash +"/cloudbuild:v1/BuildOptions/sourceProvenanceHash/source_provenance_hash": source_provenance_hash +"/cloudbuild:v1/BuildOptions/substitutionOption": substitution_option +"/cloudbuild:v1/BuildOptions/requestedVerifyOption": requested_verify_option +"/cloudbuild:v1/StorageSource": storage_source +"/cloudbuild:v1/StorageSource/generation": generation +"/cloudbuild:v1/StorageSource/bucket": bucket +"/cloudbuild:v1/StorageSource/object": object +"/cloudbuild:v1/Results": results +"/cloudbuild:v1/Results/buildStepImages": build_step_images +"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image +"/cloudbuild:v1/Results/images": images +"/cloudbuild:v1/Results/images/image": image +"/clouddebugger:v2/fields": fields "/clouddebugger:v2/key": key "/clouddebugger:v2/quotaUser": quota_user -"/clouddebugger:v2/fields": fields "/clouddebugger:v2/clouddebugger.debugger.debuggees.list": list_debugger_debuggees "/clouddebugger:v2/clouddebugger.debugger.debuggees.list/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.list/includeInactive": include_inactive "/clouddebugger:v2/clouddebugger.debugger.debuggees.list/project": project -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set": set_debugger_debuggee_breakpoint -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/clientVersion": client_version -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete": delete_debugger_debuggee_breakpoint -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/clientVersion": client_version -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/breakpointId": breakpoint_id -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get": get_debugger_debuggee_breakpoint -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/breakpointId": breakpoint_id -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list": list_debugger_debuggee_breakpoints -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeAllUsers": include_all_users -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeInactive": include_inactive -"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/stripResults": strip_results "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/waitToken": wait_token "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/action.value": action_value +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeInactive": include_inactive +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeAllUsers": include_all_users +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/stripResults": strip_results +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get": get_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/clientVersion": client_version +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete": delete_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/clientVersion": client_version +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set": set_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/clientVersion": client_version +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.controller.debuggees.register": register_debuggee +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list": list_controller_debuggee_breakpoints +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/successOnTimeout": success_on_timeout +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/waitToken": wait_token "/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update": update_active_breakpoint "/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update/id": id "/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list": list_controller_debuggee_breakpoints -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/debuggeeId": debuggee_id -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/successOnTimeout": success_on_timeout -"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/waitToken": wait_token +"/clouddebugger:v2/CloudWorkspaceId": cloud_workspace_id +"/clouddebugger:v2/CloudWorkspaceId/repoId": repo_id +"/clouddebugger:v2/CloudWorkspaceId/name": name +"/clouddebugger:v2/ListBreakpointsResponse": list_breakpoints_response +"/clouddebugger:v2/ListBreakpointsResponse/breakpoints": breakpoints +"/clouddebugger:v2/ListBreakpointsResponse/breakpoints/breakpoint": breakpoint +"/clouddebugger:v2/ListBreakpointsResponse/nextWaitToken": next_wait_token +"/clouddebugger:v2/Breakpoint": breakpoint +"/clouddebugger:v2/Breakpoint/userEmail": user_email +"/clouddebugger:v2/Breakpoint/action": action +"/clouddebugger:v2/Breakpoint/logLevel": log_level +"/clouddebugger:v2/Breakpoint/id": id +"/clouddebugger:v2/Breakpoint/location": location +"/clouddebugger:v2/Breakpoint/finalTime": final_time +"/clouddebugger:v2/Breakpoint/variableTable": variable_table +"/clouddebugger:v2/Breakpoint/variableTable/variable_table": variable_table +"/clouddebugger:v2/Breakpoint/labels": labels +"/clouddebugger:v2/Breakpoint/labels/label": label +"/clouddebugger:v2/Breakpoint/logMessageFormat": log_message_format +"/clouddebugger:v2/Breakpoint/createTime": create_time +"/clouddebugger:v2/Breakpoint/expressions": expressions +"/clouddebugger:v2/Breakpoint/expressions/expression": expression +"/clouddebugger:v2/Breakpoint/evaluatedExpressions": evaluated_expressions +"/clouddebugger:v2/Breakpoint/evaluatedExpressions/evaluated_expression": evaluated_expression +"/clouddebugger:v2/Breakpoint/isFinalState": is_final_state +"/clouddebugger:v2/Breakpoint/stackFrames": stack_frames +"/clouddebugger:v2/Breakpoint/stackFrames/stack_frame": stack_frame +"/clouddebugger:v2/Breakpoint/condition": condition +"/clouddebugger:v2/Breakpoint/status": status +"/clouddebugger:v2/UpdateActiveBreakpointRequest": update_active_breakpoint_request +"/clouddebugger:v2/UpdateActiveBreakpointRequest/breakpoint": breakpoint +"/clouddebugger:v2/SetBreakpointResponse": set_breakpoint_response +"/clouddebugger:v2/SetBreakpointResponse/breakpoint": breakpoint +"/clouddebugger:v2/SourceContext": source_context +"/clouddebugger:v2/SourceContext/gerrit": gerrit +"/clouddebugger:v2/SourceContext/cloudWorkspace": cloud_workspace +"/clouddebugger:v2/SourceContext/cloudRepo": cloud_repo +"/clouddebugger:v2/SourceContext/git": git +"/clouddebugger:v2/CloudRepoSourceContext": cloud_repo_source_context +"/clouddebugger:v2/CloudRepoSourceContext/repoId": repo_id +"/clouddebugger:v2/CloudRepoSourceContext/aliasContext": alias_context +"/clouddebugger:v2/CloudRepoSourceContext/revisionId": revision_id +"/clouddebugger:v2/CloudRepoSourceContext/aliasName": alias_name +"/clouddebugger:v2/RegisterDebuggeeResponse": register_debuggee_response +"/clouddebugger:v2/RegisterDebuggeeResponse/debuggee": debuggee +"/clouddebugger:v2/RegisterDebuggeeRequest": register_debuggee_request +"/clouddebugger:v2/RegisterDebuggeeRequest/debuggee": debuggee +"/clouddebugger:v2/GetBreakpointResponse": get_breakpoint_response +"/clouddebugger:v2/GetBreakpointResponse/breakpoint": breakpoint "/clouddebugger:v2/StatusMessage": status_message -"/clouddebugger:v2/StatusMessage/isError": is_error "/clouddebugger:v2/StatusMessage/description": description +"/clouddebugger:v2/StatusMessage/isError": is_error "/clouddebugger:v2/StatusMessage/refersTo": refers_to "/clouddebugger:v2/GitSourceContext": git_source_context "/clouddebugger:v2/GitSourceContext/revisionId": revision_id "/clouddebugger:v2/GitSourceContext/url": url "/clouddebugger:v2/Variable": variable -"/clouddebugger:v2/Variable/varTableIndex": var_table_index -"/clouddebugger:v2/Variable/value": value "/clouddebugger:v2/Variable/members": members "/clouddebugger:v2/Variable/members/member": member "/clouddebugger:v2/Variable/status": status "/clouddebugger:v2/Variable/name": name "/clouddebugger:v2/Variable/type": type +"/clouddebugger:v2/Variable/varTableIndex": var_table_index +"/clouddebugger:v2/Variable/value": value "/clouddebugger:v2/StackFrame": stack_frame "/clouddebugger:v2/StackFrame/function": function "/clouddebugger:v2/StackFrame/arguments": arguments @@ -13935,8 +13995,8 @@ "/clouddebugger:v2/StackFrame/locals/local": local "/clouddebugger:v2/StackFrame/location": location "/clouddebugger:v2/RepoId": repo_id -"/clouddebugger:v2/RepoId/projectRepoId": project_repo_id "/clouddebugger:v2/RepoId/uid": uid +"/clouddebugger:v2/RepoId/projectRepoId": project_repo_id "/clouddebugger:v2/FormatMessage": format_message "/clouddebugger:v2/FormatMessage/parameters": parameters "/clouddebugger:v2/FormatMessage/parameters/parameter": parameter @@ -13953,9 +14013,13 @@ "/clouddebugger:v2/AliasContext/kind": kind "/clouddebugger:v2/Empty": empty "/clouddebugger:v2/SourceLocation": source_location -"/clouddebugger:v2/SourceLocation/line": line "/clouddebugger:v2/SourceLocation/path": path +"/clouddebugger:v2/SourceLocation/line": line "/clouddebugger:v2/Debuggee": debuggee +"/clouddebugger:v2/Debuggee/description": description +"/clouddebugger:v2/Debuggee/uniquifier": uniquifier +"/clouddebugger:v2/Debuggee/sourceContexts": source_contexts +"/clouddebugger:v2/Debuggee/sourceContexts/source_context": source_context "/clouddebugger:v2/Debuggee/extSourceContexts": ext_source_contexts "/clouddebugger:v2/Debuggee/extSourceContexts/ext_source_context": ext_source_context "/clouddebugger:v2/Debuggee/labels": labels @@ -13963,219 +14027,166 @@ "/clouddebugger:v2/Debuggee/isInactive": is_inactive "/clouddebugger:v2/Debuggee/status": status "/clouddebugger:v2/Debuggee/project": project -"/clouddebugger:v2/Debuggee/id": id -"/clouddebugger:v2/Debuggee/agentVersion": agent_version "/clouddebugger:v2/Debuggee/isDisabled": is_disabled -"/clouddebugger:v2/Debuggee/description": description -"/clouddebugger:v2/Debuggee/uniquifier": uniquifier -"/clouddebugger:v2/Debuggee/sourceContexts": source_contexts -"/clouddebugger:v2/Debuggee/sourceContexts/source_context": source_context +"/clouddebugger:v2/Debuggee/agentVersion": agent_version +"/clouddebugger:v2/Debuggee/id": id "/clouddebugger:v2/ProjectRepoId": project_repo_id -"/clouddebugger:v2/ProjectRepoId/projectId": project_id "/clouddebugger:v2/ProjectRepoId/repoName": repo_name +"/clouddebugger:v2/ProjectRepoId/projectId": project_id "/clouddebugger:v2/ListActiveBreakpointsResponse": list_active_breakpoints_response +"/clouddebugger:v2/ListActiveBreakpointsResponse/waitExpired": wait_expired "/clouddebugger:v2/ListActiveBreakpointsResponse/nextWaitToken": next_wait_token "/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints": breakpoints "/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints/breakpoint": breakpoint -"/clouddebugger:v2/ListActiveBreakpointsResponse/waitExpired": wait_expired "/clouddebugger:v2/CloudWorkspaceSourceContext": cloud_workspace_source_context "/clouddebugger:v2/CloudWorkspaceSourceContext/snapshotId": snapshot_id "/clouddebugger:v2/CloudWorkspaceSourceContext/workspaceId": workspace_id "/clouddebugger:v2/UpdateActiveBreakpointResponse": update_active_breakpoint_response "/clouddebugger:v2/GerritSourceContext": gerrit_source_context -"/clouddebugger:v2/GerritSourceContext/gerritProject": gerrit_project -"/clouddebugger:v2/GerritSourceContext/aliasContext": alias_context -"/clouddebugger:v2/GerritSourceContext/hostUri": host_uri "/clouddebugger:v2/GerritSourceContext/revisionId": revision_id +"/clouddebugger:v2/GerritSourceContext/hostUri": host_uri "/clouddebugger:v2/GerritSourceContext/aliasName": alias_name -"/clouddebugger:v2/CloudWorkspaceId": cloud_workspace_id -"/clouddebugger:v2/CloudWorkspaceId/name": name -"/clouddebugger:v2/CloudWorkspaceId/repoId": repo_id -"/clouddebugger:v2/ListBreakpointsResponse": list_breakpoints_response -"/clouddebugger:v2/ListBreakpointsResponse/nextWaitToken": next_wait_token -"/clouddebugger:v2/ListBreakpointsResponse/breakpoints": breakpoints -"/clouddebugger:v2/ListBreakpointsResponse/breakpoints/breakpoint": breakpoint -"/clouddebugger:v2/Breakpoint": breakpoint -"/clouddebugger:v2/Breakpoint/userEmail": user_email -"/clouddebugger:v2/Breakpoint/action": action -"/clouddebugger:v2/Breakpoint/logLevel": log_level -"/clouddebugger:v2/Breakpoint/id": id -"/clouddebugger:v2/Breakpoint/location": location -"/clouddebugger:v2/Breakpoint/finalTime": final_time -"/clouddebugger:v2/Breakpoint/variableTable": variable_table -"/clouddebugger:v2/Breakpoint/variableTable/variable_table": variable_table -"/clouddebugger:v2/Breakpoint/createTime": create_time -"/clouddebugger:v2/Breakpoint/logMessageFormat": log_message_format -"/clouddebugger:v2/Breakpoint/labels": labels -"/clouddebugger:v2/Breakpoint/labels/label": label -"/clouddebugger:v2/Breakpoint/expressions": expressions -"/clouddebugger:v2/Breakpoint/expressions/expression": expression -"/clouddebugger:v2/Breakpoint/evaluatedExpressions": evaluated_expressions -"/clouddebugger:v2/Breakpoint/evaluatedExpressions/evaluated_expression": evaluated_expression -"/clouddebugger:v2/Breakpoint/isFinalState": is_final_state -"/clouddebugger:v2/Breakpoint/stackFrames": stack_frames -"/clouddebugger:v2/Breakpoint/stackFrames/stack_frame": stack_frame -"/clouddebugger:v2/Breakpoint/condition": condition -"/clouddebugger:v2/Breakpoint/status": status -"/clouddebugger:v2/UpdateActiveBreakpointRequest": update_active_breakpoint_request -"/clouddebugger:v2/UpdateActiveBreakpointRequest/breakpoint": breakpoint -"/clouddebugger:v2/SetBreakpointResponse": set_breakpoint_response -"/clouddebugger:v2/SetBreakpointResponse/breakpoint": breakpoint -"/clouddebugger:v2/SourceContext": source_context -"/clouddebugger:v2/SourceContext/gerrit": gerrit -"/clouddebugger:v2/SourceContext/cloudRepo": cloud_repo -"/clouddebugger:v2/SourceContext/cloudWorkspace": cloud_workspace -"/clouddebugger:v2/SourceContext/git": git -"/clouddebugger:v2/CloudRepoSourceContext": cloud_repo_source_context -"/clouddebugger:v2/CloudRepoSourceContext/revisionId": revision_id -"/clouddebugger:v2/CloudRepoSourceContext/aliasName": alias_name -"/clouddebugger:v2/CloudRepoSourceContext/repoId": repo_id -"/clouddebugger:v2/CloudRepoSourceContext/aliasContext": alias_context -"/clouddebugger:v2/RegisterDebuggeeResponse": register_debuggee_response -"/clouddebugger:v2/RegisterDebuggeeResponse/debuggee": debuggee -"/clouddebugger:v2/RegisterDebuggeeRequest": register_debuggee_request -"/clouddebugger:v2/RegisterDebuggeeRequest/debuggee": debuggee -"/clouddebugger:v2/GetBreakpointResponse": get_breakpoint_response -"/clouddebugger:v2/GetBreakpointResponse/breakpoint": breakpoint +"/clouddebugger:v2/GerritSourceContext/aliasContext": alias_context +"/clouddebugger:v2/GerritSourceContext/gerritProject": gerrit_project "/clouderrorreporting:v1beta1/key": key "/clouderrorreporting:v1beta1/quotaUser": quota_user "/clouderrorreporting:v1beta1/fields": fields "/clouderrorreporting:v1beta1/clouderrorreporting.projects.deleteEvents": delete_project_events "/clouderrorreporting:v1beta1/clouderrorreporting.projects.deleteEvents/projectName": project_name -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.get": get_project_group -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.get/groupName": group_name -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.update": update_project_group -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.update/name": name "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list": list_project_group_stats -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/alignmentTime": alignment_time -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/serviceFilter.resourceType": service_filter_resource_type -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/projectName": project_name -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/timedCountDuration": timed_count_duration -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/pageToken": page_token -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/timeRange.period": time_range_period "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/alignment": alignment "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/groupId": group_id "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/serviceFilter.service": service_filter_service "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/pageSize": page_size "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/order": order "/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/serviceFilter.version": service_filter_version +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/alignmentTime": alignment_time +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/serviceFilter.resourceType": service_filter_resource_type +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/projectName": project_name +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/timedCountDuration": timed_count_duration +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/pageToken": page_token +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groupStats.list/timeRange.period": time_range_period +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.get": get_project_group +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.get/groupName": group_name +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.update": update_project_group +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.groups.update/name": name "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list": list_project_events -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/groupId": group_id -"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/pageToken": page_token "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/serviceFilter.service": service_filter_service +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/pageToken": page_token "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/pageSize": page_size "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/serviceFilter.version": service_filter_version "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/serviceFilter.resourceType": service_filter_resource_type "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/timeRange.period": time_range_period "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/projectName": project_name +"/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.list/groupId": group_id "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.report": report_project_event "/clouderrorreporting:v1beta1/clouderrorreporting.projects.events.report/projectName": project_name "/clouderrorreporting:v1beta1/ListGroupStatsResponse": list_group_stats_response +"/clouderrorreporting:v1beta1/ListGroupStatsResponse/nextPageToken": next_page_token "/clouderrorreporting:v1beta1/ListGroupStatsResponse/timeRangeBegin": time_range_begin "/clouderrorreporting:v1beta1/ListGroupStatsResponse/errorGroupStats": error_group_stats "/clouderrorreporting:v1beta1/ListGroupStatsResponse/errorGroupStats/error_group_stat": error_group_stat -"/clouderrorreporting:v1beta1/ListGroupStatsResponse/nextPageToken": next_page_token "/clouderrorreporting:v1beta1/SourceReference": source_reference -"/clouderrorreporting:v1beta1/SourceReference/repository": repository "/clouderrorreporting:v1beta1/SourceReference/revisionId": revision_id +"/clouderrorreporting:v1beta1/SourceReference/repository": repository "/clouderrorreporting:v1beta1/DeleteEventsResponse": delete_events_response "/clouderrorreporting:v1beta1/ErrorEvent": error_event +"/clouderrorreporting:v1beta1/ErrorEvent/serviceContext": service_context "/clouderrorreporting:v1beta1/ErrorEvent/eventTime": event_time "/clouderrorreporting:v1beta1/ErrorEvent/context": context "/clouderrorreporting:v1beta1/ErrorEvent/message": message -"/clouderrorreporting:v1beta1/ErrorEvent/serviceContext": service_context "/clouderrorreporting:v1beta1/ReportedErrorEvent": reported_error_event +"/clouderrorreporting:v1beta1/ReportedErrorEvent/context": context "/clouderrorreporting:v1beta1/ReportedErrorEvent/message": message "/clouderrorreporting:v1beta1/ReportedErrorEvent/serviceContext": service_context "/clouderrorreporting:v1beta1/ReportedErrorEvent/eventTime": event_time -"/clouderrorreporting:v1beta1/ReportedErrorEvent/context": context "/clouderrorreporting:v1beta1/ErrorContext": error_context -"/clouderrorreporting:v1beta1/ErrorContext/user": user -"/clouderrorreporting:v1beta1/ErrorContext/reportLocation": report_location "/clouderrorreporting:v1beta1/ErrorContext/sourceReferences": source_references "/clouderrorreporting:v1beta1/ErrorContext/sourceReferences/source_reference": source_reference +"/clouderrorreporting:v1beta1/ErrorContext/reportLocation": report_location "/clouderrorreporting:v1beta1/ErrorContext/httpRequest": http_request +"/clouderrorreporting:v1beta1/ErrorContext/user": user "/clouderrorreporting:v1beta1/TrackingIssue": tracking_issue "/clouderrorreporting:v1beta1/TrackingIssue/url": url "/clouderrorreporting:v1beta1/ErrorGroupStats": error_group_stats +"/clouderrorreporting:v1beta1/ErrorGroupStats/group": group +"/clouderrorreporting:v1beta1/ErrorGroupStats/firstSeenTime": first_seen_time "/clouderrorreporting:v1beta1/ErrorGroupStats/count": count "/clouderrorreporting:v1beta1/ErrorGroupStats/affectedUsersCount": affected_users_count "/clouderrorreporting:v1beta1/ErrorGroupStats/lastSeenTime": last_seen_time +"/clouderrorreporting:v1beta1/ErrorGroupStats/numAffectedServices": num_affected_services "/clouderrorreporting:v1beta1/ErrorGroupStats/affectedServices": affected_services "/clouderrorreporting:v1beta1/ErrorGroupStats/affectedServices/affected_service": affected_service -"/clouderrorreporting:v1beta1/ErrorGroupStats/numAffectedServices": num_affected_services "/clouderrorreporting:v1beta1/ErrorGroupStats/representative": representative "/clouderrorreporting:v1beta1/ErrorGroupStats/timedCounts": timed_counts "/clouderrorreporting:v1beta1/ErrorGroupStats/timedCounts/timed_count": timed_count -"/clouderrorreporting:v1beta1/ErrorGroupStats/group": group -"/clouderrorreporting:v1beta1/ErrorGroupStats/firstSeenTime": first_seen_time "/clouderrorreporting:v1beta1/ListEventsResponse": list_events_response +"/clouderrorreporting:v1beta1/ListEventsResponse/timeRangeBegin": time_range_begin "/clouderrorreporting:v1beta1/ListEventsResponse/errorEvents": error_events "/clouderrorreporting:v1beta1/ListEventsResponse/errorEvents/error_event": error_event "/clouderrorreporting:v1beta1/ListEventsResponse/nextPageToken": next_page_token -"/clouderrorreporting:v1beta1/ListEventsResponse/timeRangeBegin": time_range_begin "/clouderrorreporting:v1beta1/TimedCount": timed_count -"/clouderrorreporting:v1beta1/TimedCount/count": count -"/clouderrorreporting:v1beta1/TimedCount/startTime": start_time "/clouderrorreporting:v1beta1/TimedCount/endTime": end_time +"/clouderrorreporting:v1beta1/TimedCount/startTime": start_time +"/clouderrorreporting:v1beta1/TimedCount/count": count "/clouderrorreporting:v1beta1/ErrorGroup": error_group "/clouderrorreporting:v1beta1/ErrorGroup/name": name -"/clouderrorreporting:v1beta1/ErrorGroup/groupId": group_id "/clouderrorreporting:v1beta1/ErrorGroup/trackingIssues": tracking_issues "/clouderrorreporting:v1beta1/ErrorGroup/trackingIssues/tracking_issue": tracking_issue -"/clouderrorreporting:v1beta1/SourceLocation": source_location -"/clouderrorreporting:v1beta1/SourceLocation/filePath": file_path -"/clouderrorreporting:v1beta1/SourceLocation/lineNumber": line_number -"/clouderrorreporting:v1beta1/SourceLocation/functionName": function_name +"/clouderrorreporting:v1beta1/ErrorGroup/groupId": group_id "/clouderrorreporting:v1beta1/ServiceContext": service_context "/clouderrorreporting:v1beta1/ServiceContext/version": version "/clouderrorreporting:v1beta1/ServiceContext/service": service "/clouderrorreporting:v1beta1/ServiceContext/resourceType": resource_type +"/clouderrorreporting:v1beta1/SourceLocation": source_location +"/clouderrorreporting:v1beta1/SourceLocation/functionName": function_name +"/clouderrorreporting:v1beta1/SourceLocation/filePath": file_path +"/clouderrorreporting:v1beta1/SourceLocation/lineNumber": line_number "/clouderrorreporting:v1beta1/ReportErrorEventResponse": report_error_event_response "/clouderrorreporting:v1beta1/HttpRequestContext": http_request_context +"/clouderrorreporting:v1beta1/HttpRequestContext/url": url +"/clouderrorreporting:v1beta1/HttpRequestContext/responseStatusCode": response_status_code "/clouderrorreporting:v1beta1/HttpRequestContext/method": method_prop "/clouderrorreporting:v1beta1/HttpRequestContext/remoteIp": remote_ip "/clouderrorreporting:v1beta1/HttpRequestContext/referrer": referrer "/clouderrorreporting:v1beta1/HttpRequestContext/userAgent": user_agent -"/clouderrorreporting:v1beta1/HttpRequestContext/url": url -"/clouderrorreporting:v1beta1/HttpRequestContext/responseStatusCode": response_status_code +"/cloudfunctions:v1/key": key "/cloudfunctions:v1/quotaUser": quota_user "/cloudfunctions:v1/fields": fields -"/cloudfunctions:v1/key": key "/cloudfunctions:v1/OperationMetadataV1Beta2": operation_metadata_v1_beta2 "/cloudfunctions:v1/OperationMetadataV1Beta2/target": target "/cloudfunctions:v1/OperationMetadataV1Beta2/request": request "/cloudfunctions:v1/OperationMetadataV1Beta2/request/request": request "/cloudfunctions:v1/OperationMetadataV1Beta2/type": type -"/cloudkms:v1/fields": fields "/cloudkms:v1/key": key "/cloudkms:v1/quotaUser": quota_user -"/cloudkms:v1/cloudkms.projects.locations.list": list_project_locations -"/cloudkms:v1/cloudkms.projects.locations.list/filter": filter -"/cloudkms:v1/cloudkms.projects.locations.list/name": name -"/cloudkms:v1/cloudkms.projects.locations.list/pageToken": page_token -"/cloudkms:v1/cloudkms.projects.locations.list/pageSize": page_size +"/cloudkms:v1/fields": fields "/cloudkms:v1/cloudkms.projects.locations.get": get_project_location "/cloudkms:v1/cloudkms.projects.locations.get/name": name +"/cloudkms:v1/cloudkms.projects.locations.list": list_project_locations +"/cloudkms:v1/cloudkms.projects.locations.list/pageSize": page_size +"/cloudkms:v1/cloudkms.projects.locations.list/filter": filter +"/cloudkms:v1/cloudkms.projects.locations.list/pageToken": page_token +"/cloudkms:v1/cloudkms.projects.locations.list/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.list": list_project_location_key_rings +"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/pageToken": page_token +"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/pageSize": page_size +"/cloudkms:v1/cloudkms.projects.locations.keyRings.setIamPolicy": set_key_ring_iam_policy +"/cloudkms:v1/cloudkms.projects.locations.keyRings.setIamPolicy/resource": resource +"/cloudkms:v1/cloudkms.projects.locations.keyRings.create": create_project_location_key_ring +"/cloudkms:v1/cloudkms.projects.locations.keyRings.create/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.create/keyRingId": key_ring_id "/cloudkms:v1/cloudkms.projects.locations.keyRings.getIamPolicy": get_project_location_key_ring_iam_policy "/cloudkms:v1/cloudkms.projects.locations.keyRings.getIamPolicy/resource": resource "/cloudkms:v1/cloudkms.projects.locations.keyRings.get": get_project_location_key_ring "/cloudkms:v1/cloudkms.projects.locations.keyRings.get/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.testIamPermissions": test_key_ring_iam_permissions "/cloudkms:v1/cloudkms.projects.locations.keyRings.testIamPermissions/resource": resource -"/cloudkms:v1/cloudkms.projects.locations.keyRings.list": list_project_location_key_rings -"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/pageSize": page_size -"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/parent": parent -"/cloudkms:v1/cloudkms.projects.locations.keyRings.list/pageToken": page_token -"/cloudkms:v1/cloudkms.projects.locations.keyRings.create": create_project_location_key_ring -"/cloudkms:v1/cloudkms.projects.locations.keyRings.create/parent": parent -"/cloudkms:v1/cloudkms.projects.locations.keyRings.create/keyRingId": key_ring_id -"/cloudkms:v1/cloudkms.projects.locations.keyRings.setIamPolicy": set_key_ring_iam_policy -"/cloudkms:v1/cloudkms.projects.locations.keyRings.setIamPolicy/resource": resource "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list": list_project_location_key_ring_crypto_keys -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/pageToken": page_token "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/pageSize": page_size "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/parent": parent +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.list/pageToken": page_token "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.encrypt": encrypt_crypto_key "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.encrypt/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.create": create_project_location_key_ring_crypto_key @@ -14187,107 +14198,41 @@ "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy": get_project_location_key_ring_crypto_key_iam_policy "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy/resource": resource -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.get": get_project_location_key_ring_crypto_key -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.get/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch": patch_project_location_key_ring_crypto_key "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch/updateMask": update_mask "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.patch/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.get": get_project_location_key_ring_crypto_key +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.get/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions": test_crypto_key_iam_permissions "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions/resource": resource "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.decrypt": decrypt_crypto_key "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.decrypt/name": name -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch": patch_project_location_key_ring_crypto_key_crypto_key_version -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/updateMask": update_mask -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/name": name -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get": get_project_location_key_ring_crypto_key_crypto_key_version -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list": list_project_location_key_ring_crypto_key_crypto_key_versions -"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/pageSize": page_size "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/parent": parent "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/pageToken": page_token +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list/pageSize": page_size "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create": create_project_location_key_ring_crypto_key_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create/parent": parent "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy": destroy_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy/name": name "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore": restore_crypto_key_version "/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore/name": name -"/cloudkms:v1/CloudAuditOptions": cloud_audit_options -"/cloudkms:v1/CloudAuditOptions/logName": log_name -"/cloudkms:v1/Binding": binding -"/cloudkms:v1/Binding/members": members -"/cloudkms:v1/Binding/members/member": member -"/cloudkms:v1/Binding/role": role -"/cloudkms:v1/Binding/condition": condition -"/cloudkms:v1/Expr": expr -"/cloudkms:v1/Expr/title": title -"/cloudkms:v1/Expr/location": location -"/cloudkms:v1/Expr/description": description -"/cloudkms:v1/Expr/expression": expression -"/cloudkms:v1/EncryptRequest": encrypt_request -"/cloudkms:v1/EncryptRequest/additionalAuthenticatedData": additional_authenticated_data -"/cloudkms:v1/EncryptRequest/plaintext": plaintext -"/cloudkms:v1/ListCryptoKeyVersionsResponse": list_crypto_key_versions_response -"/cloudkms:v1/ListCryptoKeyVersionsResponse/cryptoKeyVersions": crypto_key_versions -"/cloudkms:v1/ListCryptoKeyVersionsResponse/cryptoKeyVersions/crypto_key_version": crypto_key_version -"/cloudkms:v1/ListCryptoKeyVersionsResponse/nextPageToken": next_page_token -"/cloudkms:v1/ListCryptoKeyVersionsResponse/totalSize": total_size -"/cloudkms:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/cloudkms:v1/TestIamPermissionsResponse/permissions": permissions -"/cloudkms:v1/TestIamPermissionsResponse/permissions/permission": permission -"/cloudkms:v1/DestroyCryptoKeyVersionRequest": destroy_crypto_key_version_request -"/cloudkms:v1/CryptoKey": crypto_key -"/cloudkms:v1/CryptoKey/purpose": purpose -"/cloudkms:v1/CryptoKey/nextRotationTime": next_rotation_time -"/cloudkms:v1/CryptoKey/createTime": create_time -"/cloudkms:v1/CryptoKey/rotationPeriod": rotation_period -"/cloudkms:v1/CryptoKey/primary": primary -"/cloudkms:v1/CryptoKey/name": name -"/cloudkms:v1/Rule": rule -"/cloudkms:v1/Rule/notIn": not_in -"/cloudkms:v1/Rule/notIn/not_in": not_in -"/cloudkms:v1/Rule/description": description -"/cloudkms:v1/Rule/conditions": conditions -"/cloudkms:v1/Rule/conditions/condition": condition -"/cloudkms:v1/Rule/logConfig": log_config -"/cloudkms:v1/Rule/logConfig/log_config": log_config -"/cloudkms:v1/Rule/in": in -"/cloudkms:v1/Rule/in/in": in -"/cloudkms:v1/Rule/permissions": permissions -"/cloudkms:v1/Rule/permissions/permission": permission -"/cloudkms:v1/Rule/action": action -"/cloudkms:v1/LogConfig": log_config -"/cloudkms:v1/LogConfig/counter": counter -"/cloudkms:v1/LogConfig/dataAccess": data_access -"/cloudkms:v1/LogConfig/cloudAudit": cloud_audit -"/cloudkms:v1/SetIamPolicyRequest": set_iam_policy_request -"/cloudkms:v1/SetIamPolicyRequest/policy": policy -"/cloudkms:v1/SetIamPolicyRequest/updateMask": update_mask -"/cloudkms:v1/DecryptRequest": decrypt_request -"/cloudkms:v1/DecryptRequest/ciphertext": ciphertext -"/cloudkms:v1/DecryptRequest/additionalAuthenticatedData": additional_authenticated_data -"/cloudkms:v1/Location": location -"/cloudkms:v1/Location/locationId": location_id -"/cloudkms:v1/Location/metadata": metadata -"/cloudkms:v1/Location/metadata/metadatum": metadatum -"/cloudkms:v1/Location/labels": labels -"/cloudkms:v1/Location/labels/label": label -"/cloudkms:v1/Location/name": name -"/cloudkms:v1/ListCryptoKeysResponse": list_crypto_keys_response -"/cloudkms:v1/ListCryptoKeysResponse/nextPageToken": next_page_token -"/cloudkms:v1/ListCryptoKeysResponse/cryptoKeys": crypto_keys -"/cloudkms:v1/ListCryptoKeysResponse/cryptoKeys/crypto_key": crypto_key -"/cloudkms:v1/ListCryptoKeysResponse/totalSize": total_size +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get": get_project_location_key_ring_crypto_key_crypto_key_version +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get/name": name +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch": patch_project_location_key_ring_crypto_key_crypto_key_version +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/updateMask": update_mask +"/cloudkms:v1/cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch/name": name "/cloudkms:v1/Condition": condition -"/cloudkms:v1/Condition/op": op "/cloudkms:v1/Condition/svc": svc -"/cloudkms:v1/Condition/sys": sys "/cloudkms:v1/Condition/value": value -"/cloudkms:v1/Condition/iam": iam +"/cloudkms:v1/Condition/sys": sys "/cloudkms:v1/Condition/values": values "/cloudkms:v1/Condition/values/value": value +"/cloudkms:v1/Condition/iam": iam +"/cloudkms:v1/Condition/op": op "/cloudkms:v1/CounterOptions": counter_options -"/cloudkms:v1/CounterOptions/metric": metric "/cloudkms:v1/CounterOptions/field": field +"/cloudkms:v1/CounterOptions/metric": metric "/cloudkms:v1/AuditLogConfig": audit_log_config "/cloudkms:v1/AuditLogConfig/exemptedMembers": exempted_members "/cloudkms:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member @@ -14298,28 +14243,28 @@ "/cloudkms:v1/TestIamPermissionsRequest/permissions": permissions "/cloudkms:v1/TestIamPermissionsRequest/permissions/permission": permission "/cloudkms:v1/EncryptResponse": encrypt_response -"/cloudkms:v1/EncryptResponse/name": name "/cloudkms:v1/EncryptResponse/ciphertext": ciphertext +"/cloudkms:v1/EncryptResponse/name": name "/cloudkms:v1/KeyRing": key_ring "/cloudkms:v1/KeyRing/createTime": create_time "/cloudkms:v1/KeyRing/name": name +"/cloudkms:v1/ListLocationsResponse": list_locations_response +"/cloudkms:v1/ListLocationsResponse/locations": locations +"/cloudkms:v1/ListLocationsResponse/locations/location": location +"/cloudkms:v1/ListLocationsResponse/nextPageToken": next_page_token "/cloudkms:v1/Policy": policy -"/cloudkms:v1/Policy/etag": etag -"/cloudkms:v1/Policy/iamOwned": iam_owned -"/cloudkms:v1/Policy/rules": rules -"/cloudkms:v1/Policy/rules/rule": rule "/cloudkms:v1/Policy/version": version "/cloudkms:v1/Policy/auditConfigs": audit_configs "/cloudkms:v1/Policy/auditConfigs/audit_config": audit_config "/cloudkms:v1/Policy/bindings": bindings "/cloudkms:v1/Policy/bindings/binding": binding -"/cloudkms:v1/ListLocationsResponse": list_locations_response -"/cloudkms:v1/ListLocationsResponse/nextPageToken": next_page_token -"/cloudkms:v1/ListLocationsResponse/locations": locations -"/cloudkms:v1/ListLocationsResponse/locations/location": location -"/cloudkms:v1/RestoreCryptoKeyVersionRequest": restore_crypto_key_version_request +"/cloudkms:v1/Policy/etag": etag +"/cloudkms:v1/Policy/iamOwned": iam_owned +"/cloudkms:v1/Policy/rules": rules +"/cloudkms:v1/Policy/rules/rule": rule "/cloudkms:v1/UpdateCryptoKeyPrimaryVersionRequest": update_crypto_key_primary_version_request "/cloudkms:v1/UpdateCryptoKeyPrimaryVersionRequest/cryptoKeyVersionId": crypto_key_version_id +"/cloudkms:v1/RestoreCryptoKeyVersionRequest": restore_crypto_key_version_request "/cloudkms:v1/DataAccessOptions": data_access_options "/cloudkms:v1/ListKeyRingsResponse": list_key_rings_response "/cloudkms:v1/ListKeyRingsResponse/keyRings": key_rings @@ -14327,17 +14272,83 @@ "/cloudkms:v1/ListKeyRingsResponse/nextPageToken": next_page_token "/cloudkms:v1/ListKeyRingsResponse/totalSize": total_size "/cloudkms:v1/AuditConfig": audit_config +"/cloudkms:v1/AuditConfig/exemptedMembers": exempted_members +"/cloudkms:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member "/cloudkms:v1/AuditConfig/service": service "/cloudkms:v1/AuditConfig/auditLogConfigs": audit_log_configs "/cloudkms:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/cloudkms:v1/AuditConfig/exemptedMembers": exempted_members -"/cloudkms:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member "/cloudkms:v1/CryptoKeyVersion": crypto_key_version +"/cloudkms:v1/CryptoKeyVersion/createTime": create_time "/cloudkms:v1/CryptoKeyVersion/state": state "/cloudkms:v1/CryptoKeyVersion/name": name "/cloudkms:v1/CryptoKeyVersion/destroyEventTime": destroy_event_time "/cloudkms:v1/CryptoKeyVersion/destroyTime": destroy_time -"/cloudkms:v1/CryptoKeyVersion/createTime": create_time +"/cloudkms:v1/CloudAuditOptions": cloud_audit_options +"/cloudkms:v1/CloudAuditOptions/logName": log_name +"/cloudkms:v1/Binding": binding +"/cloudkms:v1/Binding/condition": condition +"/cloudkms:v1/Binding/members": members +"/cloudkms:v1/Binding/members/member": member +"/cloudkms:v1/Binding/role": role +"/cloudkms:v1/Expr": expr +"/cloudkms:v1/Expr/location": location +"/cloudkms:v1/Expr/title": title +"/cloudkms:v1/Expr/description": description +"/cloudkms:v1/Expr/expression": expression +"/cloudkms:v1/EncryptRequest": encrypt_request +"/cloudkms:v1/EncryptRequest/plaintext": plaintext +"/cloudkms:v1/EncryptRequest/additionalAuthenticatedData": additional_authenticated_data +"/cloudkms:v1/ListCryptoKeyVersionsResponse": list_crypto_key_versions_response +"/cloudkms:v1/ListCryptoKeyVersionsResponse/nextPageToken": next_page_token +"/cloudkms:v1/ListCryptoKeyVersionsResponse/totalSize": total_size +"/cloudkms:v1/ListCryptoKeyVersionsResponse/cryptoKeyVersions": crypto_key_versions +"/cloudkms:v1/ListCryptoKeyVersionsResponse/cryptoKeyVersions/crypto_key_version": crypto_key_version +"/cloudkms:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudkms:v1/TestIamPermissionsResponse/permissions": permissions +"/cloudkms:v1/TestIamPermissionsResponse/permissions/permission": permission +"/cloudkms:v1/DestroyCryptoKeyVersionRequest": destroy_crypto_key_version_request +"/cloudkms:v1/CryptoKey": crypto_key +"/cloudkms:v1/CryptoKey/name": name +"/cloudkms:v1/CryptoKey/purpose": purpose +"/cloudkms:v1/CryptoKey/nextRotationTime": next_rotation_time +"/cloudkms:v1/CryptoKey/createTime": create_time +"/cloudkms:v1/CryptoKey/rotationPeriod": rotation_period +"/cloudkms:v1/CryptoKey/primary": primary +"/cloudkms:v1/Rule": rule +"/cloudkms:v1/Rule/description": description +"/cloudkms:v1/Rule/conditions": conditions +"/cloudkms:v1/Rule/conditions/condition": condition +"/cloudkms:v1/Rule/logConfig": log_config +"/cloudkms:v1/Rule/logConfig/log_config": log_config +"/cloudkms:v1/Rule/in": in +"/cloudkms:v1/Rule/in/in": in +"/cloudkms:v1/Rule/permissions": permissions +"/cloudkms:v1/Rule/permissions/permission": permission +"/cloudkms:v1/Rule/action": action +"/cloudkms:v1/Rule/notIn": not_in +"/cloudkms:v1/Rule/notIn/not_in": not_in +"/cloudkms:v1/LogConfig": log_config +"/cloudkms:v1/LogConfig/counter": counter +"/cloudkms:v1/LogConfig/dataAccess": data_access +"/cloudkms:v1/LogConfig/cloudAudit": cloud_audit +"/cloudkms:v1/SetIamPolicyRequest": set_iam_policy_request +"/cloudkms:v1/SetIamPolicyRequest/policy": policy +"/cloudkms:v1/SetIamPolicyRequest/updateMask": update_mask +"/cloudkms:v1/DecryptRequest": decrypt_request +"/cloudkms:v1/DecryptRequest/additionalAuthenticatedData": additional_authenticated_data +"/cloudkms:v1/DecryptRequest/ciphertext": ciphertext +"/cloudkms:v1/Location": location +"/cloudkms:v1/Location/labels": labels +"/cloudkms:v1/Location/labels/label": label +"/cloudkms:v1/Location/name": name +"/cloudkms:v1/Location/locationId": location_id +"/cloudkms:v1/Location/metadata": metadata +"/cloudkms:v1/Location/metadata/metadatum": metadatum +"/cloudkms:v1/ListCryptoKeysResponse": list_crypto_keys_response +"/cloudkms:v1/ListCryptoKeysResponse/nextPageToken": next_page_token +"/cloudkms:v1/ListCryptoKeysResponse/totalSize": total_size +"/cloudkms:v1/ListCryptoKeysResponse/cryptoKeys": crypto_keys +"/cloudkms:v1/ListCryptoKeysResponse/cryptoKeys/crypto_key": crypto_key "/cloudmonitoring:v2beta2/fields": fields "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user @@ -14464,13 +14475,19 @@ "/cloudresourcemanager:v1/key": key "/cloudresourcemanager:v1/quotaUser": quota_user "/cloudresourcemanager:v1/fields": fields -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.search": search_organizations +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies": list_organization_org_policies +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints": list_organization_available_org_policy_constraints +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getIamPolicy": get_organization_iam_policy +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getIamPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.organizations.getOrgPolicy": get_organization_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.organizations.getOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.get": get_organization -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.get/name": name +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.search": search_organizations "/cloudresourcemanager:v1/cloudresourcemanager.organizations.getEffectiveOrgPolicy": get_organization_effective_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.organizations.getEffectiveOrgPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.get": get_organization +"/cloudresourcemanager:v1/cloudresourcemanager.organizations.get/name": name "/cloudresourcemanager:v1/cloudresourcemanager.organizations.testIamPermissions": test_organization_iam_permissions "/cloudresourcemanager:v1/cloudresourcemanager.organizations.testIamPermissions/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.organizations.clearOrgPolicy": clear_organization_org_policy @@ -14479,37 +14496,27 @@ "/cloudresourcemanager:v1/cloudresourcemanager.organizations.setOrgPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.organizations.setIamPolicy": set_organization_iam_policy "/cloudresourcemanager:v1/cloudresourcemanager.organizations.setIamPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies": list_organization_org_policies -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listOrgPolicies/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints": list_organization_available_org_policy_constraints -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getIamPolicy": get_organization_iam_policy -"/cloudresourcemanager:v1/cloudresourcemanager.organizations.getIamPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.operations.get": get_operation +"/cloudresourcemanager:v1/cloudresourcemanager.operations.get/name": name "/cloudresourcemanager:v1/cloudresourcemanager.liens.delete": delete_lien "/cloudresourcemanager:v1/cloudresourcemanager.liens.delete/name": name "/cloudresourcemanager:v1/cloudresourcemanager.liens.list": list_liens +"/cloudresourcemanager:v1/cloudresourcemanager.liens.list/parent": parent "/cloudresourcemanager:v1/cloudresourcemanager.liens.list/pageToken": page_token "/cloudresourcemanager:v1/cloudresourcemanager.liens.list/pageSize": page_size -"/cloudresourcemanager:v1/cloudresourcemanager.liens.list/parent": parent "/cloudresourcemanager:v1/cloudresourcemanager.liens.create": create_lien -"/cloudresourcemanager:v1/cloudresourcemanager.operations.get": get_operation -"/cloudresourcemanager:v1/cloudresourcemanager.operations.get/name": name -"/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy": get_folder_effective_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.folders.clearOrgPolicy": clear_folder_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.folders.clearOrgPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.folders.setOrgPolicy": set_folder_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.folders.setOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.folders.listOrgPolicies": list_folder_org_policies -"/cloudresourcemanager:v1/cloudresourcemanager.folders.listOrgPolicies/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.folders.listAvailableOrgPolicyConstraints": list_folder_available_org_policy_constraints "/cloudresourcemanager:v1/cloudresourcemanager.folders.listAvailableOrgPolicyConstraints/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.folders.listOrgPolicies": list_folder_org_policies +"/cloudresourcemanager:v1/cloudresourcemanager.folders.listOrgPolicies/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.folders.getOrgPolicy": get_folder_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.folders.getOrgPolicy/resource": resource -"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete": delete_project -"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete/projectId": project_id -"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicy": clear_project_org_policy -"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy": get_folder_effective_org_policy +"/cloudresourcemanager:v1/cloudresourcemanager.folders.getEffectiveOrgPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy "/cloudresourcemanager:v1/cloudresourcemanager.projects.setIamPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.listAvailableOrgPolicyConstraints": list_project_available_org_policy_constraints @@ -14525,9 +14532,9 @@ "/cloudresourcemanager:v1/cloudresourcemanager.projects.update": update_project "/cloudresourcemanager:v1/cloudresourcemanager.projects.update/projectId": project_id "/cloudresourcemanager:v1/cloudresourcemanager.projects.list": list_projects +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageSize": page_size "/cloudresourcemanager:v1/cloudresourcemanager.projects.list/filter": filter "/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageToken": page_token -"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageSize": page_size "/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicy": set_project_org_policy "/cloudresourcemanager:v1/cloudresourcemanager.projects.setOrgPolicy/resource": resource "/cloudresourcemanager:v1/cloudresourcemanager.projects.create": create_project @@ -14539,104 +14546,10 @@ "/cloudresourcemanager:v1/cloudresourcemanager.projects.getAncestry/projectId": project_id "/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions "/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions/resource": resource -"/cloudresourcemanager:v1/GetEffectiveOrgPolicyRequest": get_effective_org_policy_request -"/cloudresourcemanager:v1/GetEffectiveOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1/ListOrgPoliciesRequest": list_org_policies_request -"/cloudresourcemanager:v1/ListOrgPoliciesRequest/pageToken": page_token -"/cloudresourcemanager:v1/ListOrgPoliciesRequest/pageSize": page_size -"/cloudresourcemanager:v1/AuditConfig": audit_config -"/cloudresourcemanager:v1/AuditConfig/auditLogConfigs": audit_log_configs -"/cloudresourcemanager:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/cloudresourcemanager:v1/AuditConfig/service": service -"/cloudresourcemanager:v1/Operation": operation -"/cloudresourcemanager:v1/Operation/done": done -"/cloudresourcemanager:v1/Operation/response": response -"/cloudresourcemanager:v1/Operation/response/response": response -"/cloudresourcemanager:v1/Operation/name": name -"/cloudresourcemanager:v1/Operation/error": error -"/cloudresourcemanager:v1/Operation/metadata": metadata -"/cloudresourcemanager:v1/Operation/metadata/metadatum": metadatum -"/cloudresourcemanager:v1/ListLiensResponse": list_liens_response -"/cloudresourcemanager:v1/ListLiensResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1/ListLiensResponse/liens": liens -"/cloudresourcemanager:v1/ListLiensResponse/liens/lien": lien -"/cloudresourcemanager:v1/Constraint": constraint -"/cloudresourcemanager:v1/Constraint/version": version -"/cloudresourcemanager:v1/Constraint/listConstraint": list_constraint -"/cloudresourcemanager:v1/Constraint/displayName": display_name -"/cloudresourcemanager:v1/Constraint/description": description -"/cloudresourcemanager:v1/Constraint/booleanConstraint": boolean_constraint -"/cloudresourcemanager:v1/Constraint/constraintDefault": constraint_default -"/cloudresourcemanager:v1/Constraint/name": name -"/cloudresourcemanager:v1/Status": status -"/cloudresourcemanager:v1/Status/details": details -"/cloudresourcemanager:v1/Status/details/detail": detail -"/cloudresourcemanager:v1/Status/details/detail/detail": detail -"/cloudresourcemanager:v1/Status/code": code -"/cloudresourcemanager:v1/Status/message": message -"/cloudresourcemanager:v1/Binding": binding -"/cloudresourcemanager:v1/Binding/members": members -"/cloudresourcemanager:v1/Binding/members/member": member -"/cloudresourcemanager:v1/Binding/role": role -"/cloudresourcemanager:v1/GetOrgPolicyRequest": get_org_policy_request -"/cloudresourcemanager:v1/GetOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1/RestoreDefault": restore_default -"/cloudresourcemanager:v1/ClearOrgPolicyRequest": clear_org_policy_request -"/cloudresourcemanager:v1/ClearOrgPolicyRequest/etag": etag -"/cloudresourcemanager:v1/ClearOrgPolicyRequest/constraint": constraint -"/cloudresourcemanager:v1/UndeleteProjectRequest": undelete_project_request -"/cloudresourcemanager:v1/ProjectCreationStatus": project_creation_status -"/cloudresourcemanager:v1/ProjectCreationStatus/ready": ready -"/cloudresourcemanager:v1/ProjectCreationStatus/createTime": create_time -"/cloudresourcemanager:v1/ProjectCreationStatus/gettable": gettable -"/cloudresourcemanager:v1/BooleanConstraint": boolean_constraint -"/cloudresourcemanager:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions": permissions -"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions/permission": permission -"/cloudresourcemanager:v1/GetIamPolicyRequest": get_iam_policy_request -"/cloudresourcemanager:v1/OrganizationOwner": organization_owner -"/cloudresourcemanager:v1/OrganizationOwner/directoryCustomerId": directory_customer_id -"/cloudresourcemanager:v1/ListProjectsResponse": list_projects_response -"/cloudresourcemanager:v1/ListProjectsResponse/projects": projects -"/cloudresourcemanager:v1/ListProjectsResponse/projects/project": project -"/cloudresourcemanager:v1/ListProjectsResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1/Project": project -"/cloudresourcemanager:v1/Project/projectNumber": project_number -"/cloudresourcemanager:v1/Project/parent": parent -"/cloudresourcemanager:v1/Project/createTime": create_time -"/cloudresourcemanager:v1/Project/labels": labels -"/cloudresourcemanager:v1/Project/labels/label": label -"/cloudresourcemanager:v1/Project/name": name -"/cloudresourcemanager:v1/Project/projectId": project_id -"/cloudresourcemanager:v1/Project/lifecycleState": lifecycle_state -"/cloudresourcemanager:v1/SearchOrganizationsResponse": search_organizations_response -"/cloudresourcemanager:v1/SearchOrganizationsResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1/SearchOrganizationsResponse/organizations": organizations -"/cloudresourcemanager:v1/SearchOrganizationsResponse/organizations/organization": organization -"/cloudresourcemanager:v1/ListOrgPoliciesResponse": list_org_policies_response -"/cloudresourcemanager:v1/ListOrgPoliciesResponse/policies": policies -"/cloudresourcemanager:v1/ListOrgPoliciesResponse/policies/policy": policy -"/cloudresourcemanager:v1/ListOrgPoliciesResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1/FolderOperationError": folder_operation_error -"/cloudresourcemanager:v1/FolderOperationError/errorMessageId": error_message_id -"/cloudresourcemanager:v1/OrgPolicy": org_policy -"/cloudresourcemanager:v1/OrgPolicy/version": version -"/cloudresourcemanager:v1/OrgPolicy/restoreDefault": restore_default -"/cloudresourcemanager:v1/OrgPolicy/listPolicy": list_policy -"/cloudresourcemanager:v1/OrgPolicy/etag": etag -"/cloudresourcemanager:v1/OrgPolicy/constraint": constraint -"/cloudresourcemanager:v1/OrgPolicy/booleanPolicy": boolean_policy -"/cloudresourcemanager:v1/OrgPolicy/updateTime": update_time -"/cloudresourcemanager:v1/BooleanPolicy": boolean_policy -"/cloudresourcemanager:v1/BooleanPolicy/enforced": enforced -"/cloudresourcemanager:v1/Lien": lien -"/cloudresourcemanager:v1/Lien/parent": parent -"/cloudresourcemanager:v1/Lien/createTime": create_time -"/cloudresourcemanager:v1/Lien/origin": origin -"/cloudresourcemanager:v1/Lien/name": name -"/cloudresourcemanager:v1/Lien/reason": reason -"/cloudresourcemanager:v1/Lien/restrictions": restrictions -"/cloudresourcemanager:v1/Lien/restrictions/restriction": restriction +"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete": delete_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete/projectId": project_id +"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicy": clear_project_org_policy +"/cloudresourcemanager:v1/cloudresourcemanager.projects.clearOrgPolicy/resource": resource "/cloudresourcemanager:v1/Ancestor": ancestor "/cloudresourcemanager:v1/Ancestor/resourceId": resource_id "/cloudresourcemanager:v1/ListConstraint": list_constraint @@ -14648,30 +14561,30 @@ "/cloudresourcemanager:v1/SetIamPolicyRequest/updateMask": update_mask "/cloudresourcemanager:v1/Empty": empty "/cloudresourcemanager:v1/Organization": organization -"/cloudresourcemanager:v1/Organization/creationTime": creation_time -"/cloudresourcemanager:v1/Organization/owner": owner "/cloudresourcemanager:v1/Organization/lifecycleState": lifecycle_state +"/cloudresourcemanager:v1/Organization/owner": owner "/cloudresourcemanager:v1/Organization/name": name "/cloudresourcemanager:v1/Organization/displayName": display_name +"/cloudresourcemanager:v1/Organization/creationTime": creation_time "/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsResponse": list_available_org_policy_constraints_response "/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsResponse/nextPageToken": next_page_token "/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsResponse/constraints": constraints "/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsResponse/constraints/constraint": constraint "/cloudresourcemanager:v1/ListPolicy": list_policy +"/cloudresourcemanager:v1/ListPolicy/inheritFromParent": inherit_from_parent +"/cloudresourcemanager:v1/ListPolicy/suggestedValue": suggested_value +"/cloudresourcemanager:v1/ListPolicy/deniedValues": denied_values +"/cloudresourcemanager:v1/ListPolicy/deniedValues/denied_value": denied_value "/cloudresourcemanager:v1/ListPolicy/allValues": all_values "/cloudresourcemanager:v1/ListPolicy/allowedValues": allowed_values "/cloudresourcemanager:v1/ListPolicy/allowedValues/allowed_value": allowed_value -"/cloudresourcemanager:v1/ListPolicy/suggestedValue": suggested_value -"/cloudresourcemanager:v1/ListPolicy/inheritFromParent": inherit_from_parent -"/cloudresourcemanager:v1/ListPolicy/deniedValues": denied_values -"/cloudresourcemanager:v1/ListPolicy/deniedValues/denied_value": denied_value "/cloudresourcemanager:v1/GetAncestryResponse": get_ancestry_response "/cloudresourcemanager:v1/GetAncestryResponse/ancestor": ancestor "/cloudresourcemanager:v1/GetAncestryResponse/ancestor/ancestor": ancestor "/cloudresourcemanager:v1/AuditLogConfig": audit_log_config +"/cloudresourcemanager:v1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v1/AuditLogConfig/exemptedMembers": exempted_members "/cloudresourcemanager:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member -"/cloudresourcemanager:v1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v1/SearchOrganizationsRequest": search_organizations_request "/cloudresourcemanager:v1/SearchOrganizationsRequest/filter": filter "/cloudresourcemanager:v1/SearchOrganizationsRequest/pageToken": page_token @@ -14680,39 +14593,129 @@ "/cloudresourcemanager:v1/TestIamPermissionsRequest": test_iam_permissions_request "/cloudresourcemanager:v1/TestIamPermissionsRequest/permissions": permissions "/cloudresourcemanager:v1/TestIamPermissionsRequest/permissions/permission": permission -"/cloudresourcemanager:v1/FolderOperation": folder_operation -"/cloudresourcemanager:v1/FolderOperation/operationType": operation_type -"/cloudresourcemanager:v1/FolderOperation/displayName": display_name -"/cloudresourcemanager:v1/FolderOperation/sourceParent": source_parent -"/cloudresourcemanager:v1/FolderOperation/destinationParent": destination_parent +"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest": list_available_org_policy_constraints_request +"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageToken": page_token +"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageSize": page_size "/cloudresourcemanager:v1/Policy": policy -"/cloudresourcemanager:v1/Policy/etag": etag "/cloudresourcemanager:v1/Policy/version": version "/cloudresourcemanager:v1/Policy/auditConfigs": audit_configs "/cloudresourcemanager:v1/Policy/auditConfigs/audit_config": audit_config "/cloudresourcemanager:v1/Policy/bindings": bindings "/cloudresourcemanager:v1/Policy/bindings/binding": binding -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest": list_available_org_policy_constraints_request -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageToken": page_token -"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsRequest/pageSize": page_size +"/cloudresourcemanager:v1/Policy/etag": etag +"/cloudresourcemanager:v1/FolderOperation": folder_operation +"/cloudresourcemanager:v1/FolderOperation/operationType": operation_type +"/cloudresourcemanager:v1/FolderOperation/sourceParent": source_parent +"/cloudresourcemanager:v1/FolderOperation/displayName": display_name +"/cloudresourcemanager:v1/FolderOperation/destinationParent": destination_parent "/cloudresourcemanager:v1/ResourceId": resource_id "/cloudresourcemanager:v1/ResourceId/type": type "/cloudresourcemanager:v1/ResourceId/id": id -"/cloudresourcemanager:v1beta1/fields": fields +"/cloudresourcemanager:v1/GetEffectiveOrgPolicyRequest": get_effective_org_policy_request +"/cloudresourcemanager:v1/GetEffectiveOrgPolicyRequest/constraint": constraint +"/cloudresourcemanager:v1/ListOrgPoliciesRequest": list_org_policies_request +"/cloudresourcemanager:v1/ListOrgPoliciesRequest/pageToken": page_token +"/cloudresourcemanager:v1/ListOrgPoliciesRequest/pageSize": page_size +"/cloudresourcemanager:v1/AuditConfig": audit_config +"/cloudresourcemanager:v1/AuditConfig/service": service +"/cloudresourcemanager:v1/AuditConfig/auditLogConfigs": audit_log_configs +"/cloudresourcemanager:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/cloudresourcemanager:v1/Operation": operation +"/cloudresourcemanager:v1/Operation/metadata": metadata +"/cloudresourcemanager:v1/Operation/metadata/metadatum": metadatum +"/cloudresourcemanager:v1/Operation/done": done +"/cloudresourcemanager:v1/Operation/response": response +"/cloudresourcemanager:v1/Operation/response/response": response +"/cloudresourcemanager:v1/Operation/name": name +"/cloudresourcemanager:v1/Operation/error": error +"/cloudresourcemanager:v1/Constraint": constraint +"/cloudresourcemanager:v1/Constraint/listConstraint": list_constraint +"/cloudresourcemanager:v1/Constraint/version": version +"/cloudresourcemanager:v1/Constraint/displayName": display_name +"/cloudresourcemanager:v1/Constraint/description": description +"/cloudresourcemanager:v1/Constraint/booleanConstraint": boolean_constraint +"/cloudresourcemanager:v1/Constraint/constraintDefault": constraint_default +"/cloudresourcemanager:v1/Constraint/name": name +"/cloudresourcemanager:v1/ListLiensResponse": list_liens_response +"/cloudresourcemanager:v1/ListLiensResponse/liens": liens +"/cloudresourcemanager:v1/ListLiensResponse/liens/lien": lien +"/cloudresourcemanager:v1/ListLiensResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/Status": status +"/cloudresourcemanager:v1/Status/code": code +"/cloudresourcemanager:v1/Status/message": message +"/cloudresourcemanager:v1/Status/details": details +"/cloudresourcemanager:v1/Status/details/detail": detail +"/cloudresourcemanager:v1/Status/details/detail/detail": detail +"/cloudresourcemanager:v1/Binding": binding +"/cloudresourcemanager:v1/Binding/members": members +"/cloudresourcemanager:v1/Binding/members/member": member +"/cloudresourcemanager:v1/Binding/role": role +"/cloudresourcemanager:v1/RestoreDefault": restore_default +"/cloudresourcemanager:v1/GetOrgPolicyRequest": get_org_policy_request +"/cloudresourcemanager:v1/GetOrgPolicyRequest/constraint": constraint +"/cloudresourcemanager:v1/ClearOrgPolicyRequest": clear_org_policy_request +"/cloudresourcemanager:v1/ClearOrgPolicyRequest/etag": etag +"/cloudresourcemanager:v1/ClearOrgPolicyRequest/constraint": constraint +"/cloudresourcemanager:v1/UndeleteProjectRequest": undelete_project_request +"/cloudresourcemanager:v1/ProjectCreationStatus": project_creation_status +"/cloudresourcemanager:v1/ProjectCreationStatus/ready": ready +"/cloudresourcemanager:v1/ProjectCreationStatus/gettable": gettable +"/cloudresourcemanager:v1/ProjectCreationStatus/createTime": create_time +"/cloudresourcemanager:v1/BooleanConstraint": boolean_constraint +"/cloudresourcemanager:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions": permissions +"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions/permission": permission +"/cloudresourcemanager:v1/GetIamPolicyRequest": get_iam_policy_request +"/cloudresourcemanager:v1/OrganizationOwner": organization_owner +"/cloudresourcemanager:v1/OrganizationOwner/directoryCustomerId": directory_customer_id +"/cloudresourcemanager:v1/ListProjectsResponse": list_projects_response +"/cloudresourcemanager:v1/ListProjectsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/ListProjectsResponse/projects": projects +"/cloudresourcemanager:v1/ListProjectsResponse/projects/project": project +"/cloudresourcemanager:v1/Project": project +"/cloudresourcemanager:v1/Project/name": name +"/cloudresourcemanager:v1/Project/projectId": project_id +"/cloudresourcemanager:v1/Project/lifecycleState": lifecycle_state +"/cloudresourcemanager:v1/Project/projectNumber": project_number +"/cloudresourcemanager:v1/Project/parent": parent +"/cloudresourcemanager:v1/Project/labels": labels +"/cloudresourcemanager:v1/Project/labels/label": label +"/cloudresourcemanager:v1/Project/createTime": create_time +"/cloudresourcemanager:v1/ListOrgPoliciesResponse": list_org_policies_response +"/cloudresourcemanager:v1/ListOrgPoliciesResponse/policies": policies +"/cloudresourcemanager:v1/ListOrgPoliciesResponse/policies/policy": policy +"/cloudresourcemanager:v1/ListOrgPoliciesResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/SearchOrganizationsResponse": search_organizations_response +"/cloudresourcemanager:v1/SearchOrganizationsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/SearchOrganizationsResponse/organizations": organizations +"/cloudresourcemanager:v1/SearchOrganizationsResponse/organizations/organization": organization +"/cloudresourcemanager:v1/FolderOperationError": folder_operation_error +"/cloudresourcemanager:v1/FolderOperationError/errorMessageId": error_message_id +"/cloudresourcemanager:v1/OrgPolicy": org_policy +"/cloudresourcemanager:v1/OrgPolicy/updateTime": update_time +"/cloudresourcemanager:v1/OrgPolicy/version": version +"/cloudresourcemanager:v1/OrgPolicy/restoreDefault": restore_default +"/cloudresourcemanager:v1/OrgPolicy/listPolicy": list_policy +"/cloudresourcemanager:v1/OrgPolicy/etag": etag +"/cloudresourcemanager:v1/OrgPolicy/constraint": constraint +"/cloudresourcemanager:v1/OrgPolicy/booleanPolicy": boolean_policy +"/cloudresourcemanager:v1/BooleanPolicy": boolean_policy +"/cloudresourcemanager:v1/BooleanPolicy/enforced": enforced +"/cloudresourcemanager:v1/Lien": lien +"/cloudresourcemanager:v1/Lien/name": name +"/cloudresourcemanager:v1/Lien/reason": reason +"/cloudresourcemanager:v1/Lien/origin": origin +"/cloudresourcemanager:v1/Lien/restrictions": restrictions +"/cloudresourcemanager:v1/Lien/restrictions/restriction": restriction +"/cloudresourcemanager:v1/Lien/parent": parent +"/cloudresourcemanager:v1/Lien/createTime": create_time "/cloudresourcemanager:v1beta1/key": key "/cloudresourcemanager:v1beta1/quotaUser": quota_user -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete": delete_project -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete/projectId": project_id -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list": list_projects -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/filter": filter -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/pageToken": page_token -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/pageSize": page_size -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.create": create_project -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.create/useLegacyStack": use_legacy_stack +"/cloudresourcemanager:v1beta1/fields": fields "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.create": create_project +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.create/useLegacyStack": use_legacy_stack "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_project_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete": undelete_project @@ -14723,38 +14726,95 @@ "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry/projectId": project_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.update": update_project "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.update/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete": delete_project +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list": list_projects +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/filter": filter +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/pageToken": page_token +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.list/pageSize": page_size "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list": list_organizations +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/filter": filter "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/pageToken": page_token "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/pageSize": page_size -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/filter": filter "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy": set_organization_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy": get_organization_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get": get_organization -"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/name": name "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/organizationId": organization_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/name": name "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update": update_organization "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update/name": name "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.testIamPermissions": test_organization_iam_permissions "/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.testIamPermissions/resource": resource +"/cloudresourcemanager:v1beta1/AuditConfig": audit_config +"/cloudresourcemanager:v1beta1/AuditConfig/service": service +"/cloudresourcemanager:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs +"/cloudresourcemanager:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/cloudresourcemanager:v1beta1/Ancestor": ancestor +"/cloudresourcemanager:v1beta1/Ancestor/resourceId": resource_id +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse": list_organizations_response +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations": organizations +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations/organization": organization +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest": set_iam_policy_request +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/updateMask": update_mask +"/cloudresourcemanager:v1beta1/Binding": binding +"/cloudresourcemanager:v1beta1/Binding/members": members +"/cloudresourcemanager:v1beta1/Binding/members/member": member +"/cloudresourcemanager:v1beta1/Binding/role": role +"/cloudresourcemanager:v1beta1/Empty": empty +"/cloudresourcemanager:v1beta1/UndeleteProjectRequest": undelete_project_request +"/cloudresourcemanager:v1beta1/Organization": organization +"/cloudresourcemanager:v1beta1/Organization/creationTime": creation_time +"/cloudresourcemanager:v1beta1/Organization/owner": owner +"/cloudresourcemanager:v1beta1/Organization/name": name +"/cloudresourcemanager:v1beta1/Organization/organizationId": organization_id +"/cloudresourcemanager:v1beta1/Organization/lifecycleState": lifecycle_state +"/cloudresourcemanager:v1beta1/Organization/displayName": display_name +"/cloudresourcemanager:v1beta1/ProjectCreationStatus": project_creation_status +"/cloudresourcemanager:v1beta1/ProjectCreationStatus/ready": ready +"/cloudresourcemanager:v1beta1/ProjectCreationStatus/gettable": gettable +"/cloudresourcemanager:v1beta1/ProjectCreationStatus/createTime": create_time +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions": permissions +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions/permission": permission +"/cloudresourcemanager:v1beta1/GetIamPolicyRequest": get_iam_policy_request +"/cloudresourcemanager:v1beta1/GetAncestryResponse": get_ancestry_response +"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor": ancestor +"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor/ancestor": ancestor +"/cloudresourcemanager:v1beta1/OrganizationOwner": organization_owner +"/cloudresourcemanager:v1beta1/OrganizationOwner/directoryCustomerId": directory_customer_id +"/cloudresourcemanager:v1beta1/ListProjectsResponse": list_projects_response +"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects": projects +"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project +"/cloudresourcemanager:v1beta1/ListProjectsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1beta1/AuditLogConfig": audit_log_config +"/cloudresourcemanager:v1beta1/AuditLogConfig/exemptedMembers": exempted_members +"/cloudresourcemanager:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/cloudresourcemanager:v1beta1/AuditLogConfig/logType": log_type "/cloudresourcemanager:v1beta1/GetAncestryRequest": get_ancestry_request "/cloudresourcemanager:v1beta1/Project": project +"/cloudresourcemanager:v1beta1/Project/lifecycleState": lifecycle_state "/cloudresourcemanager:v1beta1/Project/projectNumber": project_number "/cloudresourcemanager:v1beta1/Project/parent": parent -"/cloudresourcemanager:v1beta1/Project/createTime": create_time "/cloudresourcemanager:v1beta1/Project/labels": labels "/cloudresourcemanager:v1beta1/Project/labels/label": label +"/cloudresourcemanager:v1beta1/Project/createTime": create_time "/cloudresourcemanager:v1beta1/Project/name": name "/cloudresourcemanager:v1beta1/Project/projectId": project_id -"/cloudresourcemanager:v1beta1/Project/lifecycleState": lifecycle_state "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions": permissions "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions/permission": permission +"/cloudresourcemanager:v1beta1/FolderOperationError": folder_operation_error +"/cloudresourcemanager:v1beta1/FolderOperationError/errorMessageId": error_message_id "/cloudresourcemanager:v1beta1/FolderOperation": folder_operation "/cloudresourcemanager:v1beta1/FolderOperation/operationType": operation_type -"/cloudresourcemanager:v1beta1/FolderOperation/displayName": display_name "/cloudresourcemanager:v1beta1/FolderOperation/sourceParent": source_parent +"/cloudresourcemanager:v1beta1/FolderOperation/displayName": display_name "/cloudresourcemanager:v1beta1/FolderOperation/destinationParent": destination_parent "/cloudresourcemanager:v1beta1/Policy": policy "/cloudresourcemanager:v1beta1/Policy/etag": etag @@ -14763,76 +14823,36 @@ "/cloudresourcemanager:v1beta1/Policy/auditConfigs/audit_config": audit_config "/cloudresourcemanager:v1beta1/Policy/bindings": bindings "/cloudresourcemanager:v1beta1/Policy/bindings/binding": binding -"/cloudresourcemanager:v1beta1/FolderOperationError": folder_operation_error -"/cloudresourcemanager:v1beta1/FolderOperationError/errorMessageId": error_message_id "/cloudresourcemanager:v1beta1/ResourceId": resource_id "/cloudresourcemanager:v1beta1/ResourceId/type": type "/cloudresourcemanager:v1beta1/ResourceId/id": id -"/cloudresourcemanager:v1beta1/AuditConfig": audit_config -"/cloudresourcemanager:v1beta1/AuditConfig/service": service -"/cloudresourcemanager:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs -"/cloudresourcemanager:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/cloudresourcemanager:v1beta1/Ancestor": ancestor -"/cloudresourcemanager:v1beta1/Ancestor/resourceId": resource_id -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest": set_iam_policy_request -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy -"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/updateMask": update_mask -"/cloudresourcemanager:v1beta1/ListOrganizationsResponse": list_organizations_response -"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/nextPageToken": next_page_token -"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations": organizations -"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations/organization": organization -"/cloudresourcemanager:v1beta1/Binding": binding -"/cloudresourcemanager:v1beta1/Binding/members": members -"/cloudresourcemanager:v1beta1/Binding/members/member": member -"/cloudresourcemanager:v1beta1/Binding/role": role -"/cloudresourcemanager:v1beta1/Empty": empty -"/cloudresourcemanager:v1beta1/UndeleteProjectRequest": undelete_project_request -"/cloudresourcemanager:v1beta1/Organization": organization -"/cloudresourcemanager:v1beta1/Organization/owner": owner -"/cloudresourcemanager:v1beta1/Organization/name": name -"/cloudresourcemanager:v1beta1/Organization/organizationId": organization_id -"/cloudresourcemanager:v1beta1/Organization/lifecycleState": lifecycle_state -"/cloudresourcemanager:v1beta1/Organization/displayName": display_name -"/cloudresourcemanager:v1beta1/Organization/creationTime": creation_time -"/cloudresourcemanager:v1beta1/ProjectCreationStatus": project_creation_status -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/createTime": create_time -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/gettable": gettable -"/cloudresourcemanager:v1beta1/ProjectCreationStatus/ready": ready -"/cloudresourcemanager:v1beta1/GetIamPolicyRequest": get_iam_policy_request -"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response -"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions": permissions -"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions/permission": permission -"/cloudresourcemanager:v1beta1/GetAncestryResponse": get_ancestry_response -"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor": ancestor -"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor/ancestor": ancestor -"/cloudresourcemanager:v1beta1/OrganizationOwner": organization_owner -"/cloudresourcemanager:v1beta1/OrganizationOwner/directoryCustomerId": directory_customer_id -"/cloudresourcemanager:v1beta1/AuditLogConfig": audit_log_config -"/cloudresourcemanager:v1beta1/AuditLogConfig/exemptedMembers": exempted_members -"/cloudresourcemanager:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member -"/cloudresourcemanager:v1beta1/AuditLogConfig/logType": log_type -"/cloudresourcemanager:v1beta1/ListProjectsResponse": list_projects_response -"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects": projects -"/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project -"/cloudresourcemanager:v1beta1/ListProjectsResponse/nextPageToken": next_page_token +"/cloudtrace:v1/key": key "/cloudtrace:v1/quotaUser": quota_user "/cloudtrace:v1/fields": fields -"/cloudtrace:v1/key": key "/cloudtrace:v1/cloudtrace.projects.patchTraces": patch_project_traces "/cloudtrace:v1/cloudtrace.projects.patchTraces/projectId": project_id +"/cloudtrace:v1/cloudtrace.projects.traces.get": get_project_trace +"/cloudtrace:v1/cloudtrace.projects.traces.get/traceId": trace_id +"/cloudtrace:v1/cloudtrace.projects.traces.get/projectId": project_id "/cloudtrace:v1/cloudtrace.projects.traces.list": list_project_traces -"/cloudtrace:v1/cloudtrace.projects.traces.list/view": view "/cloudtrace:v1/cloudtrace.projects.traces.list/orderBy": order_by "/cloudtrace:v1/cloudtrace.projects.traces.list/projectId": project_id "/cloudtrace:v1/cloudtrace.projects.traces.list/filter": filter "/cloudtrace:v1/cloudtrace.projects.traces.list/endTime": end_time -"/cloudtrace:v1/cloudtrace.projects.traces.list/pageToken": page_token "/cloudtrace:v1/cloudtrace.projects.traces.list/startTime": start_time +"/cloudtrace:v1/cloudtrace.projects.traces.list/pageToken": page_token "/cloudtrace:v1/cloudtrace.projects.traces.list/pageSize": page_size -"/cloudtrace:v1/cloudtrace.projects.traces.get": get_project_trace -"/cloudtrace:v1/cloudtrace.projects.traces.get/traceId": trace_id -"/cloudtrace:v1/cloudtrace.projects.traces.get/projectId": project_id +"/cloudtrace:v1/cloudtrace.projects.traces.list/view": view +"/cloudtrace:v1/Trace": trace +"/cloudtrace:v1/Trace/spans": spans +"/cloudtrace:v1/Trace/spans/span": span +"/cloudtrace:v1/Trace/projectId": project_id +"/cloudtrace:v1/Trace/traceId": trace_id +"/cloudtrace:v1/Traces": traces +"/cloudtrace:v1/Traces/traces": traces +"/cloudtrace:v1/Traces/traces/trace": trace "/cloudtrace:v1/TraceSpan": trace_span +"/cloudtrace:v1/TraceSpan/parentSpanId": parent_span_id "/cloudtrace:v1/TraceSpan/endTime": end_time "/cloudtrace:v1/TraceSpan/startTime": start_time "/cloudtrace:v1/TraceSpan/kind": kind @@ -14840,20 +14860,11 @@ "/cloudtrace:v1/TraceSpan/labels/label": label "/cloudtrace:v1/TraceSpan/name": name "/cloudtrace:v1/TraceSpan/spanId": span_id -"/cloudtrace:v1/TraceSpan/parentSpanId": parent_span_id +"/cloudtrace:v1/Empty": empty "/cloudtrace:v1/ListTracesResponse": list_traces_response +"/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token "/cloudtrace:v1/ListTracesResponse/traces": traces "/cloudtrace:v1/ListTracesResponse/traces/trace": trace -"/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token -"/cloudtrace:v1/Empty": empty -"/cloudtrace:v1/Trace": trace -"/cloudtrace:v1/Trace/projectId": project_id -"/cloudtrace:v1/Trace/spans": spans -"/cloudtrace:v1/Trace/spans/span": span -"/cloudtrace:v1/Trace/traceId": trace_id -"/cloudtrace:v1/Traces": traces -"/cloudtrace:v1/Traces/traces": traces -"/cloudtrace:v1/Traces/traces/trace": trace "/clouduseraccounts:beta/fields": fields "/clouduseraccounts:beta/key": key "/clouduseraccounts:beta/quotaUser": quota_user @@ -15711,6 +15722,26 @@ "/compute:v1/compute.regionBackendServices.update/backendService": backend_service "/compute:v1/compute.regionBackendServices.update/project": project "/compute:v1/compute.regionBackendServices.update/region": region +"/compute:v1/compute.regionCommitments.aggregatedList": aggregated_region_commitment_list +"/compute:v1/compute.regionCommitments.aggregatedList/filter": filter +"/compute:v1/compute.regionCommitments.aggregatedList/maxResults": max_results +"/compute:v1/compute.regionCommitments.aggregatedList/orderBy": order_by +"/compute:v1/compute.regionCommitments.aggregatedList/pageToken": page_token +"/compute:v1/compute.regionCommitments.aggregatedList/project": project +"/compute:v1/compute.regionCommitments.get": get_region_commitment +"/compute:v1/compute.regionCommitments.get/commitment": commitment +"/compute:v1/compute.regionCommitments.get/project": project +"/compute:v1/compute.regionCommitments.get/region": region +"/compute:v1/compute.regionCommitments.insert": insert_region_commitment +"/compute:v1/compute.regionCommitments.insert/project": project +"/compute:v1/compute.regionCommitments.insert/region": region +"/compute:v1/compute.regionCommitments.list": list_region_commitments +"/compute:v1/compute.regionCommitments.list/filter": filter +"/compute:v1/compute.regionCommitments.list/maxResults": max_results +"/compute:v1/compute.regionCommitments.list/orderBy": order_by +"/compute:v1/compute.regionCommitments.list/pageToken": page_token +"/compute:v1/compute.regionCommitments.list/project": project +"/compute:v1/compute.regionCommitments.list/region": region "/compute:v1/compute.regionInstanceGroupManagers.abandonInstances": abandon_region_instance_group_manager_instances "/compute:v1/compute.regionInstanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.abandonInstances/project": project @@ -16268,6 +16299,9 @@ "/compute:v1/Autoscaler/name": name "/compute:v1/Autoscaler/region": region "/compute:v1/Autoscaler/selfLink": self_link +"/compute:v1/Autoscaler/status": status +"/compute:v1/Autoscaler/statusDetails": status_details +"/compute:v1/Autoscaler/statusDetails/status_detail": status_detail "/compute:v1/Autoscaler/target": target "/compute:v1/Autoscaler/zone": zone "/compute:v1/AutoscalerAggregatedList": autoscaler_aggregated_list @@ -16284,6 +16318,9 @@ "/compute:v1/AutoscalerList/kind": kind "/compute:v1/AutoscalerList/nextPageToken": next_page_token "/compute:v1/AutoscalerList/selfLink": self_link +"/compute:v1/AutoscalerStatusDetails": autoscaler_status_details +"/compute:v1/AutoscalerStatusDetails/message": message +"/compute:v1/AutoscalerStatusDetails/type": type "/compute:v1/AutoscalersScopedList": autoscalers_scoped_list "/compute:v1/AutoscalersScopedList/autoscalers": autoscalers "/compute:v1/AutoscalersScopedList/autoscalers/autoscaler": autoscaler @@ -16406,6 +16443,45 @@ "/compute:v1/CacheKeyPolicy/queryStringBlacklist/query_string_blacklist": query_string_blacklist "/compute:v1/CacheKeyPolicy/queryStringWhitelist": query_string_whitelist "/compute:v1/CacheKeyPolicy/queryStringWhitelist/query_string_whitelist": query_string_whitelist +"/compute:v1/Commitment": commitment +"/compute:v1/Commitment/creationTimestamp": creation_timestamp +"/compute:v1/Commitment/description": description +"/compute:v1/Commitment/endTimestamp": end_timestamp +"/compute:v1/Commitment/id": id +"/compute:v1/Commitment/kind": kind +"/compute:v1/Commitment/name": name +"/compute:v1/Commitment/plan": plan +"/compute:v1/Commitment/region": region +"/compute:v1/Commitment/resources": resources +"/compute:v1/Commitment/resources/resource": resource +"/compute:v1/Commitment/selfLink": self_link +"/compute:v1/Commitment/startTimestamp": start_timestamp +"/compute:v1/Commitment/status": status +"/compute:v1/Commitment/statusMessage": status_message +"/compute:v1/CommitmentAggregatedList": commitment_aggregated_list +"/compute:v1/CommitmentAggregatedList/id": id +"/compute:v1/CommitmentAggregatedList/items": items +"/compute:v1/CommitmentAggregatedList/items/item": item +"/compute:v1/CommitmentAggregatedList/kind": kind +"/compute:v1/CommitmentAggregatedList/nextPageToken": next_page_token +"/compute:v1/CommitmentAggregatedList/selfLink": self_link +"/compute:v1/CommitmentList": commitment_list +"/compute:v1/CommitmentList/id": id +"/compute:v1/CommitmentList/items": items +"/compute:v1/CommitmentList/items/item": item +"/compute:v1/CommitmentList/kind": kind +"/compute:v1/CommitmentList/nextPageToken": next_page_token +"/compute:v1/CommitmentList/selfLink": self_link +"/compute:v1/CommitmentsScopedList": commitments_scoped_list +"/compute:v1/CommitmentsScopedList/commitments": commitments +"/compute:v1/CommitmentsScopedList/commitments/commitment": commitment +"/compute:v1/CommitmentsScopedList/warning": warning +"/compute:v1/CommitmentsScopedList/warning/code": code +"/compute:v1/CommitmentsScopedList/warning/data": data +"/compute:v1/CommitmentsScopedList/warning/data/datum": datum +"/compute:v1/CommitmentsScopedList/warning/data/datum/key": key +"/compute:v1/CommitmentsScopedList/warning/data/datum/value": value +"/compute:v1/CommitmentsScopedList/warning/message": message "/compute:v1/ConnectionDraining": connection_draining "/compute:v1/ConnectionDraining/drainingTimeoutSec": draining_timeout_sec "/compute:v1/CustomerEncryptionKey": customer_encryption_key @@ -17231,6 +17307,9 @@ "/compute:v1/RegionList/kind": kind "/compute:v1/RegionList/nextPageToken": next_page_token "/compute:v1/RegionList/selfLink": self_link +"/compute:v1/ResourceCommitment": resource_commitment +"/compute:v1/ResourceCommitment/amount": amount +"/compute:v1/ResourceCommitment/type": type "/compute:v1/ResourceGroupReference": resource_group_reference "/compute:v1/ResourceGroupReference/group": group "/compute:v1/Route": route @@ -17785,27 +17864,36 @@ "/container:v1/key": key "/container:v1/quotaUser": quota_user "/container:v1/container.projects.zones.getServerconfig": get_project_zone_serverconfig -"/container:v1/container.projects.zones.getServerconfig/zone": zone "/container:v1/container.projects.zones.getServerconfig/projectId": project_id -"/container:v1/container.projects.zones.clusters.startIpRotation": start_cluster_ip_rotation -"/container:v1/container.projects.zones.clusters.startIpRotation/zone": zone -"/container:v1/container.projects.zones.clusters.startIpRotation/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.startIpRotation/projectId": project_id +"/container:v1/container.projects.zones.getServerconfig/zone": zone +"/container:v1/container.projects.zones.clusters.update": update_cluster +"/container:v1/container.projects.zones.clusters.update/projectId": project_id +"/container:v1/container.projects.zones.clusters.update/zone": zone +"/container:v1/container.projects.zones.clusters.update/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.monitoring": monitoring_project_zone_cluster +"/container:v1/container.projects.zones.clusters.monitoring/projectId": project_id +"/container:v1/container.projects.zones.clusters.monitoring/zone": zone +"/container:v1/container.projects.zones.clusters.monitoring/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.master": master_project_zone_cluster +"/container:v1/container.projects.zones.clusters.master/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.master/projectId": project_id +"/container:v1/container.projects.zones.clusters.master/zone": zone "/container:v1/container.projects.zones.clusters.setMasterAuth": set_cluster_master_auth +"/container:v1/container.projects.zones.clusters.setMasterAuth/projectId": project_id "/container:v1/container.projects.zones.clusters.setMasterAuth/zone": zone "/container:v1/container.projects.zones.clusters.setMasterAuth/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.setMasterAuth/projectId": project_id -"/container:v1/container.projects.zones.clusters.delete/projectId": project_id -"/container:v1/container.projects.zones.clusters.delete/zone": zone -"/container:v1/container.projects.zones.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.logging": logging_project_zone_cluster +"/container:v1/container.projects.zones.clusters.logging/zone": zone +"/container:v1/container.projects.zones.clusters.logging/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.logging/projectId": project_id "/container:v1/container.projects.zones.clusters.list/projectId": project_id "/container:v1/container.projects.zones.clusters.list/zone": zone -"/container:v1/container.projects.zones.clusters.create/projectId": project_id -"/container:v1/container.projects.zones.clusters.create/zone": zone "/container:v1/container.projects.zones.clusters.resourceLabels": resource_project_zone_cluster_labels "/container:v1/container.projects.zones.clusters.resourceLabels/projectId": project_id "/container:v1/container.projects.zones.clusters.resourceLabels/zone": zone "/container:v1/container.projects.zones.clusters.resourceLabels/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.create/projectId": project_id +"/container:v1/container.projects.zones.clusters.create/zone": zone "/container:v1/container.projects.zones.clusters.completeIpRotation": complete_cluster_ip_rotation "/container:v1/container.projects.zones.clusters.completeIpRotation/projectId": project_id "/container:v1/container.projects.zones.clusters.completeIpRotation/zone": zone @@ -17814,13 +17902,56 @@ "/container:v1/container.projects.zones.clusters.get/zone": zone "/container:v1/container.projects.zones.clusters.get/clusterId": cluster_id "/container:v1/container.projects.zones.clusters.legacyAbac": legacy_project_zone_cluster_abac -"/container:v1/container.projects.zones.clusters.legacyAbac/projectId": project_id "/container:v1/container.projects.zones.clusters.legacyAbac/zone": zone "/container:v1/container.projects.zones.clusters.legacyAbac/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.update": update_cluster -"/container:v1/container.projects.zones.clusters.update/projectId": project_id -"/container:v1/container.projects.zones.clusters.update/zone": zone -"/container:v1/container.projects.zones.clusters.update/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.legacyAbac/projectId": project_id +"/container:v1/container.projects.zones.clusters.setNetworkPolicy": set_cluster_network_policy +"/container:v1/container.projects.zones.clusters.setNetworkPolicy/projectId": project_id +"/container:v1/container.projects.zones.clusters.setNetworkPolicy/zone": zone +"/container:v1/container.projects.zones.clusters.setNetworkPolicy/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.startIpRotation": start_cluster_ip_rotation +"/container:v1/container.projects.zones.clusters.startIpRotation/projectId": project_id +"/container:v1/container.projects.zones.clusters.startIpRotation/zone": zone +"/container:v1/container.projects.zones.clusters.startIpRotation/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.addons": addons_project_zone_cluster +"/container:v1/container.projects.zones.clusters.addons/projectId": project_id +"/container:v1/container.projects.zones.clusters.addons/zone": zone +"/container:v1/container.projects.zones.clusters.addons/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.delete/projectId": project_id +"/container:v1/container.projects.zones.clusters.delete/zone": zone +"/container:v1/container.projects.zones.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.locations": locations_project_zone_cluster +"/container:v1/container.projects.zones.clusters.locations/projectId": project_id +"/container:v1/container.projects.zones.clusters.locations/zone": zone +"/container:v1/container.projects.zones.clusters.locations/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.list": list_project_zone_cluster_node_pools +"/container:v1/container.projects.zones.clusters.nodePools.list/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.list/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.list/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.rollback": rollback_node_pool_upgrade +"/container:v1/container.projects.zones.clusters.nodePools.rollback/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.rollback/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.rollback/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.rollback/nodePoolId": node_pool_id +"/container:v1/container.projects.zones.clusters.nodePools.create": create_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.create/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.create/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.create/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.autoscaling": autoscaling_project_zone_cluster_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.autoscaling/nodePoolId": node_pool_id +"/container:v1/container.projects.zones.clusters.nodePools.autoscaling/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.autoscaling/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.autoscaling/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.get": get_project_zone_cluster_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.get/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.get/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.get/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.get/nodePoolId": node_pool_id +"/container:v1/container.projects.zones.clusters.nodePools.update": update_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.update/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.update/nodePoolId": node_pool_id +"/container:v1/container.projects.zones.clusters.nodePools.update/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.update/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.delete": delete_project_zone_cluster_node_pool "/container:v1/container.projects.zones.clusters.nodePools.delete/projectId": project_id "/container:v1/container.projects.zones.clusters.nodePools.delete/zone": zone @@ -17836,41 +17967,93 @@ "/container:v1/container.projects.zones.clusters.nodePools.setSize/projectId": project_id "/container:v1/container.projects.zones.clusters.nodePools.setSize/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.setSize/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.nodePools.list": list_project_zone_cluster_node_pools -"/container:v1/container.projects.zones.clusters.nodePools.list/projectId": project_id -"/container:v1/container.projects.zones.clusters.nodePools.list/zone": zone -"/container:v1/container.projects.zones.clusters.nodePools.list/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.nodePools.rollback": rollback_node_pool_upgrade -"/container:v1/container.projects.zones.clusters.nodePools.rollback/projectId": project_id -"/container:v1/container.projects.zones.clusters.nodePools.rollback/zone": zone -"/container:v1/container.projects.zones.clusters.nodePools.rollback/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.nodePools.rollback/nodePoolId": node_pool_id -"/container:v1/container.projects.zones.clusters.nodePools.create": create_node_pool -"/container:v1/container.projects.zones.clusters.nodePools.create/projectId": project_id -"/container:v1/container.projects.zones.clusters.nodePools.create/zone": zone -"/container:v1/container.projects.zones.clusters.nodePools.create/clusterId": cluster_id -"/container:v1/container.projects.zones.clusters.nodePools.get": get_project_zone_cluster_node_pool -"/container:v1/container.projects.zones.clusters.nodePools.get/nodePoolId": node_pool_id -"/container:v1/container.projects.zones.clusters.nodePools.get/projectId": project_id -"/container:v1/container.projects.zones.clusters.nodePools.get/zone": zone -"/container:v1/container.projects.zones.clusters.nodePools.get/clusterId": cluster_id +"/container:v1/container.projects.zones.operations.get/operationId": operation_id +"/container:v1/container.projects.zones.operations.get/projectId": project_id +"/container:v1/container.projects.zones.operations.get/zone": zone +"/container:v1/container.projects.zones.operations.list/projectId": project_id +"/container:v1/container.projects.zones.operations.list/zone": zone "/container:v1/container.projects.zones.operations.cancel": cancel_operation "/container:v1/container.projects.zones.operations.cancel/operationId": operation_id "/container:v1/container.projects.zones.operations.cancel/projectId": project_id "/container:v1/container.projects.zones.operations.cancel/zone": zone -"/container:v1/container.projects.zones.operations.list/projectId": project_id -"/container:v1/container.projects.zones.operations.list/zone": zone -"/container:v1/container.projects.zones.operations.get/zone": zone -"/container:v1/container.projects.zones.operations.get/operationId": operation_id -"/container:v1/container.projects.zones.operations.get/projectId": project_id +"/container:v1/SetLocationsRequest": set_locations_request +"/container:v1/SetLocationsRequest/locations": locations +"/container:v1/SetLocationsRequest/locations/location": location +"/container:v1/RollbackNodePoolUpgradeRequest": rollback_node_pool_upgrade_request +"/container:v1/SetNodePoolSizeRequest": set_node_pool_size_request +"/container:v1/SetNodePoolSizeRequest/nodeCount": node_count +"/container:v1/UpdateClusterRequest": update_cluster_request +"/container:v1/UpdateClusterRequest/update": update +"/container:v1/NetworkPolicy": network_policy +"/container:v1/NetworkPolicy/enabled": enabled +"/container:v1/NetworkPolicy/provider": provider +"/container:v1/UpdateMasterRequest": update_master_request +"/container:v1/UpdateMasterRequest/masterVersion": master_version +"/container:v1/Cluster": cluster +"/container:v1/Cluster/currentMasterVersion": current_master_version +"/container:v1/Cluster/nodeConfig": node_config +"/container:v1/Cluster/addonsConfig": addons_config +"/container:v1/Cluster/status": status +"/container:v1/Cluster/currentNodeVersion": current_node_version +"/container:v1/Cluster/subnetwork": subnetwork +"/container:v1/Cluster/name": name +"/container:v1/Cluster/resourceLabels": resource_labels +"/container:v1/Cluster/resourceLabels/resource_label": resource_label +"/container:v1/Cluster/initialClusterVersion": initial_cluster_version +"/container:v1/Cluster/ipAllocationPolicy": ip_allocation_policy +"/container:v1/Cluster/legacyAbac": legacy_abac +"/container:v1/Cluster/endpoint": endpoint +"/container:v1/Cluster/createTime": create_time +"/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1/Cluster/initialNodeCount": initial_node_count +"/container:v1/Cluster/nodePools": node_pools +"/container:v1/Cluster/nodePools/node_pool": node_pool +"/container:v1/Cluster/locations": locations +"/container:v1/Cluster/locations/location": location +"/container:v1/Cluster/selfLink": self_link +"/container:v1/Cluster/instanceGroupUrls": instance_group_urls +"/container:v1/Cluster/instanceGroupUrls/instance_group_url": instance_group_url +"/container:v1/Cluster/servicesIpv4Cidr": services_ipv4_cidr +"/container:v1/Cluster/networkPolicy": network_policy +"/container:v1/Cluster/enableKubernetesAlpha": enable_kubernetes_alpha +"/container:v1/Cluster/description": description +"/container:v1/Cluster/currentNodeCount": current_node_count +"/container:v1/Cluster/monitoringService": monitoring_service +"/container:v1/Cluster/network": network +"/container:v1/Cluster/labelFingerprint": label_fingerprint +"/container:v1/Cluster/zone": zone +"/container:v1/Cluster/nodeIpv4CidrSize": node_ipv4_cidr_size +"/container:v1/Cluster/loggingService": logging_service +"/container:v1/Cluster/expireTime": expire_time +"/container:v1/Cluster/statusMessage": status_message +"/container:v1/Cluster/masterAuth": master_auth +"/container:v1/CreateNodePoolRequest": create_node_pool_request +"/container:v1/CreateNodePoolRequest/nodePool": node_pool +"/container:v1/ListOperationsResponse": list_operations_response +"/container:v1/ListOperationsResponse/operations": operations +"/container:v1/ListOperationsResponse/operations/operation": operation +"/container:v1/ListOperationsResponse/missingZones": missing_zones +"/container:v1/ListOperationsResponse/missingZones/missing_zone": missing_zone +"/container:v1/SetMonitoringServiceRequest": set_monitoring_service_request +"/container:v1/SetMonitoringServiceRequest/monitoringService": monitoring_service +"/container:v1/ServerConfig": server_config +"/container:v1/ServerConfig/validMasterVersions": valid_master_versions +"/container:v1/ServerConfig/validMasterVersions/valid_master_version": valid_master_version +"/container:v1/ServerConfig/defaultImageType": default_image_type +"/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version +"/container:v1/ServerConfig/validImageTypes": valid_image_types +"/container:v1/ServerConfig/validImageTypes/valid_image_type": valid_image_type +"/container:v1/ServerConfig/validNodeVersions": valid_node_versions +"/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version "/container:v1/MasterAuth": master_auth +"/container:v1/MasterAuth/clientCertificate": client_certificate +"/container:v1/MasterAuth/username": username "/container:v1/MasterAuth/password": password "/container:v1/MasterAuth/clientCertificateConfig": client_certificate_config "/container:v1/MasterAuth/clientKey": client_key "/container:v1/MasterAuth/clusterCaCertificate": cluster_ca_certificate -"/container:v1/MasterAuth/clientCertificate": client_certificate -"/container:v1/MasterAuth/username": username "/container:v1/NodeConfig": node_config +"/container:v1/NodeConfig/preemptible": preemptible "/container:v1/NodeConfig/labels": labels "/container:v1/NodeConfig/labels/label": label "/container:v1/NodeConfig/localSsdCount": local_ssd_count @@ -17884,41 +18067,53 @@ "/container:v1/NodeConfig/imageType": image_type "/container:v1/NodeConfig/oauthScopes": oauth_scopes "/container:v1/NodeConfig/oauthScopes/oauth_scope": oauth_scope -"/container:v1/NodeConfig/preemptible": preemptible "/container:v1/AutoUpgradeOptions": auto_upgrade_options "/container:v1/AutoUpgradeOptions/description": description "/container:v1/AutoUpgradeOptions/autoUpgradeStartTime": auto_upgrade_start_time "/container:v1/ListClustersResponse": list_clusters_response -"/container:v1/ListClustersResponse/missingZones": missing_zones -"/container:v1/ListClustersResponse/missingZones/missing_zone": missing_zone "/container:v1/ListClustersResponse/clusters": clusters "/container:v1/ListClustersResponse/clusters/cluster": cluster +"/container:v1/ListClustersResponse/missingZones": missing_zones +"/container:v1/ListClustersResponse/missingZones/missing_zone": missing_zone "/container:v1/HttpLoadBalancing": http_load_balancing "/container:v1/HttpLoadBalancing/disabled": disabled -"/container:v1/NodePoolAutoscaling": node_pool_autoscaling -"/container:v1/NodePoolAutoscaling/enabled": enabled -"/container:v1/NodePoolAutoscaling/maxNodeCount": max_node_count -"/container:v1/NodePoolAutoscaling/minNodeCount": min_node_count "/container:v1/ClientCertificateConfig": client_certificate_config "/container:v1/ClientCertificateConfig/issueClientCertificate": issue_client_certificate +"/container:v1/NodePoolAutoscaling": node_pool_autoscaling +"/container:v1/NodePoolAutoscaling/maxNodeCount": max_node_count +"/container:v1/NodePoolAutoscaling/minNodeCount": min_node_count +"/container:v1/NodePoolAutoscaling/enabled": enabled "/container:v1/SetMasterAuthRequest": set_master_auth_request "/container:v1/SetMasterAuthRequest/update": update "/container:v1/SetMasterAuthRequest/action": action +"/container:v1/SetNetworkPolicyRequest": set_network_policy_request +"/container:v1/SetNetworkPolicyRequest/networkPolicy": network_policy "/container:v1/ClusterUpdate": cluster_update +"/container:v1/ClusterUpdate/desiredLocations": desired_locations +"/container:v1/ClusterUpdate/desiredLocations/desired_location": desired_location +"/container:v1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling +"/container:v1/ClusterUpdate/desiredMonitoringService": desired_monitoring_service "/container:v1/ClusterUpdate/desiredImageType": desired_image_type "/container:v1/ClusterUpdate/desiredAddonsConfig": desired_addons_config "/container:v1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id "/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version "/container:v1/ClusterUpdate/desiredMasterVersion": desired_master_version -"/container:v1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling -"/container:v1/ClusterUpdate/desiredLocations": desired_locations -"/container:v1/ClusterUpdate/desiredLocations/desired_location": desired_location -"/container:v1/ClusterUpdate/desiredMonitoringService": desired_monitoring_service +"/container:v1/IPAllocationPolicy": ip_allocation_policy +"/container:v1/IPAllocationPolicy/createSubnetwork": create_subnetwork +"/container:v1/IPAllocationPolicy/useIpAliases": use_ip_aliases +"/container:v1/IPAllocationPolicy/subnetworkName": subnetwork_name +"/container:v1/IPAllocationPolicy/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1/IPAllocationPolicy/nodeIpv4Cidr": node_ipv4_cidr +"/container:v1/IPAllocationPolicy/servicesIpv4Cidr": services_ipv4_cidr +"/container:v1/SetLoggingServiceRequest": set_logging_service_request +"/container:v1/SetLoggingServiceRequest/loggingService": logging_service "/container:v1/HorizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1/HorizontalPodAutoscaling/disabled": disabled +"/container:v1/Empty": empty "/container:v1/SetNodePoolManagementRequest": set_node_pool_management_request "/container:v1/SetNodePoolManagementRequest/management": management -"/container:v1/Empty": empty +"/container:v1/SetNodePoolAutoscalingRequest": set_node_pool_autoscaling_request +"/container:v1/SetNodePoolAutoscalingRequest/autoscaling": autoscaling "/container:v1/CreateClusterRequest": create_cluster_request "/container:v1/CreateClusterRequest/cluster": cluster "/container:v1/ListNodePoolsResponse": list_node_pools_response @@ -17926,15 +18121,14 @@ "/container:v1/ListNodePoolsResponse/nodePools/node_pool": node_pool "/container:v1/CompleteIPRotationRequest": complete_ip_rotation_request "/container:v1/StartIPRotationRequest": start_ip_rotation_request +"/container:v1/UpdateNodePoolRequest": update_node_pool_request +"/container:v1/UpdateNodePoolRequest/imageType": image_type +"/container:v1/UpdateNodePoolRequest/nodeVersion": node_version "/container:v1/LegacyAbac": legacy_abac "/container:v1/LegacyAbac/enabled": enabled -"/container:v1/SetLabelsRequest": set_labels_request -"/container:v1/SetLabelsRequest/resourceLabels": resource_labels -"/container:v1/SetLabelsRequest/resourceLabels/resource_label": resource_label -"/container:v1/SetLabelsRequest/labelFingerprint": label_fingerprint +"/container:v1/SetAddonsConfigRequest": set_addons_config_request +"/container:v1/SetAddonsConfigRequest/addonsConfig": addons_config "/container:v1/NodePool": node_pool -"/container:v1/NodePool/status": status -"/container:v1/NodePool/config": config "/container:v1/NodePool/name": name "/container:v1/NodePool/statusMessage": status_message "/container:v1/NodePool/autoscaling": autoscaling @@ -17944,82 +18138,31 @@ "/container:v1/NodePool/version": version "/container:v1/NodePool/instanceGroupUrls": instance_group_urls "/container:v1/NodePool/instanceGroupUrls/instance_group_url": instance_group_url +"/container:v1/NodePool/status": status +"/container:v1/NodePool/config": config +"/container:v1/SetLabelsRequest": set_labels_request +"/container:v1/SetLabelsRequest/labelFingerprint": label_fingerprint +"/container:v1/SetLabelsRequest/resourceLabels": resource_labels +"/container:v1/SetLabelsRequest/resourceLabels/resource_label": resource_label "/container:v1/NodeManagement": node_management -"/container:v1/NodeManagement/autoUpgrade": auto_upgrade "/container:v1/NodeManagement/autoRepair": auto_repair +"/container:v1/NodeManagement/autoUpgrade": auto_upgrade "/container:v1/NodeManagement/upgradeOptions": upgrade_options "/container:v1/CancelOperationRequest": cancel_operation_request "/container:v1/SetLegacyAbacRequest": set_legacy_abac_request "/container:v1/SetLegacyAbacRequest/enabled": enabled "/container:v1/Operation": operation +"/container:v1/Operation/zone": zone "/container:v1/Operation/status": status -"/container:v1/Operation/name": name "/container:v1/Operation/statusMessage": status_message +"/container:v1/Operation/name": name "/container:v1/Operation/selfLink": self_link "/container:v1/Operation/targetLink": target_link "/container:v1/Operation/detail": detail "/container:v1/Operation/operationType": operation_type -"/container:v1/Operation/zone": zone "/container:v1/AddonsConfig": addons_config "/container:v1/AddonsConfig/horizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1/AddonsConfig/httpLoadBalancing": http_load_balancing -"/container:v1/RollbackNodePoolUpgradeRequest": rollback_node_pool_upgrade_request -"/container:v1/SetNodePoolSizeRequest": set_node_pool_size_request -"/container:v1/SetNodePoolSizeRequest/nodeCount": node_count -"/container:v1/UpdateClusterRequest": update_cluster_request -"/container:v1/UpdateClusterRequest/update": update -"/container:v1/Cluster": cluster -"/container:v1/Cluster/network": network -"/container:v1/Cluster/labelFingerprint": label_fingerprint -"/container:v1/Cluster/zone": zone -"/container:v1/Cluster/nodeIpv4CidrSize": node_ipv4_cidr_size -"/container:v1/Cluster/expireTime": expire_time -"/container:v1/Cluster/loggingService": logging_service -"/container:v1/Cluster/statusMessage": status_message -"/container:v1/Cluster/masterAuth": master_auth -"/container:v1/Cluster/currentMasterVersion": current_master_version -"/container:v1/Cluster/nodeConfig": node_config -"/container:v1/Cluster/addonsConfig": addons_config -"/container:v1/Cluster/status": status -"/container:v1/Cluster/currentNodeVersion": current_node_version -"/container:v1/Cluster/subnetwork": subnetwork -"/container:v1/Cluster/resourceLabels": resource_labels -"/container:v1/Cluster/resourceLabels/resource_label": resource_label -"/container:v1/Cluster/name": name -"/container:v1/Cluster/initialClusterVersion": initial_cluster_version -"/container:v1/Cluster/endpoint": endpoint -"/container:v1/Cluster/legacyAbac": legacy_abac -"/container:v1/Cluster/createTime": create_time -"/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr -"/container:v1/Cluster/initialNodeCount": initial_node_count -"/container:v1/Cluster/nodePools": node_pools -"/container:v1/Cluster/nodePools/node_pool": node_pool -"/container:v1/Cluster/locations": locations -"/container:v1/Cluster/locations/location": location -"/container:v1/Cluster/selfLink": self_link -"/container:v1/Cluster/instanceGroupUrls": instance_group_urls -"/container:v1/Cluster/instanceGroupUrls/instance_group_url": instance_group_url -"/container:v1/Cluster/servicesIpv4Cidr": services_ipv4_cidr -"/container:v1/Cluster/enableKubernetesAlpha": enable_kubernetes_alpha -"/container:v1/Cluster/description": description -"/container:v1/Cluster/currentNodeCount": current_node_count -"/container:v1/Cluster/monitoringService": monitoring_service -"/container:v1/CreateNodePoolRequest": create_node_pool_request -"/container:v1/CreateNodePoolRequest/nodePool": node_pool -"/container:v1/ListOperationsResponse": list_operations_response -"/container:v1/ListOperationsResponse/operations": operations -"/container:v1/ListOperationsResponse/operations/operation": operation -"/container:v1/ListOperationsResponse/missingZones": missing_zones -"/container:v1/ListOperationsResponse/missingZones/missing_zone": missing_zone -"/container:v1/ServerConfig": server_config -"/container:v1/ServerConfig/validMasterVersions": valid_master_versions -"/container:v1/ServerConfig/validMasterVersions/valid_master_version": valid_master_version -"/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version -"/container:v1/ServerConfig/defaultImageType": default_image_type -"/container:v1/ServerConfig/validNodeVersions": valid_node_versions -"/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version -"/container:v1/ServerConfig/validImageTypes": valid_image_types -"/container:v1/ServerConfig/validImageTypes/valid_image_type": valid_image_type "/content:v2/fields": fields "/content:v2/key": key "/content:v2/quotaUser": quota_user @@ -19198,57 +19341,31 @@ "/customsearch:v1/Search/url": url "/customsearch:v1/Search/url/template": template "/customsearch:v1/Search/url/type": type -"/dataflow:v1b3/quotaUser": quota_user "/dataflow:v1b3/fields": fields "/dataflow:v1b3/key": key +"/dataflow:v1b3/quotaUser": quota_user "/dataflow:v1b3/dataflow.projects.workerMessages": worker_project_messages "/dataflow:v1b3/dataflow.projects.workerMessages/projectId": project_id -"/dataflow:v1b3/dataflow.projects.templates.get": get_project_template -"/dataflow:v1b3/dataflow.projects.templates.get/projectId": project_id -"/dataflow:v1b3/dataflow.projects.templates.get/view": view -"/dataflow:v1b3/dataflow.projects.templates.get/gcsPath": gcs_path -"/dataflow:v1b3/dataflow.projects.templates.get/location": location -"/dataflow:v1b3/dataflow.projects.templates.create": create_job_from_template -"/dataflow:v1b3/dataflow.projects.templates.create/projectId": project_id -"/dataflow:v1b3/dataflow.projects.templates.launch": launch_project_template -"/dataflow:v1b3/dataflow.projects.templates.launch/location": location -"/dataflow:v1b3/dataflow.projects.templates.launch/validateOnly": validate_only -"/dataflow:v1b3/dataflow.projects.templates.launch/projectId": project_id -"/dataflow:v1b3/dataflow.projects.templates.launch/gcsPath": gcs_path "/dataflow:v1b3/dataflow.projects.locations.workerMessages": worker_project_location_messages -"/dataflow:v1b3/dataflow.projects.locations.workerMessages/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.workerMessages/location": location +"/dataflow:v1b3/dataflow.projects.locations.workerMessages/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.templates.launch": launch_project_location_template "/dataflow:v1b3/dataflow.projects.locations.templates.launch/location": location "/dataflow:v1b3/dataflow.projects.locations.templates.launch/validateOnly": validate_only "/dataflow:v1b3/dataflow.projects.locations.templates.launch/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.templates.launch/gcsPath": gcs_path "/dataflow:v1b3/dataflow.projects.locations.templates.get": get_project_location_template +"/dataflow:v1b3/dataflow.projects.locations.templates.get/view": view +"/dataflow:v1b3/dataflow.projects.locations.templates.get/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.templates.get/gcsPath": gcs_path "/dataflow:v1b3/dataflow.projects.locations.templates.get/location": location -"/dataflow:v1b3/dataflow.projects.locations.templates.get/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.templates.get/view": view "/dataflow:v1b3/dataflow.projects.locations.templates.create/location": location "/dataflow:v1b3/dataflow.projects.locations.templates.create/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.update": update_project_location_job -"/dataflow:v1b3/dataflow.projects.locations.jobs.update/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.update/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.update/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.create": create_project_location_job -"/dataflow:v1b3/dataflow.projects.locations.jobs.create/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.create/replaceJobId": replace_job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.create/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.create/view": view "/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics": get_project_location_job_metrics -"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/startTime": start_time -"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/jobId": job_id "/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.get": get_project_location_job -"/dataflow:v1b3/dataflow.projects.locations.jobs.get/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.get/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.get/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.get/view": view +"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/startTime": start_time +"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.getMetrics/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.list": list_project_location_jobs "/dataflow:v1b3/dataflow.projects.locations.jobs.list/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.list/filter": filter @@ -19256,40 +19373,56 @@ "/dataflow:v1b3/dataflow.projects.locations.jobs.list/pageToken": page_token "/dataflow:v1b3/dataflow.projects.locations.jobs.list/pageSize": page_size "/dataflow:v1b3/dataflow.projects.locations.jobs.list/view": view -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig": get_project_location_job_debug_config -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture": send_project_location_job_debug_capture -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/projectId": project_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.get": get_project_location_job +"/dataflow:v1b3/dataflow.projects.locations.jobs.get/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.get/view": view +"/dataflow:v1b3/dataflow.projects.locations.jobs.get/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.get/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.update": update_project_location_job +"/dataflow:v1b3/dataflow.projects.locations.jobs.update/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.update/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.update/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.create": create_project_location_job +"/dataflow:v1b3/dataflow.projects.locations.jobs.create/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.create/replaceJobId": replace_job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.create/view": view +"/dataflow:v1b3/dataflow.projects.locations.jobs.create/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease/location": location "/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus": report_project_location_job_work_item_status "/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/location": location -"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/projectId": project_id "/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.reportStatus/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture": send_project_location_job_debug_capture +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.sendCapture/location": location +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig": get_project_location_job_debug_config +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/jobId": job_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.debug.getConfig/location": location "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list": list_project_location_job_messages +"/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/projectId": project_id +"/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/jobId": job_id "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/endTime": end_time "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/location": location "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/startTime": start_time "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/pageToken": page_token "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/pageSize": page_size "/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/minimumImportance": minimum_importance -"/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/jobId": job_id -"/dataflow:v1b3/dataflow.projects.locations.jobs.messages.list/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics": get_project_job_metrics -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/location": location -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/startTime": start_time -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/jobId": job_id -"/dataflow:v1b3/dataflow.projects.jobs.get": get_project_job -"/dataflow:v1b3/dataflow.projects.jobs.get/location": location -"/dataflow:v1b3/dataflow.projects.jobs.get/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.get/jobId": job_id -"/dataflow:v1b3/dataflow.projects.jobs.get/view": view +"/dataflow:v1b3/dataflow.projects.templates.get": get_project_template +"/dataflow:v1b3/dataflow.projects.templates.get/location": location +"/dataflow:v1b3/dataflow.projects.templates.get/view": view +"/dataflow:v1b3/dataflow.projects.templates.get/projectId": project_id +"/dataflow:v1b3/dataflow.projects.templates.get/gcsPath": gcs_path +"/dataflow:v1b3/dataflow.projects.templates.create": create_job_from_template +"/dataflow:v1b3/dataflow.projects.templates.create/projectId": project_id +"/dataflow:v1b3/dataflow.projects.templates.launch": launch_project_template +"/dataflow:v1b3/dataflow.projects.templates.launch/location": location +"/dataflow:v1b3/dataflow.projects.templates.launch/validateOnly": validate_only +"/dataflow:v1b3/dataflow.projects.templates.launch/projectId": project_id +"/dataflow:v1b3/dataflow.projects.templates.launch/gcsPath": gcs_path "/dataflow:v1b3/dataflow.projects.jobs.list": list_project_jobs "/dataflow:v1b3/dataflow.projects.jobs.list/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.list/filter": filter @@ -19297,219 +19430,76 @@ "/dataflow:v1b3/dataflow.projects.jobs.list/pageToken": page_token "/dataflow:v1b3/dataflow.projects.jobs.list/pageSize": page_size "/dataflow:v1b3/dataflow.projects.jobs.list/view": view +"/dataflow:v1b3/dataflow.projects.jobs.get": get_project_job +"/dataflow:v1b3/dataflow.projects.jobs.get/view": view +"/dataflow:v1b3/dataflow.projects.jobs.get/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.get/projectId": project_id +"/dataflow:v1b3/dataflow.projects.jobs.get/location": location "/dataflow:v1b3/dataflow.projects.jobs.update": update_project_job -"/dataflow:v1b3/dataflow.projects.jobs.update/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.update/jobId": job_id "/dataflow:v1b3/dataflow.projects.jobs.update/location": location +"/dataflow:v1b3/dataflow.projects.jobs.update/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.update/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.create": create_project_job -"/dataflow:v1b3/dataflow.projects.jobs.create/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.create/view": view +"/dataflow:v1b3/dataflow.projects.jobs.create/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.create/location": location "/dataflow:v1b3/dataflow.projects.jobs.create/replaceJobId": replace_job_id -"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig": get_project_job_debug_config -"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/jobId": job_id -"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture": send_project_job_debug_capture -"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.getMetrics": get_project_job_metrics +"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/location": location +"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/startTime": start_time +"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.getMetrics/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.workItems.reportStatus": report_project_job_work_item_status -"/dataflow:v1b3/dataflow.projects.jobs.workItems.reportStatus/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.workItems.reportStatus/jobId": job_id -"/dataflow:v1b3/dataflow.projects.jobs.workItems.lease/projectId": project_id +"/dataflow:v1b3/dataflow.projects.jobs.workItems.reportStatus/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.workItems.lease/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.workItems.lease/projectId": project_id +"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture": send_project_job_debug_capture +"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/projectId": project_id +"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig": get_project_job_debug_config +"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/projectId": project_id "/dataflow:v1b3/dataflow.projects.jobs.messages.list": list_project_job_messages +"/dataflow:v1b3/dataflow.projects.jobs.messages.list/jobId": job_id +"/dataflow:v1b3/dataflow.projects.jobs.messages.list/projectId": project_id +"/dataflow:v1b3/dataflow.projects.jobs.messages.list/location": location +"/dataflow:v1b3/dataflow.projects.jobs.messages.list/endTime": end_time "/dataflow:v1b3/dataflow.projects.jobs.messages.list/pageToken": page_token "/dataflow:v1b3/dataflow.projects.jobs.messages.list/startTime": start_time "/dataflow:v1b3/dataflow.projects.jobs.messages.list/pageSize": page_size "/dataflow:v1b3/dataflow.projects.jobs.messages.list/minimumImportance": minimum_importance -"/dataflow:v1b3/dataflow.projects.jobs.messages.list/projectId": project_id -"/dataflow:v1b3/dataflow.projects.jobs.messages.list/jobId": job_id -"/dataflow:v1b3/dataflow.projects.jobs.messages.list/location": location -"/dataflow:v1b3/dataflow.projects.jobs.messages.list/endTime": end_time -"/dataflow:v1b3/RuntimeEnvironment": runtime_environment -"/dataflow:v1b3/RuntimeEnvironment/zone": zone -"/dataflow:v1b3/RuntimeEnvironment/maxWorkers": max_workers -"/dataflow:v1b3/RuntimeEnvironment/tempLocation": temp_location -"/dataflow:v1b3/RuntimeEnvironment/bypassTempDirValidation": bypass_temp_dir_validation -"/dataflow:v1b3/RuntimeEnvironment/serviceAccountEmail": service_account_email -"/dataflow:v1b3/RuntimeEnvironment/machineType": machine_type -"/dataflow:v1b3/MountedDataDisk": mounted_data_disk -"/dataflow:v1b3/MountedDataDisk/dataDisk": data_disk -"/dataflow:v1b3/StreamingSideInputLocation": streaming_side_input_location -"/dataflow:v1b3/StreamingSideInputLocation/stateFamily": state_family -"/dataflow:v1b3/StreamingSideInputLocation/tag": tag -"/dataflow:v1b3/LaunchTemplateResponse": launch_template_response -"/dataflow:v1b3/LaunchTemplateResponse/job": job -"/dataflow:v1b3/Job": job -"/dataflow:v1b3/Job/location": location -"/dataflow:v1b3/Job/currentStateTime": current_state_time -"/dataflow:v1b3/Job/transformNameMapping": transform_name_mapping -"/dataflow:v1b3/Job/transformNameMapping/transform_name_mapping": transform_name_mapping -"/dataflow:v1b3/Job/createTime": create_time -"/dataflow:v1b3/Job/environment": environment -"/dataflow:v1b3/Job/labels": labels -"/dataflow:v1b3/Job/labels/label": label -"/dataflow:v1b3/Job/stageStates": stage_states -"/dataflow:v1b3/Job/stageStates/stage_state": stage_state -"/dataflow:v1b3/Job/projectId": project_id -"/dataflow:v1b3/Job/type": type -"/dataflow:v1b3/Job/pipelineDescription": pipeline_description -"/dataflow:v1b3/Job/replaceJobId": replace_job_id -"/dataflow:v1b3/Job/requestedState": requested_state -"/dataflow:v1b3/Job/tempFiles": temp_files -"/dataflow:v1b3/Job/tempFiles/temp_file": temp_file -"/dataflow:v1b3/Job/clientRequestId": client_request_id -"/dataflow:v1b3/Job/name": name -"/dataflow:v1b3/Job/replacedByJobId": replaced_by_job_id -"/dataflow:v1b3/Job/steps": steps -"/dataflow:v1b3/Job/steps/step": step -"/dataflow:v1b3/Job/id": id -"/dataflow:v1b3/Job/executionInfo": execution_info -"/dataflow:v1b3/Job/currentState": current_state -"/dataflow:v1b3/DynamicSourceSplit": dynamic_source_split -"/dataflow:v1b3/DynamicSourceSplit/residual": residual -"/dataflow:v1b3/DynamicSourceSplit/primary": primary -"/dataflow:v1b3/DerivedSource": derived_source -"/dataflow:v1b3/DerivedSource/derivationMode": derivation_mode -"/dataflow:v1b3/DerivedSource/source": source -"/dataflow:v1b3/SourceOperationResponse": source_operation_response -"/dataflow:v1b3/SourceOperationResponse/getMetadata": get_metadata -"/dataflow:v1b3/SourceOperationResponse/split": split -"/dataflow:v1b3/SendDebugCaptureResponse": send_debug_capture_response -"/dataflow:v1b3/SideInputInfo": side_input_info -"/dataflow:v1b3/SideInputInfo/sources": sources -"/dataflow:v1b3/SideInputInfo/sources/source": source -"/dataflow:v1b3/SideInputInfo/kind": kind -"/dataflow:v1b3/SideInputInfo/kind/kind": kind -"/dataflow:v1b3/SideInputInfo/tag": tag -"/dataflow:v1b3/CounterStructuredNameAndMetadata": counter_structured_name_and_metadata -"/dataflow:v1b3/CounterStructuredNameAndMetadata/name": name -"/dataflow:v1b3/CounterStructuredNameAndMetadata/metadata": metadata -"/dataflow:v1b3/ConcatPosition": concat_position -"/dataflow:v1b3/ConcatPosition/position": position -"/dataflow:v1b3/ConcatPosition/index": index -"/dataflow:v1b3/WriteInstruction": write_instruction -"/dataflow:v1b3/WriteInstruction/input": input -"/dataflow:v1b3/WriteInstruction/sink": sink -"/dataflow:v1b3/AutoscalingSettings": autoscaling_settings -"/dataflow:v1b3/AutoscalingSettings/maxNumWorkers": max_num_workers -"/dataflow:v1b3/AutoscalingSettings/algorithm": algorithm -"/dataflow:v1b3/StreamingComputationRanges": streaming_computation_ranges -"/dataflow:v1b3/StreamingComputationRanges/rangeAssignments": range_assignments -"/dataflow:v1b3/StreamingComputationRanges/rangeAssignments/range_assignment": range_assignment -"/dataflow:v1b3/StreamingComputationRanges/computationId": computation_id -"/dataflow:v1b3/ExecutionStageSummary": execution_stage_summary -"/dataflow:v1b3/ExecutionStageSummary/componentTransform": component_transform -"/dataflow:v1b3/ExecutionStageSummary/componentTransform/component_transform": component_transform -"/dataflow:v1b3/ExecutionStageSummary/componentSource": component_source -"/dataflow:v1b3/ExecutionStageSummary/componentSource/component_source": component_source -"/dataflow:v1b3/ExecutionStageSummary/kind": kind -"/dataflow:v1b3/ExecutionStageSummary/outputSource": output_source -"/dataflow:v1b3/ExecutionStageSummary/outputSource/output_source": output_source -"/dataflow:v1b3/ExecutionStageSummary/name": name -"/dataflow:v1b3/ExecutionStageSummary/inputSource": input_source -"/dataflow:v1b3/ExecutionStageSummary/inputSource/input_source": input_source -"/dataflow:v1b3/ExecutionStageSummary/id": id -"/dataflow:v1b3/SendWorkerMessagesRequest": send_worker_messages_request -"/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages": worker_messages -"/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages/worker_message": worker_message -"/dataflow:v1b3/SendWorkerMessagesRequest/location": location -"/dataflow:v1b3/LogBucket": log_bucket -"/dataflow:v1b3/LogBucket/log": log -"/dataflow:v1b3/LogBucket/count": count -"/dataflow:v1b3/SourceSplitShard": source_split_shard -"/dataflow:v1b3/SourceSplitShard/derivationMode": derivation_mode -"/dataflow:v1b3/SourceSplitShard/source": source -"/dataflow:v1b3/CPUTime": cpu_time -"/dataflow:v1b3/CPUTime/timestamp": timestamp -"/dataflow:v1b3/CPUTime/totalMs": total_ms -"/dataflow:v1b3/CPUTime/rate": rate -"/dataflow:v1b3/Environment": environment -"/dataflow:v1b3/Environment/userAgent": user_agent -"/dataflow:v1b3/Environment/userAgent/user_agent": user_agent -"/dataflow:v1b3/Environment/sdkPipelineOptions": sdk_pipeline_options -"/dataflow:v1b3/Environment/sdkPipelineOptions/sdk_pipeline_option": sdk_pipeline_option -"/dataflow:v1b3/Environment/clusterManagerApiService": cluster_manager_api_service -"/dataflow:v1b3/Environment/tempStoragePrefix": temp_storage_prefix -"/dataflow:v1b3/Environment/workerPools": worker_pools -"/dataflow:v1b3/Environment/workerPools/worker_pool": worker_pool -"/dataflow:v1b3/Environment/dataset": dataset -"/dataflow:v1b3/Environment/experiments": experiments -"/dataflow:v1b3/Environment/experiments/experiment": experiment -"/dataflow:v1b3/Environment/version": version -"/dataflow:v1b3/Environment/version/version": version -"/dataflow:v1b3/Environment/internalExperiments": internal_experiments -"/dataflow:v1b3/Environment/internalExperiments/internal_experiment": internal_experiment -"/dataflow:v1b3/Environment/serviceAccountEmail": service_account_email -"/dataflow:v1b3/StreamingComputationTask": streaming_computation_task -"/dataflow:v1b3/StreamingComputationTask/dataDisks": data_disks -"/dataflow:v1b3/StreamingComputationTask/dataDisks/data_disk": data_disk -"/dataflow:v1b3/StreamingComputationTask/taskType": task_type -"/dataflow:v1b3/StreamingComputationTask/computationRanges": computation_ranges -"/dataflow:v1b3/StreamingComputationTask/computationRanges/computation_range": computation_range -"/dataflow:v1b3/SendDebugCaptureRequest": send_debug_capture_request -"/dataflow:v1b3/SendDebugCaptureRequest/workerId": worker_id -"/dataflow:v1b3/SendDebugCaptureRequest/location": location -"/dataflow:v1b3/SendDebugCaptureRequest/data": data -"/dataflow:v1b3/SendDebugCaptureRequest/componentId": component_id -"/dataflow:v1b3/GetDebugConfigResponse": get_debug_config_response -"/dataflow:v1b3/GetDebugConfigResponse/config": config -"/dataflow:v1b3/ComponentTransform": component_transform -"/dataflow:v1b3/ComponentTransform/originalTransform": original_transform -"/dataflow:v1b3/ComponentTransform/name": name -"/dataflow:v1b3/ComponentTransform/userName": user_name -"/dataflow:v1b3/StreamingSetupTask": streaming_setup_task -"/dataflow:v1b3/StreamingSetupTask/receiveWorkPort": receive_work_port -"/dataflow:v1b3/StreamingSetupTask/streamingComputationTopology": streaming_computation_topology -"/dataflow:v1b3/StreamingSetupTask/workerHarnessPort": worker_harness_port -"/dataflow:v1b3/StreamingSetupTask/drain": drain -"/dataflow:v1b3/PubsubLocation": pubsub_location -"/dataflow:v1b3/PubsubLocation/subscription": subscription -"/dataflow:v1b3/PubsubLocation/dropLateData": drop_late_data -"/dataflow:v1b3/PubsubLocation/trackingSubscription": tracking_subscription -"/dataflow:v1b3/PubsubLocation/withAttributes": with_attributes -"/dataflow:v1b3/PubsubLocation/idLabel": id_label -"/dataflow:v1b3/PubsubLocation/topic": topic -"/dataflow:v1b3/PubsubLocation/timestampLabel": timestamp_label -"/dataflow:v1b3/WorkerHealthReport": worker_health_report -"/dataflow:v1b3/WorkerHealthReport/pods": pods -"/dataflow:v1b3/WorkerHealthReport/pods/pod": pod -"/dataflow:v1b3/WorkerHealthReport/pods/pod/pod": pod -"/dataflow:v1b3/WorkerHealthReport/vmStartupTime": vm_startup_time -"/dataflow:v1b3/WorkerHealthReport/vmIsHealthy": vm_is_healthy -"/dataflow:v1b3/WorkerHealthReport/reportInterval": report_interval -"/dataflow:v1b3/JobMessage": job_message -"/dataflow:v1b3/JobMessage/id": id -"/dataflow:v1b3/JobMessage/messageText": message_text -"/dataflow:v1b3/JobMessage/messageImportance": message_importance -"/dataflow:v1b3/JobMessage/time": time -"/dataflow:v1b3/ParameterMetadata": parameter_metadata -"/dataflow:v1b3/ParameterMetadata/label": label -"/dataflow:v1b3/ParameterMetadata/helpText": help_text -"/dataflow:v1b3/ParameterMetadata/isOptional": is_optional -"/dataflow:v1b3/ParameterMetadata/name": name -"/dataflow:v1b3/ParameterMetadata/regexes": regexes -"/dataflow:v1b3/ParameterMetadata/regexes/regex": regex "/dataflow:v1b3/MultiOutputInfo": multi_output_info "/dataflow:v1b3/MultiOutputInfo/tag": tag "/dataflow:v1b3/SourceSplitRequest": source_split_request -"/dataflow:v1b3/SourceSplitRequest/source": source "/dataflow:v1b3/SourceSplitRequest/options": options +"/dataflow:v1b3/SourceSplitRequest/source": source "/dataflow:v1b3/SourceGetMetadataResponse": source_get_metadata_response "/dataflow:v1b3/SourceGetMetadataResponse/metadata": metadata "/dataflow:v1b3/ShellTask": shell_task -"/dataflow:v1b3/ShellTask/exitCode": exit_code "/dataflow:v1b3/ShellTask/command": command +"/dataflow:v1b3/ShellTask/exitCode": exit_code "/dataflow:v1b3/MetricShortId": metric_short_id -"/dataflow:v1b3/MetricShortId/shortId": short_id "/dataflow:v1b3/MetricShortId/metricIndex": metric_index +"/dataflow:v1b3/MetricShortId/shortId": short_id "/dataflow:v1b3/AutoscalingEvent": autoscaling_event -"/dataflow:v1b3/AutoscalingEvent/description": description "/dataflow:v1b3/AutoscalingEvent/time": time -"/dataflow:v1b3/AutoscalingEvent/targetNumWorkers": target_num_workers +"/dataflow:v1b3/AutoscalingEvent/description": description "/dataflow:v1b3/AutoscalingEvent/eventType": event_type +"/dataflow:v1b3/AutoscalingEvent/targetNumWorkers": target_num_workers "/dataflow:v1b3/AutoscalingEvent/currentNumWorkers": current_num_workers "/dataflow:v1b3/TaskRunnerSettings": task_runner_settings +"/dataflow:v1b3/TaskRunnerSettings/dataflowApiVersion": dataflow_api_version +"/dataflow:v1b3/TaskRunnerSettings/oauthScopes": oauth_scopes +"/dataflow:v1b3/TaskRunnerSettings/oauthScopes/oauth_scope": oauth_scope +"/dataflow:v1b3/TaskRunnerSettings/streamingWorkerMainClass": streaming_worker_main_class +"/dataflow:v1b3/TaskRunnerSettings/logUploadLocation": log_upload_location +"/dataflow:v1b3/TaskRunnerSettings/workflowFileName": workflow_file_name +"/dataflow:v1b3/TaskRunnerSettings/commandlinesFileName": commandlines_file_name +"/dataflow:v1b3/TaskRunnerSettings/languageHint": language_hint +"/dataflow:v1b3/TaskRunnerSettings/baseTaskDir": base_task_dir +"/dataflow:v1b3/TaskRunnerSettings/tempStoragePrefix": temp_storage_prefix +"/dataflow:v1b3/TaskRunnerSettings/baseUrl": base_url "/dataflow:v1b3/TaskRunnerSettings/logToSerialconsole": log_to_serialconsole "/dataflow:v1b3/TaskRunnerSettings/continueOnException": continue_on_exception "/dataflow:v1b3/TaskRunnerSettings/parallelWorkerSettings": parallel_worker_settings @@ -19519,43 +19509,38 @@ "/dataflow:v1b3/TaskRunnerSettings/taskGroup": task_group "/dataflow:v1b3/TaskRunnerSettings/harnessCommand": harness_command "/dataflow:v1b3/TaskRunnerSettings/logDir": log_dir -"/dataflow:v1b3/TaskRunnerSettings/oauthScopes": oauth_scopes -"/dataflow:v1b3/TaskRunnerSettings/oauthScopes/oauth_scope": oauth_scope -"/dataflow:v1b3/TaskRunnerSettings/dataflowApiVersion": dataflow_api_version -"/dataflow:v1b3/TaskRunnerSettings/logUploadLocation": log_upload_location -"/dataflow:v1b3/TaskRunnerSettings/streamingWorkerMainClass": streaming_worker_main_class -"/dataflow:v1b3/TaskRunnerSettings/workflowFileName": workflow_file_name -"/dataflow:v1b3/TaskRunnerSettings/baseTaskDir": base_task_dir -"/dataflow:v1b3/TaskRunnerSettings/tempStoragePrefix": temp_storage_prefix -"/dataflow:v1b3/TaskRunnerSettings/commandlinesFileName": commandlines_file_name -"/dataflow:v1b3/TaskRunnerSettings/languageHint": language_hint -"/dataflow:v1b3/TaskRunnerSettings/baseUrl": base_url "/dataflow:v1b3/Position": position "/dataflow:v1b3/Position/recordIndex": record_index "/dataflow:v1b3/Position/shufflePosition": shuffle_position -"/dataflow:v1b3/Position/concatPosition": concat_position "/dataflow:v1b3/Position/byteOffset": byte_offset +"/dataflow:v1b3/Position/concatPosition": concat_position "/dataflow:v1b3/Position/end": end "/dataflow:v1b3/Position/key": key -"/dataflow:v1b3/SplitInt64": split_int64 -"/dataflow:v1b3/SplitInt64/lowBits": low_bits -"/dataflow:v1b3/SplitInt64/highBits": high_bits "/dataflow:v1b3/Source": source +"/dataflow:v1b3/Source/spec": spec +"/dataflow:v1b3/Source/spec/spec": spec "/dataflow:v1b3/Source/metadata": metadata "/dataflow:v1b3/Source/baseSpecs": base_specs "/dataflow:v1b3/Source/baseSpecs/base_spec": base_spec "/dataflow:v1b3/Source/baseSpecs/base_spec/base_spec": base_spec +"/dataflow:v1b3/Source/doesNotNeedSplitting": does_not_need_splitting "/dataflow:v1b3/Source/codec": codec "/dataflow:v1b3/Source/codec/codec": codec -"/dataflow:v1b3/Source/doesNotNeedSplitting": does_not_need_splitting -"/dataflow:v1b3/Source/spec": spec -"/dataflow:v1b3/Source/spec/spec": spec +"/dataflow:v1b3/SplitInt64": split_int64 +"/dataflow:v1b3/SplitInt64/lowBits": low_bits +"/dataflow:v1b3/SplitInt64/highBits": high_bits "/dataflow:v1b3/WorkerPool": worker_pool -"/dataflow:v1b3/WorkerPool/defaultPackageSet": default_package_set +"/dataflow:v1b3/WorkerPool/subnetwork": subnetwork +"/dataflow:v1b3/WorkerPool/ipConfiguration": ip_configuration +"/dataflow:v1b3/WorkerPool/taskrunnerSettings": taskrunner_settings +"/dataflow:v1b3/WorkerPool/autoscalingSettings": autoscaling_settings +"/dataflow:v1b3/WorkerPool/metadata": metadata +"/dataflow:v1b3/WorkerPool/metadata/metadatum": metadatum "/dataflow:v1b3/WorkerPool/network": network -"/dataflow:v1b3/WorkerPool/zone": zone -"/dataflow:v1b3/WorkerPool/numWorkers": num_workers +"/dataflow:v1b3/WorkerPool/defaultPackageSet": default_package_set "/dataflow:v1b3/WorkerPool/numThreadsPerWorker": num_threads_per_worker +"/dataflow:v1b3/WorkerPool/numWorkers": num_workers +"/dataflow:v1b3/WorkerPool/zone": zone "/dataflow:v1b3/WorkerPool/diskSourceImage": disk_source_image "/dataflow:v1b3/WorkerPool/packages": packages "/dataflow:v1b3/WorkerPool/packages/package": package @@ -19570,21 +19555,19 @@ "/dataflow:v1b3/WorkerPool/kind": kind "/dataflow:v1b3/WorkerPool/dataDisks": data_disks "/dataflow:v1b3/WorkerPool/dataDisks/data_disk": data_disk -"/dataflow:v1b3/WorkerPool/subnetwork": subnetwork -"/dataflow:v1b3/WorkerPool/ipConfiguration": ip_configuration -"/dataflow:v1b3/WorkerPool/autoscalingSettings": autoscaling_settings -"/dataflow:v1b3/WorkerPool/taskrunnerSettings": taskrunner_settings -"/dataflow:v1b3/WorkerPool/metadata": metadata -"/dataflow:v1b3/WorkerPool/metadata/metadatum": metadatum "/dataflow:v1b3/SourceOperationRequest": source_operation_request "/dataflow:v1b3/SourceOperationRequest/getMetadata": get_metadata "/dataflow:v1b3/SourceOperationRequest/split": split -"/dataflow:v1b3/StructuredMessage": structured_message -"/dataflow:v1b3/StructuredMessage/parameters": parameters -"/dataflow:v1b3/StructuredMessage/parameters/parameter": parameter -"/dataflow:v1b3/StructuredMessage/messageKey": message_key -"/dataflow:v1b3/StructuredMessage/messageText": message_text "/dataflow:v1b3/WorkItem": work_item +"/dataflow:v1b3/WorkItem/streamingSetupTask": streaming_setup_task +"/dataflow:v1b3/WorkItem/reportStatusInterval": report_status_interval +"/dataflow:v1b3/WorkItem/sourceOperationTask": source_operation_task +"/dataflow:v1b3/WorkItem/leaseExpireTime": lease_expire_time +"/dataflow:v1b3/WorkItem/streamingConfigTask": streaming_config_task +"/dataflow:v1b3/WorkItem/initialReportIndex": initial_report_index +"/dataflow:v1b3/WorkItem/streamingComputationTask": streaming_computation_task +"/dataflow:v1b3/WorkItem/shellTask": shell_task +"/dataflow:v1b3/WorkItem/jobId": job_id "/dataflow:v1b3/WorkItem/id": id "/dataflow:v1b3/WorkItem/configuration": configuration "/dataflow:v1b3/WorkItem/mapTask": map_task @@ -19592,125 +19575,119 @@ "/dataflow:v1b3/WorkItem/packages": packages "/dataflow:v1b3/WorkItem/packages/package": package "/dataflow:v1b3/WorkItem/projectId": project_id -"/dataflow:v1b3/WorkItem/sourceOperationTask": source_operation_task -"/dataflow:v1b3/WorkItem/streamingSetupTask": streaming_setup_task -"/dataflow:v1b3/WorkItem/reportStatusInterval": report_status_interval -"/dataflow:v1b3/WorkItem/streamingConfigTask": streaming_config_task -"/dataflow:v1b3/WorkItem/leaseExpireTime": lease_expire_time -"/dataflow:v1b3/WorkItem/initialReportIndex": initial_report_index -"/dataflow:v1b3/WorkItem/streamingComputationTask": streaming_computation_task -"/dataflow:v1b3/WorkItem/shellTask": shell_task -"/dataflow:v1b3/WorkItem/jobId": job_id -"/dataflow:v1b3/ResourceUtilizationReport": resource_utilization_report -"/dataflow:v1b3/ResourceUtilizationReport/cpuTime": cpu_time -"/dataflow:v1b3/ResourceUtilizationReport/cpuTime/cpu_time": cpu_time +"/dataflow:v1b3/StructuredMessage": structured_message +"/dataflow:v1b3/StructuredMessage/messageText": message_text +"/dataflow:v1b3/StructuredMessage/parameters": parameters +"/dataflow:v1b3/StructuredMessage/parameters/parameter": parameter +"/dataflow:v1b3/StructuredMessage/messageKey": message_key "/dataflow:v1b3/ReportedParallelism": reported_parallelism "/dataflow:v1b3/ReportedParallelism/value": value "/dataflow:v1b3/ReportedParallelism/isInfinite": is_infinite +"/dataflow:v1b3/ResourceUtilizationReport": resource_utilization_report +"/dataflow:v1b3/ResourceUtilizationReport/cpuTime": cpu_time +"/dataflow:v1b3/ResourceUtilizationReport/cpuTime/cpu_time": cpu_time "/dataflow:v1b3/TopologyConfig": topology_config -"/dataflow:v1b3/TopologyConfig/userStageToComputationNameMap": user_stage_to_computation_name_map -"/dataflow:v1b3/TopologyConfig/userStageToComputationNameMap/user_stage_to_computation_name_map": user_stage_to_computation_name_map "/dataflow:v1b3/TopologyConfig/computations": computations "/dataflow:v1b3/TopologyConfig/computations/computation": computation +"/dataflow:v1b3/TopologyConfig/persistentStateVersion": persistent_state_version "/dataflow:v1b3/TopologyConfig/dataDiskAssignments": data_disk_assignments "/dataflow:v1b3/TopologyConfig/dataDiskAssignments/data_disk_assignment": data_disk_assignment -"/dataflow:v1b3/TopologyConfig/persistentStateVersion": persistent_state_version "/dataflow:v1b3/TopologyConfig/forwardingKeyBits": forwarding_key_bits +"/dataflow:v1b3/TopologyConfig/userStageToComputationNameMap": user_stage_to_computation_name_map +"/dataflow:v1b3/TopologyConfig/userStageToComputationNameMap/user_stage_to_computation_name_map": user_stage_to_computation_name_map "/dataflow:v1b3/SourceSplitOptions": source_split_options "/dataflow:v1b3/SourceSplitOptions/desiredBundleSizeBytes": desired_bundle_size_bytes "/dataflow:v1b3/SourceSplitOptions/desiredShardSizeBytes": desired_shard_size_bytes "/dataflow:v1b3/ReadInstruction": read_instruction "/dataflow:v1b3/ReadInstruction/source": source "/dataflow:v1b3/WorkerSettings": worker_settings -"/dataflow:v1b3/WorkerSettings/tempStoragePrefix": temp_storage_prefix -"/dataflow:v1b3/WorkerSettings/reportingEnabled": reporting_enabled -"/dataflow:v1b3/WorkerSettings/baseUrl": base_url "/dataflow:v1b3/WorkerSettings/servicePath": service_path "/dataflow:v1b3/WorkerSettings/shuffleServicePath": shuffle_service_path "/dataflow:v1b3/WorkerSettings/workerId": worker_id +"/dataflow:v1b3/WorkerSettings/tempStoragePrefix": temp_storage_prefix +"/dataflow:v1b3/WorkerSettings/reportingEnabled": reporting_enabled +"/dataflow:v1b3/WorkerSettings/baseUrl": base_url +"/dataflow:v1b3/StreamingStageLocation": streaming_stage_location +"/dataflow:v1b3/StreamingStageLocation/streamId": stream_id "/dataflow:v1b3/DataDiskAssignment": data_disk_assignment "/dataflow:v1b3/DataDiskAssignment/vmInstance": vm_instance "/dataflow:v1b3/DataDiskAssignment/dataDisks": data_disks "/dataflow:v1b3/DataDiskAssignment/dataDisks/data_disk": data_disk -"/dataflow:v1b3/StreamingStageLocation": streaming_stage_location -"/dataflow:v1b3/StreamingStageLocation/streamId": stream_id "/dataflow:v1b3/ApproximateSplitRequest": approximate_split_request "/dataflow:v1b3/ApproximateSplitRequest/position": position "/dataflow:v1b3/ApproximateSplitRequest/fractionConsumed": fraction_consumed "/dataflow:v1b3/Status": status +"/dataflow:v1b3/Status/code": code +"/dataflow:v1b3/Status/message": message "/dataflow:v1b3/Status/details": details "/dataflow:v1b3/Status/details/detail": detail "/dataflow:v1b3/Status/details/detail/detail": detail -"/dataflow:v1b3/Status/code": code -"/dataflow:v1b3/Status/message": message "/dataflow:v1b3/ExecutionStageState": execution_stage_state -"/dataflow:v1b3/ExecutionStageState/executionStageName": execution_stage_name "/dataflow:v1b3/ExecutionStageState/currentStateTime": current_state_time "/dataflow:v1b3/ExecutionStageState/executionStageState": execution_stage_state +"/dataflow:v1b3/ExecutionStageState/executionStageName": execution_stage_name "/dataflow:v1b3/StreamLocation": stream_location "/dataflow:v1b3/StreamLocation/customSourceLocation": custom_source_location -"/dataflow:v1b3/StreamLocation/streamingStageLocation": streaming_stage_location -"/dataflow:v1b3/StreamLocation/pubsubLocation": pubsub_location "/dataflow:v1b3/StreamLocation/sideInputLocation": side_input_location +"/dataflow:v1b3/StreamLocation/pubsubLocation": pubsub_location +"/dataflow:v1b3/StreamLocation/streamingStageLocation": streaming_stage_location "/dataflow:v1b3/SendWorkerMessagesResponse": send_worker_messages_response "/dataflow:v1b3/SendWorkerMessagesResponse/workerMessageResponses": worker_message_responses "/dataflow:v1b3/SendWorkerMessagesResponse/workerMessageResponses/worker_message_response": worker_message_response "/dataflow:v1b3/StreamingComputationConfig": streaming_computation_config -"/dataflow:v1b3/StreamingComputationConfig/systemName": system_name +"/dataflow:v1b3/StreamingComputationConfig/computationId": computation_id "/dataflow:v1b3/StreamingComputationConfig/stageName": stage_name +"/dataflow:v1b3/StreamingComputationConfig/systemName": system_name "/dataflow:v1b3/StreamingComputationConfig/instructions": instructions "/dataflow:v1b3/StreamingComputationConfig/instructions/instruction": instruction -"/dataflow:v1b3/StreamingComputationConfig/computationId": computation_id "/dataflow:v1b3/TransformSummary": transform_summary -"/dataflow:v1b3/TransformSummary/kind": kind -"/dataflow:v1b3/TransformSummary/inputCollectionName": input_collection_name -"/dataflow:v1b3/TransformSummary/inputCollectionName/input_collection_name": input_collection_name -"/dataflow:v1b3/TransformSummary/name": name "/dataflow:v1b3/TransformSummary/id": id "/dataflow:v1b3/TransformSummary/displayData": display_data "/dataflow:v1b3/TransformSummary/displayData/display_datum": display_datum "/dataflow:v1b3/TransformSummary/outputCollectionName": output_collection_name "/dataflow:v1b3/TransformSummary/outputCollectionName/output_collection_name": output_collection_name +"/dataflow:v1b3/TransformSummary/kind": kind +"/dataflow:v1b3/TransformSummary/inputCollectionName": input_collection_name +"/dataflow:v1b3/TransformSummary/inputCollectionName/input_collection_name": input_collection_name +"/dataflow:v1b3/TransformSummary/name": name "/dataflow:v1b3/LeaseWorkItemResponse": lease_work_item_response "/dataflow:v1b3/LeaseWorkItemResponse/workItems": work_items "/dataflow:v1b3/LeaseWorkItemResponse/workItems/work_item": work_item +"/dataflow:v1b3/LaunchTemplateParameters": launch_template_parameters +"/dataflow:v1b3/LaunchTemplateParameters/environment": environment +"/dataflow:v1b3/LaunchTemplateParameters/parameters": parameters +"/dataflow:v1b3/LaunchTemplateParameters/parameters/parameter": parameter +"/dataflow:v1b3/LaunchTemplateParameters/jobName": job_name "/dataflow:v1b3/Sink": sink "/dataflow:v1b3/Sink/codec": codec "/dataflow:v1b3/Sink/codec/codec": codec "/dataflow:v1b3/Sink/spec": spec "/dataflow:v1b3/Sink/spec/spec": spec -"/dataflow:v1b3/LaunchTemplateParameters": launch_template_parameters -"/dataflow:v1b3/LaunchTemplateParameters/parameters": parameters -"/dataflow:v1b3/LaunchTemplateParameters/parameters/parameter": parameter -"/dataflow:v1b3/LaunchTemplateParameters/jobName": job_name -"/dataflow:v1b3/LaunchTemplateParameters/environment": environment "/dataflow:v1b3/FlattenInstruction": flatten_instruction "/dataflow:v1b3/FlattenInstruction/inputs": inputs "/dataflow:v1b3/FlattenInstruction/inputs/input": input "/dataflow:v1b3/PartialGroupByKeyInstruction": partial_group_by_key_instruction +"/dataflow:v1b3/PartialGroupByKeyInstruction/originalCombineValuesInputStoreName": original_combine_values_input_store_name +"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs": side_inputs +"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs/side_input": side_input +"/dataflow:v1b3/PartialGroupByKeyInstruction/originalCombineValuesStepName": original_combine_values_step_name "/dataflow:v1b3/PartialGroupByKeyInstruction/input": input "/dataflow:v1b3/PartialGroupByKeyInstruction/inputElementCodec": input_element_codec "/dataflow:v1b3/PartialGroupByKeyInstruction/inputElementCodec/input_element_codec": input_element_codec "/dataflow:v1b3/PartialGroupByKeyInstruction/valueCombiningFn": value_combining_fn "/dataflow:v1b3/PartialGroupByKeyInstruction/valueCombiningFn/value_combining_fn": value_combining_fn -"/dataflow:v1b3/PartialGroupByKeyInstruction/originalCombineValuesInputStoreName": original_combine_values_input_store_name -"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs": side_inputs -"/dataflow:v1b3/PartialGroupByKeyInstruction/sideInputs/side_input": side_input -"/dataflow:v1b3/PartialGroupByKeyInstruction/originalCombineValuesStepName": original_combine_values_step_name +"/dataflow:v1b3/StageSource": stage_source +"/dataflow:v1b3/StageSource/sizeBytes": size_bytes +"/dataflow:v1b3/StageSource/name": name +"/dataflow:v1b3/StageSource/userName": user_name +"/dataflow:v1b3/StageSource/originalTransformOrCollection": original_transform_or_collection "/dataflow:v1b3/InstructionInput": instruction_input "/dataflow:v1b3/InstructionInput/producerInstructionIndex": producer_instruction_index "/dataflow:v1b3/InstructionInput/outputNum": output_num -"/dataflow:v1b3/StageSource": stage_source -"/dataflow:v1b3/StageSource/name": name -"/dataflow:v1b3/StageSource/sizeBytes": size_bytes -"/dataflow:v1b3/StageSource/userName": user_name -"/dataflow:v1b3/StageSource/originalTransformOrCollection": original_transform_or_collection "/dataflow:v1b3/StringList": string_list "/dataflow:v1b3/StringList/elements": elements "/dataflow:v1b3/StringList/elements/element": element "/dataflow:v1b3/DisplayData": display_data -"/dataflow:v1b3/DisplayData/javaClassValue": java_class_value -"/dataflow:v1b3/DisplayData/boolValue": bool_value "/dataflow:v1b3/DisplayData/strValue": str_value "/dataflow:v1b3/DisplayData/durationValue": duration_value "/dataflow:v1b3/DisplayData/int64Value": int64_value @@ -19718,22 +19695,24 @@ "/dataflow:v1b3/DisplayData/floatValue": float_value "/dataflow:v1b3/DisplayData/key": key "/dataflow:v1b3/DisplayData/shortStrValue": short_str_value -"/dataflow:v1b3/DisplayData/label": label "/dataflow:v1b3/DisplayData/url": url +"/dataflow:v1b3/DisplayData/label": label "/dataflow:v1b3/DisplayData/timestampValue": timestamp_value +"/dataflow:v1b3/DisplayData/javaClassValue": java_class_value +"/dataflow:v1b3/DisplayData/boolValue": bool_value +"/dataflow:v1b3/GetDebugConfigRequest": get_debug_config_request +"/dataflow:v1b3/GetDebugConfigRequest/componentId": component_id +"/dataflow:v1b3/GetDebugConfigRequest/workerId": worker_id +"/dataflow:v1b3/GetDebugConfigRequest/location": location "/dataflow:v1b3/LeaseWorkItemRequest": lease_work_item_request +"/dataflow:v1b3/LeaseWorkItemRequest/workerCapabilities": worker_capabilities +"/dataflow:v1b3/LeaseWorkItemRequest/workerCapabilities/worker_capability": worker_capability +"/dataflow:v1b3/LeaseWorkItemRequest/workerId": worker_id "/dataflow:v1b3/LeaseWorkItemRequest/requestedLeaseDuration": requested_lease_duration "/dataflow:v1b3/LeaseWorkItemRequest/currentWorkerTime": current_worker_time "/dataflow:v1b3/LeaseWorkItemRequest/location": location "/dataflow:v1b3/LeaseWorkItemRequest/workItemTypes": work_item_types "/dataflow:v1b3/LeaseWorkItemRequest/workItemTypes/work_item_type": work_item_type -"/dataflow:v1b3/LeaseWorkItemRequest/workerCapabilities": worker_capabilities -"/dataflow:v1b3/LeaseWorkItemRequest/workerCapabilities/worker_capability": worker_capability -"/dataflow:v1b3/LeaseWorkItemRequest/workerId": worker_id -"/dataflow:v1b3/GetDebugConfigRequest": get_debug_config_request -"/dataflow:v1b3/GetDebugConfigRequest/componentId": component_id -"/dataflow:v1b3/GetDebugConfigRequest/workerId": worker_id -"/dataflow:v1b3/GetDebugConfigRequest/location": location "/dataflow:v1b3/GetTemplateResponse": get_template_response "/dataflow:v1b3/GetTemplateResponse/metadata": metadata "/dataflow:v1b3/GetTemplateResponse/status": status @@ -19741,11 +19720,11 @@ "/dataflow:v1b3/Parameter/key": key "/dataflow:v1b3/Parameter/value": value "/dataflow:v1b3/ReportWorkItemStatusRequest": report_work_item_status_request -"/dataflow:v1b3/ReportWorkItemStatusRequest/workerId": worker_id -"/dataflow:v1b3/ReportWorkItemStatusRequest/currentWorkerTime": current_worker_time -"/dataflow:v1b3/ReportWorkItemStatusRequest/location": location "/dataflow:v1b3/ReportWorkItemStatusRequest/workItemStatuses": work_item_statuses "/dataflow:v1b3/ReportWorkItemStatusRequest/workItemStatuses/work_item_status": work_item_status +"/dataflow:v1b3/ReportWorkItemStatusRequest/currentWorkerTime": current_worker_time +"/dataflow:v1b3/ReportWorkItemStatusRequest/workerId": worker_id +"/dataflow:v1b3/ReportWorkItemStatusRequest/location": location "/dataflow:v1b3/PipelineDescription": pipeline_description "/dataflow:v1b3/PipelineDescription/originalPipelineTransform": original_pipeline_transform "/dataflow:v1b3/PipelineDescription/originalPipelineTransform/original_pipeline_transform": original_pipeline_transform @@ -19754,183 +19733,183 @@ "/dataflow:v1b3/PipelineDescription/executionPipelineStage": execution_pipeline_stage "/dataflow:v1b3/PipelineDescription/executionPipelineStage/execution_pipeline_stage": execution_pipeline_stage "/dataflow:v1b3/StreamingConfigTask": streaming_config_task -"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs": streaming_computation_configs -"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs/streaming_computation_config": streaming_computation_config -"/dataflow:v1b3/StreamingConfigTask/windmillServiceEndpoint": windmill_service_endpoint "/dataflow:v1b3/StreamingConfigTask/userStepToStateFamilyNameMap": user_step_to_state_family_name_map "/dataflow:v1b3/StreamingConfigTask/userStepToStateFamilyNameMap/user_step_to_state_family_name_map": user_step_to_state_family_name_map "/dataflow:v1b3/StreamingConfigTask/windmillServicePort": windmill_service_port -"/dataflow:v1b3/Step": step -"/dataflow:v1b3/Step/kind": kind -"/dataflow:v1b3/Step/properties": properties -"/dataflow:v1b3/Step/properties/property": property -"/dataflow:v1b3/Step/name": name +"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs": streaming_computation_configs +"/dataflow:v1b3/StreamingConfigTask/streamingComputationConfigs/streaming_computation_config": streaming_computation_config +"/dataflow:v1b3/StreamingConfigTask/windmillServiceEndpoint": windmill_service_endpoint "/dataflow:v1b3/JobExecutionInfo": job_execution_info "/dataflow:v1b3/JobExecutionInfo/stages": stages "/dataflow:v1b3/JobExecutionInfo/stages/stage": stage +"/dataflow:v1b3/Step": step +"/dataflow:v1b3/Step/name": name +"/dataflow:v1b3/Step/kind": kind +"/dataflow:v1b3/Step/properties": properties +"/dataflow:v1b3/Step/properties/property": property "/dataflow:v1b3/FailedLocation": failed_location "/dataflow:v1b3/FailedLocation/name": name "/dataflow:v1b3/Disk": disk -"/dataflow:v1b3/Disk/sizeGb": size_gb -"/dataflow:v1b3/Disk/diskType": disk_type "/dataflow:v1b3/Disk/mountPoint": mount_point +"/dataflow:v1b3/Disk/diskType": disk_type +"/dataflow:v1b3/Disk/sizeGb": size_gb +"/dataflow:v1b3/CounterMetadata": counter_metadata +"/dataflow:v1b3/CounterMetadata/description": description +"/dataflow:v1b3/CounterMetadata/kind": kind +"/dataflow:v1b3/CounterMetadata/standardUnits": standard_units +"/dataflow:v1b3/CounterMetadata/otherUnits": other_units "/dataflow:v1b3/ListJobMessagesResponse": list_job_messages_response "/dataflow:v1b3/ListJobMessagesResponse/nextPageToken": next_page_token "/dataflow:v1b3/ListJobMessagesResponse/autoscalingEvents": autoscaling_events "/dataflow:v1b3/ListJobMessagesResponse/autoscalingEvents/autoscaling_event": autoscaling_event "/dataflow:v1b3/ListJobMessagesResponse/jobMessages": job_messages "/dataflow:v1b3/ListJobMessagesResponse/jobMessages/job_message": job_message -"/dataflow:v1b3/CounterMetadata": counter_metadata -"/dataflow:v1b3/CounterMetadata/kind": kind -"/dataflow:v1b3/CounterMetadata/description": description -"/dataflow:v1b3/CounterMetadata/standardUnits": standard_units -"/dataflow:v1b3/CounterMetadata/otherUnits": other_units "/dataflow:v1b3/ApproximateReportedProgress": approximate_reported_progress +"/dataflow:v1b3/ApproximateReportedProgress/remainingParallelism": remaining_parallelism "/dataflow:v1b3/ApproximateReportedProgress/position": position "/dataflow:v1b3/ApproximateReportedProgress/fractionConsumed": fraction_consumed "/dataflow:v1b3/ApproximateReportedProgress/consumedParallelism": consumed_parallelism -"/dataflow:v1b3/ApproximateReportedProgress/remainingParallelism": remaining_parallelism -"/dataflow:v1b3/StateFamilyConfig": state_family_config -"/dataflow:v1b3/StateFamilyConfig/isRead": is_read -"/dataflow:v1b3/StateFamilyConfig/stateFamily": state_family "/dataflow:v1b3/IntegerList": integer_list "/dataflow:v1b3/IntegerList/elements": elements "/dataflow:v1b3/IntegerList/elements/element": element +"/dataflow:v1b3/StateFamilyConfig": state_family_config +"/dataflow:v1b3/StateFamilyConfig/stateFamily": state_family +"/dataflow:v1b3/StateFamilyConfig/isRead": is_read "/dataflow:v1b3/ResourceUtilizationReportResponse": resource_utilization_report_response "/dataflow:v1b3/SourceSplitResponse": source_split_response +"/dataflow:v1b3/SourceSplitResponse/bundles": bundles +"/dataflow:v1b3/SourceSplitResponse/bundles/bundle": bundle "/dataflow:v1b3/SourceSplitResponse/shards": shards "/dataflow:v1b3/SourceSplitResponse/shards/shard": shard "/dataflow:v1b3/SourceSplitResponse/outcome": outcome -"/dataflow:v1b3/SourceSplitResponse/bundles": bundles -"/dataflow:v1b3/SourceSplitResponse/bundles/bundle": bundle "/dataflow:v1b3/ParallelInstruction": parallel_instruction -"/dataflow:v1b3/ParallelInstruction/read": read -"/dataflow:v1b3/ParallelInstruction/parDo": par_do -"/dataflow:v1b3/ParallelInstruction/flatten": flatten "/dataflow:v1b3/ParallelInstruction/originalName": original_name -"/dataflow:v1b3/ParallelInstruction/systemName": system_name +"/dataflow:v1b3/ParallelInstruction/flatten": flatten "/dataflow:v1b3/ParallelInstruction/write": write +"/dataflow:v1b3/ParallelInstruction/systemName": system_name "/dataflow:v1b3/ParallelInstruction/partialGroupByKey": partial_group_by_key "/dataflow:v1b3/ParallelInstruction/outputs": outputs "/dataflow:v1b3/ParallelInstruction/outputs/output": output "/dataflow:v1b3/ParallelInstruction/name": name -"/dataflow:v1b3/KeyRangeDataDiskAssignment": key_range_data_disk_assignment -"/dataflow:v1b3/KeyRangeDataDiskAssignment/start": start -"/dataflow:v1b3/KeyRangeDataDiskAssignment/dataDisk": data_disk -"/dataflow:v1b3/KeyRangeDataDiskAssignment/end": end +"/dataflow:v1b3/ParallelInstruction/read": read +"/dataflow:v1b3/ParallelInstruction/parDo": par_do "/dataflow:v1b3/Package": package "/dataflow:v1b3/Package/location": location "/dataflow:v1b3/Package/name": name +"/dataflow:v1b3/KeyRangeDataDiskAssignment": key_range_data_disk_assignment +"/dataflow:v1b3/KeyRangeDataDiskAssignment/dataDisk": data_disk +"/dataflow:v1b3/KeyRangeDataDiskAssignment/start": start +"/dataflow:v1b3/KeyRangeDataDiskAssignment/end": end "/dataflow:v1b3/ParDoInstruction": par_do_instruction +"/dataflow:v1b3/ParDoInstruction/sideInputs": side_inputs +"/dataflow:v1b3/ParDoInstruction/sideInputs/side_input": side_input "/dataflow:v1b3/ParDoInstruction/multiOutputInfos": multi_output_infos "/dataflow:v1b3/ParDoInstruction/multiOutputInfos/multi_output_info": multi_output_info "/dataflow:v1b3/ParDoInstruction/userFn": user_fn "/dataflow:v1b3/ParDoInstruction/userFn/user_fn": user_fn "/dataflow:v1b3/ParDoInstruction/input": input "/dataflow:v1b3/ParDoInstruction/numOutputs": num_outputs -"/dataflow:v1b3/ParDoInstruction/sideInputs": side_inputs -"/dataflow:v1b3/ParDoInstruction/sideInputs/side_input": side_input "/dataflow:v1b3/MetricUpdate": metric_update -"/dataflow:v1b3/MetricUpdate/updateTime": update_time -"/dataflow:v1b3/MetricUpdate/name": name -"/dataflow:v1b3/MetricUpdate/distribution": distribution -"/dataflow:v1b3/MetricUpdate/set": set "/dataflow:v1b3/MetricUpdate/internal": internal "/dataflow:v1b3/MetricUpdate/cumulative": cumulative "/dataflow:v1b3/MetricUpdate/kind": kind "/dataflow:v1b3/MetricUpdate/scalar": scalar "/dataflow:v1b3/MetricUpdate/meanCount": mean_count "/dataflow:v1b3/MetricUpdate/meanSum": mean_sum +"/dataflow:v1b3/MetricUpdate/updateTime": update_time +"/dataflow:v1b3/MetricUpdate/name": name +"/dataflow:v1b3/MetricUpdate/distribution": distribution +"/dataflow:v1b3/MetricUpdate/set": set "/dataflow:v1b3/CounterStructuredName": counter_structured_name -"/dataflow:v1b3/CounterStructuredName/originNamespace": origin_namespace -"/dataflow:v1b3/CounterStructuredName/origin": origin -"/dataflow:v1b3/CounterStructuredName/name": name -"/dataflow:v1b3/CounterStructuredName/executionStepName": execution_step_name "/dataflow:v1b3/CounterStructuredName/componentStepName": component_step_name "/dataflow:v1b3/CounterStructuredName/portion": portion "/dataflow:v1b3/CounterStructuredName/originalStepName": original_step_name "/dataflow:v1b3/CounterStructuredName/workerId": worker_id +"/dataflow:v1b3/CounterStructuredName/originNamespace": origin_namespace +"/dataflow:v1b3/CounterStructuredName/name": name +"/dataflow:v1b3/CounterStructuredName/executionStepName": execution_step_name +"/dataflow:v1b3/CounterStructuredName/origin": origin "/dataflow:v1b3/ApproximateProgress": approximate_progress +"/dataflow:v1b3/ApproximateProgress/percentComplete": percent_complete "/dataflow:v1b3/ApproximateProgress/remainingTime": remaining_time "/dataflow:v1b3/ApproximateProgress/position": position -"/dataflow:v1b3/ApproximateProgress/percentComplete": percent_complete "/dataflow:v1b3/WorkerMessageResponse": worker_message_response -"/dataflow:v1b3/WorkerMessageResponse/workerHealthReportResponse": worker_health_report_response "/dataflow:v1b3/WorkerMessageResponse/workerMetricsResponse": worker_metrics_response +"/dataflow:v1b3/WorkerMessageResponse/workerHealthReportResponse": worker_health_report_response "/dataflow:v1b3/TemplateMetadata": template_metadata -"/dataflow:v1b3/TemplateMetadata/name": name "/dataflow:v1b3/TemplateMetadata/parameters": parameters "/dataflow:v1b3/TemplateMetadata/parameters/parameter": parameter +"/dataflow:v1b3/TemplateMetadata/name": name "/dataflow:v1b3/TemplateMetadata/description": description "/dataflow:v1b3/WorkerMessage": worker_message -"/dataflow:v1b3/WorkerMessage/workerMessageCode": worker_message_code +"/dataflow:v1b3/WorkerMessage/workerHealthReport": worker_health_report "/dataflow:v1b3/WorkerMessage/workerMetrics": worker_metrics +"/dataflow:v1b3/WorkerMessage/workerMessageCode": worker_message_code "/dataflow:v1b3/WorkerMessage/labels": labels "/dataflow:v1b3/WorkerMessage/labels/label": label "/dataflow:v1b3/WorkerMessage/time": time -"/dataflow:v1b3/WorkerMessage/workerHealthReport": worker_health_report "/dataflow:v1b3/JobMetrics": job_metrics -"/dataflow:v1b3/JobMetrics/metricTime": metric_time "/dataflow:v1b3/JobMetrics/metrics": metrics "/dataflow:v1b3/JobMetrics/metrics/metric": metric +"/dataflow:v1b3/JobMetrics/metricTime": metric_time "/dataflow:v1b3/FloatingPointList": floating_point_list "/dataflow:v1b3/FloatingPointList/elements": elements "/dataflow:v1b3/FloatingPointList/elements/element": element "/dataflow:v1b3/CounterUpdate": counter_update -"/dataflow:v1b3/CounterUpdate/shortId": short_id "/dataflow:v1b3/CounterUpdate/floatingPointList": floating_point_list "/dataflow:v1b3/CounterUpdate/integer": integer "/dataflow:v1b3/CounterUpdate/structuredNameAndMetadata": structured_name_and_metadata "/dataflow:v1b3/CounterUpdate/integerList": integer_list "/dataflow:v1b3/CounterUpdate/integerMean": integer_mean "/dataflow:v1b3/CounterUpdate/floatingPoint": floating_point -"/dataflow:v1b3/CounterUpdate/cumulative": cumulative "/dataflow:v1b3/CounterUpdate/internal": internal +"/dataflow:v1b3/CounterUpdate/cumulative": cumulative "/dataflow:v1b3/CounterUpdate/floatingPointMean": floating_point_mean "/dataflow:v1b3/CounterUpdate/boolean": boolean "/dataflow:v1b3/CounterUpdate/nameAndKind": name_and_kind "/dataflow:v1b3/CounterUpdate/stringList": string_list "/dataflow:v1b3/CounterUpdate/distribution": distribution +"/dataflow:v1b3/CounterUpdate/shortId": short_id "/dataflow:v1b3/SourceMetadata": source_metadata -"/dataflow:v1b3/SourceMetadata/producesSortedKeys": produces_sorted_keys -"/dataflow:v1b3/SourceMetadata/infinite": infinite "/dataflow:v1b3/SourceMetadata/estimatedSizeBytes": estimated_size_bytes +"/dataflow:v1b3/SourceMetadata/infinite": infinite +"/dataflow:v1b3/SourceMetadata/producesSortedKeys": produces_sorted_keys "/dataflow:v1b3/DistributionUpdate": distribution_update -"/dataflow:v1b3/DistributionUpdate/sum": sum "/dataflow:v1b3/DistributionUpdate/max": max "/dataflow:v1b3/DistributionUpdate/logBuckets": log_buckets "/dataflow:v1b3/DistributionUpdate/logBuckets/log_bucket": log_bucket "/dataflow:v1b3/DistributionUpdate/count": count "/dataflow:v1b3/DistributionUpdate/min": min "/dataflow:v1b3/DistributionUpdate/sumOfSquares": sum_of_squares -"/dataflow:v1b3/WorkerHealthReportResponse": worker_health_report_response -"/dataflow:v1b3/WorkerHealthReportResponse/reportInterval": report_interval +"/dataflow:v1b3/DistributionUpdate/sum": sum "/dataflow:v1b3/SourceFork": source_fork +"/dataflow:v1b3/SourceFork/primarySource": primary_source "/dataflow:v1b3/SourceFork/residual": residual "/dataflow:v1b3/SourceFork/residualSource": residual_source "/dataflow:v1b3/SourceFork/primary": primary -"/dataflow:v1b3/SourceFork/primarySource": primary_source +"/dataflow:v1b3/WorkerHealthReportResponse": worker_health_report_response +"/dataflow:v1b3/WorkerHealthReportResponse/reportInterval": report_interval "/dataflow:v1b3/WorkItemStatus": work_item_status +"/dataflow:v1b3/WorkItemStatus/counterUpdates": counter_updates +"/dataflow:v1b3/WorkItemStatus/counterUpdates/counter_update": counter_update +"/dataflow:v1b3/WorkItemStatus/workItemId": work_item_id +"/dataflow:v1b3/WorkItemStatus/metricUpdates": metric_updates +"/dataflow:v1b3/WorkItemStatus/metricUpdates/metric_update": metric_update +"/dataflow:v1b3/WorkItemStatus/errors": errors +"/dataflow:v1b3/WorkItemStatus/errors/error": error +"/dataflow:v1b3/WorkItemStatus/dynamicSourceSplit": dynamic_source_split +"/dataflow:v1b3/WorkItemStatus/sourceOperationResponse": source_operation_response +"/dataflow:v1b3/WorkItemStatus/progress": progress "/dataflow:v1b3/WorkItemStatus/requestedLeaseDuration": requested_lease_duration "/dataflow:v1b3/WorkItemStatus/reportIndex": report_index "/dataflow:v1b3/WorkItemStatus/stopPosition": stop_position "/dataflow:v1b3/WorkItemStatus/completed": completed "/dataflow:v1b3/WorkItemStatus/reportedProgress": reported_progress "/dataflow:v1b3/WorkItemStatus/sourceFork": source_fork -"/dataflow:v1b3/WorkItemStatus/counterUpdates": counter_updates -"/dataflow:v1b3/WorkItemStatus/counterUpdates/counter_update": counter_update -"/dataflow:v1b3/WorkItemStatus/workItemId": work_item_id -"/dataflow:v1b3/WorkItemStatus/errors": errors -"/dataflow:v1b3/WorkItemStatus/errors/error": error -"/dataflow:v1b3/WorkItemStatus/metricUpdates": metric_updates -"/dataflow:v1b3/WorkItemStatus/metricUpdates/metric_update": metric_update -"/dataflow:v1b3/WorkItemStatus/dynamicSourceSplit": dynamic_source_split -"/dataflow:v1b3/WorkItemStatus/sourceOperationResponse": source_operation_response -"/dataflow:v1b3/WorkItemStatus/progress": progress "/dataflow:v1b3/ComponentSource": component_source -"/dataflow:v1b3/ComponentSource/originalTransformOrCollection": original_transform_or_collection "/dataflow:v1b3/ComponentSource/name": name "/dataflow:v1b3/ComponentSource/userName": user_name +"/dataflow:v1b3/ComponentSource/originalTransformOrCollection": original_transform_or_collection "/dataflow:v1b3/WorkItemServiceState": work_item_service_state "/dataflow:v1b3/WorkItemServiceState/suggestedStopPoint": suggested_stop_point "/dataflow:v1b3/WorkItemServiceState/splitRequest": split_request @@ -19945,35 +19924,35 @@ "/dataflow:v1b3/MetricStructuredName": metric_structured_name "/dataflow:v1b3/MetricStructuredName/context": context "/dataflow:v1b3/MetricStructuredName/context/context": context -"/dataflow:v1b3/MetricStructuredName/origin": origin "/dataflow:v1b3/MetricStructuredName/name": name +"/dataflow:v1b3/MetricStructuredName/origin": origin "/dataflow:v1b3/SeqMapTaskOutputInfo": seq_map_task_output_info -"/dataflow:v1b3/SeqMapTaskOutputInfo/sink": sink "/dataflow:v1b3/SeqMapTaskOutputInfo/tag": tag +"/dataflow:v1b3/SeqMapTaskOutputInfo/sink": sink "/dataflow:v1b3/JobExecutionStageInfo": job_execution_stage_info "/dataflow:v1b3/JobExecutionStageInfo/stepName": step_name "/dataflow:v1b3/JobExecutionStageInfo/stepName/step_name": step_name "/dataflow:v1b3/KeyRangeLocation": key_range_location +"/dataflow:v1b3/KeyRangeLocation/deliveryEndpoint": delivery_endpoint +"/dataflow:v1b3/KeyRangeLocation/dataDisk": data_disk +"/dataflow:v1b3/KeyRangeLocation/start": start "/dataflow:v1b3/KeyRangeLocation/end": end "/dataflow:v1b3/KeyRangeLocation/deprecatedPersistentDirectory": deprecated_persistent_directory -"/dataflow:v1b3/KeyRangeLocation/deliveryEndpoint": delivery_endpoint -"/dataflow:v1b3/KeyRangeLocation/start": start -"/dataflow:v1b3/KeyRangeLocation/dataDisk": data_disk "/dataflow:v1b3/SourceGetMetadataRequest": source_get_metadata_request "/dataflow:v1b3/SourceGetMetadataRequest/source": source -"/dataflow:v1b3/NameAndKind": name_and_kind -"/dataflow:v1b3/NameAndKind/kind": kind -"/dataflow:v1b3/NameAndKind/name": name "/dataflow:v1b3/SeqMapTask": seq_map_task +"/dataflow:v1b3/SeqMapTask/name": name +"/dataflow:v1b3/SeqMapTask/outputInfos": output_infos +"/dataflow:v1b3/SeqMapTask/outputInfos/output_info": output_info "/dataflow:v1b3/SeqMapTask/inputs": inputs "/dataflow:v1b3/SeqMapTask/inputs/input": input "/dataflow:v1b3/SeqMapTask/stageName": stage_name "/dataflow:v1b3/SeqMapTask/systemName": system_name "/dataflow:v1b3/SeqMapTask/userFn": user_fn "/dataflow:v1b3/SeqMapTask/userFn/user_fn": user_fn -"/dataflow:v1b3/SeqMapTask/name": name -"/dataflow:v1b3/SeqMapTask/outputInfos": output_infos -"/dataflow:v1b3/SeqMapTask/outputInfos/output_info": output_info +"/dataflow:v1b3/NameAndKind": name_and_kind +"/dataflow:v1b3/NameAndKind/name": name +"/dataflow:v1b3/NameAndKind/kind": kind "/dataflow:v1b3/WorkerMessageCode": worker_message_code "/dataflow:v1b3/WorkerMessageCode/parameters": parameters "/dataflow:v1b3/WorkerMessageCode/parameters/parameter": parameter @@ -19981,13 +19960,13 @@ "/dataflow:v1b3/CustomSourceLocation": custom_source_location "/dataflow:v1b3/CustomSourceLocation/stateful": stateful "/dataflow:v1b3/MapTask": map_task -"/dataflow:v1b3/MapTask/systemName": system_name "/dataflow:v1b3/MapTask/stageName": stage_name +"/dataflow:v1b3/MapTask/systemName": system_name "/dataflow:v1b3/MapTask/instructions": instructions "/dataflow:v1b3/MapTask/instructions/instruction": instruction "/dataflow:v1b3/FloatingPointMean": floating_point_mean -"/dataflow:v1b3/FloatingPointMean/sum": sum "/dataflow:v1b3/FloatingPointMean/count": count +"/dataflow:v1b3/FloatingPointMean/sum": sum "/dataflow:v1b3/ReportWorkItemStatusResponse": report_work_item_status_response "/dataflow:v1b3/ReportWorkItemStatusResponse/workItemServiceStates": work_item_service_states "/dataflow:v1b3/ReportWorkItemStatusResponse/workItemServiceStates/work_item_service_state": work_item_service_state @@ -20000,74 +19979,230 @@ "/dataflow:v1b3/InstructionOutput/onlyCountKeyBytes": only_count_key_bytes "/dataflow:v1b3/InstructionOutput/onlyCountValueBytes": only_count_value_bytes "/dataflow:v1b3/CreateJobFromTemplateRequest": create_job_from_template_request +"/dataflow:v1b3/CreateJobFromTemplateRequest/jobName": job_name +"/dataflow:v1b3/CreateJobFromTemplateRequest/gcsPath": gcs_path "/dataflow:v1b3/CreateJobFromTemplateRequest/environment": environment "/dataflow:v1b3/CreateJobFromTemplateRequest/location": location "/dataflow:v1b3/CreateJobFromTemplateRequest/parameters": parameters "/dataflow:v1b3/CreateJobFromTemplateRequest/parameters/parameter": parameter -"/dataflow:v1b3/CreateJobFromTemplateRequest/jobName": job_name -"/dataflow:v1b3/CreateJobFromTemplateRequest/gcsPath": gcs_path "/dataflow:v1b3/IntegerMean": integer_mean "/dataflow:v1b3/IntegerMean/count": count "/dataflow:v1b3/IntegerMean/sum": sum "/dataflow:v1b3/ListJobsResponse": list_jobs_response -"/dataflow:v1b3/ListJobsResponse/jobs": jobs -"/dataflow:v1b3/ListJobsResponse/jobs/job": job -"/dataflow:v1b3/ListJobsResponse/nextPageToken": next_page_token "/dataflow:v1b3/ListJobsResponse/failedLocation": failed_location "/dataflow:v1b3/ListJobsResponse/failedLocation/failed_location": failed_location +"/dataflow:v1b3/ListJobsResponse/nextPageToken": next_page_token +"/dataflow:v1b3/ListJobsResponse/jobs": jobs +"/dataflow:v1b3/ListJobsResponse/jobs/job": job "/dataflow:v1b3/ComputationTopology": computation_topology -"/dataflow:v1b3/ComputationTopology/outputs": outputs -"/dataflow:v1b3/ComputationTopology/outputs/output": output -"/dataflow:v1b3/ComputationTopology/stateFamilies": state_families -"/dataflow:v1b3/ComputationTopology/stateFamilies/state_family": state_family "/dataflow:v1b3/ComputationTopology/systemStageName": system_stage_name +"/dataflow:v1b3/ComputationTopology/computationId": computation_id "/dataflow:v1b3/ComputationTopology/inputs": inputs "/dataflow:v1b3/ComputationTopology/inputs/input": input -"/dataflow:v1b3/ComputationTopology/computationId": computation_id "/dataflow:v1b3/ComputationTopology/keyRanges": key_ranges "/dataflow:v1b3/ComputationTopology/keyRanges/key_range": key_range +"/dataflow:v1b3/ComputationTopology/stateFamilies": state_families +"/dataflow:v1b3/ComputationTopology/stateFamilies/state_family": state_family +"/dataflow:v1b3/ComputationTopology/outputs": outputs +"/dataflow:v1b3/ComputationTopology/outputs/output": output +"/dataflow:v1b3/RuntimeEnvironment": runtime_environment +"/dataflow:v1b3/RuntimeEnvironment/machineType": machine_type +"/dataflow:v1b3/RuntimeEnvironment/zone": zone +"/dataflow:v1b3/RuntimeEnvironment/maxWorkers": max_workers +"/dataflow:v1b3/RuntimeEnvironment/serviceAccountEmail": service_account_email +"/dataflow:v1b3/RuntimeEnvironment/tempLocation": temp_location +"/dataflow:v1b3/RuntimeEnvironment/bypassTempDirValidation": bypass_temp_dir_validation +"/dataflow:v1b3/MountedDataDisk": mounted_data_disk +"/dataflow:v1b3/MountedDataDisk/dataDisk": data_disk +"/dataflow:v1b3/StreamingSideInputLocation": streaming_side_input_location +"/dataflow:v1b3/StreamingSideInputLocation/tag": tag +"/dataflow:v1b3/StreamingSideInputLocation/stateFamily": state_family +"/dataflow:v1b3/LaunchTemplateResponse": launch_template_response +"/dataflow:v1b3/LaunchTemplateResponse/job": job +"/dataflow:v1b3/Job": job +"/dataflow:v1b3/Job/stageStates": stage_states +"/dataflow:v1b3/Job/stageStates/stage_state": stage_state +"/dataflow:v1b3/Job/projectId": project_id +"/dataflow:v1b3/Job/type": type +"/dataflow:v1b3/Job/pipelineDescription": pipeline_description +"/dataflow:v1b3/Job/replaceJobId": replace_job_id +"/dataflow:v1b3/Job/requestedState": requested_state +"/dataflow:v1b3/Job/tempFiles": temp_files +"/dataflow:v1b3/Job/tempFiles/temp_file": temp_file +"/dataflow:v1b3/Job/clientRequestId": client_request_id +"/dataflow:v1b3/Job/name": name +"/dataflow:v1b3/Job/steps": steps +"/dataflow:v1b3/Job/steps/step": step +"/dataflow:v1b3/Job/replacedByJobId": replaced_by_job_id +"/dataflow:v1b3/Job/executionInfo": execution_info +"/dataflow:v1b3/Job/id": id +"/dataflow:v1b3/Job/currentState": current_state +"/dataflow:v1b3/Job/location": location +"/dataflow:v1b3/Job/currentStateTime": current_state_time +"/dataflow:v1b3/Job/transformNameMapping": transform_name_mapping +"/dataflow:v1b3/Job/transformNameMapping/transform_name_mapping": transform_name_mapping +"/dataflow:v1b3/Job/labels": labels +"/dataflow:v1b3/Job/labels/label": label +"/dataflow:v1b3/Job/environment": environment +"/dataflow:v1b3/Job/createTime": create_time +"/dataflow:v1b3/DynamicSourceSplit": dynamic_source_split +"/dataflow:v1b3/DynamicSourceSplit/residual": residual +"/dataflow:v1b3/DynamicSourceSplit/primary": primary +"/dataflow:v1b3/DerivedSource": derived_source +"/dataflow:v1b3/DerivedSource/source": source +"/dataflow:v1b3/DerivedSource/derivationMode": derivation_mode +"/dataflow:v1b3/SourceOperationResponse": source_operation_response +"/dataflow:v1b3/SourceOperationResponse/split": split +"/dataflow:v1b3/SourceOperationResponse/getMetadata": get_metadata +"/dataflow:v1b3/SideInputInfo": side_input_info +"/dataflow:v1b3/SideInputInfo/tag": tag +"/dataflow:v1b3/SideInputInfo/kind": kind +"/dataflow:v1b3/SideInputInfo/kind/kind": kind +"/dataflow:v1b3/SideInputInfo/sources": sources +"/dataflow:v1b3/SideInputInfo/sources/source": source +"/dataflow:v1b3/SendDebugCaptureResponse": send_debug_capture_response +"/dataflow:v1b3/ConcatPosition": concat_position +"/dataflow:v1b3/ConcatPosition/position": position +"/dataflow:v1b3/ConcatPosition/index": index +"/dataflow:v1b3/CounterStructuredNameAndMetadata": counter_structured_name_and_metadata +"/dataflow:v1b3/CounterStructuredNameAndMetadata/name": name +"/dataflow:v1b3/CounterStructuredNameAndMetadata/metadata": metadata +"/dataflow:v1b3/WriteInstruction": write_instruction +"/dataflow:v1b3/WriteInstruction/sink": sink +"/dataflow:v1b3/WriteInstruction/input": input +"/dataflow:v1b3/StreamingComputationRanges": streaming_computation_ranges +"/dataflow:v1b3/StreamingComputationRanges/rangeAssignments": range_assignments +"/dataflow:v1b3/StreamingComputationRanges/rangeAssignments/range_assignment": range_assignment +"/dataflow:v1b3/StreamingComputationRanges/computationId": computation_id +"/dataflow:v1b3/AutoscalingSettings": autoscaling_settings +"/dataflow:v1b3/AutoscalingSettings/algorithm": algorithm +"/dataflow:v1b3/AutoscalingSettings/maxNumWorkers": max_num_workers +"/dataflow:v1b3/ExecutionStageSummary": execution_stage_summary +"/dataflow:v1b3/ExecutionStageSummary/componentSource": component_source +"/dataflow:v1b3/ExecutionStageSummary/componentSource/component_source": component_source +"/dataflow:v1b3/ExecutionStageSummary/kind": kind +"/dataflow:v1b3/ExecutionStageSummary/outputSource": output_source +"/dataflow:v1b3/ExecutionStageSummary/outputSource/output_source": output_source +"/dataflow:v1b3/ExecutionStageSummary/name": name +"/dataflow:v1b3/ExecutionStageSummary/inputSource": input_source +"/dataflow:v1b3/ExecutionStageSummary/inputSource/input_source": input_source +"/dataflow:v1b3/ExecutionStageSummary/id": id +"/dataflow:v1b3/ExecutionStageSummary/componentTransform": component_transform +"/dataflow:v1b3/ExecutionStageSummary/componentTransform/component_transform": component_transform +"/dataflow:v1b3/SendWorkerMessagesRequest": send_worker_messages_request +"/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages": worker_messages +"/dataflow:v1b3/SendWorkerMessagesRequest/workerMessages/worker_message": worker_message +"/dataflow:v1b3/SendWorkerMessagesRequest/location": location +"/dataflow:v1b3/LogBucket": log_bucket +"/dataflow:v1b3/LogBucket/log": log +"/dataflow:v1b3/LogBucket/count": count +"/dataflow:v1b3/SourceSplitShard": source_split_shard +"/dataflow:v1b3/SourceSplitShard/derivationMode": derivation_mode +"/dataflow:v1b3/SourceSplitShard/source": source +"/dataflow:v1b3/CPUTime": cpu_time +"/dataflow:v1b3/CPUTime/totalMs": total_ms +"/dataflow:v1b3/CPUTime/rate": rate +"/dataflow:v1b3/CPUTime/timestamp": timestamp +"/dataflow:v1b3/Environment": environment +"/dataflow:v1b3/Environment/clusterManagerApiService": cluster_manager_api_service +"/dataflow:v1b3/Environment/tempStoragePrefix": temp_storage_prefix +"/dataflow:v1b3/Environment/workerPools": worker_pools +"/dataflow:v1b3/Environment/workerPools/worker_pool": worker_pool +"/dataflow:v1b3/Environment/dataset": dataset +"/dataflow:v1b3/Environment/experiments": experiments +"/dataflow:v1b3/Environment/experiments/experiment": experiment +"/dataflow:v1b3/Environment/version": version +"/dataflow:v1b3/Environment/version/version": version +"/dataflow:v1b3/Environment/internalExperiments": internal_experiments +"/dataflow:v1b3/Environment/internalExperiments/internal_experiment": internal_experiment +"/dataflow:v1b3/Environment/serviceAccountEmail": service_account_email +"/dataflow:v1b3/Environment/userAgent": user_agent +"/dataflow:v1b3/Environment/userAgent/user_agent": user_agent +"/dataflow:v1b3/Environment/sdkPipelineOptions": sdk_pipeline_options +"/dataflow:v1b3/Environment/sdkPipelineOptions/sdk_pipeline_option": sdk_pipeline_option +"/dataflow:v1b3/StreamingComputationTask": streaming_computation_task +"/dataflow:v1b3/StreamingComputationTask/dataDisks": data_disks +"/dataflow:v1b3/StreamingComputationTask/dataDisks/data_disk": data_disk +"/dataflow:v1b3/StreamingComputationTask/taskType": task_type +"/dataflow:v1b3/StreamingComputationTask/computationRanges": computation_ranges +"/dataflow:v1b3/StreamingComputationTask/computationRanges/computation_range": computation_range +"/dataflow:v1b3/SendDebugCaptureRequest": send_debug_capture_request +"/dataflow:v1b3/SendDebugCaptureRequest/location": location +"/dataflow:v1b3/SendDebugCaptureRequest/data": data +"/dataflow:v1b3/SendDebugCaptureRequest/componentId": component_id +"/dataflow:v1b3/SendDebugCaptureRequest/workerId": worker_id +"/dataflow:v1b3/GetDebugConfigResponse": get_debug_config_response +"/dataflow:v1b3/GetDebugConfigResponse/config": config +"/dataflow:v1b3/ComponentTransform": component_transform +"/dataflow:v1b3/ComponentTransform/originalTransform": original_transform +"/dataflow:v1b3/ComponentTransform/name": name +"/dataflow:v1b3/ComponentTransform/userName": user_name +"/dataflow:v1b3/StreamingSetupTask": streaming_setup_task +"/dataflow:v1b3/StreamingSetupTask/streamingComputationTopology": streaming_computation_topology +"/dataflow:v1b3/StreamingSetupTask/drain": drain +"/dataflow:v1b3/StreamingSetupTask/workerHarnessPort": worker_harness_port +"/dataflow:v1b3/StreamingSetupTask/receiveWorkPort": receive_work_port +"/dataflow:v1b3/PubsubLocation": pubsub_location +"/dataflow:v1b3/PubsubLocation/topic": topic +"/dataflow:v1b3/PubsubLocation/timestampLabel": timestamp_label +"/dataflow:v1b3/PubsubLocation/subscription": subscription +"/dataflow:v1b3/PubsubLocation/dropLateData": drop_late_data +"/dataflow:v1b3/PubsubLocation/trackingSubscription": tracking_subscription +"/dataflow:v1b3/PubsubLocation/withAttributes": with_attributes +"/dataflow:v1b3/PubsubLocation/idLabel": id_label +"/dataflow:v1b3/WorkerHealthReport": worker_health_report +"/dataflow:v1b3/WorkerHealthReport/pods": pods +"/dataflow:v1b3/WorkerHealthReport/pods/pod": pod +"/dataflow:v1b3/WorkerHealthReport/pods/pod/pod": pod +"/dataflow:v1b3/WorkerHealthReport/vmStartupTime": vm_startup_time +"/dataflow:v1b3/WorkerHealthReport/reportInterval": report_interval +"/dataflow:v1b3/WorkerHealthReport/vmIsHealthy": vm_is_healthy +"/dataflow:v1b3/JobMessage": job_message +"/dataflow:v1b3/JobMessage/id": id +"/dataflow:v1b3/JobMessage/messageImportance": message_importance +"/dataflow:v1b3/JobMessage/messageText": message_text +"/dataflow:v1b3/JobMessage/time": time +"/dataflow:v1b3/ParameterMetadata": parameter_metadata +"/dataflow:v1b3/ParameterMetadata/regexes": regexes +"/dataflow:v1b3/ParameterMetadata/regexes/regex": regex +"/dataflow:v1b3/ParameterMetadata/label": label +"/dataflow:v1b3/ParameterMetadata/helpText": help_text +"/dataflow:v1b3/ParameterMetadata/isOptional": is_optional +"/dataflow:v1b3/ParameterMetadata/name": name +"/dataproc:v1/fields": fields "/dataproc:v1/key": key "/dataproc:v1/quotaUser": quota_user -"/dataproc:v1/fields": fields -"/dataproc:v1/dataproc.projects.regions.clusters.get/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.create/region": region +"/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.get/clusterName": cluster_name "/dataproc:v1/dataproc.projects.regions.clusters.get/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.clusters.patch/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.get/region": region "/dataproc:v1/dataproc.projects.regions.clusters.patch/updateMask": update_mask "/dataproc:v1/dataproc.projects.regions.clusters.patch/region": region "/dataproc:v1/dataproc.projects.regions.clusters.patch/clusterName": cluster_name +"/dataproc:v1/dataproc.projects.regions.clusters.patch/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.diagnose": diagnose_cluster +"/dataproc:v1/dataproc.projects.regions.clusters.diagnose/clusterName": cluster_name "/dataproc:v1/dataproc.projects.regions.clusters.diagnose/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.diagnose/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.diagnose/clusterName": cluster_name "/dataproc:v1/dataproc.projects.regions.clusters.delete/region": region "/dataproc:v1/dataproc.projects.regions.clusters.delete/clusterName": cluster_name "/dataproc:v1/dataproc.projects.regions.clusters.delete/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.clusters.list/pageToken": page_token "/dataproc:v1/dataproc.projects.regions.clusters.list/pageSize": page_size "/dataproc:v1/dataproc.projects.regions.clusters.list/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.list/filter": filter "/dataproc:v1/dataproc.projects.regions.clusters.list/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.list/pageToken": page_token -"/dataproc:v1/dataproc.projects.regions.clusters.create/region": region -"/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.operations.cancel/name": name -"/dataproc:v1/dataproc.projects.regions.operations.delete/name": name "/dataproc:v1/dataproc.projects.regions.operations.get/name": name "/dataproc:v1/dataproc.projects.regions.operations.list/filter": filter "/dataproc:v1/dataproc.projects.regions.operations.list/pageToken": page_token "/dataproc:v1/dataproc.projects.regions.operations.list/name": name "/dataproc:v1/dataproc.projects.regions.operations.list/pageSize": page_size -"/dataproc:v1/dataproc.projects.regions.jobs.patch": patch_project_region_job -"/dataproc:v1/dataproc.projects.regions.jobs.patch/updateMask": update_mask -"/dataproc:v1/dataproc.projects.regions.jobs.patch/region": region -"/dataproc:v1/dataproc.projects.regions.jobs.patch/jobId": job_id -"/dataproc:v1/dataproc.projects.regions.jobs.patch/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.jobs.get/region": region -"/dataproc:v1/dataproc.projects.regions.jobs.get/jobId": job_id -"/dataproc:v1/dataproc.projects.regions.jobs.get/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.operations.cancel/name": name +"/dataproc:v1/dataproc.projects.regions.operations.delete/name": name "/dataproc:v1/dataproc.projects.regions.jobs.submit": submit_job -"/dataproc:v1/dataproc.projects.regions.jobs.submit/region": region "/dataproc:v1/dataproc.projects.regions.jobs.submit/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.jobs.submit/region": region "/dataproc:v1/dataproc.projects.regions.jobs.delete/jobId": job_id "/dataproc:v1/dataproc.projects.regions.jobs.delete/projectId": project_id "/dataproc:v1/dataproc.projects.regions.jobs.delete/region": region @@ -20079,11 +20214,36 @@ "/dataproc:v1/dataproc.projects.regions.jobs.list/clusterName": cluster_name "/dataproc:v1/dataproc.projects.regions.jobs.list/projectId": project_id "/dataproc:v1/dataproc.projects.regions.jobs.cancel": cancel_job +"/dataproc:v1/dataproc.projects.regions.jobs.cancel/region": region "/dataproc:v1/dataproc.projects.regions.jobs.cancel/jobId": job_id "/dataproc:v1/dataproc.projects.regions.jobs.cancel/projectId": project_id -"/dataproc:v1/dataproc.projects.regions.jobs.cancel/region": region -"/dataproc:v1/JobScheduling": job_scheduling -"/dataproc:v1/JobScheduling/maxFailuresPerHour": max_failures_per_hour +"/dataproc:v1/dataproc.projects.regions.jobs.get/jobId": job_id +"/dataproc:v1/dataproc.projects.regions.jobs.get/projectId": project_id +"/dataproc:v1/dataproc.projects.regions.jobs.get/region": region +"/dataproc:v1/dataproc.projects.regions.jobs.patch": patch_project_region_job +"/dataproc:v1/dataproc.projects.regions.jobs.patch/updateMask": update_mask +"/dataproc:v1/dataproc.projects.regions.jobs.patch/region": region +"/dataproc:v1/dataproc.projects.regions.jobs.patch/jobId": job_id +"/dataproc:v1/dataproc.projects.regions.jobs.patch/projectId": project_id +"/dataproc:v1/Operation": operation +"/dataproc:v1/Operation/name": name +"/dataproc:v1/Operation/error": error +"/dataproc:v1/Operation/metadata": metadata +"/dataproc:v1/Operation/metadata/metadatum": metadatum +"/dataproc:v1/Operation/done": done +"/dataproc:v1/Operation/response": response +"/dataproc:v1/Operation/response/response": response +"/dataproc:v1/JobReference": job_reference +"/dataproc:v1/JobReference/jobId": job_id +"/dataproc:v1/JobReference/projectId": project_id +"/dataproc:v1/SubmitJobRequest": submit_job_request +"/dataproc:v1/SubmitJobRequest/job": job +"/dataproc:v1/Status": status +"/dataproc:v1/Status/code": code +"/dataproc:v1/Status/message": message +"/dataproc:v1/Status/details": details +"/dataproc:v1/Status/details/detail": detail +"/dataproc:v1/Status/details/detail/detail": detail "/dataproc:v1/InstanceGroupConfig": instance_group_config "/dataproc:v1/InstanceGroupConfig/diskConfig": disk_config "/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri @@ -20095,17 +20255,19 @@ "/dataproc:v1/InstanceGroupConfig/accelerators": accelerators "/dataproc:v1/InstanceGroupConfig/accelerators/accelerator": accelerator "/dataproc:v1/InstanceGroupConfig/numInstances": num_instances -"/dataproc:v1/ListJobsResponse": list_jobs_response -"/dataproc:v1/ListJobsResponse/nextPageToken": next_page_token -"/dataproc:v1/ListJobsResponse/jobs": jobs -"/dataproc:v1/ListJobsResponse/jobs/job": job +"/dataproc:v1/JobScheduling": job_scheduling +"/dataproc:v1/JobScheduling/maxFailuresPerHour": max_failures_per_hour "/dataproc:v1/NodeInitializationAction": node_initialization_action "/dataproc:v1/NodeInitializationAction/executableFile": executable_file "/dataproc:v1/NodeInitializationAction/executionTimeout": execution_timeout +"/dataproc:v1/ListJobsResponse": list_jobs_response +"/dataproc:v1/ListJobsResponse/jobs": jobs +"/dataproc:v1/ListJobsResponse/jobs/job": job +"/dataproc:v1/ListJobsResponse/nextPageToken": next_page_token "/dataproc:v1/CancelJobRequest": cancel_job_request "/dataproc:v1/SparkSqlJob": spark_sql_job -"/dataproc:v1/SparkSqlJob/queryList": query_list "/dataproc:v1/SparkSqlJob/queryFileUri": query_file_uri +"/dataproc:v1/SparkSqlJob/queryList": query_list "/dataproc:v1/SparkSqlJob/scriptVariables": script_variables "/dataproc:v1/SparkSqlJob/scriptVariables/script_variable": script_variable "/dataproc:v1/SparkSqlJob/jarFileUris": jar_file_uris @@ -20116,18 +20278,18 @@ "/dataproc:v1/Cluster": cluster "/dataproc:v1/Cluster/labels": labels "/dataproc:v1/Cluster/labels/label": label -"/dataproc:v1/Cluster/status": status "/dataproc:v1/Cluster/metrics": metrics +"/dataproc:v1/Cluster/status": status "/dataproc:v1/Cluster/statusHistory": status_history "/dataproc:v1/Cluster/statusHistory/status_history": status_history "/dataproc:v1/Cluster/config": config -"/dataproc:v1/Cluster/clusterName": cluster_name "/dataproc:v1/Cluster/clusterUuid": cluster_uuid +"/dataproc:v1/Cluster/clusterName": cluster_name "/dataproc:v1/Cluster/projectId": project_id "/dataproc:v1/ListOperationsResponse": list_operations_response -"/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token "/dataproc:v1/ListOperationsResponse/operations": operations "/dataproc:v1/ListOperationsResponse/operations/operation": operation +"/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token "/dataproc:v1/JobPlacement": job_placement "/dataproc:v1/JobPlacement/clusterUuid": cluster_uuid "/dataproc:v1/JobPlacement/clusterName": cluster_name @@ -20141,6 +20303,9 @@ "/dataproc:v1/ClusterStatus/detail": detail "/dataproc:v1/ClusterStatus/state": state "/dataproc:v1/PigJob": pig_job +"/dataproc:v1/PigJob/continueOnFailure": continue_on_failure +"/dataproc:v1/PigJob/queryList": query_list +"/dataproc:v1/PigJob/queryFileUri": query_file_uri "/dataproc:v1/PigJob/jarFileUris": jar_file_uris "/dataproc:v1/PigJob/jarFileUris/jar_file_uri": jar_file_uri "/dataproc:v1/PigJob/scriptVariables": script_variables @@ -20148,14 +20313,19 @@ "/dataproc:v1/PigJob/loggingConfig": logging_config "/dataproc:v1/PigJob/properties": properties "/dataproc:v1/PigJob/properties/property": property -"/dataproc:v1/PigJob/continueOnFailure": continue_on_failure -"/dataproc:v1/PigJob/queryFileUri": query_file_uri -"/dataproc:v1/PigJob/queryList": query_list "/dataproc:v1/ListClustersResponse": list_clusters_response "/dataproc:v1/ListClustersResponse/nextPageToken": next_page_token "/dataproc:v1/ListClustersResponse/clusters": clusters "/dataproc:v1/ListClustersResponse/clusters/cluster": cluster "/dataproc:v1/Job": job +"/dataproc:v1/Job/hiveJob": hive_job +"/dataproc:v1/Job/labels": labels +"/dataproc:v1/Job/labels/label": label +"/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri +"/dataproc:v1/Job/sparkSqlJob": spark_sql_job +"/dataproc:v1/Job/statusHistory": status_history +"/dataproc:v1/Job/statusHistory/status_history": status_history +"/dataproc:v1/Job/sparkJob": spark_job "/dataproc:v1/Job/yarnApplications": yarn_applications "/dataproc:v1/Job/yarnApplications/yarn_application": yarn_application "/dataproc:v1/Job/pysparkJob": pyspark_job @@ -20166,19 +20336,7 @@ "/dataproc:v1/Job/driverControlFilesUri": driver_control_files_uri "/dataproc:v1/Job/scheduling": scheduling "/dataproc:v1/Job/pigJob": pig_job -"/dataproc:v1/Job/hiveJob": hive_job -"/dataproc:v1/Job/labels": labels -"/dataproc:v1/Job/labels/label": label -"/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri -"/dataproc:v1/Job/sparkSqlJob": spark_sql_job -"/dataproc:v1/Job/statusHistory": status_history -"/dataproc:v1/Job/statusHistory/status_history": status_history -"/dataproc:v1/Job/sparkJob": spark_job "/dataproc:v1/SparkJob": spark_job -"/dataproc:v1/SparkJob/args": args -"/dataproc:v1/SparkJob/args/arg": arg -"/dataproc:v1/SparkJob/fileUris": file_uris -"/dataproc:v1/SparkJob/fileUris/file_uri": file_uri "/dataproc:v1/SparkJob/mainClass": main_class "/dataproc:v1/SparkJob/archiveUris": archive_uris "/dataproc:v1/SparkJob/archiveUris/archive_uri": archive_uri @@ -20188,11 +20346,15 @@ "/dataproc:v1/SparkJob/loggingConfig": logging_config "/dataproc:v1/SparkJob/properties": properties "/dataproc:v1/SparkJob/properties/property": property +"/dataproc:v1/SparkJob/args": args +"/dataproc:v1/SparkJob/args/arg": arg +"/dataproc:v1/SparkJob/fileUris": file_uris +"/dataproc:v1/SparkJob/fileUris/file_uri": file_uri "/dataproc:v1/JobStatus": job_status -"/dataproc:v1/JobStatus/substate": substate -"/dataproc:v1/JobStatus/stateStartTime": state_start_time "/dataproc:v1/JobStatus/details": details "/dataproc:v1/JobStatus/state": state +"/dataproc:v1/JobStatus/substate": substate +"/dataproc:v1/JobStatus/stateStartTime": state_start_time "/dataproc:v1/ManagedGroupConfig": managed_group_config "/dataproc:v1/ManagedGroupConfig/instanceGroupManagerName": instance_group_manager_name "/dataproc:v1/ManagedGroupConfig/instanceTemplateName": instance_template_name @@ -20202,7 +20364,6 @@ "/dataproc:v1/ClusterOperationStatus/innerState": inner_state "/dataproc:v1/ClusterOperationStatus/stateStartTime": state_start_time "/dataproc:v1/HadoopJob": hadoop_job -"/dataproc:v1/HadoopJob/mainJarFileUri": main_jar_file_uri "/dataproc:v1/HadoopJob/jarFileUris": jar_file_uris "/dataproc:v1/HadoopJob/jarFileUris/jar_file_uri": jar_file_uri "/dataproc:v1/HadoopJob/loggingConfig": logging_config @@ -20215,21 +20376,20 @@ "/dataproc:v1/HadoopJob/mainClass": main_class "/dataproc:v1/HadoopJob/archiveUris": archive_uris "/dataproc:v1/HadoopJob/archiveUris/archive_uri": archive_uri +"/dataproc:v1/HadoopJob/mainJarFileUri": main_jar_file_uri "/dataproc:v1/QueryList": query_list "/dataproc:v1/QueryList/queries": queries "/dataproc:v1/QueryList/queries/query": query "/dataproc:v1/YarnApplication": yarn_application -"/dataproc:v1/YarnApplication/trackingUrl": tracking_url -"/dataproc:v1/YarnApplication/progress": progress "/dataproc:v1/YarnApplication/state": state "/dataproc:v1/YarnApplication/name": name +"/dataproc:v1/YarnApplication/trackingUrl": tracking_url +"/dataproc:v1/YarnApplication/progress": progress "/dataproc:v1/DiagnoseClusterRequest": diagnose_cluster_request "/dataproc:v1/DiskConfig": disk_config -"/dataproc:v1/DiskConfig/bootDiskSizeGb": boot_disk_size_gb "/dataproc:v1/DiskConfig/numLocalSsds": num_local_ssds +"/dataproc:v1/DiskConfig/bootDiskSizeGb": boot_disk_size_gb "/dataproc:v1/ClusterOperationMetadata": cluster_operation_metadata -"/dataproc:v1/ClusterOperationMetadata/labels": labels -"/dataproc:v1/ClusterOperationMetadata/labels/label": label "/dataproc:v1/ClusterOperationMetadata/status": status "/dataproc:v1/ClusterOperationMetadata/statusHistory": status_history "/dataproc:v1/ClusterOperationMetadata/statusHistory/status_history": status_history @@ -20239,11 +20399,13 @@ "/dataproc:v1/ClusterOperationMetadata/description": description "/dataproc:v1/ClusterOperationMetadata/warnings": warnings "/dataproc:v1/ClusterOperationMetadata/warnings/warning": warning +"/dataproc:v1/ClusterOperationMetadata/labels": labels +"/dataproc:v1/ClusterOperationMetadata/labels/label": label "/dataproc:v1/HiveJob": hive_job -"/dataproc:v1/HiveJob/scriptVariables": script_variables -"/dataproc:v1/HiveJob/scriptVariables/script_variable": script_variable "/dataproc:v1/HiveJob/jarFileUris": jar_file_uris "/dataproc:v1/HiveJob/jarFileUris/jar_file_uri": jar_file_uri +"/dataproc:v1/HiveJob/scriptVariables": script_variables +"/dataproc:v1/HiveJob/scriptVariables/script_variable": script_variable "/dataproc:v1/HiveJob/properties": properties "/dataproc:v1/HiveJob/properties/property": property "/dataproc:v1/HiveJob/continueOnFailure": continue_on_failure @@ -20253,14 +20415,14 @@ "/dataproc:v1/DiagnoseClusterResults": diagnose_cluster_results "/dataproc:v1/DiagnoseClusterResults/outputUri": output_uri "/dataproc:v1/ClusterConfig": cluster_config +"/dataproc:v1/ClusterConfig/masterConfig": master_config +"/dataproc:v1/ClusterConfig/secondaryWorkerConfig": secondary_worker_config "/dataproc:v1/ClusterConfig/initializationActions": initialization_actions "/dataproc:v1/ClusterConfig/initializationActions/initialization_action": initialization_action "/dataproc:v1/ClusterConfig/configBucket": config_bucket "/dataproc:v1/ClusterConfig/workerConfig": worker_config "/dataproc:v1/ClusterConfig/gceClusterConfig": gce_cluster_config "/dataproc:v1/ClusterConfig/softwareConfig": software_config -"/dataproc:v1/ClusterConfig/masterConfig": master_config -"/dataproc:v1/ClusterConfig/secondaryWorkerConfig": secondary_worker_config "/dataproc:v1/PySparkJob": py_spark_job "/dataproc:v1/PySparkJob/jarFileUris": jar_file_uris "/dataproc:v1/PySparkJob/jarFileUris/jar_file_uri": jar_file_uri @@ -20289,53 +20451,48 @@ "/dataproc:v1/GceClusterConfig/networkUri": network_uri "/dataproc:v1/GceClusterConfig/zoneUri": zone_uri "/dataproc:v1/ClusterMetrics": cluster_metrics -"/dataproc:v1/ClusterMetrics/yarnMetrics": yarn_metrics -"/dataproc:v1/ClusterMetrics/yarnMetrics/yarn_metric": yarn_metric "/dataproc:v1/ClusterMetrics/hdfsMetrics": hdfs_metrics "/dataproc:v1/ClusterMetrics/hdfsMetrics/hdfs_metric": hdfs_metric +"/dataproc:v1/ClusterMetrics/yarnMetrics": yarn_metrics +"/dataproc:v1/ClusterMetrics/yarnMetrics/yarn_metric": yarn_metric "/dataproc:v1/AcceleratorConfig": accelerator_config -"/dataproc:v1/AcceleratorConfig/acceleratorTypeUri": accelerator_type_uri "/dataproc:v1/AcceleratorConfig/acceleratorCount": accelerator_count +"/dataproc:v1/AcceleratorConfig/acceleratorTypeUri": accelerator_type_uri "/dataproc:v1/LoggingConfig": logging_config "/dataproc:v1/LoggingConfig/driverLogLevels": driver_log_levels "/dataproc:v1/LoggingConfig/driverLogLevels/driver_log_level": driver_log_level -"/dataproc:v1/Operation": operation -"/dataproc:v1/Operation/done": done -"/dataproc:v1/Operation/response": response -"/dataproc:v1/Operation/response/response": response -"/dataproc:v1/Operation/name": name -"/dataproc:v1/Operation/error": error -"/dataproc:v1/Operation/metadata": metadata -"/dataproc:v1/Operation/metadata/metadatum": metadatum -"/dataproc:v1/JobReference": job_reference -"/dataproc:v1/JobReference/jobId": job_id -"/dataproc:v1/JobReference/projectId": project_id -"/dataproc:v1/SubmitJobRequest": submit_job_request -"/dataproc:v1/SubmitJobRequest/job": job -"/dataproc:v1/Status": status -"/dataproc:v1/Status/details": details -"/dataproc:v1/Status/details/detail": detail -"/dataproc:v1/Status/details/detail/detail": detail -"/dataproc:v1/Status/code": code -"/dataproc:v1/Status/message": message "/datastore:v1/fields": fields "/datastore:v1/key": key "/datastore:v1/quotaUser": quota_user -"/datastore:v1/datastore.projects.allocateIds": allocate_project_ids -"/datastore:v1/datastore.projects.allocateIds/projectId": project_id -"/datastore:v1/datastore.projects.beginTransaction": begin_project_transaction -"/datastore:v1/datastore.projects.beginTransaction/projectId": project_id -"/datastore:v1/datastore.projects.commit": commit_project -"/datastore:v1/datastore.projects.commit/projectId": project_id "/datastore:v1/datastore.projects.runQuery": run_project_query "/datastore:v1/datastore.projects.runQuery/projectId": project_id "/datastore:v1/datastore.projects.rollback": rollback_project "/datastore:v1/datastore.projects.rollback/projectId": project_id "/datastore:v1/datastore.projects.lookup": lookup_project "/datastore:v1/datastore.projects.lookup/projectId": project_id +"/datastore:v1/datastore.projects.allocateIds": allocate_project_ids +"/datastore:v1/datastore.projects.allocateIds/projectId": project_id +"/datastore:v1/datastore.projects.beginTransaction": begin_project_transaction +"/datastore:v1/datastore.projects.beginTransaction/projectId": project_id +"/datastore:v1/datastore.projects.commit": commit_project +"/datastore:v1/datastore.projects.commit/projectId": project_id +"/datastore:v1/MutationResult": mutation_result +"/datastore:v1/MutationResult/version": version +"/datastore:v1/MutationResult/conflictDetected": conflict_detected +"/datastore:v1/MutationResult/key": key +"/datastore:v1/GqlQuery": gql_query +"/datastore:v1/GqlQuery/positionalBindings": positional_bindings +"/datastore:v1/GqlQuery/positionalBindings/positional_binding": positional_binding +"/datastore:v1/GqlQuery/namedBindings": named_bindings +"/datastore:v1/GqlQuery/namedBindings/named_binding": named_binding +"/datastore:v1/GqlQuery/allowLiterals": allow_literals +"/datastore:v1/GqlQuery/queryString": query_string +"/datastore:v1/Filter": filter +"/datastore:v1/Filter/propertyFilter": property_filter +"/datastore:v1/Filter/compositeFilter": composite_filter "/datastore:v1/RunQueryRequest": run_query_request -"/datastore:v1/RunQueryRequest/partitionId": partition_id "/datastore:v1/RunQueryRequest/gqlQuery": gql_query +"/datastore:v1/RunQueryRequest/partitionId": partition_id "/datastore:v1/RunQueryRequest/readOptions": read_options "/datastore:v1/RunQueryRequest/query": query "/datastore:v1/RollbackRequest": rollback_request @@ -20350,8 +20507,8 @@ "/datastore:v1/Query/projection": projection "/datastore:v1/Query/projection/projection": projection "/datastore:v1/Query/endCursor": end_cursor -"/datastore:v1/Query/limit": limit "/datastore:v1/Query/filter": filter +"/datastore:v1/Query/limit": limit "/datastore:v1/Query/startCursor": start_cursor "/datastore:v1/Query/offset": offset "/datastore:v1/Query/kind": kind @@ -20361,20 +20518,18 @@ "/datastore:v1/Query/order": order "/datastore:v1/Query/order/order": order "/datastore:v1/PropertyFilter": property_filter -"/datastore:v1/PropertyFilter/op": op "/datastore:v1/PropertyFilter/value": value "/datastore:v1/PropertyFilter/property": property +"/datastore:v1/PropertyFilter/op": op "/datastore:v1/EntityResult": entity_result +"/datastore:v1/EntityResult/entity": entity "/datastore:v1/EntityResult/cursor": cursor "/datastore:v1/EntityResult/version": version -"/datastore:v1/EntityResult/entity": entity -"/datastore:v1/CommitResponse": commit_response -"/datastore:v1/CommitResponse/mutationResults": mutation_results -"/datastore:v1/CommitResponse/mutationResults/mutation_result": mutation_result -"/datastore:v1/CommitResponse/indexUpdates": index_updates "/datastore:v1/Value": value -"/datastore:v1/Value/booleanValue": boolean_value +"/datastore:v1/Value/doubleValue": double_value +"/datastore:v1/Value/timestampValue": timestamp_value "/datastore:v1/Value/nullValue": null_value +"/datastore:v1/Value/booleanValue": boolean_value "/datastore:v1/Value/blobValue": blob_value "/datastore:v1/Value/meaning": meaning "/datastore:v1/Value/arrayValue": array_value @@ -20384,8 +20539,10 @@ "/datastore:v1/Value/integerValue": integer_value "/datastore:v1/Value/stringValue": string_value "/datastore:v1/Value/excludeFromIndexes": exclude_from_indexes -"/datastore:v1/Value/doubleValue": double_value -"/datastore:v1/Value/timestampValue": timestamp_value +"/datastore:v1/CommitResponse": commit_response +"/datastore:v1/CommitResponse/indexUpdates": index_updates +"/datastore:v1/CommitResponse/mutationResults": mutation_results +"/datastore:v1/CommitResponse/mutationResults/mutation_result": mutation_result "/datastore:v1/PartitionId": partition_id "/datastore:v1/PartitionId/projectId": project_id "/datastore:v1/PartitionId/namespaceId": namespace_id @@ -20393,56 +20550,56 @@ "/datastore:v1/Entity/properties": properties "/datastore:v1/Entity/properties/property": property "/datastore:v1/Entity/key": key +"/datastore:v1/LookupRequest": lookup_request +"/datastore:v1/LookupRequest/readOptions": read_options +"/datastore:v1/LookupRequest/keys": keys +"/datastore:v1/LookupRequest/keys/key": key "/datastore:v1/QueryResultBatch": query_result_batch -"/datastore:v1/QueryResultBatch/entityResults": entity_results -"/datastore:v1/QueryResultBatch/entityResults/entity_result": entity_result -"/datastore:v1/QueryResultBatch/endCursor": end_cursor -"/datastore:v1/QueryResultBatch/moreResults": more_results -"/datastore:v1/QueryResultBatch/snapshotVersion": snapshot_version "/datastore:v1/QueryResultBatch/skippedCursor": skipped_cursor "/datastore:v1/QueryResultBatch/skippedResults": skipped_results "/datastore:v1/QueryResultBatch/entityResultType": entity_result_type -"/datastore:v1/LookupRequest": lookup_request -"/datastore:v1/LookupRequest/keys": keys -"/datastore:v1/LookupRequest/keys/key": key -"/datastore:v1/LookupRequest/readOptions": read_options +"/datastore:v1/QueryResultBatch/entityResults": entity_results +"/datastore:v1/QueryResultBatch/entityResults/entity_result": entity_result +"/datastore:v1/QueryResultBatch/moreResults": more_results +"/datastore:v1/QueryResultBatch/endCursor": end_cursor +"/datastore:v1/QueryResultBatch/snapshotVersion": snapshot_version "/datastore:v1/PathElement": path_element "/datastore:v1/PathElement/name": name "/datastore:v1/PathElement/kind": kind "/datastore:v1/PathElement/id": id "/datastore:v1/GqlQueryParameter": gql_query_parameter -"/datastore:v1/GqlQueryParameter/value": value "/datastore:v1/GqlQueryParameter/cursor": cursor +"/datastore:v1/GqlQueryParameter/value": value "/datastore:v1/BeginTransactionResponse/transaction": transaction "/datastore:v1/AllocateIdsRequest/keys": keys "/datastore:v1/AllocateIdsRequest/keys/key": key "/datastore:v1/LookupResponse": lookup_response -"/datastore:v1/LookupResponse/found": found -"/datastore:v1/LookupResponse/found/found": found "/datastore:v1/LookupResponse/missing": missing "/datastore:v1/LookupResponse/missing/missing": missing +"/datastore:v1/LookupResponse/found": found +"/datastore:v1/LookupResponse/found/found": found "/datastore:v1/LookupResponse/deferred": deferred "/datastore:v1/LookupResponse/deferred/deferred": deferred "/datastore:v1/RunQueryResponse": run_query_response "/datastore:v1/RunQueryResponse/query": query "/datastore:v1/RunQueryResponse/batch": batch -"/datastore:v1/PropertyOrder": property_order -"/datastore:v1/PropertyOrder/property": property -"/datastore:v1/PropertyOrder/direction": direction "/datastore:v1/CommitRequest": commit_request -"/datastore:v1/CommitRequest/transaction": transaction "/datastore:v1/CommitRequest/mode": mode "/datastore:v1/CommitRequest/mutations": mutations "/datastore:v1/CommitRequest/mutations/mutation": mutation +"/datastore:v1/CommitRequest/transaction": transaction +"/datastore:v1/PropertyOrder": property_order +"/datastore:v1/PropertyOrder/direction": direction +"/datastore:v1/PropertyOrder/property": property "/datastore:v1/KindExpression": kind_expression "/datastore:v1/KindExpression/name": name +"/datastore:v1/Key": key +"/datastore:v1/Key/partitionId": partition_id +"/datastore:v1/Key/path": path +"/datastore:v1/Key/path/path": path "/datastore:v1/LatLng": lat_lng "/datastore:v1/LatLng/latitude": latitude "/datastore:v1/LatLng/longitude": longitude -"/datastore:v1/Key": key -"/datastore:v1/Key/path": path -"/datastore:v1/Key/path/path": path -"/datastore:v1/Key/partitionId": partition_id "/datastore:v1/PropertyReference": property_reference "/datastore:v1/PropertyReference/name": name "/datastore:v1/Projection": projection @@ -20451,29 +20608,15 @@ "/datastore:v1/ArrayValue/values": values "/datastore:v1/ArrayValue/values/value": value "/datastore:v1/Mutation": mutation +"/datastore:v1/Mutation/baseVersion": base_version +"/datastore:v1/Mutation/insert": insert "/datastore:v1/Mutation/update": update "/datastore:v1/Mutation/upsert": upsert "/datastore:v1/Mutation/delete": delete -"/datastore:v1/Mutation/insert": insert -"/datastore:v1/Mutation/baseVersion": base_version "/datastore:v1/ReadOptions": read_options -"/datastore:v1/ReadOptions/readConsistency": read_consistency "/datastore:v1/ReadOptions/transaction": transaction +"/datastore:v1/ReadOptions/readConsistency": read_consistency "/datastore:v1/RollbackResponse": rollback_response -"/datastore:v1/MutationResult": mutation_result -"/datastore:v1/MutationResult/key": key -"/datastore:v1/MutationResult/version": version -"/datastore:v1/MutationResult/conflictDetected": conflict_detected -"/datastore:v1/GqlQuery": gql_query -"/datastore:v1/GqlQuery/queryString": query_string -"/datastore:v1/GqlQuery/allowLiterals": allow_literals -"/datastore:v1/GqlQuery/namedBindings": named_bindings -"/datastore:v1/GqlQuery/namedBindings/named_binding": named_binding -"/datastore:v1/GqlQuery/positionalBindings": positional_bindings -"/datastore:v1/GqlQuery/positionalBindings/positional_binding": positional_binding -"/datastore:v1/Filter": filter -"/datastore:v1/Filter/compositeFilter": composite_filter -"/datastore:v1/Filter/propertyFilter": property_filter "/deploymentmanager:v2/fields": fields "/deploymentmanager:v2/key": key "/deploymentmanager:v2/quotaUser": quota_user @@ -20569,6 +20712,7 @@ "/deploymentmanager:v2/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/deploymentmanager:v2/AuditLogConfig/logType": log_type "/deploymentmanager:v2/Binding": binding +"/deploymentmanager:v2/Binding/condition": condition "/deploymentmanager:v2/Binding/members": members "/deploymentmanager:v2/Binding/members/member": member "/deploymentmanager:v2/Binding/role": role @@ -20613,11 +20757,19 @@ "/deploymentmanager:v2/DeploymentsListResponse/nextPageToken": next_page_token "/deploymentmanager:v2/DeploymentsStopRequest": deployments_stop_request "/deploymentmanager:v2/DeploymentsStopRequest/fingerprint": fingerprint +"/deploymentmanager:v2/Expr": expr +"/deploymentmanager:v2/Expr/description": description +"/deploymentmanager:v2/Expr/expression": expression +"/deploymentmanager:v2/Expr/location": location +"/deploymentmanager:v2/Expr/title": title "/deploymentmanager:v2/ImportFile": import_file "/deploymentmanager:v2/ImportFile/content": content "/deploymentmanager:v2/ImportFile/name": name "/deploymentmanager:v2/LogConfig": log_config +"/deploymentmanager:v2/LogConfig/cloudAudit": cloud_audit "/deploymentmanager:v2/LogConfig/counter": counter +"/deploymentmanager:v2/LogConfigCloudAuditOptions": log_config_cloud_audit_options +"/deploymentmanager:v2/LogConfigCloudAuditOptions/logName": log_name "/deploymentmanager:v2/LogConfigCounterOptions": log_config_counter_options "/deploymentmanager:v2/LogConfigCounterOptions/field": field "/deploymentmanager:v2/LogConfigCounterOptions/metric": metric @@ -27813,6 +27965,11 @@ "/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats": get_link_stats "/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats/durationDays": duration_days "/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats/dynamicLink": dynamic_link +"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse": create_short_dynamic_link_response +"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/shortLink": short_link +"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/previewLink": preview_link +"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/warning": warning +"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/warning/warning": warning "/firebasedynamiclinks:v1/Suffix": suffix "/firebasedynamiclinks:v1/Suffix/option": option "/firebasedynamiclinks:v1/GooglePlayAnalytics": google_play_analytics @@ -27823,13 +27980,13 @@ "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmMedium": utm_medium "/firebasedynamiclinks:v1/GooglePlayAnalytics/utmTerm": utm_term "/firebasedynamiclinks:v1/DynamicLinkInfo": dynamic_link_info +"/firebasedynamiclinks:v1/DynamicLinkInfo/link": link +"/firebasedynamiclinks:v1/DynamicLinkInfo/iosInfo": ios_info +"/firebasedynamiclinks:v1/DynamicLinkInfo/socialMetaTagInfo": social_meta_tag_info "/firebasedynamiclinks:v1/DynamicLinkInfo/androidInfo": android_info "/firebasedynamiclinks:v1/DynamicLinkInfo/navigationInfo": navigation_info "/firebasedynamiclinks:v1/DynamicLinkInfo/analyticsInfo": analytics_info "/firebasedynamiclinks:v1/DynamicLinkInfo/dynamicLinkDomain": dynamic_link_domain -"/firebasedynamiclinks:v1/DynamicLinkInfo/link": link -"/firebasedynamiclinks:v1/DynamicLinkInfo/iosInfo": ios_info -"/firebasedynamiclinks:v1/DynamicLinkInfo/socialMetaTagInfo": social_meta_tag_info "/firebasedynamiclinks:v1/ITunesConnectAnalytics": i_tunes_connect_analytics "/firebasedynamiclinks:v1/ITunesConnectAnalytics/at": at "/firebasedynamiclinks:v1/ITunesConnectAnalytics/mt": mt @@ -27839,17 +27996,17 @@ "/firebasedynamiclinks:v1/SocialMetaTagInfo/socialImageLink": social_image_link "/firebasedynamiclinks:v1/SocialMetaTagInfo/socialTitle": social_title "/firebasedynamiclinks:v1/SocialMetaTagInfo/socialDescription": social_description -"/firebasedynamiclinks:v1/DynamicLinkWarning": dynamic_link_warning -"/firebasedynamiclinks:v1/DynamicLinkWarning/warningCode": warning_code -"/firebasedynamiclinks:v1/DynamicLinkWarning/warningMessage": warning_message "/firebasedynamiclinks:v1/DynamicLinkStats": dynamic_link_stats "/firebasedynamiclinks:v1/DynamicLinkStats/linkEventStats": link_event_stats "/firebasedynamiclinks:v1/DynamicLinkStats/linkEventStats/link_event_stat": link_event_stat +"/firebasedynamiclinks:v1/DynamicLinkWarning": dynamic_link_warning +"/firebasedynamiclinks:v1/DynamicLinkWarning/warningMessage": warning_message +"/firebasedynamiclinks:v1/DynamicLinkWarning/warningCode": warning_code "/firebasedynamiclinks:v1/AndroidInfo": android_info +"/firebasedynamiclinks:v1/AndroidInfo/androidFallbackLink": android_fallback_link "/firebasedynamiclinks:v1/AndroidInfo/androidPackageName": android_package_name "/firebasedynamiclinks:v1/AndroidInfo/androidMinPackageVersionCode": android_min_package_version_code "/firebasedynamiclinks:v1/AndroidInfo/androidLink": android_link -"/firebasedynamiclinks:v1/AndroidInfo/androidFallbackLink": android_fallback_link "/firebasedynamiclinks:v1/NavigationInfo": navigation_info "/firebasedynamiclinks:v1/NavigationInfo/enableForcedRedirect": enable_forced_redirect "/firebasedynamiclinks:v1/IosInfo": ios_info @@ -27867,30 +28024,14 @@ "/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/suffix": suffix "/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/dynamicLinkInfo": dynamic_link_info "/firebasedynamiclinks:v1/DynamicLinkEventStat": dynamic_link_event_stat +"/firebasedynamiclinks:v1/DynamicLinkEventStat/platform": platform "/firebasedynamiclinks:v1/DynamicLinkEventStat/count": count "/firebasedynamiclinks:v1/DynamicLinkEventStat/event": event -"/firebasedynamiclinks:v1/DynamicLinkEventStat/platform": platform -"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse": create_short_dynamic_link_response -"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/shortLink": short_link -"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/previewLink": preview_link -"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/warning": warning -"/firebasedynamiclinks:v1/CreateShortDynamicLinkResponse/warning/warning": warning "/firebaserules:v1/fields": fields "/firebaserules:v1/key": key "/firebaserules:v1/quotaUser": quota_user "/firebaserules:v1/firebaserules.projects.test": test_project_ruleset "/firebaserules:v1/firebaserules.projects.test/name": name -"/firebaserules:v1/firebaserules.projects.rulesets.delete": delete_project_ruleset -"/firebaserules:v1/firebaserules.projects.rulesets.delete/name": name -"/firebaserules:v1/firebaserules.projects.rulesets.get": get_project_ruleset -"/firebaserules:v1/firebaserules.projects.rulesets.get/name": name -"/firebaserules:v1/firebaserules.projects.rulesets.list": list_project_rulesets -"/firebaserules:v1/firebaserules.projects.rulesets.list/name": name -"/firebaserules:v1/firebaserules.projects.rulesets.list/pageToken": page_token -"/firebaserules:v1/firebaserules.projects.rulesets.list/pageSize": page_size -"/firebaserules:v1/firebaserules.projects.rulesets.list/filter": filter -"/firebaserules:v1/firebaserules.projects.rulesets.create": create_project_ruleset -"/firebaserules:v1/firebaserules.projects.rulesets.create/name": name "/firebaserules:v1/firebaserules.projects.releases.update": update_project_release "/firebaserules:v1/firebaserules.projects.releases.update/name": name "/firebaserules:v1/firebaserules.projects.releases.create": create_project_release @@ -27904,6 +28045,65 @@ "/firebaserules:v1/firebaserules.projects.releases.list/name": name "/firebaserules:v1/firebaserules.projects.releases.list/pageToken": page_token "/firebaserules:v1/firebaserules.projects.releases.list/pageSize": page_size +"/firebaserules:v1/firebaserules.projects.rulesets.get": get_project_ruleset +"/firebaserules:v1/firebaserules.projects.rulesets.get/name": name +"/firebaserules:v1/firebaserules.projects.rulesets.list": list_project_rulesets +"/firebaserules:v1/firebaserules.projects.rulesets.list/filter": filter +"/firebaserules:v1/firebaserules.projects.rulesets.list/name": name +"/firebaserules:v1/firebaserules.projects.rulesets.list/pageToken": page_token +"/firebaserules:v1/firebaserules.projects.rulesets.list/pageSize": page_size +"/firebaserules:v1/firebaserules.projects.rulesets.create": create_project_ruleset +"/firebaserules:v1/firebaserules.projects.rulesets.create/name": name +"/firebaserules:v1/firebaserules.projects.rulesets.delete": delete_project_ruleset +"/firebaserules:v1/firebaserules.projects.rulesets.delete/name": name +"/firebaserules:v1/File": file +"/firebaserules:v1/File/content": content +"/firebaserules:v1/File/fingerprint": fingerprint +"/firebaserules:v1/File/name": name +"/firebaserules:v1/FunctionCall": function_call +"/firebaserules:v1/FunctionCall/args": args +"/firebaserules:v1/FunctionCall/args/arg": arg +"/firebaserules:v1/FunctionCall/function": function +"/firebaserules:v1/ListReleasesResponse": list_releases_response +"/firebaserules:v1/ListReleasesResponse/releases": releases +"/firebaserules:v1/ListReleasesResponse/releases/release": release +"/firebaserules:v1/ListReleasesResponse/nextPageToken": next_page_token +"/firebaserules:v1/Release": release +"/firebaserules:v1/Release/createTime": create_time +"/firebaserules:v1/Release/updateTime": update_time +"/firebaserules:v1/Release/name": name +"/firebaserules:v1/Release/rulesetName": ruleset_name +"/firebaserules:v1/TestRulesetResponse": test_ruleset_response +"/firebaserules:v1/TestRulesetResponse/testResults": test_results +"/firebaserules:v1/TestRulesetResponse/testResults/test_result": test_result +"/firebaserules:v1/TestRulesetResponse/issues": issues +"/firebaserules:v1/TestRulesetResponse/issues/issue": issue +"/firebaserules:v1/TestResult": test_result +"/firebaserules:v1/TestResult/errorPosition": error_position +"/firebaserules:v1/TestResult/functionCalls": function_calls +"/firebaserules:v1/TestResult/functionCalls/function_call": function_call +"/firebaserules:v1/TestResult/state": state +"/firebaserules:v1/TestResult/debugMessages": debug_messages +"/firebaserules:v1/TestResult/debugMessages/debug_message": debug_message +"/firebaserules:v1/ListRulesetsResponse": list_rulesets_response +"/firebaserules:v1/ListRulesetsResponse/nextPageToken": next_page_token +"/firebaserules:v1/ListRulesetsResponse/rulesets": rulesets +"/firebaserules:v1/ListRulesetsResponse/rulesets/ruleset": ruleset +"/firebaserules:v1/Arg": arg +"/firebaserules:v1/Arg/exactValue": exact_value +"/firebaserules:v1/Arg/anyValue": any_value +"/firebaserules:v1/TestSuite": test_suite +"/firebaserules:v1/TestSuite/testCases": test_cases +"/firebaserules:v1/TestSuite/testCases/test_case": test_case +"/firebaserules:v1/Empty": empty +"/firebaserules:v1/FunctionMock": function_mock +"/firebaserules:v1/FunctionMock/args": args +"/firebaserules:v1/FunctionMock/args/arg": arg +"/firebaserules:v1/FunctionMock/function": function +"/firebaserules:v1/FunctionMock/result": result +"/firebaserules:v1/Source": source +"/firebaserules:v1/Source/files": files +"/firebaserules:v1/Source/files/file": file "/firebaserules:v1/Result": result "/firebaserules:v1/Result/value": value "/firebaserules:v1/Result/undefined": undefined @@ -27917,65 +28117,17 @@ "/firebaserules:v1/TestCase/functionMocks/function_mock": function_mock "/firebaserules:v1/TestCase/expectation": expectation "/firebaserules:v1/TestCase/request": request -"/firebaserules:v1/Ruleset": ruleset -"/firebaserules:v1/Ruleset/source": source -"/firebaserules:v1/Ruleset/createTime": create_time -"/firebaserules:v1/Ruleset/name": name "/firebaserules:v1/TestRulesetRequest": test_ruleset_request "/firebaserules:v1/TestRulesetRequest/source": source "/firebaserules:v1/TestRulesetRequest/testSuite": test_suite +"/firebaserules:v1/Ruleset": ruleset +"/firebaserules:v1/Ruleset/name": name +"/firebaserules:v1/Ruleset/source": source +"/firebaserules:v1/Ruleset/createTime": create_time "/firebaserules:v1/Issue": issue "/firebaserules:v1/Issue/description": description "/firebaserules:v1/Issue/sourcePosition": source_position "/firebaserules:v1/Issue/severity": severity -"/firebaserules:v1/ListReleasesResponse": list_releases_response -"/firebaserules:v1/ListReleasesResponse/releases": releases -"/firebaserules:v1/ListReleasesResponse/releases/release": release -"/firebaserules:v1/ListReleasesResponse/nextPageToken": next_page_token -"/firebaserules:v1/File": file -"/firebaserules:v1/File/name": name -"/firebaserules:v1/File/content": content -"/firebaserules:v1/File/fingerprint": fingerprint -"/firebaserules:v1/FunctionCall": function_call -"/firebaserules:v1/FunctionCall/args": args -"/firebaserules:v1/FunctionCall/args/arg": arg -"/firebaserules:v1/FunctionCall/function": function -"/firebaserules:v1/Release": release -"/firebaserules:v1/Release/createTime": create_time -"/firebaserules:v1/Release/updateTime": update_time -"/firebaserules:v1/Release/name": name -"/firebaserules:v1/Release/rulesetName": ruleset_name -"/firebaserules:v1/TestRulesetResponse": test_ruleset_response -"/firebaserules:v1/TestRulesetResponse/testResults": test_results -"/firebaserules:v1/TestRulesetResponse/testResults/test_result": test_result -"/firebaserules:v1/TestRulesetResponse/issues": issues -"/firebaserules:v1/TestRulesetResponse/issues/issue": issue -"/firebaserules:v1/TestResult": test_result -"/firebaserules:v1/TestResult/functionCalls": function_calls -"/firebaserules:v1/TestResult/functionCalls/function_call": function_call -"/firebaserules:v1/TestResult/state": state -"/firebaserules:v1/TestResult/debugMessages": debug_messages -"/firebaserules:v1/TestResult/debugMessages/debug_message": debug_message -"/firebaserules:v1/TestResult/errorPosition": error_position -"/firebaserules:v1/ListRulesetsResponse": list_rulesets_response -"/firebaserules:v1/ListRulesetsResponse/rulesets": rulesets -"/firebaserules:v1/ListRulesetsResponse/rulesets/ruleset": ruleset -"/firebaserules:v1/ListRulesetsResponse/nextPageToken": next_page_token -"/firebaserules:v1/Arg": arg -"/firebaserules:v1/Arg/exactValue": exact_value -"/firebaserules:v1/Arg/anyValue": any_value -"/firebaserules:v1/TestSuite": test_suite -"/firebaserules:v1/TestSuite/testCases": test_cases -"/firebaserules:v1/TestSuite/testCases/test_case": test_case -"/firebaserules:v1/Empty": empty -"/firebaserules:v1/FunctionMock": function_mock -"/firebaserules:v1/FunctionMock/function": function -"/firebaserules:v1/FunctionMock/result": result -"/firebaserules:v1/FunctionMock/args": args -"/firebaserules:v1/FunctionMock/args/arg": arg -"/firebaserules:v1/Source": source -"/firebaserules:v1/Source/files": files -"/firebaserules:v1/Source/files/file": file "/fitness:v1/fields": fields "/fitness:v1/key": key "/fitness:v1/quotaUser": quota_user @@ -29452,9 +29604,55 @@ "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/kind": kind "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids": leaderboard_ids "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids/leaderboard_id": leaderboard_id +"/genomics:v1/fields": fields "/genomics:v1/key": key "/genomics:v1/quotaUser": quota_user -"/genomics:v1/fields": fields +"/genomics:v1/genomics.annotations.delete": delete_annotation +"/genomics:v1/genomics.annotations.delete/annotationId": annotation_id +"/genomics:v1/genomics.annotations.create": create_annotation +"/genomics:v1/genomics.annotations.batchCreate": batch_create_annotations +"/genomics:v1/genomics.annotations.search": search_annotations +"/genomics:v1/genomics.annotations.get": get_annotation +"/genomics:v1/genomics.annotations.get/annotationId": annotation_id +"/genomics:v1/genomics.annotations.update": update_annotation +"/genomics:v1/genomics.annotations.update/updateMask": update_mask +"/genomics:v1/genomics.annotations.update/annotationId": annotation_id +"/genomics:v1/genomics.variantsets.delete": delete_variantset +"/genomics:v1/genomics.variantsets.delete/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.create": create_variantset +"/genomics:v1/genomics.variantsets.export/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.get": get_variantset +"/genomics:v1/genomics.variantsets.get/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.patch": patch_variantset +"/genomics:v1/genomics.variantsets.patch/variantSetId": variant_set_id +"/genomics:v1/genomics.variantsets.patch/updateMask": update_mask +"/genomics:v1/genomics.operations.cancel": cancel_operation +"/genomics:v1/genomics.operations.cancel/name": name +"/genomics:v1/genomics.operations.get": get_operation +"/genomics:v1/genomics.operations.get/name": name +"/genomics:v1/genomics.operations.list": list_operations +"/genomics:v1/genomics.operations.list/pageToken": page_token +"/genomics:v1/genomics.operations.list/name": name +"/genomics:v1/genomics.operations.list/pageSize": page_size +"/genomics:v1/genomics.operations.list/filter": filter +"/genomics:v1/genomics.referencesets.get/referenceSetId": reference_set_id +"/genomics:v1/genomics.readgroupsets.get/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.patch/updateMask": update_mask +"/genomics:v1/genomics.readgroupsets.patch/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.delete/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.export/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/end": end_ +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageToken": page_token +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageSize": page_size +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/start": start +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/targetBucketWidth": target_bucket_width +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/readGroupSetId": read_group_set_id +"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/referenceName": reference_name +"/genomics:v1/genomics.reads.search": search_reads +"/genomics:v1/genomics.callsets.get/callSetId": call_set_id +"/genomics:v1/genomics.callsets.patch/callSetId": call_set_id +"/genomics:v1/genomics.callsets.patch/updateMask": update_mask +"/genomics:v1/genomics.callsets.delete/callSetId": call_set_id "/genomics:v1/genomics.annotationsets.delete": delete_annotationset "/genomics:v1/genomics.annotationsets.delete/annotationSetId": annotation_set_id "/genomics:v1/genomics.annotationsets.search": search_annotationset_annotation_sets @@ -29462,36 +29660,33 @@ "/genomics:v1/genomics.annotationsets.update": update_annotationset "/genomics:v1/genomics.annotationsets.update/updateMask": update_mask "/genomics:v1/genomics.annotationsets.update/annotationSetId": annotation_set_id +"/genomics:v1/genomics.variants.get": get_variant +"/genomics:v1/genomics.variants.get/variantId": variant_id +"/genomics:v1/genomics.variants.patch": patch_variant +"/genomics:v1/genomics.variants.patch/updateMask": update_mask +"/genomics:v1/genomics.variants.patch/variantId": variant_id "/genomics:v1/genomics.variants.merge": merge_variants "/genomics:v1/genomics.variants.import": import_variants "/genomics:v1/genomics.variants.delete": delete_variant "/genomics:v1/genomics.variants.delete/variantId": variant_id "/genomics:v1/genomics.variants.create": create_variant "/genomics:v1/genomics.variants.search": search_variants -"/genomics:v1/genomics.variants.get": get_variant -"/genomics:v1/genomics.variants.get/variantId": variant_id -"/genomics:v1/genomics.variants.patch": patch_variant -"/genomics:v1/genomics.variants.patch/variantId": variant_id -"/genomics:v1/genomics.variants.patch/updateMask": update_mask "/genomics:v1/genomics.references.search": search_references "/genomics:v1/genomics.references.get": get_reference "/genomics:v1/genomics.references.get/referenceId": reference_id "/genomics:v1/genomics.references.bases.list": list_reference_bases -"/genomics:v1/genomics.references.bases.list/referenceId": reference_id "/genomics:v1/genomics.references.bases.list/pageToken": page_token "/genomics:v1/genomics.references.bases.list/pageSize": page_size -"/genomics:v1/genomics.datasets.setIamPolicy": set_dataset_iam_policy -"/genomics:v1/genomics.datasets.setIamPolicy/resource": resource -"/genomics:v1/genomics.datasets.create": create_dataset +"/genomics:v1/genomics.references.bases.list/referenceId": reference_id "/genomics:v1/genomics.datasets.getIamPolicy": get_dataset_iam_policy "/genomics:v1/genomics.datasets.getIamPolicy/resource": resource -"/genomics:v1/genomics.datasets.patch": patch_dataset -"/genomics:v1/genomics.datasets.patch/datasetId": dataset_id -"/genomics:v1/genomics.datasets.patch/updateMask": update_mask "/genomics:v1/genomics.datasets.undelete": undelete_dataset "/genomics:v1/genomics.datasets.undelete/datasetId": dataset_id "/genomics:v1/genomics.datasets.get": get_dataset "/genomics:v1/genomics.datasets.get/datasetId": dataset_id +"/genomics:v1/genomics.datasets.patch": patch_dataset +"/genomics:v1/genomics.datasets.patch/datasetId": dataset_id +"/genomics:v1/genomics.datasets.patch/updateMask": update_mask "/genomics:v1/genomics.datasets.testIamPermissions": test_dataset_iam_permissions "/genomics:v1/genomics.datasets.testIamPermissions/resource": resource "/genomics:v1/genomics.datasets.delete": delete_dataset @@ -29500,128 +29695,9 @@ "/genomics:v1/genomics.datasets.list/pageToken": page_token "/genomics:v1/genomics.datasets.list/pageSize": page_size "/genomics:v1/genomics.datasets.list/projectId": project_id -"/genomics:v1/genomics.variantsets.export/variantSetId": variant_set_id -"/genomics:v1/genomics.variantsets.patch": patch_variantset -"/genomics:v1/genomics.variantsets.patch/updateMask": update_mask -"/genomics:v1/genomics.variantsets.patch/variantSetId": variant_set_id -"/genomics:v1/genomics.variantsets.get": get_variantset -"/genomics:v1/genomics.variantsets.get/variantSetId": variant_set_id -"/genomics:v1/genomics.variantsets.delete": delete_variantset -"/genomics:v1/genomics.variantsets.delete/variantSetId": variant_set_id -"/genomics:v1/genomics.variantsets.create": create_variantset -"/genomics:v1/genomics.annotations.batchCreate": batch_create_annotations -"/genomics:v1/genomics.annotations.search": search_annotations -"/genomics:v1/genomics.annotations.get": get_annotation -"/genomics:v1/genomics.annotations.get/annotationId": annotation_id -"/genomics:v1/genomics.annotations.update": update_annotation -"/genomics:v1/genomics.annotations.update/annotationId": annotation_id -"/genomics:v1/genomics.annotations.update/updateMask": update_mask -"/genomics:v1/genomics.annotations.delete": delete_annotation -"/genomics:v1/genomics.annotations.delete/annotationId": annotation_id -"/genomics:v1/genomics.annotations.create": create_annotation -"/genomics:v1/genomics.operations.list": list_operations -"/genomics:v1/genomics.operations.list/name": name -"/genomics:v1/genomics.operations.list/pageToken": page_token -"/genomics:v1/genomics.operations.list/pageSize": page_size -"/genomics:v1/genomics.operations.list/filter": filter -"/genomics:v1/genomics.operations.get": get_operation -"/genomics:v1/genomics.operations.get/name": name -"/genomics:v1/genomics.operations.cancel": cancel_operation -"/genomics:v1/genomics.operations.cancel/name": name -"/genomics:v1/genomics.referencesets.get/referenceSetId": reference_set_id -"/genomics:v1/genomics.readgroupsets.export/readGroupSetId": read_group_set_id -"/genomics:v1/genomics.readgroupsets.get/readGroupSetId": read_group_set_id -"/genomics:v1/genomics.readgroupsets.patch/readGroupSetId": read_group_set_id -"/genomics:v1/genomics.readgroupsets.patch/updateMask": update_mask -"/genomics:v1/genomics.readgroupsets.delete/readGroupSetId": read_group_set_id -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageToken": page_token -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageSize": page_size -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/start": start -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/readGroupSetId": read_group_set_id -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/targetBucketWidth": target_bucket_width -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/referenceName": reference_name -"/genomics:v1/genomics.readgroupsets.coveragebuckets.list/end": end_ -"/genomics:v1/genomics.reads.search": search_reads -"/genomics:v1/genomics.callsets.patch/updateMask": update_mask -"/genomics:v1/genomics.callsets.patch/callSetId": call_set_id -"/genomics:v1/genomics.callsets.get/callSetId": call_set_id -"/genomics:v1/genomics.callsets.delete/callSetId": call_set_id -"/genomics:v1/ListDatasetsResponse": list_datasets_response -"/genomics:v1/ListDatasetsResponse/datasets": datasets -"/genomics:v1/ListDatasetsResponse/datasets/dataset": dataset -"/genomics:v1/ListDatasetsResponse/nextPageToken": next_page_token -"/genomics:v1/TestIamPermissionsRequest": test_iam_permissions_request -"/genomics:v1/TestIamPermissionsRequest/permissions": permissions -"/genomics:v1/TestIamPermissionsRequest/permissions/permission": permission -"/genomics:v1/ExportReadGroupSetRequest": export_read_group_set_request -"/genomics:v1/ExportReadGroupSetRequest/projectId": project_id -"/genomics:v1/ExportReadGroupSetRequest/exportUri": export_uri -"/genomics:v1/ExportReadGroupSetRequest/referenceNames": reference_names -"/genomics:v1/ExportReadGroupSetRequest/referenceNames/reference_name": reference_name -"/genomics:v1/Exon": exon -"/genomics:v1/Exon/end": end -"/genomics:v1/Exon/frame": frame -"/genomics:v1/Exon/start": start -"/genomics:v1/CallSet": call_set -"/genomics:v1/CallSet/created": created -"/genomics:v1/CallSet/sampleId": sample_id -"/genomics:v1/CallSet/name": name -"/genomics:v1/CallSet/info": info -"/genomics:v1/CallSet/info/info": info -"/genomics:v1/CallSet/info/info/info": info -"/genomics:v1/CallSet/variantSetIds": variant_set_ids -"/genomics:v1/CallSet/variantSetIds/variant_set_id": variant_set_id -"/genomics:v1/CallSet/id": id -"/genomics:v1/SearchAnnotationSetsResponse": search_annotation_sets_response -"/genomics:v1/SearchAnnotationSetsResponse/nextPageToken": next_page_token -"/genomics:v1/SearchAnnotationSetsResponse/annotationSets": annotation_sets -"/genomics:v1/SearchAnnotationSetsResponse/annotationSets/annotation_set": annotation_set -"/genomics:v1/ImportVariantsRequest": import_variants_request -"/genomics:v1/ImportVariantsRequest/format": format -"/genomics:v1/ImportVariantsRequest/infoMergeConfig": info_merge_config -"/genomics:v1/ImportVariantsRequest/infoMergeConfig/info_merge_config": info_merge_config -"/genomics:v1/ImportVariantsRequest/variantSetId": variant_set_id -"/genomics:v1/ImportVariantsRequest/sourceUris": source_uris -"/genomics:v1/ImportVariantsRequest/sourceUris/source_uri": source_uri -"/genomics:v1/ImportVariantsRequest/normalizeReferenceNames": normalize_reference_names -"/genomics:v1/VariantAnnotation": variant_annotation -"/genomics:v1/VariantAnnotation/type": type -"/genomics:v1/VariantAnnotation/alternateBases": alternate_bases -"/genomics:v1/VariantAnnotation/geneId": gene_id -"/genomics:v1/VariantAnnotation/clinicalSignificance": clinical_significance -"/genomics:v1/VariantAnnotation/conditions": conditions -"/genomics:v1/VariantAnnotation/conditions/condition": condition -"/genomics:v1/VariantAnnotation/effect": effect -"/genomics:v1/VariantAnnotation/transcriptIds": transcript_ids -"/genomics:v1/VariantAnnotation/transcriptIds/transcript_id": transcript_id -"/genomics:v1/ListCoverageBucketsResponse": list_coverage_buckets_response -"/genomics:v1/ListCoverageBucketsResponse/nextPageToken": next_page_token -"/genomics:v1/ListCoverageBucketsResponse/bucketWidth": bucket_width -"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets": coverage_buckets -"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets/coverage_bucket": coverage_bucket -"/genomics:v1/ExportVariantSetRequest": export_variant_set_request -"/genomics:v1/ExportVariantSetRequest/format": format -"/genomics:v1/ExportVariantSetRequest/bigqueryDataset": bigquery_dataset -"/genomics:v1/ExportVariantSetRequest/bigqueryTable": bigquery_table -"/genomics:v1/ExportVariantSetRequest/callSetIds": call_set_ids -"/genomics:v1/ExportVariantSetRequest/callSetIds/call_set_id": call_set_id -"/genomics:v1/ExportVariantSetRequest/projectId": project_id -"/genomics:v1/SearchAnnotationsRequest": search_annotations_request -"/genomics:v1/SearchAnnotationsRequest/pageToken": page_token -"/genomics:v1/SearchAnnotationsRequest/pageSize": page_size -"/genomics:v1/SearchAnnotationsRequest/start": start -"/genomics:v1/SearchAnnotationsRequest/annotationSetIds": annotation_set_ids -"/genomics:v1/SearchAnnotationsRequest/annotationSetIds/annotation_set_id": annotation_set_id -"/genomics:v1/SearchAnnotationsRequest/referenceName": reference_name -"/genomics:v1/SearchAnnotationsRequest/referenceId": reference_id -"/genomics:v1/SearchAnnotationsRequest/end": end -"/genomics:v1/OperationEvent": operation_event -"/genomics:v1/OperationEvent/startTime": start_time -"/genomics:v1/OperationEvent/description": description -"/genomics:v1/OperationEvent/endTime": end_time -"/genomics:v1/CodingSequence": coding_sequence -"/genomics:v1/CodingSequence/start": start -"/genomics:v1/CodingSequence/end": end +"/genomics:v1/genomics.datasets.setIamPolicy": set_dataset_iam_policy +"/genomics:v1/genomics.datasets.setIamPolicy/resource": resource +"/genomics:v1/genomics.datasets.create": create_dataset "/genomics:v1/SearchReferencesResponse": search_references_response "/genomics:v1/SearchReferencesResponse/references": references "/genomics:v1/SearchReferencesResponse/references/reference": reference @@ -29631,41 +29707,40 @@ "/genomics:v1/TestIamPermissionsResponse/permissions": permissions "/genomics:v1/TestIamPermissionsResponse/permissions/permission": permission "/genomics:v1/SearchAnnotationSetsRequest": search_annotation_sets_request -"/genomics:v1/SearchAnnotationSetsRequest/datasetIds": dataset_ids -"/genomics:v1/SearchAnnotationSetsRequest/datasetIds/dataset_id": dataset_id -"/genomics:v1/SearchAnnotationSetsRequest/types": types -"/genomics:v1/SearchAnnotationSetsRequest/types/type": type "/genomics:v1/SearchAnnotationSetsRequest/name": name "/genomics:v1/SearchAnnotationSetsRequest/referenceSetId": reference_set_id "/genomics:v1/SearchAnnotationSetsRequest/pageToken": page_token "/genomics:v1/SearchAnnotationSetsRequest/pageSize": page_size +"/genomics:v1/SearchAnnotationSetsRequest/datasetIds": dataset_ids +"/genomics:v1/SearchAnnotationSetsRequest/datasetIds/dataset_id": dataset_id +"/genomics:v1/SearchAnnotationSetsRequest/types": types +"/genomics:v1/SearchAnnotationSetsRequest/types/type": type "/genomics:v1/SearchReadGroupSetsResponse": search_read_group_sets_response "/genomics:v1/SearchReadGroupSetsResponse/nextPageToken": next_page_token "/genomics:v1/SearchReadGroupSetsResponse/readGroupSets": read_group_sets "/genomics:v1/SearchReadGroupSetsResponse/readGroupSets/read_group_set": read_group_set -"/genomics:v1/LinearAlignment": linear_alignment -"/genomics:v1/LinearAlignment/position": position -"/genomics:v1/LinearAlignment/cigar": cigar -"/genomics:v1/LinearAlignment/cigar/cigar": cigar -"/genomics:v1/LinearAlignment/mappingQuality": mapping_quality "/genomics:v1/SearchReferencesRequest": search_references_request "/genomics:v1/SearchReferencesRequest/md5checksums": md5checksums "/genomics:v1/SearchReferencesRequest/md5checksums/md5checksum": md5checksum +"/genomics:v1/SearchReferencesRequest/pageToken": page_token "/genomics:v1/SearchReferencesRequest/accessions": accessions "/genomics:v1/SearchReferencesRequest/accessions/accession": accession -"/genomics:v1/SearchReferencesRequest/pageToken": page_token -"/genomics:v1/SearchReferencesRequest/referenceSetId": reference_set_id "/genomics:v1/SearchReferencesRequest/pageSize": page_size +"/genomics:v1/SearchReferencesRequest/referenceSetId": reference_set_id +"/genomics:v1/LinearAlignment": linear_alignment +"/genomics:v1/LinearAlignment/mappingQuality": mapping_quality +"/genomics:v1/LinearAlignment/cigar": cigar +"/genomics:v1/LinearAlignment/cigar/cigar": cigar +"/genomics:v1/LinearAlignment/position": position "/genomics:v1/Dataset": dataset -"/genomics:v1/Dataset/createTime": create_time -"/genomics:v1/Dataset/name": name "/genomics:v1/Dataset/projectId": project_id "/genomics:v1/Dataset/id": id +"/genomics:v1/Dataset/createTime": create_time +"/genomics:v1/Dataset/name": name "/genomics:v1/ImportVariantsResponse": import_variants_response "/genomics:v1/ImportVariantsResponse/callSetIds": call_set_ids "/genomics:v1/ImportVariantsResponse/callSetIds/call_set_id": call_set_id "/genomics:v1/ReadGroup": read_group -"/genomics:v1/ReadGroup/id": id "/genomics:v1/ReadGroup/programs": programs "/genomics:v1/ReadGroup/programs/program": program "/genomics:v1/ReadGroup/predictedInsertSize": predicted_insert_size @@ -29678,7 +29753,9 @@ "/genomics:v1/ReadGroup/info": info "/genomics:v1/ReadGroup/info/info": info "/genomics:v1/ReadGroup/info/info/info": info +"/genomics:v1/ReadGroup/id": id "/genomics:v1/ReadGroupSet": read_group_set +"/genomics:v1/ReadGroupSet/id": id "/genomics:v1/ReadGroupSet/datasetId": dataset_id "/genomics:v1/ReadGroupSet/filename": filename "/genomics:v1/ReadGroupSet/readGroups": read_groups @@ -29688,15 +29765,14 @@ "/genomics:v1/ReadGroupSet/info": info "/genomics:v1/ReadGroupSet/info/info": info "/genomics:v1/ReadGroupSet/info/info/info": info -"/genomics:v1/ReadGroupSet/id": id "/genomics:v1/SearchVariantSetsResponse": search_variant_sets_response "/genomics:v1/SearchVariantSetsResponse/variantSets": variant_sets "/genomics:v1/SearchVariantSetsResponse/variantSets/variant_set": variant_set "/genomics:v1/SearchVariantSetsResponse/nextPageToken": next_page_token "/genomics:v1/Empty": empty "/genomics:v1/Entry": entry -"/genomics:v1/Entry/status": status "/genomics:v1/Entry/annotation": annotation +"/genomics:v1/Entry/status": status "/genomics:v1/Position": position "/genomics:v1/Position/position": position "/genomics:v1/Position/referenceName": reference_name @@ -29706,25 +29782,23 @@ "/genomics:v1/SearchReferenceSetsResponse/referenceSets/reference_set": reference_set "/genomics:v1/SearchReferenceSetsResponse/nextPageToken": next_page_token "/genomics:v1/SearchCallSetsRequest": search_call_sets_request -"/genomics:v1/SearchCallSetsRequest/name": name "/genomics:v1/SearchCallSetsRequest/pageToken": page_token +"/genomics:v1/SearchCallSetsRequest/name": name "/genomics:v1/SearchCallSetsRequest/pageSize": page_size "/genomics:v1/SearchCallSetsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id "/genomics:v1/ImportReadGroupSetsRequest": import_read_group_sets_request +"/genomics:v1/ImportReadGroupSetsRequest/referenceSetId": reference_set_id +"/genomics:v1/ImportReadGroupSetsRequest/partitionStrategy": partition_strategy "/genomics:v1/ImportReadGroupSetsRequest/datasetId": dataset_id "/genomics:v1/ImportReadGroupSetsRequest/sourceUris": source_uris "/genomics:v1/ImportReadGroupSetsRequest/sourceUris/source_uri": source_uri -"/genomics:v1/ImportReadGroupSetsRequest/referenceSetId": reference_set_id -"/genomics:v1/ImportReadGroupSetsRequest/partitionStrategy": partition_strategy "/genomics:v1/Policy": policy "/genomics:v1/Policy/etag": etag "/genomics:v1/Policy/version": version "/genomics:v1/Policy/bindings": bindings "/genomics:v1/Policy/bindings/binding": binding "/genomics:v1/SearchReadsRequest": search_reads_request -"/genomics:v1/SearchReadsRequest/readGroupSetIds": read_group_set_ids -"/genomics:v1/SearchReadsRequest/readGroupSetIds/read_group_set_id": read_group_set_id "/genomics:v1/SearchReadsRequest/readGroupIds": read_group_ids "/genomics:v1/SearchReadsRequest/readGroupIds/read_group_id": read_group_id "/genomics:v1/SearchReadsRequest/end": end @@ -29732,13 +29806,15 @@ "/genomics:v1/SearchReadsRequest/pageSize": page_size "/genomics:v1/SearchReadsRequest/start": start "/genomics:v1/SearchReadsRequest/referenceName": reference_name +"/genomics:v1/SearchReadsRequest/readGroupSetIds": read_group_set_ids +"/genomics:v1/SearchReadsRequest/readGroupSetIds/read_group_set_id": read_group_set_id "/genomics:v1/CancelOperationRequest": cancel_operation_request "/genomics:v1/Annotation": annotation "/genomics:v1/Annotation/annotationSetId": annotation_set_id "/genomics:v1/Annotation/name": name "/genomics:v1/Annotation/variant": variant -"/genomics:v1/Annotation/referenceId": reference_id "/genomics:v1/Annotation/id": id +"/genomics:v1/Annotation/referenceId": reference_id "/genomics:v1/Annotation/reverseStrand": reverse_strand "/genomics:v1/Annotation/referenceName": reference_name "/genomics:v1/Annotation/type": type @@ -29751,13 +29827,13 @@ "/genomics:v1/RuntimeMetadata": runtime_metadata "/genomics:v1/RuntimeMetadata/computeEngine": compute_engine "/genomics:v1/Operation": operation +"/genomics:v1/Operation/error": error "/genomics:v1/Operation/metadata": metadata "/genomics:v1/Operation/metadata/metadatum": metadatum "/genomics:v1/Operation/done": done "/genomics:v1/Operation/response": response "/genomics:v1/Operation/response/response": response "/genomics:v1/Operation/name": name -"/genomics:v1/Operation/error": error "/genomics:v1/ImportReadGroupSetsResponse": import_read_group_sets_response "/genomics:v1/ImportReadGroupSetsResponse/readGroupSetIds": read_group_set_ids "/genomics:v1/ImportReadGroupSetsResponse/readGroupSetIds/read_group_set_id": read_group_set_id @@ -29781,40 +29857,40 @@ "/genomics:v1/ListBasesResponse/offset": offset "/genomics:v1/ListBasesResponse/nextPageToken": next_page_token "/genomics:v1/Status": status -"/genomics:v1/Status/message": message "/genomics:v1/Status/details": details "/genomics:v1/Status/details/detail": detail "/genomics:v1/Status/details/detail/detail": detail "/genomics:v1/Status/code": code +"/genomics:v1/Status/message": message "/genomics:v1/Binding": binding "/genomics:v1/Binding/members": members "/genomics:v1/Binding/members/member": member "/genomics:v1/Binding/role": role "/genomics:v1/UndeleteDatasetRequest": undelete_dataset_request "/genomics:v1/Range": range -"/genomics:v1/Range/end": end "/genomics:v1/Range/referenceName": reference_name "/genomics:v1/Range/start": start +"/genomics:v1/Range/end": end "/genomics:v1/VariantSet": variant_set -"/genomics:v1/VariantSet/description": description -"/genomics:v1/VariantSet/datasetId": dataset_id -"/genomics:v1/VariantSet/name": name -"/genomics:v1/VariantSet/referenceSetId": reference_set_id "/genomics:v1/VariantSet/metadata": metadata "/genomics:v1/VariantSet/metadata/metadatum": metadatum "/genomics:v1/VariantSet/referenceBounds": reference_bounds "/genomics:v1/VariantSet/referenceBounds/reference_bound": reference_bound "/genomics:v1/VariantSet/id": id +"/genomics:v1/VariantSet/description": description +"/genomics:v1/VariantSet/datasetId": dataset_id +"/genomics:v1/VariantSet/name": name +"/genomics:v1/VariantSet/referenceSetId": reference_set_id +"/genomics:v1/ReferenceBound": reference_bound +"/genomics:v1/ReferenceBound/upperBound": upper_bound +"/genomics:v1/ReferenceBound/referenceName": reference_name "/genomics:v1/BatchCreateAnnotationsResponse": batch_create_annotations_response "/genomics:v1/BatchCreateAnnotationsResponse/entries": entries "/genomics:v1/BatchCreateAnnotationsResponse/entries/entry": entry -"/genomics:v1/ReferenceBound": reference_bound -"/genomics:v1/ReferenceBound/referenceName": reference_name -"/genomics:v1/ReferenceBound/upperBound": upper_bound -"/genomics:v1/ListOperationsResponse": list_operations_response -"/genomics:v1/ListOperationsResponse/operations": operations -"/genomics:v1/ListOperationsResponse/operations/operation": operation -"/genomics:v1/ListOperationsResponse/nextPageToken": next_page_token +"/genomics:v1/SearchCallSetsResponse": search_call_sets_response +"/genomics:v1/SearchCallSetsResponse/callSets": call_sets +"/genomics:v1/SearchCallSetsResponse/callSets/call_set": call_set +"/genomics:v1/SearchCallSetsResponse/nextPageToken": next_page_token "/genomics:v1/Variant": variant "/genomics:v1/Variant/variantSetId": variant_set_id "/genomics:v1/Variant/referenceName": reference_name @@ -29822,10 +29898,10 @@ "/genomics:v1/Variant/info/info": info "/genomics:v1/Variant/info/info/info": info "/genomics:v1/Variant/referenceBases": reference_bases -"/genomics:v1/Variant/alternateBases": alternate_bases -"/genomics:v1/Variant/alternateBases/alternate_basis": alternate_basis "/genomics:v1/Variant/names": names "/genomics:v1/Variant/names/name": name +"/genomics:v1/Variant/alternateBases": alternate_bases +"/genomics:v1/Variant/alternateBases/alternate_basis": alternate_basis "/genomics:v1/Variant/end": end "/genomics:v1/Variant/filter": filter "/genomics:v1/Variant/filter/filter": filter @@ -29835,11 +29911,15 @@ "/genomics:v1/Variant/start": start "/genomics:v1/Variant/quality": quality "/genomics:v1/Variant/id": id -"/genomics:v1/SearchCallSetsResponse": search_call_sets_response -"/genomics:v1/SearchCallSetsResponse/nextPageToken": next_page_token -"/genomics:v1/SearchCallSetsResponse/callSets": call_sets -"/genomics:v1/SearchCallSetsResponse/callSets/call_set": call_set +"/genomics:v1/ListOperationsResponse": list_operations_response +"/genomics:v1/ListOperationsResponse/nextPageToken": next_page_token +"/genomics:v1/ListOperationsResponse/operations": operations +"/genomics:v1/ListOperationsResponse/operations/operation": operation "/genomics:v1/SearchVariantsRequest": search_variants_request +"/genomics:v1/SearchVariantsRequest/callSetIds": call_set_ids +"/genomics:v1/SearchVariantsRequest/callSetIds/call_set_id": call_set_id +"/genomics:v1/SearchVariantsRequest/variantName": variant_name +"/genomics:v1/SearchVariantsRequest/start": start "/genomics:v1/SearchVariantsRequest/referenceName": reference_name "/genomics:v1/SearchVariantsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchVariantsRequest/variantSetIds/variant_set_id": variant_set_id @@ -29847,11 +29927,10 @@ "/genomics:v1/SearchVariantsRequest/maxCalls": max_calls "/genomics:v1/SearchVariantsRequest/pageToken": page_token "/genomics:v1/SearchVariantsRequest/pageSize": page_size -"/genomics:v1/SearchVariantsRequest/callSetIds": call_set_ids -"/genomics:v1/SearchVariantsRequest/callSetIds/call_set_id": call_set_id -"/genomics:v1/SearchVariantsRequest/start": start -"/genomics:v1/SearchVariantsRequest/variantName": variant_name "/genomics:v1/OperationMetadata": operation_metadata +"/genomics:v1/OperationMetadata/startTime": start_time +"/genomics:v1/OperationMetadata/request": request +"/genomics:v1/OperationMetadata/request/request": request "/genomics:v1/OperationMetadata/runtimeMetadata": runtime_metadata "/genomics:v1/OperationMetadata/runtimeMetadata/runtime_metadatum": runtime_metadatum "/genomics:v1/OperationMetadata/labels": labels @@ -29859,102 +29938,97 @@ "/genomics:v1/OperationMetadata/createTime": create_time "/genomics:v1/OperationMetadata/projectId": project_id "/genomics:v1/OperationMetadata/clientId": client_id -"/genomics:v1/OperationMetadata/endTime": end_time "/genomics:v1/OperationMetadata/events": events "/genomics:v1/OperationMetadata/events/event": event -"/genomics:v1/OperationMetadata/startTime": start_time -"/genomics:v1/OperationMetadata/request": request -"/genomics:v1/OperationMetadata/request/request": request +"/genomics:v1/OperationMetadata/endTime": end_time "/genomics:v1/SearchReadGroupSetsRequest": search_read_group_sets_request +"/genomics:v1/SearchReadGroupSetsRequest/pageToken": page_token +"/genomics:v1/SearchReadGroupSetsRequest/name": name +"/genomics:v1/SearchReadGroupSetsRequest/pageSize": page_size "/genomics:v1/SearchReadGroupSetsRequest/datasetIds": dataset_ids "/genomics:v1/SearchReadGroupSetsRequest/datasetIds/dataset_id": dataset_id -"/genomics:v1/SearchReadGroupSetsRequest/name": name -"/genomics:v1/SearchReadGroupSetsRequest/pageToken": page_token -"/genomics:v1/SearchReadGroupSetsRequest/pageSize": page_size "/genomics:v1/SearchAnnotationsResponse": search_annotations_response "/genomics:v1/SearchAnnotationsResponse/nextPageToken": next_page_token "/genomics:v1/SearchAnnotationsResponse/annotations": annotations "/genomics:v1/SearchAnnotationsResponse/annotations/annotation": annotation -"/genomics:v1/SearchReadsResponse": search_reads_response -"/genomics:v1/SearchReadsResponse/nextPageToken": next_page_token -"/genomics:v1/SearchReadsResponse/alignments": alignments -"/genomics:v1/SearchReadsResponse/alignments/alignment": alignment "/genomics:v1/ClinicalCondition": clinical_condition +"/genomics:v1/ClinicalCondition/omimId": omim_id "/genomics:v1/ClinicalCondition/externalIds": external_ids "/genomics:v1/ClinicalCondition/externalIds/external_id": external_id "/genomics:v1/ClinicalCondition/conceptId": concept_id "/genomics:v1/ClinicalCondition/names": names "/genomics:v1/ClinicalCondition/names/name": name -"/genomics:v1/ClinicalCondition/omimId": omim_id +"/genomics:v1/SearchReadsResponse": search_reads_response +"/genomics:v1/SearchReadsResponse/alignments": alignments +"/genomics:v1/SearchReadsResponse/alignments/alignment": alignment +"/genomics:v1/SearchReadsResponse/nextPageToken": next_page_token "/genomics:v1/Program": program "/genomics:v1/Program/name": name -"/genomics:v1/Program/commandLine": command_line "/genomics:v1/Program/prevProgramId": prev_program_id -"/genomics:v1/Program/id": id +"/genomics:v1/Program/commandLine": command_line "/genomics:v1/Program/version": version +"/genomics:v1/Program/id": id "/genomics:v1/ComputeEngine": compute_engine -"/genomics:v1/ComputeEngine/machineType": machine_type "/genomics:v1/ComputeEngine/diskNames": disk_names "/genomics:v1/ComputeEngine/diskNames/disk_name": disk_name +"/genomics:v1/ComputeEngine/machineType": machine_type "/genomics:v1/ComputeEngine/instanceName": instance_name "/genomics:v1/ComputeEngine/zone": zone "/genomics:v1/CoverageBucket": coverage_bucket -"/genomics:v1/CoverageBucket/meanCoverage": mean_coverage "/genomics:v1/CoverageBucket/range": range +"/genomics:v1/CoverageBucket/meanCoverage": mean_coverage "/genomics:v1/ExternalId": external_id "/genomics:v1/ExternalId/id": id "/genomics:v1/ExternalId/sourceName": source_name -"/genomics:v1/Reference": reference -"/genomics:v1/Reference/sourceAccessions": source_accessions -"/genomics:v1/Reference/sourceAccessions/source_accession": source_accession -"/genomics:v1/Reference/ncbiTaxonId": ncbi_taxon_id -"/genomics:v1/Reference/sourceUri": source_uri -"/genomics:v1/Reference/name": name -"/genomics:v1/Reference/md5checksum": md5checksum -"/genomics:v1/Reference/id": id -"/genomics:v1/Reference/length": length "/genomics:v1/SearchVariantSetsRequest": search_variant_sets_request "/genomics:v1/SearchVariantSetsRequest/pageToken": page_token "/genomics:v1/SearchVariantSetsRequest/pageSize": page_size "/genomics:v1/SearchVariantSetsRequest/datasetIds": dataset_ids "/genomics:v1/SearchVariantSetsRequest/datasetIds/dataset_id": dataset_id "/genomics:v1/VariantSetMetadata": variant_set_metadata -"/genomics:v1/VariantSetMetadata/type": type -"/genomics:v1/VariantSetMetadata/info": info -"/genomics:v1/VariantSetMetadata/info/info": info -"/genomics:v1/VariantSetMetadata/info/info/info": info "/genomics:v1/VariantSetMetadata/value": value "/genomics:v1/VariantSetMetadata/id": id "/genomics:v1/VariantSetMetadata/number": number "/genomics:v1/VariantSetMetadata/key": key "/genomics:v1/VariantSetMetadata/description": description +"/genomics:v1/VariantSetMetadata/info": info +"/genomics:v1/VariantSetMetadata/info/info": info +"/genomics:v1/VariantSetMetadata/info/info/info": info +"/genomics:v1/VariantSetMetadata/type": type +"/genomics:v1/Reference": reference +"/genomics:v1/Reference/id": id +"/genomics:v1/Reference/length": length +"/genomics:v1/Reference/sourceAccessions": source_accessions +"/genomics:v1/Reference/sourceAccessions/source_accession": source_accession +"/genomics:v1/Reference/sourceUri": source_uri +"/genomics:v1/Reference/ncbiTaxonId": ncbi_taxon_id +"/genomics:v1/Reference/name": name +"/genomics:v1/Reference/md5checksum": md5checksum "/genomics:v1/SearchReferenceSetsRequest": search_reference_sets_request -"/genomics:v1/SearchReferenceSetsRequest/accessions": accessions -"/genomics:v1/SearchReferenceSetsRequest/accessions/accession": accession -"/genomics:v1/SearchReferenceSetsRequest/pageToken": page_token -"/genomics:v1/SearchReferenceSetsRequest/pageSize": page_size -"/genomics:v1/SearchReferenceSetsRequest/assemblyId": assembly_id "/genomics:v1/SearchReferenceSetsRequest/md5checksums": md5checksums "/genomics:v1/SearchReferenceSetsRequest/md5checksums/md5checksum": md5checksum +"/genomics:v1/SearchReferenceSetsRequest/pageToken": page_token +"/genomics:v1/SearchReferenceSetsRequest/accessions": accessions +"/genomics:v1/SearchReferenceSetsRequest/accessions/accession": accession +"/genomics:v1/SearchReferenceSetsRequest/pageSize": page_size +"/genomics:v1/SearchReferenceSetsRequest/assemblyId": assembly_id "/genomics:v1/SetIamPolicyRequest": set_iam_policy_request "/genomics:v1/SetIamPolicyRequest/policy": policy "/genomics:v1/MergeVariantsRequest": merge_variants_request +"/genomics:v1/MergeVariantsRequest/variants": variants +"/genomics:v1/MergeVariantsRequest/variants/variant": variant "/genomics:v1/MergeVariantsRequest/infoMergeConfig": info_merge_config "/genomics:v1/MergeVariantsRequest/infoMergeConfig/info_merge_config": info_merge_config "/genomics:v1/MergeVariantsRequest/variantSetId": variant_set_id -"/genomics:v1/MergeVariantsRequest/variants": variants -"/genomics:v1/MergeVariantsRequest/variants/variant": variant +"/genomics:v1/BatchCreateAnnotationsRequest": batch_create_annotations_request +"/genomics:v1/BatchCreateAnnotationsRequest/annotations": annotations +"/genomics:v1/BatchCreateAnnotationsRequest/annotations/annotation": annotation +"/genomics:v1/BatchCreateAnnotationsRequest/requestId": request_id "/genomics:v1/Read": read -"/genomics:v1/Read/alignment": alignment -"/genomics:v1/Read/numberReads": number_reads -"/genomics:v1/Read/id": id -"/genomics:v1/Read/secondaryAlignment": secondary_alignment -"/genomics:v1/Read/fragmentName": fragment_name -"/genomics:v1/Read/readGroupSetId": read_group_set_id "/genomics:v1/Read/duplicateFragment": duplicate_fragment "/genomics:v1/Read/readNumber": read_number -"/genomics:v1/Read/readGroupId": read_group_id "/genomics:v1/Read/alignedSequence": aligned_sequence +"/genomics:v1/Read/readGroupId": read_group_id "/genomics:v1/Read/info": info "/genomics:v1/Read/info/info": info "/genomics:v1/Read/info/info/info": info @@ -29965,33 +30039,30 @@ "/genomics:v1/Read/failedVendorQualityChecks": failed_vendor_quality_checks "/genomics:v1/Read/alignedQuality": aligned_quality "/genomics:v1/Read/alignedQuality/aligned_quality": aligned_quality -"/genomics:v1/BatchCreateAnnotationsRequest": batch_create_annotations_request -"/genomics:v1/BatchCreateAnnotationsRequest/requestId": request_id -"/genomics:v1/BatchCreateAnnotationsRequest/annotations": annotations -"/genomics:v1/BatchCreateAnnotationsRequest/annotations/annotation": annotation -"/genomics:v1/CigarUnit": cigar_unit -"/genomics:v1/CigarUnit/operation": operation -"/genomics:v1/CigarUnit/referenceSequence": reference_sequence -"/genomics:v1/CigarUnit/operationLength": operation_length +"/genomics:v1/Read/alignment": alignment +"/genomics:v1/Read/id": id +"/genomics:v1/Read/numberReads": number_reads +"/genomics:v1/Read/secondaryAlignment": secondary_alignment +"/genomics:v1/Read/fragmentName": fragment_name +"/genomics:v1/Read/readGroupSetId": read_group_set_id "/genomics:v1/ReferenceSet": reference_set -"/genomics:v1/ReferenceSet/description": description +"/genomics:v1/ReferenceSet/id": id "/genomics:v1/ReferenceSet/sourceAccessions": source_accessions "/genomics:v1/ReferenceSet/sourceAccessions/source_accession": source_accession +"/genomics:v1/ReferenceSet/description": description "/genomics:v1/ReferenceSet/sourceUri": source_uri "/genomics:v1/ReferenceSet/ncbiTaxonId": ncbi_taxon_id "/genomics:v1/ReferenceSet/referenceIds": reference_ids "/genomics:v1/ReferenceSet/referenceIds/reference_id": reference_id "/genomics:v1/ReferenceSet/assemblyId": assembly_id "/genomics:v1/ReferenceSet/md5checksum": md5checksum -"/genomics:v1/ReferenceSet/id": id -"/genomics:v1/Transcript": transcript -"/genomics:v1/Transcript/codingSequence": coding_sequence -"/genomics:v1/Transcript/geneId": gene_id -"/genomics:v1/Transcript/exons": exons -"/genomics:v1/Transcript/exons/exon": exon +"/genomics:v1/CigarUnit": cigar_unit +"/genomics:v1/CigarUnit/operationLength": operation_length +"/genomics:v1/CigarUnit/operation": operation +"/genomics:v1/CigarUnit/referenceSequence": reference_sequence "/genomics:v1/AnnotationSet": annotation_set -"/genomics:v1/AnnotationSet/sourceUri": source_uri "/genomics:v1/AnnotationSet/datasetId": dataset_id +"/genomics:v1/AnnotationSet/sourceUri": source_uri "/genomics:v1/AnnotationSet/name": name "/genomics:v1/AnnotationSet/referenceSetId": reference_set_id "/genomics:v1/AnnotationSet/info": info @@ -29999,11 +30070,92 @@ "/genomics:v1/AnnotationSet/info/info/info": info "/genomics:v1/AnnotationSet/type": type "/genomics:v1/AnnotationSet/id": id +"/genomics:v1/Transcript": transcript +"/genomics:v1/Transcript/geneId": gene_id +"/genomics:v1/Transcript/exons": exons +"/genomics:v1/Transcript/exons/exon": exon +"/genomics:v1/Transcript/codingSequence": coding_sequence "/genomics:v1/Experiment": experiment -"/genomics:v1/Experiment/sequencingCenter": sequencing_center "/genomics:v1/Experiment/platformUnit": platform_unit -"/genomics:v1/Experiment/libraryId": library_id "/genomics:v1/Experiment/instrumentModel": instrument_model +"/genomics:v1/Experiment/libraryId": library_id +"/genomics:v1/Experiment/sequencingCenter": sequencing_center +"/genomics:v1/ListDatasetsResponse": list_datasets_response +"/genomics:v1/ListDatasetsResponse/nextPageToken": next_page_token +"/genomics:v1/ListDatasetsResponse/datasets": datasets +"/genomics:v1/ListDatasetsResponse/datasets/dataset": dataset +"/genomics:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/genomics:v1/TestIamPermissionsRequest/permissions": permissions +"/genomics:v1/TestIamPermissionsRequest/permissions/permission": permission +"/genomics:v1/Exon": exon +"/genomics:v1/Exon/start": start +"/genomics:v1/Exon/frame": frame +"/genomics:v1/Exon/end": end +"/genomics:v1/ExportReadGroupSetRequest": export_read_group_set_request +"/genomics:v1/ExportReadGroupSetRequest/referenceNames": reference_names +"/genomics:v1/ExportReadGroupSetRequest/referenceNames/reference_name": reference_name +"/genomics:v1/ExportReadGroupSetRequest/exportUri": export_uri +"/genomics:v1/ExportReadGroupSetRequest/projectId": project_id +"/genomics:v1/CallSet": call_set +"/genomics:v1/CallSet/sampleId": sample_id +"/genomics:v1/CallSet/name": name +"/genomics:v1/CallSet/info": info +"/genomics:v1/CallSet/info/info": info +"/genomics:v1/CallSet/info/info/info": info +"/genomics:v1/CallSet/variantSetIds": variant_set_ids +"/genomics:v1/CallSet/variantSetIds/variant_set_id": variant_set_id +"/genomics:v1/CallSet/id": id +"/genomics:v1/CallSet/created": created +"/genomics:v1/SearchAnnotationSetsResponse": search_annotation_sets_response +"/genomics:v1/SearchAnnotationSetsResponse/nextPageToken": next_page_token +"/genomics:v1/SearchAnnotationSetsResponse/annotationSets": annotation_sets +"/genomics:v1/SearchAnnotationSetsResponse/annotationSets/annotation_set": annotation_set +"/genomics:v1/ImportVariantsRequest": import_variants_request +"/genomics:v1/ImportVariantsRequest/format": format +"/genomics:v1/ImportVariantsRequest/infoMergeConfig": info_merge_config +"/genomics:v1/ImportVariantsRequest/infoMergeConfig/info_merge_config": info_merge_config +"/genomics:v1/ImportVariantsRequest/sourceUris": source_uris +"/genomics:v1/ImportVariantsRequest/sourceUris/source_uri": source_uri +"/genomics:v1/ImportVariantsRequest/variantSetId": variant_set_id +"/genomics:v1/ImportVariantsRequest/normalizeReferenceNames": normalize_reference_names +"/genomics:v1/VariantAnnotation": variant_annotation +"/genomics:v1/VariantAnnotation/conditions": conditions +"/genomics:v1/VariantAnnotation/conditions/condition": condition +"/genomics:v1/VariantAnnotation/effect": effect +"/genomics:v1/VariantAnnotation/transcriptIds": transcript_ids +"/genomics:v1/VariantAnnotation/transcriptIds/transcript_id": transcript_id +"/genomics:v1/VariantAnnotation/type": type +"/genomics:v1/VariantAnnotation/alternateBases": alternate_bases +"/genomics:v1/VariantAnnotation/geneId": gene_id +"/genomics:v1/VariantAnnotation/clinicalSignificance": clinical_significance +"/genomics:v1/ListCoverageBucketsResponse": list_coverage_buckets_response +"/genomics:v1/ListCoverageBucketsResponse/nextPageToken": next_page_token +"/genomics:v1/ListCoverageBucketsResponse/bucketWidth": bucket_width +"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets": coverage_buckets +"/genomics:v1/ListCoverageBucketsResponse/coverageBuckets/coverage_bucket": coverage_bucket +"/genomics:v1/ExportVariantSetRequest": export_variant_set_request +"/genomics:v1/ExportVariantSetRequest/bigqueryTable": bigquery_table +"/genomics:v1/ExportVariantSetRequest/bigqueryDataset": bigquery_dataset +"/genomics:v1/ExportVariantSetRequest/format": format +"/genomics:v1/ExportVariantSetRequest/projectId": project_id +"/genomics:v1/ExportVariantSetRequest/callSetIds": call_set_ids +"/genomics:v1/ExportVariantSetRequest/callSetIds/call_set_id": call_set_id +"/genomics:v1/SearchAnnotationsRequest": search_annotations_request +"/genomics:v1/SearchAnnotationsRequest/start": start +"/genomics:v1/SearchAnnotationsRequest/annotationSetIds": annotation_set_ids +"/genomics:v1/SearchAnnotationsRequest/annotationSetIds/annotation_set_id": annotation_set_id +"/genomics:v1/SearchAnnotationsRequest/referenceName": reference_name +"/genomics:v1/SearchAnnotationsRequest/referenceId": reference_id +"/genomics:v1/SearchAnnotationsRequest/end": end +"/genomics:v1/SearchAnnotationsRequest/pageToken": page_token +"/genomics:v1/SearchAnnotationsRequest/pageSize": page_size +"/genomics:v1/OperationEvent": operation_event +"/genomics:v1/OperationEvent/endTime": end_time +"/genomics:v1/OperationEvent/startTime": start_time +"/genomics:v1/OperationEvent/description": description +"/genomics:v1/CodingSequence": coding_sequence +"/genomics:v1/CodingSequence/end": end +"/genomics:v1/CodingSequence/start": start "/gmail:v1/fields": fields "/gmail:v1/key": key "/gmail:v1/quotaUser": quota_user @@ -30457,62 +30609,81 @@ "/iam:v1/fields": fields "/iam:v1/key": key "/iam:v1/quotaUser": quota_user -"/iam:v1/iam.projects.serviceAccounts.getIamPolicy": get_project_service_account_iam_policy -"/iam:v1/iam.projects.serviceAccounts.getIamPolicy/resource": resource -"/iam:v1/iam.projects.serviceAccounts.get": get_project_service_account -"/iam:v1/iam.projects.serviceAccounts.get/name": name "/iam:v1/iam.projects.serviceAccounts.update": update_project_service_account "/iam:v1/iam.projects.serviceAccounts.update/name": name "/iam:v1/iam.projects.serviceAccounts.testIamPermissions": test_service_account_iam_permissions "/iam:v1/iam.projects.serviceAccounts.testIamPermissions/resource": resource "/iam:v1/iam.projects.serviceAccounts.delete": delete_project_service_account "/iam:v1/iam.projects.serviceAccounts.delete/name": name -"/iam:v1/iam.projects.serviceAccounts.list": list_project_service_accounts -"/iam:v1/iam.projects.serviceAccounts.list/name": name -"/iam:v1/iam.projects.serviceAccounts.list/pageToken": page_token -"/iam:v1/iam.projects.serviceAccounts.list/pageSize": page_size "/iam:v1/iam.projects.serviceAccounts.signBlob": sign_service_account_blob "/iam:v1/iam.projects.serviceAccounts.signBlob/name": name -"/iam:v1/iam.projects.serviceAccounts.setIamPolicy": set_service_account_iam_policy -"/iam:v1/iam.projects.serviceAccounts.setIamPolicy/resource": resource +"/iam:v1/iam.projects.serviceAccounts.list": list_project_service_accounts +"/iam:v1/iam.projects.serviceAccounts.list/pageToken": page_token +"/iam:v1/iam.projects.serviceAccounts.list/name": name +"/iam:v1/iam.projects.serviceAccounts.list/pageSize": page_size "/iam:v1/iam.projects.serviceAccounts.create": create_service_account "/iam:v1/iam.projects.serviceAccounts.create/name": name +"/iam:v1/iam.projects.serviceAccounts.setIamPolicy": set_service_account_iam_policy +"/iam:v1/iam.projects.serviceAccounts.setIamPolicy/resource": resource "/iam:v1/iam.projects.serviceAccounts.signJwt": sign_service_account_jwt "/iam:v1/iam.projects.serviceAccounts.signJwt/name": name +"/iam:v1/iam.projects.serviceAccounts.getIamPolicy": get_project_service_account_iam_policy +"/iam:v1/iam.projects.serviceAccounts.getIamPolicy/resource": resource +"/iam:v1/iam.projects.serviceAccounts.get": get_project_service_account +"/iam:v1/iam.projects.serviceAccounts.get/name": name "/iam:v1/iam.projects.serviceAccounts.keys.create": create_service_account_key "/iam:v1/iam.projects.serviceAccounts.keys.create/name": name "/iam:v1/iam.projects.serviceAccounts.keys.delete": delete_project_service_account_key "/iam:v1/iam.projects.serviceAccounts.keys.delete/name": name -"/iam:v1/iam.projects.serviceAccounts.keys.list": list_project_service_account_keys -"/iam:v1/iam.projects.serviceAccounts.keys.list/keyTypes": key_types -"/iam:v1/iam.projects.serviceAccounts.keys.list/name": name "/iam:v1/iam.projects.serviceAccounts.keys.get": get_project_service_account_key "/iam:v1/iam.projects.serviceAccounts.keys.get/publicKeyType": public_key_type "/iam:v1/iam.projects.serviceAccounts.keys.get/name": name +"/iam:v1/iam.projects.serviceAccounts.keys.list": list_project_service_account_keys +"/iam:v1/iam.projects.serviceAccounts.keys.list/keyTypes": key_types +"/iam:v1/iam.projects.serviceAccounts.keys.list/name": name "/iam:v1/iam.roles.queryGrantableRoles": query_grantable_roles +"/iam:v1/CreateServiceAccountRequest": create_service_account_request +"/iam:v1/CreateServiceAccountRequest/accountId": account_id +"/iam:v1/CreateServiceAccountRequest/serviceAccount": service_account +"/iam:v1/ListServiceAccountsResponse": list_service_accounts_response +"/iam:v1/ListServiceAccountsResponse/nextPageToken": next_page_token +"/iam:v1/ListServiceAccountsResponse/accounts": accounts +"/iam:v1/ListServiceAccountsResponse/accounts/account": account +"/iam:v1/QueryGrantableRolesResponse": query_grantable_roles_response +"/iam:v1/QueryGrantableRolesResponse/nextPageToken": next_page_token +"/iam:v1/QueryGrantableRolesResponse/roles": roles +"/iam:v1/QueryGrantableRolesResponse/roles/role": role +"/iam:v1/SignBlobRequest": sign_blob_request +"/iam:v1/SignBlobRequest/bytesToSign": bytes_to_sign +"/iam:v1/Role": role +"/iam:v1/Role/title": title +"/iam:v1/Role/name": name +"/iam:v1/Role/description": description +"/iam:v1/SetIamPolicyRequest": set_iam_policy_request +"/iam:v1/SetIamPolicyRequest/policy": policy "/iam:v1/Binding": binding "/iam:v1/Binding/members": members "/iam:v1/Binding/members/member": member "/iam:v1/Binding/role": role "/iam:v1/ServiceAccount": service_account -"/iam:v1/ServiceAccount/oauth2ClientId": oauth2_client_id "/iam:v1/ServiceAccount/uniqueId": unique_id +"/iam:v1/ServiceAccount/oauth2ClientId": oauth2_client_id "/iam:v1/ServiceAccount/displayName": display_name "/iam:v1/ServiceAccount/etag": etag -"/iam:v1/ServiceAccount/name": name "/iam:v1/ServiceAccount/email": email +"/iam:v1/ServiceAccount/name": name "/iam:v1/ServiceAccount/projectId": project_id "/iam:v1/Empty": empty "/iam:v1/QueryGrantableRolesRequest": query_grantable_roles_request "/iam:v1/QueryGrantableRolesRequest/fullResourceName": full_resource_name "/iam:v1/QueryGrantableRolesRequest/pageToken": page_token "/iam:v1/QueryGrantableRolesRequest/pageSize": page_size -"/iam:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/iam:v1/TestIamPermissionsResponse/permissions": permissions -"/iam:v1/TestIamPermissionsResponse/permissions/permission": permission "/iam:v1/ListServiceAccountKeysResponse": list_service_account_keys_response "/iam:v1/ListServiceAccountKeysResponse/keys": keys "/iam:v1/ListServiceAccountKeysResponse/keys/key": key +"/iam:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/iam:v1/TestIamPermissionsResponse/permissions": permissions +"/iam:v1/TestIamPermissionsResponse/permissions/permission": permission "/iam:v1/ServiceAccountKey": service_account_key "/iam:v1/ServiceAccountKey/publicKeyData": public_key_data "/iam:v1/ServiceAccountKey/name": name @@ -30522,9 +30693,9 @@ "/iam:v1/ServiceAccountKey/privateKeyType": private_key_type "/iam:v1/ServiceAccountKey/privateKeyData": private_key_data "/iam:v1/CreateServiceAccountKeyRequest": create_service_account_key_request -"/iam:v1/CreateServiceAccountKeyRequest/privateKeyType": private_key_type "/iam:v1/CreateServiceAccountKeyRequest/includePublicKeyData": include_public_key_data "/iam:v1/CreateServiceAccountKeyRequest/keyAlgorithm": key_algorithm +"/iam:v1/CreateServiceAccountKeyRequest/privateKeyType": private_key_type "/iam:v1/TestIamPermissionsRequest": test_iam_permissions_request "/iam:v1/TestIamPermissionsRequest/permissions": permissions "/iam:v1/TestIamPermissionsRequest/permissions/permission": permission @@ -30532,8 +30703,8 @@ "/iam:v1/SignBlobResponse/keyId": key_id "/iam:v1/SignBlobResponse/signature": signature "/iam:v1/SignJwtResponse": sign_jwt_response -"/iam:v1/SignJwtResponse/keyId": key_id "/iam:v1/SignJwtResponse/signedJwt": signed_jwt +"/iam:v1/SignJwtResponse/keyId": key_id "/iam:v1/Policy": policy "/iam:v1/Policy/etag": etag "/iam:v1/Policy/version": version @@ -30544,31 +30715,12 @@ "/iam:v1/AuditData": audit_data "/iam:v1/AuditData/policyDelta": policy_delta "/iam:v1/BindingDelta": binding_delta -"/iam:v1/BindingDelta/action": action "/iam:v1/BindingDelta/member": member "/iam:v1/BindingDelta/role": role +"/iam:v1/BindingDelta/action": action "/iam:v1/PolicyDelta": policy_delta "/iam:v1/PolicyDelta/bindingDeltas": binding_deltas "/iam:v1/PolicyDelta/bindingDeltas/binding_delta": binding_delta -"/iam:v1/ListServiceAccountsResponse": list_service_accounts_response -"/iam:v1/ListServiceAccountsResponse/nextPageToken": next_page_token -"/iam:v1/ListServiceAccountsResponse/accounts": accounts -"/iam:v1/ListServiceAccountsResponse/accounts/account": account -"/iam:v1/CreateServiceAccountRequest": create_service_account_request -"/iam:v1/CreateServiceAccountRequest/serviceAccount": service_account -"/iam:v1/CreateServiceAccountRequest/accountId": account_id -"/iam:v1/QueryGrantableRolesResponse": query_grantable_roles_response -"/iam:v1/QueryGrantableRolesResponse/roles": roles -"/iam:v1/QueryGrantableRolesResponse/roles/role": role -"/iam:v1/QueryGrantableRolesResponse/nextPageToken": next_page_token -"/iam:v1/SignBlobRequest": sign_blob_request -"/iam:v1/SignBlobRequest/bytesToSign": bytes_to_sign -"/iam:v1/Role": role -"/iam:v1/Role/name": name -"/iam:v1/Role/description": description -"/iam:v1/Role/title": title -"/iam:v1/SetIamPolicyRequest": set_iam_policy_request -"/iam:v1/SetIamPolicyRequest/policy": policy "/identitytoolkit:v3/fields": fields "/identitytoolkit:v3/key": key "/identitytoolkit:v3/quotaUser": quota_user @@ -30640,6 +30792,8 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/localId/local_id": local_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/phoneNumber": phone_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/phoneNumber/phone_number": phone_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/allowPasswordUser": allow_password_user "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/apiKey": api_key "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/authorizedDomains": authorized_domains @@ -30676,6 +30830,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/oobCode": oob_code "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/password": password +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/phoneNumber": phone_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/photoUrl": photo_url "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/provider": provider "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/provider/provider": provider @@ -30710,6 +30865,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/password": password +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/phoneNumber": phone_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/photoUrl": photo_url "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/allowOverwrite": allow_overwrite "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/delegatedProjectNumber": delegated_project_number @@ -30898,79 +31054,26 @@ "/kgsearch:v1/key": key "/kgsearch:v1/quotaUser": quota_user "/kgsearch:v1/kgsearch.entities.search": search_entities -"/kgsearch:v1/kgsearch.entities.search/indent": indent "/kgsearch:v1/kgsearch.entities.search/languages": languages "/kgsearch:v1/kgsearch.entities.search/ids": ids "/kgsearch:v1/kgsearch.entities.search/limit": limit "/kgsearch:v1/kgsearch.entities.search/prefix": prefix "/kgsearch:v1/kgsearch.entities.search/query": query "/kgsearch:v1/kgsearch.entities.search/types": types +"/kgsearch:v1/kgsearch.entities.search/indent": indent "/kgsearch:v1/SearchResponse": search_response -"/kgsearch:v1/SearchResponse/@context": _context +"/kgsearch:v1/SearchResponse/@type": _type "/kgsearch:v1/SearchResponse/itemListElement": item_list_element "/kgsearch:v1/SearchResponse/itemListElement/item_list_element": item_list_element -"/kgsearch:v1/SearchResponse/@type": _type +"/kgsearch:v1/SearchResponse/@context": _context +"/language:v1/quotaUser": quota_user "/language:v1/fields": fields "/language:v1/key": key -"/language:v1/quotaUser": quota_user +"/language:v1/language.documents.analyzeEntities": analyze_document_entities "/language:v1/language.documents.analyzeSyntax": analyze_document_syntax "/language:v1/language.documents.analyzeSentiment": analyze_document_sentiment "/language:v1/language.documents.annotateText": annotate_document_text -"/language:v1/language.documents.analyzeEntities": analyze_document_entities -"/language:v1/AnnotateTextResponse": annotate_text_response -"/language:v1/AnnotateTextResponse/language": language -"/language:v1/AnnotateTextResponse/sentences": sentences -"/language:v1/AnnotateTextResponse/sentences/sentence": sentence -"/language:v1/AnnotateTextResponse/tokens": tokens -"/language:v1/AnnotateTextResponse/tokens/token": token -"/language:v1/AnnotateTextResponse/entities": entities -"/language:v1/AnnotateTextResponse/entities/entity": entity -"/language:v1/AnnotateTextResponse/documentSentiment": document_sentiment -"/language:v1/AnalyzeSentimentRequest": analyze_sentiment_request -"/language:v1/AnalyzeSentimentRequest/encodingType": encoding_type -"/language:v1/AnalyzeSentimentRequest/document": document -"/language:v1/DependencyEdge": dependency_edge -"/language:v1/DependencyEdge/label": label -"/language:v1/DependencyEdge/headTokenIndex": head_token_index -"/language:v1/TextSpan": text_span -"/language:v1/TextSpan/content": content -"/language:v1/TextSpan/beginOffset": begin_offset -"/language:v1/Token": token -"/language:v1/Token/text": text -"/language:v1/Token/dependencyEdge": dependency_edge -"/language:v1/Token/lemma": lemma -"/language:v1/Token/partOfSpeech": part_of_speech -"/language:v1/Status": status -"/language:v1/Status/code": code -"/language:v1/Status/message": message -"/language:v1/Status/details": details -"/language:v1/Status/details/detail": detail -"/language:v1/Status/details/detail/detail": detail -"/language:v1/EntityMention": entity_mention -"/language:v1/EntityMention/text": text -"/language:v1/EntityMention/type": type -"/language:v1/Features": features -"/language:v1/Features/extractEntities": extract_entities -"/language:v1/Features/extractSyntax": extract_syntax -"/language:v1/Features/extractDocumentSentiment": extract_document_sentiment -"/language:v1/Document": document -"/language:v1/Document/language": language -"/language:v1/Document/type": type -"/language:v1/Document/content": content -"/language:v1/Document/gcsContentUri": gcs_content_uri -"/language:v1/Sentence": sentence -"/language:v1/Sentence/text": text -"/language:v1/Sentence/sentiment": sentiment -"/language:v1/AnalyzeEntitiesRequest": analyze_entities_request -"/language:v1/AnalyzeEntitiesRequest/encodingType": encoding_type -"/language:v1/AnalyzeEntitiesRequest/document": document -"/language:v1/Sentiment": sentiment -"/language:v1/Sentiment/score": score -"/language:v1/Sentiment/magnitude": magnitude "/language:v1/PartOfSpeech": part_of_speech -"/language:v1/PartOfSpeech/form": form -"/language:v1/PartOfSpeech/number": number -"/language:v1/PartOfSpeech/voice": voice "/language:v1/PartOfSpeech/aspect": aspect "/language:v1/PartOfSpeech/mood": mood "/language:v1/PartOfSpeech/tag": tag @@ -30980,6 +31083,9 @@ "/language:v1/PartOfSpeech/case": case "/language:v1/PartOfSpeech/tense": tense "/language:v1/PartOfSpeech/reciprocity": reciprocity +"/language:v1/PartOfSpeech/form": form +"/language:v1/PartOfSpeech/number": number +"/language:v1/PartOfSpeech/voice": voice "/language:v1/AnalyzeSyntaxRequest": analyze_syntax_request "/language:v1/AnalyzeSyntaxRequest/encodingType": encoding_type "/language:v1/AnalyzeSyntaxRequest/document": document @@ -30993,30 +31099,116 @@ "/language:v1/AnalyzeEntitiesResponse/entities": entities "/language:v1/AnalyzeEntitiesResponse/entities/entity": entity "/language:v1/AnalyzeSyntaxResponse": analyze_syntax_response +"/language:v1/AnalyzeSyntaxResponse/tokens": tokens +"/language:v1/AnalyzeSyntaxResponse/tokens/token": token "/language:v1/AnalyzeSyntaxResponse/language": language "/language:v1/AnalyzeSyntaxResponse/sentences": sentences "/language:v1/AnalyzeSyntaxResponse/sentences/sentence": sentence -"/language:v1/AnalyzeSyntaxResponse/tokens": tokens -"/language:v1/AnalyzeSyntaxResponse/tokens/token": token "/language:v1/Entity": entity -"/language:v1/Entity/type": type +"/language:v1/Entity/salience": salience "/language:v1/Entity/metadata": metadata "/language:v1/Entity/metadata/metadatum": metadatum -"/language:v1/Entity/salience": salience +"/language:v1/Entity/type": type "/language:v1/Entity/mentions": mentions "/language:v1/Entity/mentions/mention": mention "/language:v1/Entity/name": name "/language:v1/AnnotateTextRequest": annotate_text_request +"/language:v1/AnnotateTextRequest/features": features "/language:v1/AnnotateTextRequest/encodingType": encoding_type "/language:v1/AnnotateTextRequest/document": document -"/language:v1/AnnotateTextRequest/features": features -"/language:v1beta1/fields": fields +"/language:v1/AnnotateTextResponse": annotate_text_response +"/language:v1/AnnotateTextResponse/sentences": sentences +"/language:v1/AnnotateTextResponse/sentences/sentence": sentence +"/language:v1/AnnotateTextResponse/tokens": tokens +"/language:v1/AnnotateTextResponse/tokens/token": token +"/language:v1/AnnotateTextResponse/entities": entities +"/language:v1/AnnotateTextResponse/entities/entity": entity +"/language:v1/AnnotateTextResponse/documentSentiment": document_sentiment +"/language:v1/AnnotateTextResponse/language": language +"/language:v1/AnalyzeSentimentRequest": analyze_sentiment_request +"/language:v1/AnalyzeSentimentRequest/encodingType": encoding_type +"/language:v1/AnalyzeSentimentRequest/document": document +"/language:v1/DependencyEdge": dependency_edge +"/language:v1/DependencyEdge/label": label +"/language:v1/DependencyEdge/headTokenIndex": head_token_index +"/language:v1/TextSpan": text_span +"/language:v1/TextSpan/content": content +"/language:v1/TextSpan/beginOffset": begin_offset +"/language:v1/Token": token +"/language:v1/Token/partOfSpeech": part_of_speech +"/language:v1/Token/dependencyEdge": dependency_edge +"/language:v1/Token/text": text +"/language:v1/Token/lemma": lemma +"/language:v1/Status": status +"/language:v1/Status/code": code +"/language:v1/Status/message": message +"/language:v1/Status/details": details +"/language:v1/Status/details/detail": detail +"/language:v1/Status/details/detail/detail": detail +"/language:v1/EntityMention": entity_mention +"/language:v1/EntityMention/type": type +"/language:v1/EntityMention/text": text +"/language:v1/Features": features +"/language:v1/Features/extractEntities": extract_entities +"/language:v1/Features/extractDocumentSentiment": extract_document_sentiment +"/language:v1/Features/extractSyntax": extract_syntax +"/language:v1/Document": document +"/language:v1/Document/language": language +"/language:v1/Document/content": content +"/language:v1/Document/type": type +"/language:v1/Document/gcsContentUri": gcs_content_uri +"/language:v1/Sentence": sentence +"/language:v1/Sentence/text": text +"/language:v1/Sentence/sentiment": sentiment +"/language:v1/AnalyzeEntitiesRequest": analyze_entities_request +"/language:v1/AnalyzeEntitiesRequest/encodingType": encoding_type +"/language:v1/AnalyzeEntitiesRequest/document": document +"/language:v1/Sentiment": sentiment +"/language:v1/Sentiment/score": score +"/language:v1/Sentiment/magnitude": magnitude "/language:v1beta1/key": key "/language:v1beta1/quotaUser": quota_user +"/language:v1beta1/fields": fields +"/language:v1beta1/language.documents.analyzeSyntax": analyze_document_syntax "/language:v1beta1/language.documents.analyzeSentiment": analyze_document_sentiment "/language:v1beta1/language.documents.annotateText": annotate_document_text "/language:v1beta1/language.documents.analyzeEntities": analyze_document_entities -"/language:v1beta1/language.documents.analyzeSyntax": analyze_document_syntax +"/language:v1beta1/TextSpan": text_span +"/language:v1beta1/TextSpan/beginOffset": begin_offset +"/language:v1beta1/TextSpan/content": content +"/language:v1beta1/Token": token +"/language:v1beta1/Token/dependencyEdge": dependency_edge +"/language:v1beta1/Token/text": text +"/language:v1beta1/Token/lemma": lemma +"/language:v1beta1/Token/partOfSpeech": part_of_speech +"/language:v1beta1/Status": status +"/language:v1beta1/Status/details": details +"/language:v1beta1/Status/details/detail": detail +"/language:v1beta1/Status/details/detail/detail": detail +"/language:v1beta1/Status/code": code +"/language:v1beta1/Status/message": message +"/language:v1beta1/EntityMention": entity_mention +"/language:v1beta1/EntityMention/type": type +"/language:v1beta1/EntityMention/text": text +"/language:v1beta1/Features": features +"/language:v1beta1/Features/extractEntities": extract_entities +"/language:v1beta1/Features/extractDocumentSentiment": extract_document_sentiment +"/language:v1beta1/Features/extractSyntax": extract_syntax +"/language:v1beta1/Document": document +"/language:v1beta1/Document/gcsContentUri": gcs_content_uri +"/language:v1beta1/Document/language": language +"/language:v1beta1/Document/content": content +"/language:v1beta1/Document/type": type +"/language:v1beta1/Sentence": sentence +"/language:v1beta1/Sentence/text": text +"/language:v1beta1/Sentence/sentiment": sentiment +"/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request +"/language:v1beta1/AnalyzeEntitiesRequest/document": document +"/language:v1beta1/AnalyzeEntitiesRequest/encodingType": encoding_type +"/language:v1beta1/Sentiment": sentiment +"/language:v1beta1/Sentiment/score": score +"/language:v1beta1/Sentiment/polarity": polarity +"/language:v1beta1/Sentiment/magnitude": magnitude "/language:v1beta1/PartOfSpeech": part_of_speech "/language:v1beta1/PartOfSpeech/form": form "/language:v1beta1/PartOfSpeech/number": number @@ -31049,68 +31241,32 @@ "/language:v1beta1/AnalyzeSyntaxResponse/tokens": tokens "/language:v1beta1/AnalyzeSyntaxResponse/tokens/token": token "/language:v1beta1/Entity": entity -"/language:v1beta1/Entity/type": type +"/language:v1beta1/Entity/name": name +"/language:v1beta1/Entity/salience": salience "/language:v1beta1/Entity/metadata": metadata "/language:v1beta1/Entity/metadata/metadatum": metadatum -"/language:v1beta1/Entity/salience": salience +"/language:v1beta1/Entity/type": type "/language:v1beta1/Entity/mentions": mentions "/language:v1beta1/Entity/mentions/mention": mention -"/language:v1beta1/Entity/name": name "/language:v1beta1/AnnotateTextRequest": annotate_text_request +"/language:v1beta1/AnnotateTextRequest/features": features "/language:v1beta1/AnnotateTextRequest/encodingType": encoding_type "/language:v1beta1/AnnotateTextRequest/document": document -"/language:v1beta1/AnnotateTextRequest/features": features "/language:v1beta1/AnnotateTextResponse": annotate_text_response +"/language:v1beta1/AnnotateTextResponse/entities": entities +"/language:v1beta1/AnnotateTextResponse/entities/entity": entity +"/language:v1beta1/AnnotateTextResponse/documentSentiment": document_sentiment "/language:v1beta1/AnnotateTextResponse/language": language "/language:v1beta1/AnnotateTextResponse/sentences": sentences "/language:v1beta1/AnnotateTextResponse/sentences/sentence": sentence "/language:v1beta1/AnnotateTextResponse/tokens": tokens "/language:v1beta1/AnnotateTextResponse/tokens/token": token -"/language:v1beta1/AnnotateTextResponse/entities": entities -"/language:v1beta1/AnnotateTextResponse/entities/entity": entity -"/language:v1beta1/AnnotateTextResponse/documentSentiment": document_sentiment "/language:v1beta1/AnalyzeSentimentRequest": analyze_sentiment_request -"/language:v1beta1/AnalyzeSentimentRequest/encodingType": encoding_type "/language:v1beta1/AnalyzeSentimentRequest/document": document +"/language:v1beta1/AnalyzeSentimentRequest/encodingType": encoding_type "/language:v1beta1/DependencyEdge": dependency_edge "/language:v1beta1/DependencyEdge/label": label "/language:v1beta1/DependencyEdge/headTokenIndex": head_token_index -"/language:v1beta1/TextSpan": text_span -"/language:v1beta1/TextSpan/beginOffset": begin_offset -"/language:v1beta1/TextSpan/content": content -"/language:v1beta1/Token": token -"/language:v1beta1/Token/text": text -"/language:v1beta1/Token/dependencyEdge": dependency_edge -"/language:v1beta1/Token/lemma": lemma -"/language:v1beta1/Token/partOfSpeech": part_of_speech -"/language:v1beta1/Status": status -"/language:v1beta1/Status/message": message -"/language:v1beta1/Status/details": details -"/language:v1beta1/Status/details/detail": detail -"/language:v1beta1/Status/details/detail/detail": detail -"/language:v1beta1/Status/code": code -"/language:v1beta1/EntityMention": entity_mention -"/language:v1beta1/EntityMention/text": text -"/language:v1beta1/EntityMention/type": type -"/language:v1beta1/Features": features -"/language:v1beta1/Features/extractEntities": extract_entities -"/language:v1beta1/Features/extractSyntax": extract_syntax -"/language:v1beta1/Features/extractDocumentSentiment": extract_document_sentiment -"/language:v1beta1/Document": document -"/language:v1beta1/Document/gcsContentUri": gcs_content_uri -"/language:v1beta1/Document/language": language -"/language:v1beta1/Document/type": type -"/language:v1beta1/Document/content": content -"/language:v1beta1/Sentence": sentence -"/language:v1beta1/Sentence/text": text -"/language:v1beta1/Sentence/sentiment": sentiment -"/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request -"/language:v1beta1/AnalyzeEntitiesRequest/encodingType": encoding_type -"/language:v1beta1/AnalyzeEntitiesRequest/document": document -"/language:v1beta1/Sentiment": sentiment -"/language:v1beta1/Sentiment/polarity": polarity -"/language:v1beta1/Sentiment/score": score -"/language:v1beta1/Sentiment/magnitude": magnitude "/licensing:v1/fields": fields "/licensing:v1/key": key "/licensing:v1/quotaUser": quota_user @@ -31163,154 +31319,117 @@ "/logging:v2/fields": fields "/logging:v2/key": key "/logging:v2/quotaUser": quota_user +"/logging:v2/logging.projects.sinks.get": get_project_sink +"/logging:v2/logging.projects.sinks.get/sinkName": sink_name +"/logging:v2/logging.projects.sinks.list": list_project_sinks +"/logging:v2/logging.projects.sinks.list/pageToken": page_token +"/logging:v2/logging.projects.sinks.list/pageSize": page_size +"/logging:v2/logging.projects.sinks.list/parent": parent +"/logging:v2/logging.projects.sinks.update": update_project_sink +"/logging:v2/logging.projects.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.projects.sinks.update/sinkName": sink_name +"/logging:v2/logging.projects.sinks.create": create_project_sink +"/logging:v2/logging.projects.sinks.create/parent": parent +"/logging:v2/logging.projects.sinks.create/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.projects.sinks.delete": delete_project_sink +"/logging:v2/logging.projects.sinks.delete/sinkName": sink_name "/logging:v2/logging.projects.logs.delete": delete_project_log "/logging:v2/logging.projects.logs.delete/logName": log_name "/logging:v2/logging.projects.logs.list": list_project_logs "/logging:v2/logging.projects.logs.list/pageToken": page_token "/logging:v2/logging.projects.logs.list/pageSize": page_size "/logging:v2/logging.projects.logs.list/parent": parent -"/logging:v2/logging.projects.sinks.delete": delete_project_sink -"/logging:v2/logging.projects.sinks.delete/sinkName": sink_name -"/logging:v2/logging.projects.sinks.list": list_project_sinks -"/logging:v2/logging.projects.sinks.list/pageToken": page_token -"/logging:v2/logging.projects.sinks.list/pageSize": page_size -"/logging:v2/logging.projects.sinks.list/parent": parent -"/logging:v2/logging.projects.sinks.get": get_project_sink -"/logging:v2/logging.projects.sinks.get/sinkName": sink_name -"/logging:v2/logging.projects.sinks.update": update_project_sink -"/logging:v2/logging.projects.sinks.update/sinkName": sink_name -"/logging:v2/logging.projects.sinks.update/uniqueWriterIdentity": unique_writer_identity -"/logging:v2/logging.projects.sinks.create": create_project_sink -"/logging:v2/logging.projects.sinks.create/parent": parent -"/logging:v2/logging.projects.sinks.create/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.projects.metrics.delete": delete_project_metric "/logging:v2/logging.projects.metrics.delete/metricName": metric_name -"/logging:v2/logging.projects.metrics.list": list_project_metrics -"/logging:v2/logging.projects.metrics.list/pageSize": page_size -"/logging:v2/logging.projects.metrics.list/parent": parent -"/logging:v2/logging.projects.metrics.list/pageToken": page_token "/logging:v2/logging.projects.metrics.get": get_project_metric "/logging:v2/logging.projects.metrics.get/metricName": metric_name +"/logging:v2/logging.projects.metrics.list": list_project_metrics +"/logging:v2/logging.projects.metrics.list/pageToken": page_token +"/logging:v2/logging.projects.metrics.list/pageSize": page_size +"/logging:v2/logging.projects.metrics.list/parent": parent "/logging:v2/logging.projects.metrics.update": update_project_metric "/logging:v2/logging.projects.metrics.update/metricName": metric_name "/logging:v2/logging.projects.metrics.create": create_project_metric "/logging:v2/logging.projects.metrics.create/parent": parent -"/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log -"/logging:v2/logging.billingAccounts.logs.delete/logName": log_name -"/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs -"/logging:v2/logging.billingAccounts.logs.list/parent": parent -"/logging:v2/logging.billingAccounts.logs.list/pageToken": page_token -"/logging:v2/logging.billingAccounts.logs.list/pageSize": page_size -"/logging:v2/logging.billingAccounts.sinks.list": list_billing_account_sinks -"/logging:v2/logging.billingAccounts.sinks.list/parent": parent -"/logging:v2/logging.billingAccounts.sinks.list/pageToken": page_token -"/logging:v2/logging.billingAccounts.sinks.list/pageSize": page_size "/logging:v2/logging.billingAccounts.sinks.get": get_billing_account_sink "/logging:v2/logging.billingAccounts.sinks.get/sinkName": sink_name +"/logging:v2/logging.billingAccounts.sinks.list": list_billing_account_sinks +"/logging:v2/logging.billingAccounts.sinks.list/pageToken": page_token +"/logging:v2/logging.billingAccounts.sinks.list/pageSize": page_size +"/logging:v2/logging.billingAccounts.sinks.list/parent": parent "/logging:v2/logging.billingAccounts.sinks.update": update_billing_account_sink -"/logging:v2/logging.billingAccounts.sinks.update/sinkName": sink_name "/logging:v2/logging.billingAccounts.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.billingAccounts.sinks.update/sinkName": sink_name "/logging:v2/logging.billingAccounts.sinks.create": create_billing_account_sink "/logging:v2/logging.billingAccounts.sinks.create/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.billingAccounts.sinks.create/parent": parent "/logging:v2/logging.billingAccounts.sinks.delete": delete_billing_account_sink "/logging:v2/logging.billingAccounts.sinks.delete/sinkName": sink_name +"/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs +"/logging:v2/logging.billingAccounts.logs.list/parent": parent +"/logging:v2/logging.billingAccounts.logs.list/pageToken": page_token +"/logging:v2/logging.billingAccounts.logs.list/pageSize": page_size +"/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log +"/logging:v2/logging.billingAccounts.logs.delete/logName": log_name +"/logging:v2/logging.folders.sinks.delete": delete_folder_sink +"/logging:v2/logging.folders.sinks.delete/sinkName": sink_name +"/logging:v2/logging.folders.sinks.get": get_folder_sink +"/logging:v2/logging.folders.sinks.get/sinkName": sink_name +"/logging:v2/logging.folders.sinks.list": list_folder_sinks +"/logging:v2/logging.folders.sinks.list/pageSize": page_size +"/logging:v2/logging.folders.sinks.list/parent": parent +"/logging:v2/logging.folders.sinks.list/pageToken": page_token +"/logging:v2/logging.folders.sinks.update": update_folder_sink +"/logging:v2/logging.folders.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.folders.sinks.update/sinkName": sink_name +"/logging:v2/logging.folders.sinks.create": create_folder_sink +"/logging:v2/logging.folders.sinks.create/parent": parent +"/logging:v2/logging.folders.sinks.create/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.folders.logs.delete": delete_folder_log "/logging:v2/logging.folders.logs.delete/logName": log_name "/logging:v2/logging.folders.logs.list": list_folder_logs "/logging:v2/logging.folders.logs.list/parent": parent "/logging:v2/logging.folders.logs.list/pageToken": page_token "/logging:v2/logging.folders.logs.list/pageSize": page_size -"/logging:v2/logging.folders.sinks.delete": delete_folder_sink -"/logging:v2/logging.folders.sinks.delete/sinkName": sink_name -"/logging:v2/logging.folders.sinks.list": list_folder_sinks -"/logging:v2/logging.folders.sinks.list/pageToken": page_token -"/logging:v2/logging.folders.sinks.list/pageSize": page_size -"/logging:v2/logging.folders.sinks.list/parent": parent -"/logging:v2/logging.folders.sinks.get": get_folder_sink -"/logging:v2/logging.folders.sinks.get/sinkName": sink_name -"/logging:v2/logging.folders.sinks.update": update_folder_sink -"/logging:v2/logging.folders.sinks.update/sinkName": sink_name -"/logging:v2/logging.folders.sinks.update/uniqueWriterIdentity": unique_writer_identity -"/logging:v2/logging.folders.sinks.create": create_folder_sink -"/logging:v2/logging.folders.sinks.create/parent": parent -"/logging:v2/logging.folders.sinks.create/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.monitoredResourceDescriptors.list": list_monitored_resource_descriptors "/logging:v2/logging.monitoredResourceDescriptors.list/pageToken": page_token "/logging:v2/logging.monitoredResourceDescriptors.list/pageSize": page_size -"/logging:v2/logging.organizations.logs.list": list_organization_logs -"/logging:v2/logging.organizations.logs.list/pageSize": page_size -"/logging:v2/logging.organizations.logs.list/parent": parent -"/logging:v2/logging.organizations.logs.list/pageToken": page_token -"/logging:v2/logging.organizations.logs.delete": delete_organization_log -"/logging:v2/logging.organizations.logs.delete/logName": log_name -"/logging:v2/logging.organizations.sinks.list": list_organization_sinks -"/logging:v2/logging.organizations.sinks.list/parent": parent -"/logging:v2/logging.organizations.sinks.list/pageToken": page_token -"/logging:v2/logging.organizations.sinks.list/pageSize": page_size +"/logging:v2/logging.organizations.sinks.delete": delete_organization_sink +"/logging:v2/logging.organizations.sinks.delete/sinkName": sink_name "/logging:v2/logging.organizations.sinks.get": get_organization_sink "/logging:v2/logging.organizations.sinks.get/sinkName": sink_name +"/logging:v2/logging.organizations.sinks.list": list_organization_sinks +"/logging:v2/logging.organizations.sinks.list/pageSize": page_size +"/logging:v2/logging.organizations.sinks.list/parent": parent +"/logging:v2/logging.organizations.sinks.list/pageToken": page_token "/logging:v2/logging.organizations.sinks.update": update_organization_sink -"/logging:v2/logging.organizations.sinks.update/sinkName": sink_name "/logging:v2/logging.organizations.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2/logging.organizations.sinks.update/sinkName": sink_name "/logging:v2/logging.organizations.sinks.create": create_organization_sink "/logging:v2/logging.organizations.sinks.create/parent": parent "/logging:v2/logging.organizations.sinks.create/uniqueWriterIdentity": unique_writer_identity -"/logging:v2/logging.organizations.sinks.delete": delete_organization_sink -"/logging:v2/logging.organizations.sinks.delete/sinkName": sink_name +"/logging:v2/logging.organizations.logs.delete": delete_organization_log +"/logging:v2/logging.organizations.logs.delete/logName": log_name +"/logging:v2/logging.organizations.logs.list": list_organization_logs +"/logging:v2/logging.organizations.logs.list/pageToken": page_token +"/logging:v2/logging.organizations.logs.list/pageSize": page_size +"/logging:v2/logging.organizations.logs.list/parent": parent "/logging:v2/logging.entries.list": list_entry_log_entries "/logging:v2/logging.entries.write": write_entry_log_entries -"/logging:v2/HttpRequest": http_request -"/logging:v2/HttpRequest/latency": latency -"/logging:v2/HttpRequest/userAgent": user_agent -"/logging:v2/HttpRequest/cacheFillBytes": cache_fill_bytes -"/logging:v2/HttpRequest/requestMethod": request_method -"/logging:v2/HttpRequest/requestSize": request_size -"/logging:v2/HttpRequest/responseSize": response_size -"/logging:v2/HttpRequest/requestUrl": request_url -"/logging:v2/HttpRequest/remoteIp": remote_ip -"/logging:v2/HttpRequest/serverIp": server_ip -"/logging:v2/HttpRequest/cacheLookup": cache_lookup -"/logging:v2/HttpRequest/cacheHit": cache_hit -"/logging:v2/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server -"/logging:v2/HttpRequest/status": status -"/logging:v2/HttpRequest/referer": referer -"/logging:v2/ListSinksResponse": list_sinks_response -"/logging:v2/ListSinksResponse/nextPageToken": next_page_token -"/logging:v2/ListSinksResponse/sinks": sinks -"/logging:v2/ListSinksResponse/sinks/sink": sink -"/logging:v2/LabelDescriptor": label_descriptor -"/logging:v2/LabelDescriptor/key": key -"/logging:v2/LabelDescriptor/description": description -"/logging:v2/LabelDescriptor/valueType": value_type -"/logging:v2/MonitoredResourceDescriptor": monitored_resource_descriptor -"/logging:v2/MonitoredResourceDescriptor/name": name -"/logging:v2/MonitoredResourceDescriptor/displayName": display_name -"/logging:v2/MonitoredResourceDescriptor/description": description -"/logging:v2/MonitoredResourceDescriptor/type": type -"/logging:v2/MonitoredResourceDescriptor/labels": labels -"/logging:v2/MonitoredResourceDescriptor/labels/label": label -"/logging:v2/LogEntrySourceLocation": log_entry_source_location -"/logging:v2/LogEntrySourceLocation/file": file -"/logging:v2/LogEntrySourceLocation/function": function -"/logging:v2/LogEntrySourceLocation/line": line -"/logging:v2/ListLogEntriesResponse": list_log_entries_response -"/logging:v2/ListLogEntriesResponse/entries": entries -"/logging:v2/ListLogEntriesResponse/entries/entry": entry -"/logging:v2/ListLogEntriesResponse/nextPageToken": next_page_token -"/logging:v2/LogLine": log_line -"/logging:v2/LogLine/time": time -"/logging:v2/LogLine/severity": severity -"/logging:v2/LogLine/logMessage": log_message -"/logging:v2/LogLine/sourceLocation": source_location "/logging:v2/ListLogMetricsResponse": list_log_metrics_response "/logging:v2/ListLogMetricsResponse/metrics": metrics "/logging:v2/ListLogMetricsResponse/metrics/metric": metric "/logging:v2/ListLogMetricsResponse/nextPageToken": next_page_token -"/logging:v2/Empty": empty "/logging:v2/LogEntry": log_entry -"/logging:v2/LogEntry/insertId": insert_id +"/logging:v2/LogEntry/timestamp": timestamp +"/logging:v2/LogEntry/receiveTimestamp": receive_timestamp +"/logging:v2/LogEntry/logName": log_name +"/logging:v2/LogEntry/resource": resource +"/logging:v2/LogEntry/httpRequest": http_request +"/logging:v2/LogEntry/jsonPayload": json_payload +"/logging:v2/LogEntry/jsonPayload/json_payload": json_payload "/logging:v2/LogEntry/operation": operation +"/logging:v2/LogEntry/insertId": insert_id "/logging:v2/LogEntry/textPayload": text_payload "/logging:v2/LogEntry/protoPayload": proto_payload "/logging:v2/LogEntry/protoPayload/proto_payload": proto_payload @@ -31319,27 +31438,28 @@ "/logging:v2/LogEntry/labels/label": label "/logging:v2/LogEntry/severity": severity "/logging:v2/LogEntry/sourceLocation": source_location -"/logging:v2/LogEntry/receiveTimestamp": receive_timestamp -"/logging:v2/LogEntry/timestamp": timestamp -"/logging:v2/LogEntry/logName": log_name -"/logging:v2/LogEntry/httpRequest": http_request -"/logging:v2/LogEntry/resource": resource -"/logging:v2/LogEntry/jsonPayload": json_payload -"/logging:v2/LogEntry/jsonPayload/json_payload": json_payload +"/logging:v2/Empty": empty "/logging:v2/SourceLocation": source_location "/logging:v2/SourceLocation/file": file "/logging:v2/SourceLocation/functionName": function_name "/logging:v2/SourceLocation/line": line "/logging:v2/ListLogEntriesRequest": list_log_entries_request -"/logging:v2/ListLogEntriesRequest/pageSize": page_size "/logging:v2/ListLogEntriesRequest/orderBy": order_by "/logging:v2/ListLogEntriesRequest/resourceNames": resource_names "/logging:v2/ListLogEntriesRequest/resourceNames/resource_name": resource_name +"/logging:v2/ListLogEntriesRequest/filter": filter "/logging:v2/ListLogEntriesRequest/projectIds": project_ids "/logging:v2/ListLogEntriesRequest/projectIds/project_id": project_id -"/logging:v2/ListLogEntriesRequest/filter": filter "/logging:v2/ListLogEntriesRequest/pageToken": page_token +"/logging:v2/ListLogEntriesRequest/pageSize": page_size "/logging:v2/RequestLog": request_log +"/logging:v2/RequestLog/latency": latency +"/logging:v2/RequestLog/ip": ip +"/logging:v2/RequestLog/appId": app_id +"/logging:v2/RequestLog/appEngineRelease": app_engine_release +"/logging:v2/RequestLog/method": method_prop +"/logging:v2/RequestLog/cost": cost +"/logging:v2/RequestLog/instanceId": instance_id "/logging:v2/RequestLog/megaCycles": mega_cycles "/logging:v2/RequestLog/first": first "/logging:v2/RequestLog/versionId": version_id @@ -31353,221 +31473,175 @@ "/logging:v2/RequestLog/traceId": trace_id "/logging:v2/RequestLog/line": line "/logging:v2/RequestLog/line/line": line -"/logging:v2/RequestLog/referrer": referrer "/logging:v2/RequestLog/taskQueueName": task_queue_name +"/logging:v2/RequestLog/referrer": referrer "/logging:v2/RequestLog/requestId": request_id "/logging:v2/RequestLog/nickname": nickname -"/logging:v2/RequestLog/status": status -"/logging:v2/RequestLog/resource": resource "/logging:v2/RequestLog/pendingTime": pending_time +"/logging:v2/RequestLog/resource": resource +"/logging:v2/RequestLog/status": status "/logging:v2/RequestLog/taskName": task_name "/logging:v2/RequestLog/urlMapEntry": url_map_entry "/logging:v2/RequestLog/instanceIndex": instance_index -"/logging:v2/RequestLog/host": host "/logging:v2/RequestLog/finished": finished +"/logging:v2/RequestLog/host": host "/logging:v2/RequestLog/httpVersion": http_version "/logging:v2/RequestLog/startTime": start_time -"/logging:v2/RequestLog/latency": latency -"/logging:v2/RequestLog/ip": ip -"/logging:v2/RequestLog/appId": app_id -"/logging:v2/RequestLog/appEngineRelease": app_engine_release -"/logging:v2/RequestLog/method": method_prop -"/logging:v2/RequestLog/cost": cost -"/logging:v2/RequestLog/instanceId": instance_id "/logging:v2/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response -"/logging:v2/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token "/logging:v2/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors "/logging:v2/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor +"/logging:v2/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token "/logging:v2/SourceReference": source_reference "/logging:v2/SourceReference/repository": repository "/logging:v2/SourceReference/revisionId": revision_id +"/logging:v2/WriteLogEntriesResponse": write_log_entries_response +"/logging:v2/LogEntryOperation": log_entry_operation +"/logging:v2/LogEntryOperation/id": id +"/logging:v2/LogEntryOperation/first": first +"/logging:v2/LogEntryOperation/producer": producer +"/logging:v2/LogEntryOperation/last": last "/logging:v2/LogMetric": log_metric +"/logging:v2/LogMetric/version": version "/logging:v2/LogMetric/filter": filter "/logging:v2/LogMetric/name": name "/logging:v2/LogMetric/description": description -"/logging:v2/LogMetric/version": version -"/logging:v2/LogEntryOperation": log_entry_operation -"/logging:v2/LogEntryOperation/last": last -"/logging:v2/LogEntryOperation/id": id -"/logging:v2/LogEntryOperation/producer": producer -"/logging:v2/LogEntryOperation/first": first -"/logging:v2/WriteLogEntriesResponse": write_log_entries_response "/logging:v2/MonitoredResource": monitored_resource "/logging:v2/MonitoredResource/type": type "/logging:v2/MonitoredResource/labels": labels "/logging:v2/MonitoredResource/labels/label": label "/logging:v2/LogSink": log_sink +"/logging:v2/LogSink/outputVersionFormat": output_version_format +"/logging:v2/LogSink/name": name "/logging:v2/LogSink/includeChildren": include_children -"/logging:v2/LogSink/filter": filter "/logging:v2/LogSink/destination": destination +"/logging:v2/LogSink/filter": filter "/logging:v2/LogSink/endTime": end_time "/logging:v2/LogSink/startTime": start_time "/logging:v2/LogSink/writerIdentity": writer_identity -"/logging:v2/LogSink/outputVersionFormat": output_version_format -"/logging:v2/LogSink/name": name "/logging:v2/WriteLogEntriesRequest": write_log_entries_request -"/logging:v2/WriteLogEntriesRequest/logName": log_name "/logging:v2/WriteLogEntriesRequest/entries": entries "/logging:v2/WriteLogEntriesRequest/entries/entry": entry +"/logging:v2/WriteLogEntriesRequest/logName": log_name "/logging:v2/WriteLogEntriesRequest/partialSuccess": partial_success "/logging:v2/WriteLogEntriesRequest/labels": labels "/logging:v2/WriteLogEntriesRequest/labels/label": label "/logging:v2/WriteLogEntriesRequest/resource": resource "/logging:v2/ListLogsResponse": list_logs_response -"/logging:v2/ListLogsResponse/nextPageToken": next_page_token "/logging:v2/ListLogsResponse/logNames": log_names "/logging:v2/ListLogsResponse/logNames/log_name": log_name +"/logging:v2/ListLogsResponse/nextPageToken": next_page_token +"/logging:v2/ListSinksResponse": list_sinks_response +"/logging:v2/ListSinksResponse/nextPageToken": next_page_token +"/logging:v2/ListSinksResponse/sinks": sinks +"/logging:v2/ListSinksResponse/sinks/sink": sink +"/logging:v2/HttpRequest": http_request +"/logging:v2/HttpRequest/requestMethod": request_method +"/logging:v2/HttpRequest/requestSize": request_size +"/logging:v2/HttpRequest/responseSize": response_size +"/logging:v2/HttpRequest/requestUrl": request_url +"/logging:v2/HttpRequest/serverIp": server_ip +"/logging:v2/HttpRequest/remoteIp": remote_ip +"/logging:v2/HttpRequest/cacheLookup": cache_lookup +"/logging:v2/HttpRequest/cacheHit": cache_hit +"/logging:v2/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server +"/logging:v2/HttpRequest/status": status +"/logging:v2/HttpRequest/referer": referer +"/logging:v2/HttpRequest/latency": latency +"/logging:v2/HttpRequest/userAgent": user_agent +"/logging:v2/HttpRequest/cacheFillBytes": cache_fill_bytes +"/logging:v2/LabelDescriptor": label_descriptor +"/logging:v2/LabelDescriptor/key": key +"/logging:v2/LabelDescriptor/description": description +"/logging:v2/LabelDescriptor/valueType": value_type +"/logging:v2/MonitoredResourceDescriptor": monitored_resource_descriptor +"/logging:v2/MonitoredResourceDescriptor/labels": labels +"/logging:v2/MonitoredResourceDescriptor/labels/label": label +"/logging:v2/MonitoredResourceDescriptor/name": name +"/logging:v2/MonitoredResourceDescriptor/description": description +"/logging:v2/MonitoredResourceDescriptor/displayName": display_name +"/logging:v2/MonitoredResourceDescriptor/type": type +"/logging:v2/LogEntrySourceLocation": log_entry_source_location +"/logging:v2/LogEntrySourceLocation/file": file +"/logging:v2/LogEntrySourceLocation/function": function +"/logging:v2/LogEntrySourceLocation/line": line +"/logging:v2/ListLogEntriesResponse": list_log_entries_response +"/logging:v2/ListLogEntriesResponse/nextPageToken": next_page_token +"/logging:v2/ListLogEntriesResponse/entries": entries +"/logging:v2/ListLogEntriesResponse/entries/entry": entry +"/logging:v2/LogLine": log_line +"/logging:v2/LogLine/logMessage": log_message +"/logging:v2/LogLine/severity": severity +"/logging:v2/LogLine/sourceLocation": source_location +"/logging:v2/LogLine/time": time "/logging:v2beta1/fields": fields "/logging:v2beta1/key": key "/logging:v2beta1/quotaUser": quota_user -"/logging:v2beta1/logging.billingAccounts.logs.list": list_billing_account_logs -"/logging:v2beta1/logging.billingAccounts.logs.list/pageToken": page_token -"/logging:v2beta1/logging.billingAccounts.logs.list/pageSize": page_size -"/logging:v2beta1/logging.billingAccounts.logs.list/parent": parent -"/logging:v2beta1/logging.billingAccounts.logs.delete": delete_billing_account_log -"/logging:v2beta1/logging.billingAccounts.logs.delete/logName": log_name "/logging:v2beta1/logging.monitoredResourceDescriptors.list": list_monitored_resource_descriptors "/logging:v2beta1/logging.monitoredResourceDescriptors.list/pageToken": page_token "/logging:v2beta1/logging.monitoredResourceDescriptors.list/pageSize": page_size -"/logging:v2beta1/logging.organizations.logs.list": list_organization_logs -"/logging:v2beta1/logging.organizations.logs.list/pageSize": page_size -"/logging:v2beta1/logging.organizations.logs.list/parent": parent -"/logging:v2beta1/logging.organizations.logs.list/pageToken": page_token "/logging:v2beta1/logging.organizations.logs.delete": delete_organization_log "/logging:v2beta1/logging.organizations.logs.delete/logName": log_name +"/logging:v2beta1/logging.organizations.logs.list": list_organization_logs +"/logging:v2beta1/logging.organizations.logs.list/pageToken": page_token +"/logging:v2beta1/logging.organizations.logs.list/pageSize": page_size +"/logging:v2beta1/logging.organizations.logs.list/parent": parent "/logging:v2beta1/logging.entries.list": list_entry_log_entries "/logging:v2beta1/logging.entries.write": write_entry_log_entries -"/logging:v2beta1/logging.projects.logs.delete/logName": log_name -"/logging:v2beta1/logging.projects.logs.list/pageToken": page_token -"/logging:v2beta1/logging.projects.logs.list/pageSize": page_size -"/logging:v2beta1/logging.projects.logs.list/parent": parent +"/logging:v2beta1/logging.projects.sinks.delete": delete_project_sink +"/logging:v2beta1/logging.projects.sinks.delete/sinkName": sink_name +"/logging:v2beta1/logging.projects.sinks.get": get_project_sink +"/logging:v2beta1/logging.projects.sinks.get/sinkName": sink_name "/logging:v2beta1/logging.projects.sinks.list": list_project_sinks "/logging:v2beta1/logging.projects.sinks.list/parent": parent "/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.update": update_project_sink -"/logging:v2beta1/logging.projects.sinks.update/sinkName": sink_name "/logging:v2beta1/logging.projects.sinks.update/uniqueWriterIdentity": unique_writer_identity +"/logging:v2beta1/logging.projects.sinks.update/sinkName": sink_name "/logging:v2beta1/logging.projects.sinks.create": create_project_sink -"/logging:v2beta1/logging.projects.sinks.create/parent": parent "/logging:v2beta1/logging.projects.sinks.create/uniqueWriterIdentity": unique_writer_identity -"/logging:v2beta1/logging.projects.sinks.delete": delete_project_sink -"/logging:v2beta1/logging.projects.sinks.delete/sinkName": sink_name -"/logging:v2beta1/logging.projects.metrics.delete": delete_project_metric -"/logging:v2beta1/logging.projects.metrics.delete/metricName": metric_name +"/logging:v2beta1/logging.projects.sinks.create/parent": parent +"/logging:v2beta1/logging.projects.logs.delete/logName": log_name +"/logging:v2beta1/logging.projects.logs.list/pageToken": page_token +"/logging:v2beta1/logging.projects.logs.list/pageSize": page_size +"/logging:v2beta1/logging.projects.logs.list/parent": parent +"/logging:v2beta1/logging.projects.metrics.get": get_project_metric +"/logging:v2beta1/logging.projects.metrics.get/metricName": metric_name "/logging:v2beta1/logging.projects.metrics.list": list_project_metrics "/logging:v2beta1/logging.projects.metrics.list/parent": parent "/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.update": update_project_metric "/logging:v2beta1/logging.projects.metrics.update/metricName": metric_name "/logging:v2beta1/logging.projects.metrics.create": create_project_metric "/logging:v2beta1/logging.projects.metrics.create/parent": parent -"/logging:v2beta1/WriteLogEntriesRequest": write_log_entries_request -"/logging:v2beta1/WriteLogEntriesRequest/partialSuccess": partial_success -"/logging:v2beta1/WriteLogEntriesRequest/labels": labels -"/logging:v2beta1/WriteLogEntriesRequest/labels/label": label -"/logging:v2beta1/WriteLogEntriesRequest/resource": resource -"/logging:v2beta1/WriteLogEntriesRequest/logName": log_name -"/logging:v2beta1/WriteLogEntriesRequest/entries": entries -"/logging:v2beta1/WriteLogEntriesRequest/entries/entry": entry -"/logging:v2beta1/LogSink": log_sink -"/logging:v2beta1/LogSink/includeChildren": include_children -"/logging:v2beta1/LogSink/destination": destination -"/logging:v2beta1/LogSink/filter": filter -"/logging:v2beta1/LogSink/endTime": end_time -"/logging:v2beta1/LogSink/writerIdentity": writer_identity -"/logging:v2beta1/LogSink/startTime": start_time -"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format -"/logging:v2beta1/LogSink/name": name -"/logging:v2beta1/ListLogsResponse": list_logs_response -"/logging:v2beta1/ListLogsResponse/nextPageToken": next_page_token -"/logging:v2beta1/ListLogsResponse/logNames": log_names -"/logging:v2beta1/ListLogsResponse/logNames/log_name": log_name -"/logging:v2beta1/HttpRequest": http_request -"/logging:v2beta1/HttpRequest/userAgent": user_agent -"/logging:v2beta1/HttpRequest/latency": latency -"/logging:v2beta1/HttpRequest/cacheFillBytes": cache_fill_bytes -"/logging:v2beta1/HttpRequest/requestMethod": request_method -"/logging:v2beta1/HttpRequest/responseSize": response_size -"/logging:v2beta1/HttpRequest/requestSize": request_size -"/logging:v2beta1/HttpRequest/requestUrl": request_url -"/logging:v2beta1/HttpRequest/serverIp": server_ip -"/logging:v2beta1/HttpRequest/remoteIp": remote_ip -"/logging:v2beta1/HttpRequest/cacheLookup": cache_lookup -"/logging:v2beta1/HttpRequest/cacheHit": cache_hit -"/logging:v2beta1/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server -"/logging:v2beta1/HttpRequest/status": status -"/logging:v2beta1/HttpRequest/referer": referer -"/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/LabelDescriptor": label_descriptor -"/logging:v2beta1/LabelDescriptor/valueType": value_type -"/logging:v2beta1/LabelDescriptor/key": key -"/logging:v2beta1/LabelDescriptor/description": description -"/logging:v2beta1/MonitoredResourceDescriptor": monitored_resource_descriptor -"/logging:v2beta1/MonitoredResourceDescriptor/labels": labels -"/logging:v2beta1/MonitoredResourceDescriptor/labels/label": label -"/logging:v2beta1/MonitoredResourceDescriptor/name": name -"/logging:v2beta1/MonitoredResourceDescriptor/displayName": display_name -"/logging:v2beta1/MonitoredResourceDescriptor/description": description -"/logging:v2beta1/MonitoredResourceDescriptor/type": type -"/logging:v2beta1/LogEntrySourceLocation": log_entry_source_location -"/logging:v2beta1/LogEntrySourceLocation/file": file -"/logging:v2beta1/LogEntrySourceLocation/function": function -"/logging:v2beta1/LogEntrySourceLocation/line": line -"/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/LogLine": log_line -"/logging:v2beta1/LogLine/severity": severity -"/logging:v2beta1/LogLine/logMessage": log_message -"/logging:v2beta1/LogLine/sourceLocation": source_location -"/logging:v2beta1/LogLine/time": time -"/logging:v2beta1/ListLogMetricsResponse": list_log_metrics_response -"/logging:v2beta1/ListLogMetricsResponse/nextPageToken": next_page_token -"/logging:v2beta1/ListLogMetricsResponse/metrics": metrics -"/logging:v2beta1/ListLogMetricsResponse/metrics/metric": metric -"/logging:v2beta1/Empty": empty -"/logging:v2beta1/LogEntry": log_entry -"/logging:v2beta1/LogEntry/labels": labels -"/logging:v2beta1/LogEntry/labels/label": label -"/logging:v2beta1/LogEntry/trace": trace -"/logging:v2beta1/LogEntry/severity": severity -"/logging:v2beta1/LogEntry/sourceLocation": source_location -"/logging:v2beta1/LogEntry/timestamp": timestamp -"/logging:v2beta1/LogEntry/receiveTimestamp": receive_timestamp -"/logging:v2beta1/LogEntry/logName": log_name -"/logging:v2beta1/LogEntry/resource": resource -"/logging:v2beta1/LogEntry/httpRequest": http_request -"/logging:v2beta1/LogEntry/jsonPayload": json_payload -"/logging:v2beta1/LogEntry/jsonPayload/json_payload": json_payload -"/logging:v2beta1/LogEntry/operation": operation -"/logging:v2beta1/LogEntry/insertId": insert_id -"/logging:v2beta1/LogEntry/textPayload": text_payload -"/logging:v2beta1/LogEntry/protoPayload": proto_payload -"/logging:v2beta1/LogEntry/protoPayload/proto_payload": proto_payload -"/logging:v2beta1/SourceLocation": source_location -"/logging:v2beta1/SourceLocation/line": line -"/logging:v2beta1/SourceLocation/file": file -"/logging:v2beta1/SourceLocation/functionName": function_name +"/logging:v2beta1/logging.projects.metrics.delete": delete_project_metric +"/logging:v2beta1/logging.projects.metrics.delete/metricName": metric_name +"/logging:v2beta1/logging.billingAccounts.logs.delete": delete_billing_account_log +"/logging:v2beta1/logging.billingAccounts.logs.delete/logName": log_name +"/logging:v2beta1/logging.billingAccounts.logs.list": list_billing_account_logs +"/logging:v2beta1/logging.billingAccounts.logs.list/pageToken": page_token +"/logging:v2beta1/logging.billingAccounts.logs.list/pageSize": page_size +"/logging:v2beta1/logging.billingAccounts.logs.list/parent": parent "/logging:v2beta1/ListLogEntriesRequest": list_log_entries_request -"/logging:v2beta1/ListLogEntriesRequest/filter": filter -"/logging:v2beta1/ListLogEntriesRequest/projectIds": project_ids -"/logging:v2beta1/ListLogEntriesRequest/projectIds/project_id": project_id -"/logging:v2beta1/ListLogEntriesRequest/pageToken": page_token -"/logging:v2beta1/ListLogEntriesRequest/pageSize": page_size "/logging:v2beta1/ListLogEntriesRequest/orderBy": order_by "/logging:v2beta1/ListLogEntriesRequest/resourceNames": resource_names "/logging:v2beta1/ListLogEntriesRequest/resourceNames/resource_name": resource_name +"/logging:v2beta1/ListLogEntriesRequest/projectIds": project_ids +"/logging:v2beta1/ListLogEntriesRequest/projectIds/project_id": project_id +"/logging:v2beta1/ListLogEntriesRequest/filter": filter +"/logging:v2beta1/ListLogEntriesRequest/pageToken": page_token +"/logging:v2beta1/ListLogEntriesRequest/pageSize": page_size "/logging:v2beta1/RequestLog": request_log +"/logging:v2beta1/RequestLog/ip": ip +"/logging:v2beta1/RequestLog/appId": app_id +"/logging:v2beta1/RequestLog/appEngineRelease": app_engine_release +"/logging:v2beta1/RequestLog/method": method_prop +"/logging:v2beta1/RequestLog/cost": cost +"/logging:v2beta1/RequestLog/instanceId": instance_id +"/logging:v2beta1/RequestLog/megaCycles": mega_cycles +"/logging:v2beta1/RequestLog/first": first +"/logging:v2beta1/RequestLog/versionId": version_id "/logging:v2beta1/RequestLog/moduleId": module_id "/logging:v2beta1/RequestLog/endTime": end_time "/logging:v2beta1/RequestLog/userAgent": user_agent @@ -31588,57 +31662,197 @@ "/logging:v2beta1/RequestLog/taskName": task_name "/logging:v2beta1/RequestLog/urlMapEntry": url_map_entry "/logging:v2beta1/RequestLog/instanceIndex": instance_index -"/logging:v2beta1/RequestLog/host": host "/logging:v2beta1/RequestLog/finished": finished +"/logging:v2beta1/RequestLog/host": host "/logging:v2beta1/RequestLog/httpVersion": http_version "/logging:v2beta1/RequestLog/startTime": start_time "/logging:v2beta1/RequestLog/latency": latency -"/logging:v2beta1/RequestLog/ip": ip -"/logging:v2beta1/RequestLog/appId": app_id -"/logging:v2beta1/RequestLog/appEngineRelease": app_engine_release -"/logging:v2beta1/RequestLog/method": method_prop -"/logging:v2beta1/RequestLog/cost": cost -"/logging:v2beta1/RequestLog/instanceId": instance_id -"/logging:v2beta1/RequestLog/megaCycles": mega_cycles -"/logging:v2beta1/RequestLog/first": first -"/logging:v2beta1/RequestLog/versionId": version_id "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors "/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor "/logging:v2beta1/SourceReference": source_reference -"/logging:v2beta1/SourceReference/repository": repository "/logging:v2beta1/SourceReference/revisionId": revision_id +"/logging:v2beta1/SourceReference/repository": repository "/logging:v2beta1/LogMetric": log_metric +"/logging:v2beta1/LogMetric/filter": filter "/logging:v2beta1/LogMetric/name": name "/logging:v2beta1/LogMetric/description": description "/logging:v2beta1/LogMetric/version": version -"/logging:v2beta1/LogMetric/filter": filter "/logging:v2beta1/WriteLogEntriesResponse": write_log_entries_response "/logging:v2beta1/LogEntryOperation": log_entry_operation -"/logging:v2beta1/LogEntryOperation/producer": producer "/logging:v2beta1/LogEntryOperation/first": first +"/logging:v2beta1/LogEntryOperation/producer": producer "/logging:v2beta1/LogEntryOperation/last": last "/logging:v2beta1/LogEntryOperation/id": id "/logging:v2beta1/MonitoredResource": monitored_resource -"/logging:v2beta1/MonitoredResource/type": type "/logging:v2beta1/MonitoredResource/labels": labels "/logging:v2beta1/MonitoredResource/labels/label": label +"/logging:v2beta1/MonitoredResource/type": type +"/logging:v2beta1/WriteLogEntriesRequest": write_log_entries_request +"/logging:v2beta1/WriteLogEntriesRequest/labels": labels +"/logging:v2beta1/WriteLogEntriesRequest/labels/label": label +"/logging:v2beta1/WriteLogEntriesRequest/resource": resource +"/logging:v2beta1/WriteLogEntriesRequest/entries": entries +"/logging:v2beta1/WriteLogEntriesRequest/entries/entry": entry +"/logging:v2beta1/WriteLogEntriesRequest/logName": log_name +"/logging:v2beta1/WriteLogEntriesRequest/partialSuccess": partial_success +"/logging:v2beta1/LogSink": log_sink +"/logging:v2beta1/LogSink/includeChildren": include_children +"/logging:v2beta1/LogSink/destination": destination +"/logging:v2beta1/LogSink/filter": filter +"/logging:v2beta1/LogSink/endTime": end_time +"/logging:v2beta1/LogSink/startTime": start_time +"/logging:v2beta1/LogSink/writerIdentity": writer_identity +"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format +"/logging:v2beta1/LogSink/name": name +"/logging:v2beta1/ListLogsResponse": list_logs_response +"/logging:v2beta1/ListLogsResponse/nextPageToken": next_page_token +"/logging:v2beta1/ListLogsResponse/logNames": log_names +"/logging:v2beta1/ListLogsResponse/logNames/log_name": log_name +"/logging:v2beta1/HttpRequest": http_request +"/logging:v2beta1/HttpRequest/cacheLookup": cache_lookup +"/logging:v2beta1/HttpRequest/cacheHit": cache_hit +"/logging:v2beta1/HttpRequest/cacheValidatedWithOriginServer": cache_validated_with_origin_server +"/logging:v2beta1/HttpRequest/status": status +"/logging:v2beta1/HttpRequest/referer": referer +"/logging:v2beta1/HttpRequest/userAgent": user_agent +"/logging:v2beta1/HttpRequest/latency": latency +"/logging:v2beta1/HttpRequest/cacheFillBytes": cache_fill_bytes +"/logging:v2beta1/HttpRequest/requestMethod": request_method +"/logging:v2beta1/HttpRequest/responseSize": response_size +"/logging:v2beta1/HttpRequest/requestSize": request_size +"/logging:v2beta1/HttpRequest/requestUrl": request_url +"/logging:v2beta1/HttpRequest/serverIp": server_ip +"/logging:v2beta1/HttpRequest/remoteIp": remote_ip +"/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/LabelDescriptor": label_descriptor +"/logging:v2beta1/LabelDescriptor/valueType": value_type +"/logging:v2beta1/LabelDescriptor/key": key +"/logging:v2beta1/LabelDescriptor/description": description +"/logging:v2beta1/MonitoredResourceDescriptor": monitored_resource_descriptor +"/logging:v2beta1/MonitoredResourceDescriptor/description": description +"/logging:v2beta1/MonitoredResourceDescriptor/displayName": display_name +"/logging:v2beta1/MonitoredResourceDescriptor/type": type +"/logging:v2beta1/MonitoredResourceDescriptor/labels": labels +"/logging:v2beta1/MonitoredResourceDescriptor/labels/label": label +"/logging:v2beta1/MonitoredResourceDescriptor/name": name +"/logging:v2beta1/LogEntrySourceLocation": log_entry_source_location +"/logging:v2beta1/LogEntrySourceLocation/file": file +"/logging:v2beta1/LogEntrySourceLocation/function": function +"/logging:v2beta1/LogEntrySourceLocation/line": line +"/logging:v2beta1/ListLogEntriesResponse": list_log_entries_response +"/logging:v2beta1/ListLogEntriesResponse/nextPageToken": next_page_token +"/logging:v2beta1/ListLogEntriesResponse/entries": entries +"/logging:v2beta1/ListLogEntriesResponse/entries/entry": entry +"/logging:v2beta1/LogLine": log_line +"/logging:v2beta1/LogLine/logMessage": log_message +"/logging:v2beta1/LogLine/severity": severity +"/logging:v2beta1/LogLine/sourceLocation": source_location +"/logging:v2beta1/LogLine/time": time +"/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/LogEntry": log_entry +"/logging:v2beta1/LogEntry/timestamp": timestamp +"/logging:v2beta1/LogEntry/receiveTimestamp": receive_timestamp +"/logging:v2beta1/LogEntry/logName": log_name +"/logging:v2beta1/LogEntry/httpRequest": http_request +"/logging:v2beta1/LogEntry/resource": resource +"/logging:v2beta1/LogEntry/jsonPayload": json_payload +"/logging:v2beta1/LogEntry/jsonPayload/json_payload": json_payload +"/logging:v2beta1/LogEntry/operation": operation +"/logging:v2beta1/LogEntry/insertId": insert_id +"/logging:v2beta1/LogEntry/textPayload": text_payload +"/logging:v2beta1/LogEntry/protoPayload": proto_payload +"/logging:v2beta1/LogEntry/protoPayload/proto_payload": proto_payload +"/logging:v2beta1/LogEntry/labels": labels +"/logging:v2beta1/LogEntry/labels/label": label +"/logging:v2beta1/LogEntry/trace": trace +"/logging:v2beta1/LogEntry/severity": severity +"/logging:v2beta1/LogEntry/sourceLocation": source_location +"/logging:v2beta1/Empty": empty +"/logging:v2beta1/SourceLocation": source_location +"/logging:v2beta1/SourceLocation/file": file +"/logging:v2beta1/SourceLocation/functionName": function_name +"/logging:v2beta1/SourceLocation/line": line "/manufacturers:v1/fields": fields "/manufacturers:v1/key": key "/manufacturers:v1/quotaUser": quota_user +"/manufacturers:v1/manufacturers.accounts.products.delete": delete_account_product +"/manufacturers:v1/manufacturers.accounts.products.delete/parent": parent +"/manufacturers:v1/manufacturers.accounts.products.delete/name": name +"/manufacturers:v1/manufacturers.accounts.products.get": get_account_product +"/manufacturers:v1/manufacturers.accounts.products.get/name": name +"/manufacturers:v1/manufacturers.accounts.products.get/parent": parent "/manufacturers:v1/manufacturers.accounts.products.list": list_account_products "/manufacturers:v1/manufacturers.accounts.products.list/pageToken": page_token "/manufacturers:v1/manufacturers.accounts.products.list/pageSize": page_size "/manufacturers:v1/manufacturers.accounts.products.list/parent": parent -"/manufacturers:v1/manufacturers.accounts.products.get": get_account_product -"/manufacturers:v1/manufacturers.accounts.products.get/name": name -"/manufacturers:v1/manufacturers.accounts.products.get/parent": parent +"/manufacturers:v1/manufacturers.accounts.products.update": update_account_product +"/manufacturers:v1/manufacturers.accounts.products.update/parent": parent +"/manufacturers:v1/manufacturers.accounts.products.update/name": name +"/manufacturers:v1/Capacity": capacity +"/manufacturers:v1/Capacity/unit": unit +"/manufacturers:v1/Capacity/value": value +"/manufacturers:v1/ListProductsResponse": list_products_response +"/manufacturers:v1/ListProductsResponse/nextPageToken": next_page_token +"/manufacturers:v1/ListProductsResponse/products": products +"/manufacturers:v1/ListProductsResponse/products/product": product +"/manufacturers:v1/ProductDetail": product_detail +"/manufacturers:v1/ProductDetail/sectionName": section_name +"/manufacturers:v1/ProductDetail/attributeName": attribute_name +"/manufacturers:v1/ProductDetail/attributeValue": attribute_value +"/manufacturers:v1/FeatureDescription": feature_description +"/manufacturers:v1/FeatureDescription/image": image +"/manufacturers:v1/FeatureDescription/headline": headline +"/manufacturers:v1/FeatureDescription/text": text +"/manufacturers:v1/Issue": issue +"/manufacturers:v1/Issue/type": type +"/manufacturers:v1/Issue/attribute": attribute +"/manufacturers:v1/Issue/timestamp": timestamp +"/manufacturers:v1/Issue/severity": severity +"/manufacturers:v1/Issue/description": description +"/manufacturers:v1/Empty": empty +"/manufacturers:v1/Price": price +"/manufacturers:v1/Price/amount": amount +"/manufacturers:v1/Price/currency": currency "/manufacturers:v1/Image": image "/manufacturers:v1/Image/status": status "/manufacturers:v1/Image/type": type "/manufacturers:v1/Image/imageUrl": image_url "/manufacturers:v1/Attributes": attributes +"/manufacturers:v1/Attributes/color": color +"/manufacturers:v1/Attributes/productName": product_name +"/manufacturers:v1/Attributes/sizeType": size_type +"/manufacturers:v1/Attributes/suggestedRetailPrice": suggested_retail_price +"/manufacturers:v1/Attributes/featureDescription": feature_description +"/manufacturers:v1/Attributes/featureDescription/feature_description": feature_description +"/manufacturers:v1/Attributes/size": size +"/manufacturers:v1/Attributes/title": title +"/manufacturers:v1/Attributes/count": count +"/manufacturers:v1/Attributes/brand": brand +"/manufacturers:v1/Attributes/disclosureDate": disclosure_date +"/manufacturers:v1/Attributes/material": material +"/manufacturers:v1/Attributes/scent": scent +"/manufacturers:v1/Attributes/flavor": flavor +"/manufacturers:v1/Attributes/productDetail": product_detail +"/manufacturers:v1/Attributes/productDetail/product_detail": product_detail +"/manufacturers:v1/Attributes/ageGroup": age_group +"/manufacturers:v1/Attributes/mpn": mpn +"/manufacturers:v1/Attributes/productPageUrl": product_page_url +"/manufacturers:v1/Attributes/releaseDate": release_date +"/manufacturers:v1/Attributes/itemGroupId": item_group_id +"/manufacturers:v1/Attributes/gtin": gtin +"/manufacturers:v1/Attributes/gtin/gtin": gtin +"/manufacturers:v1/Attributes/productLine": product_line +"/manufacturers:v1/Attributes/capacity": capacity +"/manufacturers:v1/Attributes/description": description +"/manufacturers:v1/Attributes/gender": gender "/manufacturers:v1/Attributes/sizeSystem": size_system "/manufacturers:v1/Attributes/theme": theme "/manufacturers:v1/Attributes/pattern": pattern @@ -31650,73 +31864,22 @@ "/manufacturers:v1/Attributes/additionalImageLink/additional_image_link": additional_image_link "/manufacturers:v1/Attributes/videoLink": video_link "/manufacturers:v1/Attributes/videoLink/video_link": video_link -"/manufacturers:v1/Attributes/color": color -"/manufacturers:v1/Attributes/productName": product_name -"/manufacturers:v1/Attributes/sizeType": size_type -"/manufacturers:v1/Attributes/suggestedRetailPrice": suggested_retail_price -"/manufacturers:v1/Attributes/featureDescription": feature_description -"/manufacturers:v1/Attributes/featureDescription/feature_description": feature_description -"/manufacturers:v1/Attributes/size": size -"/manufacturers:v1/Attributes/title": title -"/manufacturers:v1/Attributes/count": count -"/manufacturers:v1/Attributes/brand": brand -"/manufacturers:v1/Attributes/material": material -"/manufacturers:v1/Attributes/disclosureDate": disclosure_date -"/manufacturers:v1/Attributes/scent": scent -"/manufacturers:v1/Attributes/ageGroup": age_group -"/manufacturers:v1/Attributes/productDetail": product_detail -"/manufacturers:v1/Attributes/productDetail/product_detail": product_detail -"/manufacturers:v1/Attributes/flavor": flavor -"/manufacturers:v1/Attributes/productPageUrl": product_page_url -"/manufacturers:v1/Attributes/mpn": mpn -"/manufacturers:v1/Attributes/releaseDate": release_date -"/manufacturers:v1/Attributes/gtin": gtin -"/manufacturers:v1/Attributes/gtin/gtin": gtin -"/manufacturers:v1/Attributes/itemGroupId": item_group_id -"/manufacturers:v1/Attributes/productLine": product_line -"/manufacturers:v1/Attributes/capacity": capacity -"/manufacturers:v1/Attributes/description": description -"/manufacturers:v1/Attributes/gender": gender "/manufacturers:v1/Count": count -"/manufacturers:v1/Count/value": value "/manufacturers:v1/Count/unit": unit +"/manufacturers:v1/Count/value": value "/manufacturers:v1/Product": product +"/manufacturers:v1/Product/finalAttributes": final_attributes +"/manufacturers:v1/Product/productId": product_id +"/manufacturers:v1/Product/uploadedAttributes": uploaded_attributes +"/manufacturers:v1/Product/parent": parent "/manufacturers:v1/Product/manuallyProvidedAttributes": manually_provided_attributes -"/manufacturers:v1/Product/contentLanguage": content_language "/manufacturers:v1/Product/targetCountry": target_country +"/manufacturers:v1/Product/contentLanguage": content_language "/manufacturers:v1/Product/name": name "/manufacturers:v1/Product/issues": issues "/manufacturers:v1/Product/issues/issue": issue "/manufacturers:v1/Product/manuallyDeletedAttributes": manually_deleted_attributes "/manufacturers:v1/Product/manuallyDeletedAttributes/manually_deleted_attribute": manually_deleted_attribute -"/manufacturers:v1/Product/finalAttributes": final_attributes -"/manufacturers:v1/Product/productId": product_id -"/manufacturers:v1/Product/uploadedAttributes": uploaded_attributes -"/manufacturers:v1/Product/parent": parent -"/manufacturers:v1/Capacity": capacity -"/manufacturers:v1/Capacity/value": value -"/manufacturers:v1/Capacity/unit": unit -"/manufacturers:v1/ListProductsResponse": list_products_response -"/manufacturers:v1/ListProductsResponse/products": products -"/manufacturers:v1/ListProductsResponse/products/product": product -"/manufacturers:v1/ListProductsResponse/nextPageToken": next_page_token -"/manufacturers:v1/ProductDetail": product_detail -"/manufacturers:v1/ProductDetail/attributeValue": attribute_value -"/manufacturers:v1/ProductDetail/sectionName": section_name -"/manufacturers:v1/ProductDetail/attributeName": attribute_name -"/manufacturers:v1/Issue": issue -"/manufacturers:v1/Issue/description": description -"/manufacturers:v1/Issue/type": type -"/manufacturers:v1/Issue/attribute": attribute -"/manufacturers:v1/Issue/timestamp": timestamp -"/manufacturers:v1/Issue/severity": severity -"/manufacturers:v1/FeatureDescription": feature_description -"/manufacturers:v1/FeatureDescription/text": text -"/manufacturers:v1/FeatureDescription/image": image -"/manufacturers:v1/FeatureDescription/headline": headline -"/manufacturers:v1/Price": price -"/manufacturers:v1/Price/amount": amount -"/manufacturers:v1/Price/currency": currency "/mirror:v1/fields": fields "/mirror:v1/key": key "/mirror:v1/quotaUser": quota_user @@ -31914,32 +32077,6 @@ "/ml:v1/ml.projects.getConfig/name": name "/ml:v1/ml.projects.predict": predict_project "/ml:v1/ml.projects.predict/name": name -"/ml:v1/ml.projects.jobs.list": list_project_jobs -"/ml:v1/ml.projects.jobs.list/pageSize": page_size -"/ml:v1/ml.projects.jobs.list/parent": parent -"/ml:v1/ml.projects.jobs.list/filter": filter -"/ml:v1/ml.projects.jobs.list/pageToken": page_token -"/ml:v1/ml.projects.jobs.get": get_project_job -"/ml:v1/ml.projects.jobs.get/name": name -"/ml:v1/ml.projects.jobs.create": create_project_job -"/ml:v1/ml.projects.jobs.create/parent": parent -"/ml:v1/ml.projects.jobs.cancel": cancel_project_job -"/ml:v1/ml.projects.jobs.cancel/name": name -"/ml:v1/ml.projects.operations.list": list_project_operations -"/ml:v1/ml.projects.operations.list/filter": filter -"/ml:v1/ml.projects.operations.list/name": name -"/ml:v1/ml.projects.operations.list/pageToken": page_token -"/ml:v1/ml.projects.operations.list/pageSize": page_size -"/ml:v1/ml.projects.operations.get": get_project_operation -"/ml:v1/ml.projects.operations.get/name": name -"/ml:v1/ml.projects.operations.cancel": cancel_project_operation -"/ml:v1/ml.projects.operations.cancel/name": name -"/ml:v1/ml.projects.operations.delete": delete_project_operation -"/ml:v1/ml.projects.operations.delete/name": name -"/ml:v1/ml.projects.models.testIamPermissions": test_project_model_iam_permissions -"/ml:v1/ml.projects.models.testIamPermissions/resource": resource -"/ml:v1/ml.projects.models.delete": delete_project_model -"/ml:v1/ml.projects.models.delete/name": name "/ml:v1/ml.projects.models.list": list_project_models "/ml:v1/ml.projects.models.list/pageToken": page_token "/ml:v1/ml.projects.models.list/pageSize": page_size @@ -31952,75 +32089,134 @@ "/ml:v1/ml.projects.models.getIamPolicy/resource": resource "/ml:v1/ml.projects.models.get": get_project_model "/ml:v1/ml.projects.models.get/name": name -"/ml:v1/ml.projects.models.versions.delete": delete_project_model_version -"/ml:v1/ml.projects.models.versions.delete/name": name -"/ml:v1/ml.projects.models.versions.list": list_project_model_versions -"/ml:v1/ml.projects.models.versions.list/pageToken": page_token -"/ml:v1/ml.projects.models.versions.list/pageSize": page_size -"/ml:v1/ml.projects.models.versions.list/parent": parent -"/ml:v1/ml.projects.models.versions.get": get_project_model_version -"/ml:v1/ml.projects.models.versions.get/name": name +"/ml:v1/ml.projects.models.testIamPermissions": test_project_model_iam_permissions +"/ml:v1/ml.projects.models.testIamPermissions/resource": resource +"/ml:v1/ml.projects.models.delete": delete_project_model +"/ml:v1/ml.projects.models.delete/name": name "/ml:v1/ml.projects.models.versions.create": create_project_model_version "/ml:v1/ml.projects.models.versions.create/parent": parent "/ml:v1/ml.projects.models.versions.setDefault": set_project_model_version_default "/ml:v1/ml.projects.models.versions.setDefault/name": name +"/ml:v1/ml.projects.models.versions.delete": delete_project_model_version +"/ml:v1/ml.projects.models.versions.delete/name": name +"/ml:v1/ml.projects.models.versions.get": get_project_model_version +"/ml:v1/ml.projects.models.versions.get/name": name +"/ml:v1/ml.projects.models.versions.list": list_project_model_versions +"/ml:v1/ml.projects.models.versions.list/pageSize": page_size +"/ml:v1/ml.projects.models.versions.list/parent": parent +"/ml:v1/ml.projects.models.versions.list/pageToken": page_token +"/ml:v1/ml.projects.operations.get": get_project_operation +"/ml:v1/ml.projects.operations.get/name": name +"/ml:v1/ml.projects.operations.list": list_project_operations +"/ml:v1/ml.projects.operations.list/pageSize": page_size +"/ml:v1/ml.projects.operations.list/filter": filter +"/ml:v1/ml.projects.operations.list/pageToken": page_token +"/ml:v1/ml.projects.operations.list/name": name +"/ml:v1/ml.projects.operations.cancel": cancel_project_operation +"/ml:v1/ml.projects.operations.cancel/name": name +"/ml:v1/ml.projects.operations.delete": delete_project_operation +"/ml:v1/ml.projects.operations.delete/name": name +"/ml:v1/ml.projects.jobs.create": create_project_job +"/ml:v1/ml.projects.jobs.create/parent": parent +"/ml:v1/ml.projects.jobs.cancel": cancel_project_job +"/ml:v1/ml.projects.jobs.cancel/name": name +"/ml:v1/ml.projects.jobs.get": get_project_job +"/ml:v1/ml.projects.jobs.get/name": name +"/ml:v1/ml.projects.jobs.list": list_project_jobs +"/ml:v1/ml.projects.jobs.list/pageToken": page_token +"/ml:v1/ml.projects.jobs.list/pageSize": page_size +"/ml:v1/ml.projects.jobs.list/parent": parent +"/ml:v1/ml.projects.jobs.list/filter": filter +"/ml:v1/GoogleCloudMlV1__ManualScaling": google_cloud_ml_v1__manual_scaling +"/ml:v1/GoogleCloudMlV1__ManualScaling/nodes": nodes +"/ml:v1/GoogleIamV1__Binding": google_iam_v1__binding +"/ml:v1/GoogleIamV1__Binding/condition": condition +"/ml:v1/GoogleIamV1__Binding/members": members +"/ml:v1/GoogleIamV1__Binding/members/member": member +"/ml:v1/GoogleIamV1__Binding/role": role +"/ml:v1/GoogleCloudMlV1__TrainingOutput": google_cloud_ml_v1__training_output +"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials": trials +"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials/trial": trial +"/ml:v1/GoogleCloudMlV1__TrainingOutput/completedTrialCount": completed_trial_count +"/ml:v1/GoogleCloudMlV1__TrainingOutput/isHyperparameterTuningJob": is_hyperparameter_tuning_job +"/ml:v1/GoogleCloudMlV1__TrainingOutput/consumedMLUnits": consumed_ml_units +"/ml:v1/GoogleCloudMlV1beta1__AutoScaling": google_cloud_ml_v1beta1__auto_scaling +"/ml:v1/GoogleCloudMlV1beta1__AutoScaling/minNodes": min_nodes +"/ml:v1/GoogleIamV1__Rule": google_iam_v1__rule +"/ml:v1/GoogleIamV1__Rule/description": description +"/ml:v1/GoogleIamV1__Rule/conditions": conditions +"/ml:v1/GoogleIamV1__Rule/conditions/condition": condition +"/ml:v1/GoogleIamV1__Rule/logConfig": log_config +"/ml:v1/GoogleIamV1__Rule/logConfig/log_config": log_config +"/ml:v1/GoogleIamV1__Rule/in": in +"/ml:v1/GoogleIamV1__Rule/in/in": in +"/ml:v1/GoogleIamV1__Rule/permissions": permissions +"/ml:v1/GoogleIamV1__Rule/permissions/permission": permission +"/ml:v1/GoogleIamV1__Rule/action": action +"/ml:v1/GoogleIamV1__Rule/notIn": not_in +"/ml:v1/GoogleIamV1__Rule/notIn/not_in": not_in +"/ml:v1/GoogleIamV1_LogConfig_CounterOptions": google_iam_v1_log_config_counter_options +"/ml:v1/GoogleIamV1_LogConfig_CounterOptions/field": field +"/ml:v1/GoogleIamV1_LogConfig_CounterOptions/metric": metric "/ml:v1/GoogleCloudMlV1__PredictRequest": google_cloud_ml_v1__predict_request "/ml:v1/GoogleCloudMlV1__PredictRequest/httpBody": http_body "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric": google_cloud_ml_v1_hyperparameter_output_hyperparameter_metric -"/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/trainingStep": training_step "/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/objectiveValue": objective_value +"/ml:v1/GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric/trainingStep": training_step "/ml:v1/GoogleIamV1_LogConfig_CloudAuditOptions": google_iam_v1_log_config_cloud_audit_options "/ml:v1/GoogleIamV1_LogConfig_CloudAuditOptions/logName": log_name +"/ml:v1/GoogleIamV1_LogConfig_CloudAuditOptions/isReadPermissionType": is_read_permission_type "/ml:v1/GoogleCloudMlV1__Version": google_cloud_ml_v1__version -"/ml:v1/GoogleCloudMlV1__Version/manualScaling": manual_scaling -"/ml:v1/GoogleCloudMlV1__Version/state": state -"/ml:v1/GoogleCloudMlV1__Version/name": name -"/ml:v1/GoogleCloudMlV1__Version/automaticScaling": automatic_scaling "/ml:v1/GoogleCloudMlV1__Version/runtimeVersion": runtime_version "/ml:v1/GoogleCloudMlV1__Version/lastUseTime": last_use_time "/ml:v1/GoogleCloudMlV1__Version/description": description "/ml:v1/GoogleCloudMlV1__Version/deploymentUri": deployment_uri +"/ml:v1/GoogleCloudMlV1__Version/autoScaling": auto_scaling "/ml:v1/GoogleCloudMlV1__Version/isDefault": is_default "/ml:v1/GoogleCloudMlV1__Version/createTime": create_time +"/ml:v1/GoogleCloudMlV1__Version/state": state +"/ml:v1/GoogleCloudMlV1__Version/manualScaling": manual_scaling +"/ml:v1/GoogleCloudMlV1__Version/name": name +"/ml:v1/GoogleCloudMlV1__Version/errorMessage": error_message "/ml:v1/GoogleCloudMlV1__ParameterSpec": google_cloud_ml_v1__parameter_spec -"/ml:v1/GoogleCloudMlV1__ParameterSpec/scaleType": scale_type -"/ml:v1/GoogleCloudMlV1__ParameterSpec/maxValue": max_value -"/ml:v1/GoogleCloudMlV1__ParameterSpec/type": type "/ml:v1/GoogleCloudMlV1__ParameterSpec/categoricalValues": categorical_values "/ml:v1/GoogleCloudMlV1__ParameterSpec/categoricalValues/categorical_value": categorical_value "/ml:v1/GoogleCloudMlV1__ParameterSpec/parameterName": parameter_name "/ml:v1/GoogleCloudMlV1__ParameterSpec/minValue": min_value "/ml:v1/GoogleCloudMlV1__ParameterSpec/discreteValues": discrete_values "/ml:v1/GoogleCloudMlV1__ParameterSpec/discreteValues/discrete_value": discrete_value +"/ml:v1/GoogleCloudMlV1__ParameterSpec/maxValue": max_value +"/ml:v1/GoogleCloudMlV1__ParameterSpec/scaleType": scale_type +"/ml:v1/GoogleCloudMlV1__ParameterSpec/type": type "/ml:v1/GoogleIamV1_LogConfig_DataAccessOptions": google_iam_v1_log_config_data_access_options "/ml:v1/GoogleCloudMlV1__PredictionInput": google_cloud_ml_v1__prediction_input "/ml:v1/GoogleCloudMlV1__PredictionInput/region": region "/ml:v1/GoogleCloudMlV1__PredictionInput/versionName": version_name "/ml:v1/GoogleCloudMlV1__PredictionInput/modelName": model_name "/ml:v1/GoogleCloudMlV1__PredictionInput/outputPath": output_path -"/ml:v1/GoogleCloudMlV1__PredictionInput/uri": uri "/ml:v1/GoogleCloudMlV1__PredictionInput/maxWorkerCount": max_worker_count +"/ml:v1/GoogleCloudMlV1__PredictionInput/uri": uri "/ml:v1/GoogleCloudMlV1__PredictionInput/dataFormat": data_format "/ml:v1/GoogleCloudMlV1__PredictionInput/runtimeVersion": runtime_version "/ml:v1/GoogleCloudMlV1__PredictionInput/inputPaths": input_paths "/ml:v1/GoogleCloudMlV1__PredictionInput/inputPaths/input_path": input_path "/ml:v1/GoogleType__Expr": google_type__expr -"/ml:v1/GoogleType__Expr/title": title -"/ml:v1/GoogleType__Expr/location": location -"/ml:v1/GoogleType__Expr/description": description "/ml:v1/GoogleType__Expr/expression": expression +"/ml:v1/GoogleType__Expr/location": location +"/ml:v1/GoogleType__Expr/title": title +"/ml:v1/GoogleType__Expr/description": description "/ml:v1/GoogleIamV1__AuditLogConfig": google_iam_v1__audit_log_config -"/ml:v1/GoogleIamV1__AuditLogConfig/logType": log_type "/ml:v1/GoogleIamV1__AuditLogConfig/exemptedMembers": exempted_members "/ml:v1/GoogleIamV1__AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/ml:v1/GoogleIamV1__AuditLogConfig/logType": log_type "/ml:v1/GoogleCloudMlV1__OperationMetadata": google_cloud_ml_v1__operation_metadata -"/ml:v1/GoogleCloudMlV1__OperationMetadata/version": version "/ml:v1/GoogleCloudMlV1__OperationMetadata/endTime": end_time "/ml:v1/GoogleCloudMlV1__OperationMetadata/operationType": operation_type "/ml:v1/GoogleCloudMlV1__OperationMetadata/startTime": start_time "/ml:v1/GoogleCloudMlV1__OperationMetadata/isCancellationRequested": is_cancellation_requested "/ml:v1/GoogleCloudMlV1__OperationMetadata/createTime": create_time "/ml:v1/GoogleCloudMlV1__OperationMetadata/modelName": model_name +"/ml:v1/GoogleCloudMlV1__OperationMetadata/version": version "/ml:v1/GoogleCloudMlV1beta1__OperationMetadata": google_cloud_ml_v1beta1__operation_metadata "/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/modelName": model_name "/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/version": version @@ -32030,12 +32226,12 @@ "/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/isCancellationRequested": is_cancellation_requested "/ml:v1/GoogleCloudMlV1beta1__OperationMetadata/createTime": create_time "/ml:v1/GoogleCloudMlV1__HyperparameterSpec": google_cloud_ml_v1__hyperparameter_spec -"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/maxParallelTrials": max_parallel_trials -"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/goal": goal -"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/hyperparameterMetricTag": hyperparameter_metric_tag +"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/maxTrials": max_trials "/ml:v1/GoogleCloudMlV1__HyperparameterSpec/params": params "/ml:v1/GoogleCloudMlV1__HyperparameterSpec/params/param": param -"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/maxTrials": max_trials +"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/maxParallelTrials": max_parallel_trials +"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/hyperparameterMetricTag": hyperparameter_metric_tag +"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/goal": goal "/ml:v1/GoogleCloudMlV1__ListJobsResponse": google_cloud_ml_v1__list_jobs_response "/ml:v1/GoogleCloudMlV1__ListJobsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__ListJobsResponse/jobs": jobs @@ -32049,12 +32245,6 @@ "/ml:v1/GoogleLongrunning__Operation/error": error "/ml:v1/GoogleLongrunning__Operation/metadata": metadata "/ml:v1/GoogleLongrunning__Operation/metadata/metadatum": metadatum -"/ml:v1/GoogleIamV1__AuditConfig": google_iam_v1__audit_config -"/ml:v1/GoogleIamV1__AuditConfig/exemptedMembers": exempted_members -"/ml:v1/GoogleIamV1__AuditConfig/exemptedMembers/exempted_member": exempted_member -"/ml:v1/GoogleIamV1__AuditConfig/service": service -"/ml:v1/GoogleIamV1__AuditConfig/auditLogConfigs": audit_log_configs -"/ml:v1/GoogleIamV1__AuditConfig/auditLogConfigs/audit_log_config": audit_log_config "/ml:v1/GoogleCloudMlV1__Model": google_cloud_ml_v1__model "/ml:v1/GoogleCloudMlV1__Model/regions": regions "/ml:v1/GoogleCloudMlV1__Model/regions/region": region @@ -32062,11 +32252,17 @@ "/ml:v1/GoogleCloudMlV1__Model/description": description "/ml:v1/GoogleCloudMlV1__Model/onlinePredictionLogging": online_prediction_logging "/ml:v1/GoogleCloudMlV1__Model/defaultVersion": default_version +"/ml:v1/GoogleIamV1__AuditConfig": google_iam_v1__audit_config +"/ml:v1/GoogleIamV1__AuditConfig/exemptedMembers": exempted_members +"/ml:v1/GoogleIamV1__AuditConfig/exemptedMembers/exempted_member": exempted_member +"/ml:v1/GoogleIamV1__AuditConfig/service": service +"/ml:v1/GoogleIamV1__AuditConfig/auditLogConfigs": audit_log_configs +"/ml:v1/GoogleIamV1__AuditConfig/auditLogConfigs/audit_log_config": audit_log_config "/ml:v1/GoogleProtobuf__Empty": google_protobuf__empty "/ml:v1/GoogleCloudMlV1__ListVersionsResponse": google_cloud_ml_v1__list_versions_response +"/ml:v1/GoogleCloudMlV1__ListVersionsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__ListVersionsResponse/versions": versions "/ml:v1/GoogleCloudMlV1__ListVersionsResponse/versions/version": version -"/ml:v1/GoogleCloudMlV1__ListVersionsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__CancelJobRequest": google_cloud_ml_v1__cancel_job_request "/ml:v1/GoogleIamV1__TestIamPermissionsRequest": google_iam_v1__test_iam_permissions_request "/ml:v1/GoogleIamV1__TestIamPermissionsRequest/permissions": permissions @@ -32074,9 +32270,11 @@ "/ml:v1/GoogleCloudMlV1beta1__ManualScaling": google_cloud_ml_v1beta1__manual_scaling "/ml:v1/GoogleCloudMlV1beta1__ManualScaling/nodes": nodes "/ml:v1/GoogleIamV1__LogConfig": google_iam_v1__log_config -"/ml:v1/GoogleIamV1__LogConfig/counter": counter "/ml:v1/GoogleIamV1__LogConfig/dataAccess": data_access "/ml:v1/GoogleIamV1__LogConfig/cloudAudit": cloud_audit +"/ml:v1/GoogleIamV1__LogConfig/counter": counter +"/ml:v1/GoogleCloudMlV1__AutoScaling": google_cloud_ml_v1__auto_scaling +"/ml:v1/GoogleCloudMlV1__AutoScaling/minNodes": min_nodes "/ml:v1/GoogleRpc__Status": google_rpc__status "/ml:v1/GoogleRpc__Status/code": code "/ml:v1/GoogleRpc__Status/message": message @@ -32084,18 +32282,14 @@ "/ml:v1/GoogleRpc__Status/details/detail": detail "/ml:v1/GoogleRpc__Status/details/detail/detail": detail "/ml:v1/GoogleCloudMlV1__ListModelsResponse": google_cloud_ml_v1__list_models_response -"/ml:v1/GoogleCloudMlV1__ListModelsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__ListModelsResponse/models": models "/ml:v1/GoogleCloudMlV1__ListModelsResponse/models/model": model +"/ml:v1/GoogleCloudMlV1__ListModelsResponse/nextPageToken": next_page_token "/ml:v1/GoogleCloudMlV1__TrainingInput": google_cloud_ml_v1__training_input -"/ml:v1/GoogleCloudMlV1__TrainingInput/workerCount": worker_count -"/ml:v1/GoogleCloudMlV1__TrainingInput/masterType": master_type -"/ml:v1/GoogleCloudMlV1__TrainingInput/runtimeVersion": runtime_version -"/ml:v1/GoogleCloudMlV1__TrainingInput/pythonModule": python_module "/ml:v1/GoogleCloudMlV1__TrainingInput/region": region +"/ml:v1/GoogleCloudMlV1__TrainingInput/workerType": worker_type "/ml:v1/GoogleCloudMlV1__TrainingInput/args": args "/ml:v1/GoogleCloudMlV1__TrainingInput/args/arg": arg -"/ml:v1/GoogleCloudMlV1__TrainingInput/workerType": worker_type "/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerType": parameter_server_type "/ml:v1/GoogleCloudMlV1__TrainingInput/scaleTier": scale_tier "/ml:v1/GoogleCloudMlV1__TrainingInput/jobDir": job_dir @@ -32103,34 +32297,39 @@ "/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerCount": parameter_server_count "/ml:v1/GoogleCloudMlV1__TrainingInput/packageUris": package_uris "/ml:v1/GoogleCloudMlV1__TrainingInput/packageUris/package_uri": package_uri +"/ml:v1/GoogleCloudMlV1__TrainingInput/workerCount": worker_count +"/ml:v1/GoogleCloudMlV1__TrainingInput/masterType": master_type +"/ml:v1/GoogleCloudMlV1__TrainingInput/runtimeVersion": runtime_version +"/ml:v1/GoogleCloudMlV1__TrainingInput/pythonModule": python_module "/ml:v1/GoogleCloudMlV1__Job": google_cloud_ml_v1__job +"/ml:v1/GoogleCloudMlV1__Job/state": state +"/ml:v1/GoogleCloudMlV1__Job/predictionInput": prediction_input +"/ml:v1/GoogleCloudMlV1__Job/errorMessage": error_message +"/ml:v1/GoogleCloudMlV1__Job/jobId": job_id "/ml:v1/GoogleCloudMlV1__Job/endTime": end_time "/ml:v1/GoogleCloudMlV1__Job/startTime": start_time "/ml:v1/GoogleCloudMlV1__Job/predictionOutput": prediction_output "/ml:v1/GoogleCloudMlV1__Job/trainingOutput": training_output "/ml:v1/GoogleCloudMlV1__Job/createTime": create_time "/ml:v1/GoogleCloudMlV1__Job/trainingInput": training_input -"/ml:v1/GoogleCloudMlV1__Job/predictionInput": prediction_input -"/ml:v1/GoogleCloudMlV1__Job/state": state -"/ml:v1/GoogleCloudMlV1__Job/errorMessage": error_message -"/ml:v1/GoogleCloudMlV1__Job/jobId": job_id "/ml:v1/GoogleApi__HttpBody": google_api__http_body +"/ml:v1/GoogleApi__HttpBody/data": data +"/ml:v1/GoogleApi__HttpBody/contentType": content_type "/ml:v1/GoogleApi__HttpBody/extensions": extensions "/ml:v1/GoogleApi__HttpBody/extensions/extension": extension "/ml:v1/GoogleApi__HttpBody/extensions/extension/extension": extension -"/ml:v1/GoogleApi__HttpBody/data": data -"/ml:v1/GoogleApi__HttpBody/contentType": content_type "/ml:v1/GoogleCloudMlV1beta1__Version": google_cloud_ml_v1beta1__version -"/ml:v1/GoogleCloudMlV1beta1__Version/automaticScaling": automatic_scaling -"/ml:v1/GoogleCloudMlV1beta1__Version/runtimeVersion": runtime_version -"/ml:v1/GoogleCloudMlV1beta1__Version/lastUseTime": last_use_time "/ml:v1/GoogleCloudMlV1beta1__Version/description": description "/ml:v1/GoogleCloudMlV1beta1__Version/deploymentUri": deployment_uri +"/ml:v1/GoogleCloudMlV1beta1__Version/autoScaling": auto_scaling "/ml:v1/GoogleCloudMlV1beta1__Version/isDefault": is_default "/ml:v1/GoogleCloudMlV1beta1__Version/createTime": create_time -"/ml:v1/GoogleCloudMlV1beta1__Version/manualScaling": manual_scaling "/ml:v1/GoogleCloudMlV1beta1__Version/state": state +"/ml:v1/GoogleCloudMlV1beta1__Version/manualScaling": manual_scaling "/ml:v1/GoogleCloudMlV1beta1__Version/name": name +"/ml:v1/GoogleCloudMlV1beta1__Version/errorMessage": error_message +"/ml:v1/GoogleCloudMlV1beta1__Version/runtimeVersion": runtime_version +"/ml:v1/GoogleCloudMlV1beta1__Version/lastUseTime": last_use_time "/ml:v1/GoogleCloudMlV1__GetConfigResponse": google_cloud_ml_v1__get_config_response "/ml:v1/GoogleCloudMlV1__GetConfigResponse/serviceAccountProject": service_account_project "/ml:v1/GoogleCloudMlV1__GetConfigResponse/serviceAccount": service_account @@ -32138,75 +32337,42 @@ "/ml:v1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions "/ml:v1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission "/ml:v1/GoogleCloudMlV1__HyperparameterOutput": google_cloud_ml_v1__hyperparameter_output -"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/finalMetric": final_metric "/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters": hyperparameters "/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters/hyperparameter": hyperparameter "/ml:v1/GoogleCloudMlV1__HyperparameterOutput/trialId": trial_id "/ml:v1/GoogleCloudMlV1__HyperparameterOutput/allMetrics": all_metrics "/ml:v1/GoogleCloudMlV1__HyperparameterOutput/allMetrics/all_metric": all_metric +"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/finalMetric": final_metric "/ml:v1/GoogleIamV1__SetIamPolicyRequest": google_iam_v1__set_iam_policy_request -"/ml:v1/GoogleIamV1__SetIamPolicyRequest/policy": policy "/ml:v1/GoogleIamV1__SetIamPolicyRequest/updateMask": update_mask -"/ml:v1/GoogleCloudMlV1__AutomaticScaling": google_cloud_ml_v1__automatic_scaling -"/ml:v1/GoogleCloudMlV1__AutomaticScaling/minNodes": min_nodes +"/ml:v1/GoogleIamV1__SetIamPolicyRequest/policy": policy "/ml:v1/GoogleCloudMlV1__PredictionOutput": google_cloud_ml_v1__prediction_output -"/ml:v1/GoogleCloudMlV1__PredictionOutput/errorCount": error_count -"/ml:v1/GoogleCloudMlV1__PredictionOutput/outputPath": output_path "/ml:v1/GoogleCloudMlV1__PredictionOutput/nodeHours": node_hours +"/ml:v1/GoogleCloudMlV1__PredictionOutput/outputPath": output_path "/ml:v1/GoogleCloudMlV1__PredictionOutput/predictionCount": prediction_count +"/ml:v1/GoogleCloudMlV1__PredictionOutput/errorCount": error_count "/ml:v1/GoogleIamV1__Policy": google_iam_v1__policy -"/ml:v1/GoogleIamV1__Policy/etag": etag -"/ml:v1/GoogleIamV1__Policy/iamOwned": iam_owned -"/ml:v1/GoogleIamV1__Policy/rules": rules -"/ml:v1/GoogleIamV1__Policy/rules/rule": rule "/ml:v1/GoogleIamV1__Policy/version": version "/ml:v1/GoogleIamV1__Policy/auditConfigs": audit_configs "/ml:v1/GoogleIamV1__Policy/auditConfigs/audit_config": audit_config "/ml:v1/GoogleIamV1__Policy/bindings": bindings "/ml:v1/GoogleIamV1__Policy/bindings/binding": binding -"/ml:v1/GoogleCloudMlV1beta1__AutomaticScaling": google_cloud_ml_v1beta1__automatic_scaling -"/ml:v1/GoogleCloudMlV1beta1__AutomaticScaling/minNodes": min_nodes +"/ml:v1/GoogleIamV1__Policy/etag": etag +"/ml:v1/GoogleIamV1__Policy/iamOwned": iam_owned +"/ml:v1/GoogleIamV1__Policy/rules": rules +"/ml:v1/GoogleIamV1__Policy/rules/rule": rule "/ml:v1/GoogleLongrunning__ListOperationsResponse": google_longrunning__list_operations_response +"/ml:v1/GoogleLongrunning__ListOperationsResponse/nextPageToken": next_page_token "/ml:v1/GoogleLongrunning__ListOperationsResponse/operations": operations "/ml:v1/GoogleLongrunning__ListOperationsResponse/operations/operation": operation -"/ml:v1/GoogleLongrunning__ListOperationsResponse/nextPageToken": next_page_token "/ml:v1/GoogleIamV1__Condition": google_iam_v1__condition "/ml:v1/GoogleIamV1__Condition/op": op "/ml:v1/GoogleIamV1__Condition/svc": svc -"/ml:v1/GoogleIamV1__Condition/value": value "/ml:v1/GoogleIamV1__Condition/sys": sys +"/ml:v1/GoogleIamV1__Condition/value": value "/ml:v1/GoogleIamV1__Condition/values": values "/ml:v1/GoogleIamV1__Condition/values/value": value "/ml:v1/GoogleIamV1__Condition/iam": iam -"/ml:v1/GoogleCloudMlV1__ManualScaling": google_cloud_ml_v1__manual_scaling -"/ml:v1/GoogleCloudMlV1__ManualScaling/nodes": nodes -"/ml:v1/GoogleIamV1__Binding": google_iam_v1__binding -"/ml:v1/GoogleIamV1__Binding/members": members -"/ml:v1/GoogleIamV1__Binding/members/member": member -"/ml:v1/GoogleIamV1__Binding/role": role -"/ml:v1/GoogleIamV1__Binding/condition": condition -"/ml:v1/GoogleCloudMlV1__TrainingOutput": google_cloud_ml_v1__training_output -"/ml:v1/GoogleCloudMlV1__TrainingOutput/completedTrialCount": completed_trial_count -"/ml:v1/GoogleCloudMlV1__TrainingOutput/isHyperparameterTuningJob": is_hyperparameter_tuning_job -"/ml:v1/GoogleCloudMlV1__TrainingOutput/consumedMLUnits": consumed_ml_units -"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials": trials -"/ml:v1/GoogleCloudMlV1__TrainingOutput/trials/trial": trial -"/ml:v1/GoogleIamV1__Rule": google_iam_v1__rule -"/ml:v1/GoogleIamV1__Rule/logConfig": log_config -"/ml:v1/GoogleIamV1__Rule/logConfig/log_config": log_config -"/ml:v1/GoogleIamV1__Rule/in": in -"/ml:v1/GoogleIamV1__Rule/in/in": in -"/ml:v1/GoogleIamV1__Rule/permissions": permissions -"/ml:v1/GoogleIamV1__Rule/permissions/permission": permission -"/ml:v1/GoogleIamV1__Rule/action": action -"/ml:v1/GoogleIamV1__Rule/notIn": not_in -"/ml:v1/GoogleIamV1__Rule/notIn/not_in": not_in -"/ml:v1/GoogleIamV1__Rule/description": description -"/ml:v1/GoogleIamV1__Rule/conditions": conditions -"/ml:v1/GoogleIamV1__Rule/conditions/condition": condition -"/ml:v1/GoogleIamV1_LogConfig_CounterOptions": google_iam_v1_log_config_counter_options -"/ml:v1/GoogleIamV1_LogConfig_CounterOptions/metric": metric -"/ml:v1/GoogleIamV1_LogConfig_CounterOptions/field": field "/oauth2:v2/fields": fields "/oauth2:v2/key": key "/oauth2:v2/quotaUser": quota_user @@ -32331,35 +32497,112 @@ "/pagespeedonline:v2/Result/version": version "/pagespeedonline:v2/Result/version/major": major "/pagespeedonline:v2/Result/version/minor": minor -"/partners:v2/fields": fields "/partners:v2/key": key "/partners:v2/quotaUser": quota_user +"/partners:v2/fields": fields +"/partners:v2/partners.clientMessages.log": log_client_message_message +"/partners:v2/partners.exams.getToken": get_exam_token +"/partners:v2/partners.exams.getToken/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.exams.getToken/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.exams.getToken/examType": exam_type +"/partners:v2/partners.exams.getToken/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.exams.getToken/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.exams.getToken/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.exams.getToken/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.exams.getToken/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.leads.list": list_leads +"/partners:v2/partners.leads.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.leads.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.leads.list/orderBy": order_by +"/partners:v2/partners.leads.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.leads.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.leads.list/pageToken": page_token +"/partners:v2/partners.leads.list/pageSize": page_size +"/partners:v2/partners.leads.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.leads.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.leads.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.offers.list": list_offers +"/partners:v2/partners.offers.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.offers.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.offers.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.offers.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.offers.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.offers.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.offers.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.offers.history.list": list_offer_histories +"/partners:v2/partners.offers.history.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.offers.history.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.offers.history.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.offers.history.list/entireCompany": entire_company +"/partners:v2/partners.offers.history.list/orderBy": order_by +"/partners:v2/partners.offers.history.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.offers.history.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.offers.history.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.offers.history.list/pageToken": page_token +"/partners:v2/partners.offers.history.list/pageSize": page_size +"/partners:v2/partners.offers.history.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.userStates.list": list_user_states +"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.userStates.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.userStates.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.userStates.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.analytics.list": list_analytics +"/partners:v2/partners.analytics.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.analytics.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.analytics.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.analytics.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.analytics.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.analytics.list/pageToken": page_token +"/partners:v2/partners.analytics.list/pageSize": page_size +"/partners:v2/partners.analytics.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.analytics.list/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.getPartnersstatus": get_partnersstatus -"/partners:v2/partners.getPartnersstatus/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.getPartnersstatus/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.getPartnersstatus/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.getPartnersstatus/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id "/partners:v2/partners.getPartnersstatus/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.getPartnersstatus/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.getPartnersstatus/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.getPartnersstatus/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.getPartnersstatus/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.updateLeads": update_leads -"/partners:v2/partners.updateLeads/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.updateLeads/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.updateLeads/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.updateLeads/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.updateLeads/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address "/partners:v2/partners.updateLeads/updateMask": update_mask "/partners:v2/partners.updateLeads/requestMetadata.experimentIds": request_metadata_experiment_ids "/partners:v2/partners.updateLeads/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.updateLeads/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.updateLeads/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id "/partners:v2/partners.updateCompanies": update_companies -"/partners:v2/partners.updateCompanies/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.updateCompanies/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.updateCompanies/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.updateCompanies/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.updateCompanies/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.updateCompanies/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.updateCompanies/requestMetadata.locale": request_metadata_locale "/partners:v2/partners.updateCompanies/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address "/partners:v2/partners.updateCompanies/updateMask": update_mask -"/partners:v2/partners.updateCompanies/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.updateCompanies/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.users.deleteCompanyRelation": delete_user_company_relation +"/partners:v2/partners.users.deleteCompanyRelation/userId": user_id +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.users.createCompanyRelation": create_user_company_relation +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.users.createCompanyRelation/userId": user_id +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.users.createCompanyRelation/requestMetadata.experimentIds": request_metadata_experiment_ids "/partners:v2/partners.users.get": get_user "/partners:v2/partners.users.get/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.users.get/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id @@ -32371,50 +32614,30 @@ "/partners:v2/partners.users.get/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id "/partners:v2/partners.users.get/userId": user_id "/partners:v2/partners.users.updateProfile": update_user_profile -"/partners:v2/partners.users.updateProfile/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address "/partners:v2/partners.users.updateProfile/requestMetadata.experimentIds": request_metadata_experiment_ids "/partners:v2/partners.users.updateProfile/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.users.updateProfile/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.users.updateProfile/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.users.updateProfile/requestMetadata.partnersSessionId": request_metadata_partners_session_id "/partners:v2/partners.users.updateProfile/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.users.updateProfile/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.users.createCompanyRelation": create_user_company_relation -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.users.createCompanyRelation/userId": user_id -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.users.createCompanyRelation/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.users.deleteCompanyRelation": delete_user_company_relation -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.users.deleteCompanyRelation/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.users.deleteCompanyRelation/userId": user_id -"/partners:v2/partners.companies.get": get_company -"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.companies.get/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.companies.get/companyId": company_id -"/partners:v2/partners.companies.get/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.companies.get/currencyCode": currency_code -"/partners:v2/partners.companies.get/orderBy": order_by -"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.companies.get/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.companies.get/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.companies.get/view": view -"/partners:v2/partners.companies.get/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.companies.get/address": address +"/partners:v2/partners.users.updateProfile/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address "/partners:v2/partners.companies.list": list_companies -"/partners:v2/partners.companies.list/minMonthlyBudget.nanos": min_monthly_budget_nanos +"/partners:v2/partners.companies.list/maxMonthlyBudget.currencyCode": max_monthly_budget_currency_code +"/partners:v2/partners.companies.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.companies.list/minMonthlyBudget.currencyCode": min_monthly_budget_currency_code +"/partners:v2/partners.companies.list/view": view +"/partners:v2/partners.companies.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.companies.list/address": address +"/partners:v2/partners.companies.list/minMonthlyBudget.units": min_monthly_budget_units +"/partners:v2/partners.companies.list/maxMonthlyBudget.nanos": max_monthly_budget_nanos +"/partners:v2/partners.companies.list/services": services +"/partners:v2/partners.companies.list/maxMonthlyBudget.units": max_monthly_budget_units +"/partners:v2/partners.companies.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id "/partners:v2/partners.companies.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.companies.list/minMonthlyBudget.nanos": min_monthly_budget_nanos "/partners:v2/partners.companies.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.companies.list/companyName": company_name "/partners:v2/partners.companies.list/pageToken": page_token +"/partners:v2/partners.companies.list/companyName": company_name "/partners:v2/partners.companies.list/industries": industries "/partners:v2/partners.companies.list/websiteUrl": website_url "/partners:v2/partners.companies.list/gpsMotivations": gps_motivations @@ -32424,83 +32647,83 @@ "/partners:v2/partners.companies.list/requestMetadata.experimentIds": request_metadata_experiment_ids "/partners:v2/partners.companies.list/orderBy": order_by "/partners:v2/partners.companies.list/specializations": specializations -"/partners:v2/partners.companies.list/maxMonthlyBudget.currencyCode": max_monthly_budget_currency_code -"/partners:v2/partners.companies.list/minMonthlyBudget.currencyCode": min_monthly_budget_currency_code -"/partners:v2/partners.companies.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.companies.list/view": view -"/partners:v2/partners.companies.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.companies.list/address": address -"/partners:v2/partners.companies.list/minMonthlyBudget.units": min_monthly_budget_units -"/partners:v2/partners.companies.list/maxMonthlyBudget.nanos": max_monthly_budget_nanos -"/partners:v2/partners.companies.list/services": services -"/partners:v2/partners.companies.list/maxMonthlyBudget.units": max_monthly_budget_units -"/partners:v2/partners.companies.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.companies.get": get_company +"/partners:v2/partners.companies.get/view": view +"/partners:v2/partners.companies.get/address": address +"/partners:v2/partners.companies.get/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.companies.get/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.companies.get/companyId": company_id +"/partners:v2/partners.companies.get/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.companies.get/currencyCode": currency_code +"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.companies.get/orderBy": order_by +"/partners:v2/partners.companies.get/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.companies.get/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id "/partners:v2/partners.companies.leads.create": create_lead "/partners:v2/partners.companies.leads.create/companyId": company_id "/partners:v2/partners.userEvents.log": log_user_event -"/partners:v2/partners.clientMessages.log": log_client_message_message -"/partners:v2/partners.exams.getToken": get_exam_token -"/partners:v2/partners.exams.getToken/examType": exam_type -"/partners:v2/partners.exams.getToken/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.exams.getToken/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.exams.getToken/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.exams.getToken/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.exams.getToken/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.exams.getToken/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.exams.getToken/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.leads.list": list_leads -"/partners:v2/partners.leads.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.leads.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.leads.list/pageToken": page_token -"/partners:v2/partners.leads.list/pageSize": page_size -"/partners:v2/partners.leads.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.leads.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.leads.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.leads.list/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.leads.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.leads.list/orderBy": order_by -"/partners:v2/partners.offers.list": list_offers -"/partners:v2/partners.offers.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.offers.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.offers.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.offers.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.offers.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.offers.list/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.offers.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.offers.history.list": list_offer_histories -"/partners:v2/partners.offers.history.list/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.offers.history.list/entireCompany": entire_company -"/partners:v2/partners.offers.history.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.offers.history.list/orderBy": order_by -"/partners:v2/partners.offers.history.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.offers.history.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.offers.history.list/pageToken": page_token -"/partners:v2/partners.offers.history.list/pageSize": page_size -"/partners:v2/partners.offers.history.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.offers.history.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.offers.history.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.userStates.list": list_user_states -"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.userStates.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.userStates.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.userStates.list/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.analytics.list": list_analytics -"/partners:v2/partners.analytics.list/pageSize": page_size -"/partners:v2/partners.analytics.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id -"/partners:v2/partners.analytics.list/requestMetadata.locale": request_metadata_locale -"/partners:v2/partners.analytics.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address -"/partners:v2/partners.analytics.list/requestMetadata.experimentIds": request_metadata_experiment_ids -"/partners:v2/partners.analytics.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id -"/partners:v2/partners.analytics.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id -"/partners:v2/partners.analytics.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id -"/partners:v2/partners.analytics.list/pageToken": page_token +"/partners:v2/LogUserEventRequest": log_user_event_request +"/partners:v2/LogUserEventRequest/eventDatas": event_datas +"/partners:v2/LogUserEventRequest/eventDatas/event_data": event_data +"/partners:v2/LogUserEventRequest/eventScope": event_scope +"/partners:v2/LogUserEventRequest/eventCategory": event_category +"/partners:v2/LogUserEventRequest/lead": lead +"/partners:v2/LogUserEventRequest/eventAction": event_action +"/partners:v2/LogUserEventRequest/url": url +"/partners:v2/LogUserEventRequest/requestMetadata": request_metadata +"/partners:v2/UserOverrides": user_overrides +"/partners:v2/UserOverrides/userId": user_id +"/partners:v2/UserOverrides/ipAddress": ip_address +"/partners:v2/AnalyticsDataPoint": analytics_data_point +"/partners:v2/AnalyticsDataPoint/eventCount": event_count +"/partners:v2/AnalyticsDataPoint/eventLocations": event_locations +"/partners:v2/AnalyticsDataPoint/eventLocations/event_location": event_location +"/partners:v2/Analytics": analytics +"/partners:v2/Analytics/searchViews": search_views +"/partners:v2/Analytics/profileViews": profile_views +"/partners:v2/Analytics/eventDate": event_date +"/partners:v2/Analytics/contacts": contacts +"/partners:v2/AdWordsManagerAccountInfo": ad_words_manager_account_info +"/partners:v2/AdWordsManagerAccountInfo/customerName": customer_name +"/partners:v2/AdWordsManagerAccountInfo/id": id +"/partners:v2/PublicProfile": public_profile +"/partners:v2/PublicProfile/url": url +"/partners:v2/PublicProfile/id": id +"/partners:v2/PublicProfile/profileImage": profile_image +"/partners:v2/PublicProfile/displayImageUrl": display_image_url +"/partners:v2/PublicProfile/displayName": display_name +"/partners:v2/ResponseMetadata": response_metadata +"/partners:v2/ResponseMetadata/debugInfo": debug_info +"/partners:v2/RecaptchaChallenge": recaptcha_challenge +"/partners:v2/RecaptchaChallenge/id": id +"/partners:v2/RecaptchaChallenge/response": response +"/partners:v2/AvailableOffer": available_offer +"/partners:v2/AvailableOffer/terms": terms +"/partners:v2/AvailableOffer/showSpecialOfferCopy": show_special_offer_copy +"/partners:v2/AvailableOffer/available": available +"/partners:v2/AvailableOffer/description": description +"/partners:v2/AvailableOffer/offerLevel": offer_level +"/partners:v2/AvailableOffer/name": name +"/partners:v2/AvailableOffer/qualifiedCustomersComplete": qualified_customers_complete +"/partners:v2/AvailableOffer/id": id +"/partners:v2/AvailableOffer/countryOfferInfos": country_offer_infos +"/partners:v2/AvailableOffer/countryOfferInfos/country_offer_info": country_offer_info +"/partners:v2/AvailableOffer/offerType": offer_type +"/partners:v2/AvailableOffer/maxAccountAge": max_account_age +"/partners:v2/AvailableOffer/qualifiedCustomer": qualified_customer +"/partners:v2/AvailableOffer/qualifiedCustomer/qualified_customer": qualified_customer +"/partners:v2/LatLng": lat_lng +"/partners:v2/LatLng/latitude": latitude +"/partners:v2/LatLng/longitude": longitude +"/partners:v2/Money": money +"/partners:v2/Money/nanos": nanos +"/partners:v2/Money/units": units +"/partners:v2/Money/currencyCode": currency_code "/partners:v2/AnalyticsSummary": analytics_summary -"/partners:v2/AnalyticsSummary/contactsCount": contacts_count "/partners:v2/AnalyticsSummary/profileViewsCount": profile_views_count "/partners:v2/AnalyticsSummary/searchViewsCount": search_views_count +"/partners:v2/AnalyticsSummary/contactsCount": contacts_count "/partners:v2/LogMessageRequest": log_message_request "/partners:v2/LogMessageRequest/clientInfo": client_info "/partners:v2/LogMessageRequest/clientInfo/client_info": client_info @@ -32508,141 +32731,145 @@ "/partners:v2/LogMessageRequest/level": level "/partners:v2/LogMessageRequest/details": details "/partners:v2/DebugInfo": debug_info -"/partners:v2/DebugInfo/serverInfo": server_info "/partners:v2/DebugInfo/serverTraceInfo": server_trace_info +"/partners:v2/DebugInfo/serverInfo": server_info "/partners:v2/DebugInfo/serviceUrl": service_url "/partners:v2/Lead": lead +"/partners:v2/Lead/familyName": family_name +"/partners:v2/Lead/comments": comments +"/partners:v2/Lead/id": id +"/partners:v2/Lead/adwordsCustomerId": adwords_customer_id +"/partners:v2/Lead/phoneNumber": phone_number +"/partners:v2/Lead/createTime": create_time "/partners:v2/Lead/marketingOptIn": marketing_opt_in "/partners:v2/Lead/type": type -"/partners:v2/Lead/givenName": given_name "/partners:v2/Lead/minMonthlyBudget": min_monthly_budget +"/partners:v2/Lead/givenName": given_name "/partners:v2/Lead/languageCode": language_code "/partners:v2/Lead/websiteUrl": website_url "/partners:v2/Lead/state": state "/partners:v2/Lead/gpsMotivations": gps_motivations "/partners:v2/Lead/gpsMotivations/gps_motivation": gps_motivation "/partners:v2/Lead/email": email -"/partners:v2/Lead/familyName": family_name -"/partners:v2/Lead/id": id -"/partners:v2/Lead/comments": comments -"/partners:v2/Lead/phoneNumber": phone_number -"/partners:v2/Lead/adwordsCustomerId": adwords_customer_id -"/partners:v2/Lead/createTime": create_time "/partners:v2/ListUserStatesResponse": list_user_states_response "/partners:v2/ListUserStatesResponse/responseMetadata": response_metadata "/partners:v2/ListUserStatesResponse/userStates": user_states "/partners:v2/ListUserStatesResponse/userStates/user_state": user_state "/partners:v2/CompanyRelation": company_relation -"/partners:v2/CompanyRelation/companyId": company_id -"/partners:v2/CompanyRelation/primaryLanguageCode": primary_language_code "/partners:v2/CompanyRelation/logoUrl": logo_url "/partners:v2/CompanyRelation/resolvedTimestamp": resolved_timestamp "/partners:v2/CompanyRelation/companyAdmin": company_admin -"/partners:v2/CompanyRelation/address": address "/partners:v2/CompanyRelation/isPending": is_pending +"/partners:v2/CompanyRelation/address": address "/partners:v2/CompanyRelation/creationTime": creation_time -"/partners:v2/CompanyRelation/state": state "/partners:v2/CompanyRelation/primaryAddress": primary_address -"/partners:v2/CompanyRelation/managerAccount": manager_account +"/partners:v2/CompanyRelation/state": state "/partners:v2/CompanyRelation/name": name +"/partners:v2/CompanyRelation/managerAccount": manager_account "/partners:v2/CompanyRelation/segment": segment "/partners:v2/CompanyRelation/segment/segment": segment "/partners:v2/CompanyRelation/internalCompanyId": internal_company_id -"/partners:v2/CompanyRelation/badgeTier": badge_tier "/partners:v2/CompanyRelation/specializationStatus": specialization_status "/partners:v2/CompanyRelation/specializationStatus/specialization_status": specialization_status -"/partners:v2/CompanyRelation/phoneNumber": phone_number +"/partners:v2/CompanyRelation/badgeTier": badge_tier "/partners:v2/CompanyRelation/website": website +"/partners:v2/CompanyRelation/phoneNumber": phone_number "/partners:v2/CompanyRelation/primaryCountryCode": primary_country_code +"/partners:v2/CompanyRelation/companyId": company_id +"/partners:v2/CompanyRelation/primaryLanguageCode": primary_language_code "/partners:v2/Date": date -"/partners:v2/Date/year": year "/partners:v2/Date/day": day +"/partners:v2/Date/year": year "/partners:v2/Date/month": month "/partners:v2/Empty": empty "/partners:v2/TrafficSource": traffic_source "/partners:v2/TrafficSource/trafficSourceId": traffic_source_id "/partners:v2/TrafficSource/trafficSubId": traffic_sub_id -"/partners:v2/CreateLeadRequest": create_lead_request -"/partners:v2/CreateLeadRequest/requestMetadata": request_metadata -"/partners:v2/CreateLeadRequest/lead": lead -"/partners:v2/CreateLeadRequest/recaptchaChallenge": recaptcha_challenge "/partners:v2/RequestMetadata": request_metadata -"/partners:v2/RequestMetadata/userOverrides": user_overrides +"/partners:v2/RequestMetadata/locale": locale "/partners:v2/RequestMetadata/partnersSessionId": partners_session_id +"/partners:v2/RequestMetadata/userOverrides": user_overrides +"/partners:v2/RequestMetadata/trafficSource": traffic_source "/partners:v2/RequestMetadata/experimentIds": experiment_ids "/partners:v2/RequestMetadata/experimentIds/experiment_id": experiment_id -"/partners:v2/RequestMetadata/trafficSource": traffic_source -"/partners:v2/RequestMetadata/locale": locale +"/partners:v2/CreateLeadRequest": create_lead_request +"/partners:v2/CreateLeadRequest/requestMetadata": request_metadata +"/partners:v2/CreateLeadRequest/recaptchaChallenge": recaptcha_challenge +"/partners:v2/CreateLeadRequest/lead": lead "/partners:v2/EventData": event_data -"/partners:v2/EventData/key": key "/partners:v2/EventData/values": values "/partners:v2/EventData/values/value": value +"/partners:v2/EventData/key": key "/partners:v2/ExamStatus": exam_status -"/partners:v2/ExamStatus/expiration": expiration +"/partners:v2/ExamStatus/taken": taken +"/partners:v2/ExamStatus/passed": passed "/partners:v2/ExamStatus/warning": warning +"/partners:v2/ExamStatus/expiration": expiration "/partners:v2/ExamStatus/lastPassed": last_passed "/partners:v2/ExamStatus/examType": exam_type -"/partners:v2/ExamStatus/passed": passed -"/partners:v2/ExamStatus/taken": taken "/partners:v2/ListOffersResponse": list_offers_response -"/partners:v2/ListOffersResponse/availableOffers": available_offers -"/partners:v2/ListOffersResponse/availableOffers/available_offer": available_offer "/partners:v2/ListOffersResponse/responseMetadata": response_metadata "/partners:v2/ListOffersResponse/noOfferReason": no_offer_reason +"/partners:v2/ListOffersResponse/availableOffers": available_offers +"/partners:v2/ListOffersResponse/availableOffers/available_offer": available_offer "/partners:v2/CountryOfferInfo": country_offer_info -"/partners:v2/CountryOfferInfo/offerCountryCode": offer_country_code -"/partners:v2/CountryOfferInfo/spendXAmount": spend_x_amount "/partners:v2/CountryOfferInfo/offerType": offer_type "/partners:v2/CountryOfferInfo/getYAmount": get_y_amount +"/partners:v2/CountryOfferInfo/spendXAmount": spend_x_amount +"/partners:v2/CountryOfferInfo/offerCountryCode": offer_country_code "/partners:v2/ListCompaniesResponse": list_companies_response "/partners:v2/ListCompaniesResponse/nextPageToken": next_page_token "/partners:v2/ListCompaniesResponse/responseMetadata": response_metadata "/partners:v2/ListCompaniesResponse/companies": companies "/partners:v2/ListCompaniesResponse/companies/company": company "/partners:v2/OfferCustomer": offer_customer +"/partners:v2/OfferCustomer/adwordsUrl": adwords_url +"/partners:v2/OfferCustomer/eligibilityDaysLeft": eligibility_days_left +"/partners:v2/OfferCustomer/creationTime": creation_time +"/partners:v2/OfferCustomer/countryCode": country_code +"/partners:v2/OfferCustomer/externalCid": external_cid +"/partners:v2/OfferCustomer/offerType": offer_type "/partners:v2/OfferCustomer/getYAmount": get_y_amount "/partners:v2/OfferCustomer/name": name "/partners:v2/OfferCustomer/spendXAmount": spend_x_amount -"/partners:v2/OfferCustomer/adwordsUrl": adwords_url -"/partners:v2/OfferCustomer/countryCode": country_code -"/partners:v2/OfferCustomer/externalCid": external_cid -"/partners:v2/OfferCustomer/creationTime": creation_time -"/partners:v2/OfferCustomer/eligibilityDaysLeft": eligibility_days_left -"/partners:v2/OfferCustomer/offerType": offer_type "/partners:v2/CertificationStatus": certification_status -"/partners:v2/CertificationStatus/examStatuses": exam_statuses -"/partners:v2/CertificationStatus/examStatuses/exam_status": exam_status "/partners:v2/CertificationStatus/type": type "/partners:v2/CertificationStatus/userCount": user_count "/partners:v2/CertificationStatus/isCertified": is_certified +"/partners:v2/CertificationStatus/examStatuses": exam_statuses +"/partners:v2/CertificationStatus/examStatuses/exam_status": exam_status "/partners:v2/LocalizedCompanyInfo": localized_company_info +"/partners:v2/LocalizedCompanyInfo/displayName": display_name "/partners:v2/LocalizedCompanyInfo/languageCode": language_code "/partners:v2/LocalizedCompanyInfo/countryCodes": country_codes "/partners:v2/LocalizedCompanyInfo/countryCodes/country_code": country_code "/partners:v2/LocalizedCompanyInfo/overview": overview -"/partners:v2/LocalizedCompanyInfo/displayName": display_name "/partners:v2/LogUserEventResponse": log_user_event_response "/partners:v2/LogUserEventResponse/responseMetadata": response_metadata "/partners:v2/ListOffersHistoryResponse": list_offers_history_response +"/partners:v2/ListOffersHistoryResponse/nextPageToken": next_page_token +"/partners:v2/ListOffersHistoryResponse/responseMetadata": response_metadata "/partners:v2/ListOffersHistoryResponse/canShowEntireCompany": can_show_entire_company "/partners:v2/ListOffersHistoryResponse/totalResults": total_results "/partners:v2/ListOffersHistoryResponse/showingEntireCompany": showing_entire_company "/partners:v2/ListOffersHistoryResponse/offers": offers "/partners:v2/ListOffersHistoryResponse/offers/offer": offer -"/partners:v2/ListOffersHistoryResponse/nextPageToken": next_page_token -"/partners:v2/ListOffersHistoryResponse/responseMetadata": response_metadata "/partners:v2/LogMessageResponse": log_message_response "/partners:v2/LogMessageResponse/responseMetadata": response_metadata "/partners:v2/SpecializationStatus": specialization_status "/partners:v2/SpecializationStatus/badgeSpecialization": badge_specialization "/partners:v2/SpecializationStatus/badgeSpecializationState": badge_specialization_state "/partners:v2/Certification": certification -"/partners:v2/Certification/certificationType": certification_type "/partners:v2/Certification/lastAchieved": last_achieved -"/partners:v2/Certification/achieved": achieved -"/partners:v2/Certification/expiration": expiration "/partners:v2/Certification/warning": warning +"/partners:v2/Certification/expiration": expiration +"/partners:v2/Certification/achieved": achieved +"/partners:v2/Certification/certificationType": certification_type "/partners:v2/User": user +"/partners:v2/User/primaryEmails": primary_emails +"/partners:v2/User/primaryEmails/primary_email": primary_email +"/partners:v2/User/availableAdwordsManagerAccounts": available_adwords_manager_accounts +"/partners:v2/User/availableAdwordsManagerAccounts/available_adwords_manager_account": available_adwords_manager_account "/partners:v2/User/internalId": internal_id "/partners:v2/User/examStatus": exam_status "/partners:v2/User/examStatus/exam_status": exam_status @@ -32654,95 +32881,89 @@ "/partners:v2/User/profile": profile "/partners:v2/User/company": company "/partners:v2/User/lastAccessTime": last_access_time -"/partners:v2/User/availableAdwordsManagerAccounts": available_adwords_manager_accounts -"/partners:v2/User/availableAdwordsManagerAccounts/available_adwords_manager_account": available_adwords_manager_account -"/partners:v2/User/primaryEmails": primary_emails -"/partners:v2/User/primaryEmails/primary_email": primary_email "/partners:v2/ListAnalyticsResponse": list_analytics_response "/partners:v2/ListAnalyticsResponse/nextPageToken": next_page_token -"/partners:v2/ListAnalyticsResponse/responseMetadata": response_metadata "/partners:v2/ListAnalyticsResponse/analyticsSummary": analytics_summary +"/partners:v2/ListAnalyticsResponse/responseMetadata": response_metadata "/partners:v2/ListAnalyticsResponse/analytics": analytics "/partners:v2/ListAnalyticsResponse/analytics/analytic": analytic +"/partners:v2/ListLeadsResponse": list_leads_response +"/partners:v2/ListLeadsResponse/nextPageToken": next_page_token +"/partners:v2/ListLeadsResponse/totalSize": total_size +"/partners:v2/ListLeadsResponse/responseMetadata": response_metadata +"/partners:v2/ListLeadsResponse/leads": leads +"/partners:v2/ListLeadsResponse/leads/lead": lead "/partners:v2/Company": company +"/partners:v2/Company/locations": locations +"/partners:v2/Company/locations/location": location +"/partners:v2/Company/convertedMinMonthlyBudget": converted_min_monthly_budget +"/partners:v2/Company/industries": industries +"/partners:v2/Company/industries/industry": industry +"/partners:v2/Company/additionalWebsites": additional_websites +"/partners:v2/Company/additionalWebsites/additional_website": additional_website +"/partners:v2/Company/websiteUrl": website_url +"/partners:v2/Company/primaryAdwordsManagerAccountId": primary_adwords_manager_account_id +"/partners:v2/Company/name": name "/partners:v2/Company/localizedInfos": localized_infos "/partners:v2/Company/localizedInfos/localized_info": localized_info -"/partners:v2/Company/id": id "/partners:v2/Company/certificationStatuses": certification_statuses "/partners:v2/Company/certificationStatuses/certification_status": certification_status +"/partners:v2/Company/id": id "/partners:v2/Company/originalMinMonthlyBudget": original_min_monthly_budget +"/partners:v2/Company/publicProfile": public_profile "/partners:v2/Company/services": services "/partners:v2/Company/services/service": service "/partners:v2/Company/primaryLocation": primary_location -"/partners:v2/Company/publicProfile": public_profile "/partners:v2/Company/ranks": ranks "/partners:v2/Company/ranks/rank": rank +"/partners:v2/Company/badgeTier": badge_tier "/partners:v2/Company/specializationStatus": specialization_status "/partners:v2/Company/specializationStatus/specialization_status": specialization_status -"/partners:v2/Company/badgeTier": badge_tier "/partners:v2/Company/autoApprovalEmailDomains": auto_approval_email_domains "/partners:v2/Company/autoApprovalEmailDomains/auto_approval_email_domain": auto_approval_email_domain "/partners:v2/Company/companyTypes": company_types "/partners:v2/Company/companyTypes/company_type": company_type "/partners:v2/Company/profileStatus": profile_status "/partners:v2/Company/primaryLanguageCode": primary_language_code -"/partners:v2/Company/locations": locations -"/partners:v2/Company/locations/location": location -"/partners:v2/Company/convertedMinMonthlyBudget": converted_min_monthly_budget -"/partners:v2/Company/industries": industries -"/partners:v2/Company/industries/industry": industry -"/partners:v2/Company/websiteUrl": website_url -"/partners:v2/Company/additionalWebsites": additional_websites -"/partners:v2/Company/additionalWebsites/additional_website": additional_website -"/partners:v2/Company/primaryAdwordsManagerAccountId": primary_adwords_manager_account_id -"/partners:v2/Company/name": name -"/partners:v2/ListLeadsResponse": list_leads_response -"/partners:v2/ListLeadsResponse/nextPageToken": next_page_token -"/partners:v2/ListLeadsResponse/responseMetadata": response_metadata -"/partners:v2/ListLeadsResponse/totalSize": total_size -"/partners:v2/ListLeadsResponse/leads": leads -"/partners:v2/ListLeadsResponse/leads/lead": lead "/partners:v2/CreateLeadResponse": create_lead_response -"/partners:v2/CreateLeadResponse/lead": lead -"/partners:v2/CreateLeadResponse/recaptchaStatus": recaptcha_status "/partners:v2/CreateLeadResponse/responseMetadata": response_metadata +"/partners:v2/CreateLeadResponse/recaptchaStatus": recaptcha_status +"/partners:v2/CreateLeadResponse/lead": lead "/partners:v2/GetCompanyResponse": get_company_response -"/partners:v2/GetCompanyResponse/company": company "/partners:v2/GetCompanyResponse/responseMetadata": response_metadata +"/partners:v2/GetCompanyResponse/company": company "/partners:v2/Location": location -"/partners:v2/Location/addressLine": address_line -"/partners:v2/Location/addressLine/address_line": address_line "/partners:v2/Location/administrativeArea": administrative_area "/partners:v2/Location/locality": locality "/partners:v2/Location/latLng": lat_lng -"/partners:v2/Location/regionCode": region_code "/partners:v2/Location/address": address +"/partners:v2/Location/regionCode": region_code "/partners:v2/Location/dependentLocality": dependent_locality "/partners:v2/Location/postalCode": postal_code "/partners:v2/Location/languageCode": language_code "/partners:v2/Location/sortingCode": sorting_code +"/partners:v2/Location/addressLine": address_line +"/partners:v2/Location/addressLine/address_line": address_line "/partners:v2/CertificationExamStatus": certification_exam_status "/partners:v2/CertificationExamStatus/numberUsersPass": number_users_pass "/partners:v2/CertificationExamStatus/type": type "/partners:v2/ExamToken": exam_token +"/partners:v2/ExamToken/examId": exam_id "/partners:v2/ExamToken/token": token "/partners:v2/ExamToken/examType": exam_type -"/partners:v2/ExamToken/examId": exam_id "/partners:v2/OptIns": opt_ins +"/partners:v2/OptIns/marketComm": market_comm "/partners:v2/OptIns/specialOffers": special_offers "/partners:v2/OptIns/performanceSuggestions": performance_suggestions -"/partners:v2/OptIns/physicalMail": physical_mail "/partners:v2/OptIns/phoneContact": phone_contact -"/partners:v2/OptIns/marketComm": market_comm +"/partners:v2/OptIns/physicalMail": physical_mail "/partners:v2/Rank": rank -"/partners:v2/Rank/type": type "/partners:v2/Rank/value": value -"/partners:v2/GetPartnersStatusResponse": get_partners_status_response -"/partners:v2/GetPartnersStatusResponse/responseMetadata": response_metadata +"/partners:v2/Rank/type": type "/partners:v2/UserProfile": user_profile -"/partners:v2/UserProfile/familyName": family_name "/partners:v2/UserProfile/languages": languages "/partners:v2/UserProfile/languages/language": language +"/partners:v2/UserProfile/familyName": family_name "/partners:v2/UserProfile/emailOptIns": email_opt_ins "/partners:v2/UserProfile/markets": markets "/partners:v2/UserProfile/markets/market": market @@ -32750,114 +32971,133 @@ "/partners:v2/UserProfile/adwordsManagerAccount": adwords_manager_account "/partners:v2/UserProfile/primaryCountryCode": primary_country_code "/partners:v2/UserProfile/emailAddress": email_address -"/partners:v2/UserProfile/profilePublic": profile_public "/partners:v2/UserProfile/channels": channels "/partners:v2/UserProfile/channels/channel": channel +"/partners:v2/UserProfile/profilePublic": profile_public "/partners:v2/UserProfile/jobFunctions": job_functions "/partners:v2/UserProfile/jobFunctions/job_function": job_function "/partners:v2/UserProfile/givenName": given_name "/partners:v2/UserProfile/address": address "/partners:v2/UserProfile/industries": industries "/partners:v2/UserProfile/industries/industry": industry +"/partners:v2/GetPartnersStatusResponse": get_partners_status_response +"/partners:v2/GetPartnersStatusResponse/responseMetadata": response_metadata "/partners:v2/HistoricalOffer": historical_offer -"/partners:v2/HistoricalOffer/offerType": offer_type -"/partners:v2/HistoricalOffer/senderName": sender_name -"/partners:v2/HistoricalOffer/offerCountryCode": offer_country_code "/partners:v2/HistoricalOffer/expirationTime": expiration_time "/partners:v2/HistoricalOffer/offerCode": offer_code "/partners:v2/HistoricalOffer/creationTime": creation_time -"/partners:v2/HistoricalOffer/clientEmail": client_email "/partners:v2/HistoricalOffer/status": status +"/partners:v2/HistoricalOffer/clientEmail": client_email "/partners:v2/HistoricalOffer/clientId": client_id "/partners:v2/HistoricalOffer/clientName": client_name "/partners:v2/HistoricalOffer/lastModifiedTime": last_modified_time "/partners:v2/HistoricalOffer/adwordsUrl": adwords_url -"/partners:v2/LogUserEventRequest": log_user_event_request -"/partners:v2/LogUserEventRequest/eventCategory": event_category -"/partners:v2/LogUserEventRequest/lead": lead -"/partners:v2/LogUserEventRequest/eventAction": event_action -"/partners:v2/LogUserEventRequest/requestMetadata": request_metadata -"/partners:v2/LogUserEventRequest/url": url -"/partners:v2/LogUserEventRequest/eventDatas": event_datas -"/partners:v2/LogUserEventRequest/eventDatas/event_data": event_data -"/partners:v2/LogUserEventRequest/eventScope": event_scope -"/partners:v2/UserOverrides": user_overrides -"/partners:v2/UserOverrides/ipAddress": ip_address -"/partners:v2/UserOverrides/userId": user_id -"/partners:v2/AnalyticsDataPoint": analytics_data_point -"/partners:v2/AnalyticsDataPoint/eventCount": event_count -"/partners:v2/AnalyticsDataPoint/eventLocations": event_locations -"/partners:v2/AnalyticsDataPoint/eventLocations/event_location": event_location -"/partners:v2/Analytics": analytics -"/partners:v2/Analytics/eventDate": event_date -"/partners:v2/Analytics/profileViews": profile_views -"/partners:v2/Analytics/searchViews": search_views -"/partners:v2/Analytics/contacts": contacts -"/partners:v2/AdWordsManagerAccountInfo": ad_words_manager_account_info -"/partners:v2/AdWordsManagerAccountInfo/customerName": customer_name -"/partners:v2/AdWordsManagerAccountInfo/id": id -"/partners:v2/PublicProfile": public_profile -"/partners:v2/PublicProfile/displayName": display_name -"/partners:v2/PublicProfile/displayImageUrl": display_image_url -"/partners:v2/PublicProfile/id": id -"/partners:v2/PublicProfile/url": url -"/partners:v2/PublicProfile/profileImage": profile_image -"/partners:v2/ResponseMetadata": response_metadata -"/partners:v2/ResponseMetadata/debugInfo": debug_info -"/partners:v2/RecaptchaChallenge": recaptcha_challenge -"/partners:v2/RecaptchaChallenge/id": id -"/partners:v2/RecaptchaChallenge/response": response -"/partners:v2/AvailableOffer": available_offer -"/partners:v2/AvailableOffer/offerLevel": offer_level -"/partners:v2/AvailableOffer/name": name -"/partners:v2/AvailableOffer/qualifiedCustomersComplete": qualified_customers_complete -"/partners:v2/AvailableOffer/id": id -"/partners:v2/AvailableOffer/countryOfferInfos": country_offer_infos -"/partners:v2/AvailableOffer/countryOfferInfos/country_offer_info": country_offer_info -"/partners:v2/AvailableOffer/offerType": offer_type -"/partners:v2/AvailableOffer/maxAccountAge": max_account_age -"/partners:v2/AvailableOffer/qualifiedCustomer": qualified_customer -"/partners:v2/AvailableOffer/qualifiedCustomer/qualified_customer": qualified_customer -"/partners:v2/AvailableOffer/terms": terms -"/partners:v2/AvailableOffer/showSpecialOfferCopy": show_special_offer_copy -"/partners:v2/AvailableOffer/available": available -"/partners:v2/AvailableOffer/description": description -"/partners:v2/LatLng": lat_lng -"/partners:v2/LatLng/latitude": latitude -"/partners:v2/LatLng/longitude": longitude -"/partners:v2/Money": money -"/partners:v2/Money/nanos": nanos -"/partners:v2/Money/units": units -"/partners:v2/Money/currencyCode": currency_code +"/partners:v2/HistoricalOffer/offerType": offer_type +"/partners:v2/HistoricalOffer/senderName": sender_name +"/partners:v2/HistoricalOffer/offerCountryCode": offer_country_code "/people:v1/quotaUser": quota_user "/people:v1/fields": fields "/people:v1/key": key +"/people:v1/people.contactGroups.delete": delete_contact_group +"/people:v1/people.contactGroups.delete/resourceName": resource_name +"/people:v1/people.contactGroups.delete/deleteContacts": delete_contacts +"/people:v1/people.contactGroups.batchGet": batch_contact_group_get +"/people:v1/people.contactGroups.batchGet/resourceNames": resource_names +"/people:v1/people.contactGroups.batchGet/maxMembers": max_members +"/people:v1/people.contactGroups.list": list_contact_groups +"/people:v1/people.contactGroups.list/syncToken": sync_token +"/people:v1/people.contactGroups.list/pageToken": page_token +"/people:v1/people.contactGroups.list/pageSize": page_size +"/people:v1/people.contactGroups.create": create_contact_group +"/people:v1/people.contactGroups.get": get_contact_group +"/people:v1/people.contactGroups.get/maxMembers": max_members +"/people:v1/people.contactGroups.get/resourceName": resource_name +"/people:v1/people.contactGroups.update": update_contact_group +"/people:v1/people.contactGroups.update/resourceName": resource_name +"/people:v1/people.contactGroups.members.modify": modify_contact_group_members +"/people:v1/people.contactGroups.members.modify/resourceName": resource_name +"/people:v1/people.people.deleteContact": delete_person_contact +"/people:v1/people.people.deleteContact/resourceName": resource_name +"/people:v1/people.people.getBatchGet/requestMask.includeField": request_mask_include_field "/people:v1/people.people.getBatchGet/resourceNames": resource_names "/people:v1/people.people.getBatchGet/personFields": person_fields -"/people:v1/people.people.getBatchGet/requestMask.includeField": request_mask_include_field "/people:v1/people.people.get": get_person "/people:v1/people.people.get/personFields": person_fields "/people:v1/people.people.get/resourceName": resource_name "/people:v1/people.people.get/requestMask.includeField": request_mask_include_field +"/people:v1/people.people.updateContact": update_person_contact +"/people:v1/people.people.updateContact/resourceName": resource_name +"/people:v1/people.people.updateContact/updatePersonFields": update_person_fields +"/people:v1/people.people.createContact": create_person_contact +"/people:v1/people.people.createContact/parent": parent "/people:v1/people.people.connections.list": list_person_connections +"/people:v1/people.people.connections.list/syncToken": sync_token +"/people:v1/people.people.connections.list/personFields": person_fields "/people:v1/people.people.connections.list/sortOrder": sort_order "/people:v1/people.people.connections.list/requestSyncToken": request_sync_token "/people:v1/people.people.connections.list/resourceName": resource_name "/people:v1/people.people.connections.list/pageToken": page_token "/people:v1/people.people.connections.list/pageSize": page_size "/people:v1/people.people.connections.list/requestMask.includeField": request_mask_include_field -"/people:v1/people.people.connections.list/syncToken": sync_token -"/people:v1/people.people.connections.list/personFields": person_fields +"/people:v1/RelationshipStatus": relationship_status +"/people:v1/RelationshipStatus/metadata": metadata +"/people:v1/RelationshipStatus/value": value +"/people:v1/RelationshipStatus/formattedValue": formatted_value +"/people:v1/BraggingRights": bragging_rights +"/people:v1/BraggingRights/value": value +"/people:v1/BraggingRights/metadata": metadata +"/people:v1/Organization": organization +"/people:v1/Organization/metadata": metadata +"/people:v1/Organization/location": location +"/people:v1/Organization/title": title +"/people:v1/Organization/current": current +"/people:v1/Organization/startDate": start_date +"/people:v1/Organization/formattedType": formatted_type +"/people:v1/Organization/domain": domain +"/people:v1/Organization/department": department +"/people:v1/Organization/type": type +"/people:v1/Organization/phoneticName": phonetic_name +"/people:v1/Organization/jobDescription": job_description +"/people:v1/Organization/endDate": end_date +"/people:v1/Organization/symbol": symbol +"/people:v1/Organization/name": name +"/people:v1/AgeRangeType": age_range_type +"/people:v1/AgeRangeType/ageRange": age_range +"/people:v1/AgeRangeType/metadata": metadata +"/people:v1/ListContactGroupsResponse": list_contact_groups_response +"/people:v1/ListContactGroupsResponse/nextSyncToken": next_sync_token +"/people:v1/ListContactGroupsResponse/totalItems": total_items +"/people:v1/ListContactGroupsResponse/contactGroups": contact_groups +"/people:v1/ListContactGroupsResponse/contactGroups/contact_group": contact_group +"/people:v1/ListContactGroupsResponse/nextPageToken": next_page_token +"/people:v1/PersonResponse": person_response +"/people:v1/PersonResponse/person": person +"/people:v1/PersonResponse/status": status +"/people:v1/PersonResponse/httpStatusCode": http_status_code +"/people:v1/PersonResponse/requestedResourceName": requested_resource_name +"/people:v1/Relation": relation +"/people:v1/Relation/formattedType": formatted_type +"/people:v1/Relation/person": person +"/people:v1/Relation/type": type +"/people:v1/Relation/metadata": metadata "/people:v1/Occupation": occupation "/people:v1/Occupation/metadata": metadata "/people:v1/Occupation/value": value +"/people:v1/ContactGroup": contact_group +"/people:v1/ContactGroup/resourceName": resource_name +"/people:v1/ContactGroup/etag": etag +"/people:v1/ContactGroup/groupType": group_type +"/people:v1/ContactGroup/formattedName": formatted_name +"/people:v1/ContactGroup/memberResourceNames": member_resource_names +"/people:v1/ContactGroup/memberResourceNames/member_resource_name": member_resource_name +"/people:v1/ContactGroup/name": name +"/people:v1/ContactGroup/metadata": metadata +"/people:v1/ContactGroup/memberCount": member_count "/people:v1/Person": person -"/people:v1/Person/nicknames": nicknames -"/people:v1/Person/nicknames/nickname": nickname -"/people:v1/Person/relations": relations -"/people:v1/Person/relations/relation": relation "/people:v1/Person/names": names "/people:v1/Person/names/name": name +"/people:v1/Person/relations": relations +"/people:v1/Person/relations/relation": relation "/people:v1/Person/occupations": occupations "/people:v1/Person/occupations/occupation": occupation "/people:v1/Person/emailAddresses": email_addresses @@ -32908,18 +33148,109 @@ "/people:v1/Person/relationshipInterests/relationship_interest": relationship_interest "/people:v1/Person/urls": urls "/people:v1/Person/urls/url": url +"/people:v1/Person/nicknames": nicknames +"/people:v1/Person/nicknames/nickname": nickname +"/people:v1/UpdateContactGroupRequest": update_contact_group_request +"/people:v1/UpdateContactGroupRequest/contactGroup": contact_group +"/people:v1/ContactGroupMetadata": contact_group_metadata +"/people:v1/ContactGroupMetadata/deleted": deleted +"/people:v1/ContactGroupMetadata/updateTime": update_time +"/people:v1/Residence": residence +"/people:v1/Residence/current": current +"/people:v1/Residence/metadata": metadata +"/people:v1/Residence/value": value +"/people:v1/Event": event +"/people:v1/Event/date": date +"/people:v1/Event/formattedType": formatted_type +"/people:v1/Event/type": type +"/people:v1/Event/metadata": metadata +"/people:v1/ModifyContactGroupMembersResponse": modify_contact_group_members_response +"/people:v1/ModifyContactGroupMembersResponse/notFoundResourceNames": not_found_resource_names +"/people:v1/ModifyContactGroupMembersResponse/notFoundResourceNames/not_found_resource_name": not_found_resource_name +"/people:v1/ProfileMetadata": profile_metadata +"/people:v1/ProfileMetadata/userTypes": user_types +"/people:v1/ProfileMetadata/userTypes/user_type": user_type +"/people:v1/ProfileMetadata/objectType": object_type +"/people:v1/Gender": gender +"/people:v1/Gender/formattedValue": formatted_value +"/people:v1/Gender/metadata": metadata +"/people:v1/Gender/value": value +"/people:v1/CoverPhoto": cover_photo +"/people:v1/CoverPhoto/default": default +"/people:v1/CoverPhoto/metadata": metadata +"/people:v1/CoverPhoto/url": url +"/people:v1/Interest": interest +"/people:v1/Interest/metadata": metadata +"/people:v1/Interest/value": value +"/people:v1/Nickname": nickname +"/people:v1/Nickname/type": type +"/people:v1/Nickname/metadata": metadata +"/people:v1/Nickname/value": value +"/people:v1/EmailAddress": email_address +"/people:v1/EmailAddress/displayName": display_name +"/people:v1/EmailAddress/type": type +"/people:v1/EmailAddress/metadata": metadata +"/people:v1/EmailAddress/value": value +"/people:v1/EmailAddress/formattedType": formatted_type +"/people:v1/Skill": skill +"/people:v1/Skill/metadata": metadata +"/people:v1/Skill/value": value +"/people:v1/Date": date +"/people:v1/Date/day": day +"/people:v1/Date/year": year +"/people:v1/Date/month": month +"/people:v1/Tagline": tagline +"/people:v1/Tagline/metadata": metadata +"/people:v1/Tagline/value": value +"/people:v1/Name": name +"/people:v1/Name/phoneticFullName": phonetic_full_name +"/people:v1/Name/displayNameLastFirst": display_name_last_first +"/people:v1/Name/displayName": display_name +"/people:v1/Name/honorificSuffix": honorific_suffix +"/people:v1/Name/honorificPrefix": honorific_prefix +"/people:v1/Name/phoneticHonorificSuffix": phonetic_honorific_suffix +"/people:v1/Name/givenName": given_name +"/people:v1/Name/middleName": middle_name +"/people:v1/Name/phoneticHonorificPrefix": phonetic_honorific_prefix +"/people:v1/Name/phoneticGivenName": phonetic_given_name +"/people:v1/Name/phoneticFamilyName": phonetic_family_name +"/people:v1/Name/familyName": family_name +"/people:v1/Name/phoneticMiddleName": phonetic_middle_name +"/people:v1/Name/metadata": metadata +"/people:v1/Locale": locale +"/people:v1/Locale/metadata": metadata +"/people:v1/Locale/value": value +"/people:v1/Empty": empty +"/people:v1/Biography": biography +"/people:v1/Biography/value": value +"/people:v1/Biography/contentType": content_type +"/people:v1/Biography/metadata": metadata +"/people:v1/FieldMetadata": field_metadata +"/people:v1/FieldMetadata/source": source +"/people:v1/FieldMetadata/verified": verified +"/people:v1/FieldMetadata/primary": primary +"/people:v1/RelationshipInterest": relationship_interest +"/people:v1/RelationshipInterest/formattedValue": formatted_value +"/people:v1/RelationshipInterest/metadata": metadata +"/people:v1/RelationshipInterest/value": value +"/people:v1/Source": source +"/people:v1/Source/type": type +"/people:v1/Source/etag": etag +"/people:v1/Source/id": id +"/people:v1/Source/profileMetadata": profile_metadata +"/people:v1/Source/updateTime": update_time "/people:v1/GetPeopleResponse": get_people_response "/people:v1/GetPeopleResponse/responses": responses "/people:v1/GetPeopleResponse/responses/response": response -"/people:v1/PhoneNumber": phone_number -"/people:v1/PhoneNumber/type": type -"/people:v1/PhoneNumber/metadata": metadata -"/people:v1/PhoneNumber/value": value -"/people:v1/PhoneNumber/formattedType": formatted_type -"/people:v1/PhoneNumber/canonicalForm": canonical_form "/people:v1/Photo": photo "/people:v1/Photo/metadata": metadata "/people:v1/Photo/url": url +"/people:v1/PhoneNumber": phone_number +"/people:v1/PhoneNumber/formattedType": formatted_type +"/people:v1/PhoneNumber/canonicalForm": canonical_form +"/people:v1/PhoneNumber/type": type +"/people:v1/PhoneNumber/metadata": metadata +"/people:v1/PhoneNumber/value": value "/people:v1/ListConnectionsResponse": list_connections_response "/people:v1/ListConnectionsResponse/nextPageToken": next_page_token "/people:v1/ListConnectionsResponse/totalItems": total_items @@ -32931,12 +33262,9 @@ "/people:v1/Birthday/text": text "/people:v1/Birthday/metadata": metadata "/people:v1/Birthday/date": date -"/people:v1/Residence": residence -"/people:v1/Residence/current": current -"/people:v1/Residence/metadata": metadata -"/people:v1/Residence/value": value +"/people:v1/CreateContactGroupRequest": create_contact_group_request +"/people:v1/CreateContactGroupRequest/contactGroup": contact_group "/people:v1/Address": address -"/people:v1/Address/poBox": po_box "/people:v1/Address/postalCode": postal_code "/people:v1/Address/region": region "/people:v1/Address/streetAddress": street_address @@ -32948,43 +33276,38 @@ "/people:v1/Address/country": country "/people:v1/Address/type": type "/people:v1/Address/extendedAddress": extended_address +"/people:v1/Address/poBox": po_box "/people:v1/ContactGroupMembership": contact_group_membership "/people:v1/ContactGroupMembership/contactGroupId": contact_group_id "/people:v1/Status": status -"/people:v1/Status/code": code "/people:v1/Status/message": message "/people:v1/Status/details": details "/people:v1/Status/details/detail": detail "/people:v1/Status/details/detail/detail": detail -"/people:v1/Event": event -"/people:v1/Event/type": type -"/people:v1/Event/metadata": metadata -"/people:v1/Event/date": date -"/people:v1/Event/formattedType": formatted_type +"/people:v1/Status/code": code "/people:v1/PersonMetadata": person_metadata -"/people:v1/PersonMetadata/linkedPeopleResourceNames": linked_people_resource_names -"/people:v1/PersonMetadata/linkedPeopleResourceNames/linked_people_resource_name": linked_people_resource_name "/people:v1/PersonMetadata/previousResourceNames": previous_resource_names "/people:v1/PersonMetadata/previousResourceNames/previous_resource_name": previous_resource_name "/people:v1/PersonMetadata/sources": sources "/people:v1/PersonMetadata/sources/source": source "/people:v1/PersonMetadata/deleted": deleted "/people:v1/PersonMetadata/objectType": object_type -"/people:v1/ProfileMetadata": profile_metadata -"/people:v1/ProfileMetadata/objectType": object_type +"/people:v1/PersonMetadata/linkedPeopleResourceNames": linked_people_resource_names +"/people:v1/PersonMetadata/linkedPeopleResourceNames/linked_people_resource_name": linked_people_resource_name +"/people:v1/ModifyContactGroupMembersRequest": modify_contact_group_members_request +"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToAdd": resource_names_to_add +"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToAdd/resource_names_to_add": resource_names_to_add +"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToRemove": resource_names_to_remove +"/people:v1/ModifyContactGroupMembersRequest/resourceNamesToRemove/resource_names_to_remove": resource_names_to_remove +"/people:v1/ContactGroupResponse": contact_group_response +"/people:v1/ContactGroupResponse/status": status +"/people:v1/ContactGroupResponse/requestedResourceName": requested_resource_name +"/people:v1/ContactGroupResponse/contactGroup": contact_group "/people:v1/Url": url "/people:v1/Url/type": type "/people:v1/Url/metadata": metadata "/people:v1/Url/value": value "/people:v1/Url/formattedType": formatted_type -"/people:v1/Gender": gender -"/people:v1/Gender/formattedValue": formatted_value -"/people:v1/Gender/metadata": metadata -"/people:v1/Gender/value": value -"/people:v1/CoverPhoto": cover_photo -"/people:v1/CoverPhoto/default": default -"/people:v1/CoverPhoto/metadata": metadata -"/people:v1/CoverPhoto/url": url "/people:v1/ImClient": im_client "/people:v1/ImClient/metadata": metadata "/people:v1/ImClient/type": type @@ -32992,105 +33315,15 @@ "/people:v1/ImClient/username": username "/people:v1/ImClient/formattedProtocol": formatted_protocol "/people:v1/ImClient/formattedType": formatted_type -"/people:v1/Interest": interest -"/people:v1/Interest/metadata": metadata -"/people:v1/Interest/value": value -"/people:v1/Nickname": nickname -"/people:v1/Nickname/type": type -"/people:v1/Nickname/metadata": metadata -"/people:v1/Nickname/value": value -"/people:v1/EmailAddress": email_address -"/people:v1/EmailAddress/type": type -"/people:v1/EmailAddress/metadata": metadata -"/people:v1/EmailAddress/value": value -"/people:v1/EmailAddress/formattedType": formatted_type -"/people:v1/EmailAddress/displayName": display_name -"/people:v1/Skill": skill -"/people:v1/Skill/metadata": metadata -"/people:v1/Skill/value": value "/people:v1/DomainMembership": domain_membership "/people:v1/DomainMembership/inViewerDomain": in_viewer_domain +"/people:v1/BatchGetContactGroupsResponse": batch_get_contact_groups_response +"/people:v1/BatchGetContactGroupsResponse/responses": responses +"/people:v1/BatchGetContactGroupsResponse/responses/response": response "/people:v1/Membership": membership "/people:v1/Membership/metadata": metadata "/people:v1/Membership/domainMembership": domain_membership "/people:v1/Membership/contactGroupMembership": contact_group_membership -"/people:v1/RelationshipStatus": relationship_status -"/people:v1/RelationshipStatus/formattedValue": formatted_value -"/people:v1/RelationshipStatus/metadata": metadata -"/people:v1/RelationshipStatus/value": value -"/people:v1/Date": date -"/people:v1/Date/month": month -"/people:v1/Date/day": day -"/people:v1/Date/year": year -"/people:v1/Tagline": tagline -"/people:v1/Tagline/metadata": metadata -"/people:v1/Tagline/value": value -"/people:v1/Name": name -"/people:v1/Name/phoneticGivenName": phonetic_given_name -"/people:v1/Name/phoneticFamilyName": phonetic_family_name -"/people:v1/Name/familyName": family_name -"/people:v1/Name/metadata": metadata -"/people:v1/Name/phoneticMiddleName": phonetic_middle_name -"/people:v1/Name/phoneticFullName": phonetic_full_name -"/people:v1/Name/displayNameLastFirst": display_name_last_first -"/people:v1/Name/displayName": display_name -"/people:v1/Name/honorificSuffix": honorific_suffix -"/people:v1/Name/honorificPrefix": honorific_prefix -"/people:v1/Name/phoneticHonorificSuffix": phonetic_honorific_suffix -"/people:v1/Name/middleName": middle_name -"/people:v1/Name/givenName": given_name -"/people:v1/Name/phoneticHonorificPrefix": phonetic_honorific_prefix -"/people:v1/BraggingRights": bragging_rights -"/people:v1/BraggingRights/metadata": metadata -"/people:v1/BraggingRights/value": value -"/people:v1/Locale": locale -"/people:v1/Locale/metadata": metadata -"/people:v1/Locale/value": value -"/people:v1/Organization": organization -"/people:v1/Organization/type": type -"/people:v1/Organization/phoneticName": phonetic_name -"/people:v1/Organization/jobDescription": job_description -"/people:v1/Organization/endDate": end_date -"/people:v1/Organization/symbol": symbol -"/people:v1/Organization/name": name -"/people:v1/Organization/metadata": metadata -"/people:v1/Organization/location": location -"/people:v1/Organization/title": title -"/people:v1/Organization/current": current -"/people:v1/Organization/startDate": start_date -"/people:v1/Organization/formattedType": formatted_type -"/people:v1/Organization/domain": domain -"/people:v1/Organization/department": department -"/people:v1/Biography": biography -"/people:v1/Biography/metadata": metadata -"/people:v1/Biography/value": value -"/people:v1/Biography/contentType": content_type -"/people:v1/AgeRangeType": age_range_type -"/people:v1/AgeRangeType/ageRange": age_range -"/people:v1/AgeRangeType/metadata": metadata -"/people:v1/FieldMetadata": field_metadata -"/people:v1/FieldMetadata/source": source -"/people:v1/FieldMetadata/verified": verified -"/people:v1/FieldMetadata/primary": primary -"/people:v1/PersonResponse": person_response -"/people:v1/PersonResponse/status": status -"/people:v1/PersonResponse/httpStatusCode": http_status_code -"/people:v1/PersonResponse/requestedResourceName": requested_resource_name -"/people:v1/PersonResponse/person": person -"/people:v1/RelationshipInterest": relationship_interest -"/people:v1/RelationshipInterest/metadata": metadata -"/people:v1/RelationshipInterest/value": value -"/people:v1/RelationshipInterest/formattedValue": formatted_value -"/people:v1/Source": source -"/people:v1/Source/type": type -"/people:v1/Source/etag": etag -"/people:v1/Source/id": id -"/people:v1/Source/profileMetadata": profile_metadata -"/people:v1/Relation": relation -"/people:v1/Relation/type": type -"/people:v1/Relation/metadata": metadata -"/people:v1/Relation/formattedType": formatted_type -"/people:v1/Relation/person": person "/plus:v1/fields": fields "/plus:v1/key": key "/plus:v1/quotaUser": quota_user @@ -33855,7 +34088,16 @@ "/proximitybeacon:v1beta1/fields": fields "/proximitybeacon:v1beta1/key": key "/proximitybeacon:v1beta1/quotaUser": quota_user +"/proximitybeacon:v1beta1/proximitybeacon.beaconinfo.getforobserved": getforobserved_beaconinfo +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list": list_namespaces +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update": update_namespace +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/namespaceName": namespace_name +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.getEidparams": get_eidparams +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate": activate_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.get": get_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.get/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.get/projectId": project_id @@ -33863,50 +34105,95 @@ "/proximitybeacon:v1beta1/proximitybeacon.beacons.update/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.update/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission": decommission_beacon -"/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate": deactivate_beacon -"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.delete": delete_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.delete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.delete/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate": deactivate_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.register": register_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.register/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.list": list_beacons "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageToken": page_token -"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate": activate_beacon -"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/beaconName": beacon_name -"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete": delete_beacon_attachment -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/attachmentName": attachment_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/attachmentName": attachment_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list": list_beacon_attachments "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/namespacedType": namespaced_type "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete": batch_beacon_attachment_delete +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create": create_beacon_attachment "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create/beaconName": beacon_name -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete": batch_beacon_attachment_delete -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/beaconName": beacon_name -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/namespacedType": namespaced_type "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list": list_beacon_diagnostics +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/alertFilter": alert_filter +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageToken": page_token -"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageSize": page_size -"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/alertFilter": alert_filter -"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.beaconinfo.getforobserved": getforobserved_beaconinfo -"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list": list_namespaces -"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update": update_namespace -"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/projectId": project_id -"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/namespaceName": namespace_name +"/proximitybeacon:v1beta1/ListNamespacesResponse": list_namespaces_response +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces": namespaces +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces/namespace": namespace +"/proximitybeacon:v1beta1/Diagnostics": diagnostics +"/proximitybeacon:v1beta1/Diagnostics/estimatedLowBatteryDate": estimated_low_battery_date +"/proximitybeacon:v1beta1/Diagnostics/beaconName": beacon_name +"/proximitybeacon:v1beta1/Diagnostics/alerts": alerts +"/proximitybeacon:v1beta1/Diagnostics/alerts/alert": alert +"/proximitybeacon:v1beta1/ListBeaconsResponse": list_beacons_response +"/proximitybeacon:v1beta1/ListBeaconsResponse/nextPageToken": next_page_token +"/proximitybeacon:v1beta1/ListBeaconsResponse/totalCount": total_count +"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons": beacons +"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons/beacon": beacon +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest": get_info_for_observed_beacons_request +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations": observations +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations/observation": observation +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes": namespaced_types +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes/namespaced_type": namespaced_type +"/proximitybeacon:v1beta1/Empty": empty +"/proximitybeacon:v1beta1/BeaconAttachment": beacon_attachment +"/proximitybeacon:v1beta1/BeaconAttachment/creationTimeMs": creation_time_ms +"/proximitybeacon:v1beta1/BeaconAttachment/attachmentName": attachment_name +"/proximitybeacon:v1beta1/BeaconAttachment/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/BeaconAttachment/data": data +"/proximitybeacon:v1beta1/EphemeralIdRegistration": ephemeral_id_registration +"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialClockValue": initial_clock_value +"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconEcdhPublicKey": beacon_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/rotationPeriodExponent": rotation_period_exponent +"/proximitybeacon:v1beta1/EphemeralIdRegistration/serviceEcdhPublicKey": service_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconIdentityKey": beacon_identity_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialEid": initial_eid +"/proximitybeacon:v1beta1/LatLng": lat_lng +"/proximitybeacon:v1beta1/LatLng/longitude": longitude +"/proximitybeacon:v1beta1/LatLng/latitude": latitude +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse": list_beacon_attachments_response +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments": attachments +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments/attachment": attachment +"/proximitybeacon:v1beta1/Namespace": namespace +"/proximitybeacon:v1beta1/Namespace/namespaceName": namespace_name +"/proximitybeacon:v1beta1/Namespace/servingVisibility": serving_visibility +"/proximitybeacon:v1beta1/AttachmentInfo": attachment_info +"/proximitybeacon:v1beta1/AttachmentInfo/data": data +"/proximitybeacon:v1beta1/AttachmentInfo/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/BeaconInfo": beacon_info +"/proximitybeacon:v1beta1/BeaconInfo/beaconName": beacon_name +"/proximitybeacon:v1beta1/BeaconInfo/attachments": attachments +"/proximitybeacon:v1beta1/BeaconInfo/attachments/attachment": attachment +"/proximitybeacon:v1beta1/BeaconInfo/advertisedId": advertised_id +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams": ephemeral_id_registration_params +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/maxRotationPeriodExponent": max_rotation_period_exponent +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/minRotationPeriodExponent": min_rotation_period_exponent +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/serviceEcdhPublicKey": service_ecdh_public_key +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse": delete_attachments_response +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse/numDeleted": num_deleted "/proximitybeacon:v1beta1/Observation": observation "/proximitybeacon:v1beta1/Observation/timestampMs": timestamp_ms "/proximitybeacon:v1beta1/Observation/advertisedId": advertised_id @@ -33919,6 +34206,11 @@ "/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons": beacons "/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons/beacon": beacon "/proximitybeacon:v1beta1/Beacon": beacon +"/proximitybeacon:v1beta1/Beacon/status": status +"/proximitybeacon:v1beta1/Beacon/indoorLevel": indoor_level +"/proximitybeacon:v1beta1/Beacon/beaconName": beacon_name +"/proximitybeacon:v1beta1/Beacon/expectedStability": expected_stability +"/proximitybeacon:v1beta1/Beacon/advertisedId": advertised_id "/proximitybeacon:v1beta1/Beacon/provisioningKey": provisioning_key "/proximitybeacon:v1beta1/Beacon/ephemeralIdRegistration": ephemeral_id_registration "/proximitybeacon:v1beta1/Beacon/latLng": lat_lng @@ -33926,81 +34218,24 @@ "/proximitybeacon:v1beta1/Beacon/description": description "/proximitybeacon:v1beta1/Beacon/properties": properties "/proximitybeacon:v1beta1/Beacon/properties/property": property -"/proximitybeacon:v1beta1/Beacon/status": status -"/proximitybeacon:v1beta1/Beacon/indoorLevel": indoor_level -"/proximitybeacon:v1beta1/Beacon/beaconName": beacon_name -"/proximitybeacon:v1beta1/Beacon/expectedStability": expected_stability -"/proximitybeacon:v1beta1/Beacon/advertisedId": advertised_id "/proximitybeacon:v1beta1/AdvertisedId": advertised_id -"/proximitybeacon:v1beta1/AdvertisedId/type": type "/proximitybeacon:v1beta1/AdvertisedId/id": id +"/proximitybeacon:v1beta1/AdvertisedId/type": type "/proximitybeacon:v1beta1/Date": date -"/proximitybeacon:v1beta1/Date/year": year "/proximitybeacon:v1beta1/Date/day": day +"/proximitybeacon:v1beta1/Date/year": year "/proximitybeacon:v1beta1/Date/month": month "/proximitybeacon:v1beta1/IndoorLevel": indoor_level "/proximitybeacon:v1beta1/IndoorLevel/name": name -"/proximitybeacon:v1beta1/ListNamespacesResponse": list_namespaces_response -"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces": namespaces -"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces/namespace": namespace -"/proximitybeacon:v1beta1/Diagnostics": diagnostics -"/proximitybeacon:v1beta1/Diagnostics/beaconName": beacon_name -"/proximitybeacon:v1beta1/Diagnostics/alerts": alerts -"/proximitybeacon:v1beta1/Diagnostics/alerts/alert": alert -"/proximitybeacon:v1beta1/Diagnostics/estimatedLowBatteryDate": estimated_low_battery_date -"/proximitybeacon:v1beta1/ListBeaconsResponse": list_beacons_response -"/proximitybeacon:v1beta1/ListBeaconsResponse/nextPageToken": next_page_token -"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons": beacons -"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons/beacon": beacon -"/proximitybeacon:v1beta1/ListBeaconsResponse/totalCount": total_count -"/proximitybeacon:v1beta1/Empty": empty -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest": get_info_for_observed_beacons_request -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations": observations -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations/observation": observation -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes": namespaced_types -"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes/namespaced_type": namespaced_type -"/proximitybeacon:v1beta1/BeaconAttachment": beacon_attachment -"/proximitybeacon:v1beta1/BeaconAttachment/creationTimeMs": creation_time_ms -"/proximitybeacon:v1beta1/BeaconAttachment/attachmentName": attachment_name -"/proximitybeacon:v1beta1/BeaconAttachment/namespacedType": namespaced_type -"/proximitybeacon:v1beta1/BeaconAttachment/data": data -"/proximitybeacon:v1beta1/EphemeralIdRegistration": ephemeral_id_registration -"/proximitybeacon:v1beta1/EphemeralIdRegistration/rotationPeriodExponent": rotation_period_exponent -"/proximitybeacon:v1beta1/EphemeralIdRegistration/serviceEcdhPublicKey": service_ecdh_public_key -"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconIdentityKey": beacon_identity_key -"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialEid": initial_eid -"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialClockValue": initial_clock_value -"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconEcdhPublicKey": beacon_ecdh_public_key -"/proximitybeacon:v1beta1/LatLng": lat_lng -"/proximitybeacon:v1beta1/LatLng/longitude": longitude -"/proximitybeacon:v1beta1/LatLng/latitude": latitude -"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse": list_beacon_attachments_response -"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments": attachments -"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments/attachment": attachment -"/proximitybeacon:v1beta1/Namespace": namespace -"/proximitybeacon:v1beta1/Namespace/servingVisibility": serving_visibility -"/proximitybeacon:v1beta1/Namespace/namespaceName": namespace_name -"/proximitybeacon:v1beta1/AttachmentInfo": attachment_info -"/proximitybeacon:v1beta1/AttachmentInfo/namespacedType": namespaced_type -"/proximitybeacon:v1beta1/AttachmentInfo/data": data -"/proximitybeacon:v1beta1/BeaconInfo": beacon_info -"/proximitybeacon:v1beta1/BeaconInfo/beaconName": beacon_name -"/proximitybeacon:v1beta1/BeaconInfo/advertisedId": advertised_id -"/proximitybeacon:v1beta1/BeaconInfo/attachments": attachments -"/proximitybeacon:v1beta1/BeaconInfo/attachments/attachment": attachment -"/proximitybeacon:v1beta1/DeleteAttachmentsResponse": delete_attachments_response -"/proximitybeacon:v1beta1/DeleteAttachmentsResponse/numDeleted": num_deleted -"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams": ephemeral_id_registration_params -"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/minRotationPeriodExponent": min_rotation_period_exponent -"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/maxRotationPeriodExponent": max_rotation_period_exponent -"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/serviceEcdhPublicKey": service_ecdh_public_key "/pubsub:v1/key": key "/pubsub:v1/quotaUser": quota_user "/pubsub:v1/fields": fields -"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions": test_subscription_iam_permissions -"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions/resource": resource -"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig": modify_subscription_push_config -"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig/subscription": subscription +"/pubsub:v1/pubsub.projects.snapshots.setIamPolicy": set_snapshot_iam_policy +"/pubsub:v1/pubsub.projects.snapshots.setIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.snapshots.testIamPermissions": test_snapshot_iam_permissions +"/pubsub:v1/pubsub.projects.snapshots.testIamPermissions/resource": resource +"/pubsub:v1/pubsub.projects.snapshots.getIamPolicy": get_project_snapshot_iam_policy +"/pubsub:v1/pubsub.projects.snapshots.getIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.subscriptions.delete/subscription": subscription "/pubsub:v1/pubsub.projects.subscriptions.pull": pull_subscription "/pubsub:v1/pubsub.projects.subscriptions.pull/subscription": subscription @@ -34010,19 +34245,23 @@ "/pubsub:v1/pubsub.projects.subscriptions.setIamPolicy": set_subscription_iam_policy "/pubsub:v1/pubsub.projects.subscriptions.setIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.subscriptions.create/name": name -"/pubsub:v1/pubsub.projects.subscriptions.acknowledge": acknowledge_subscription -"/pubsub:v1/pubsub.projects.subscriptions.acknowledge/subscription": subscription -"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline": modify_subscription_ack_deadline -"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline/subscription": subscription "/pubsub:v1/pubsub.projects.subscriptions.getIamPolicy": get_project_subscription_iam_policy "/pubsub:v1/pubsub.projects.subscriptions.getIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline": modify_subscription_ack_deadline +"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.acknowledge": acknowledge_subscription +"/pubsub:v1/pubsub.projects.subscriptions.acknowledge/subscription": subscription "/pubsub:v1/pubsub.projects.subscriptions.get/subscription": subscription -"/pubsub:v1/pubsub.projects.snapshots.testIamPermissions": test_snapshot_iam_permissions -"/pubsub:v1/pubsub.projects.snapshots.testIamPermissions/resource": resource -"/pubsub:v1/pubsub.projects.snapshots.getIamPolicy": get_project_snapshot_iam_policy -"/pubsub:v1/pubsub.projects.snapshots.getIamPolicy/resource": resource -"/pubsub:v1/pubsub.projects.snapshots.setIamPolicy": set_snapshot_iam_policy -"/pubsub:v1/pubsub.projects.snapshots.setIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions": test_subscription_iam_permissions +"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig": modify_subscription_push_config +"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig/subscription": subscription +"/pubsub:v1/pubsub.projects.topics.list/pageToken": page_token +"/pubsub:v1/pubsub.projects.topics.list/pageSize": page_size +"/pubsub:v1/pubsub.projects.topics.list/project": project +"/pubsub:v1/pubsub.projects.topics.create/name": name +"/pubsub:v1/pubsub.projects.topics.setIamPolicy": set_topic_iam_policy +"/pubsub:v1/pubsub.projects.topics.setIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.topics.getIamPolicy": get_project_topic_iam_policy "/pubsub:v1/pubsub.projects.topics.getIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.topics.get/topic": topic @@ -34031,15 +34270,52 @@ "/pubsub:v1/pubsub.projects.topics.testIamPermissions": test_topic_iam_permissions "/pubsub:v1/pubsub.projects.topics.testIamPermissions/resource": resource "/pubsub:v1/pubsub.projects.topics.delete/topic": topic -"/pubsub:v1/pubsub.projects.topics.list/pageSize": page_size -"/pubsub:v1/pubsub.projects.topics.list/project": project -"/pubsub:v1/pubsub.projects.topics.list/pageToken": page_token -"/pubsub:v1/pubsub.projects.topics.create/name": name -"/pubsub:v1/pubsub.projects.topics.setIamPolicy": set_topic_iam_policy -"/pubsub:v1/pubsub.projects.topics.setIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.topics.subscriptions.list/pageToken": page_token "/pubsub:v1/pubsub.projects.topics.subscriptions.list/pageSize": page_size "/pubsub:v1/pubsub.projects.topics.subscriptions.list/topic": topic +"/pubsub:v1/PublishResponse": publish_response +"/pubsub:v1/PublishResponse/messageIds": message_ids +"/pubsub:v1/PublishResponse/messageIds/message_id": message_id +"/pubsub:v1/Subscription": subscription +"/pubsub:v1/Subscription/topic": topic +"/pubsub:v1/Subscription/pushConfig": push_config +"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/Subscription/name": name +"/pubsub:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/pubsub:v1/TestIamPermissionsRequest/permissions": permissions +"/pubsub:v1/TestIamPermissionsRequest/permissions/permission": permission +"/pubsub:v1/Policy": policy +"/pubsub:v1/Policy/etag": etag +"/pubsub:v1/Policy/version": version +"/pubsub:v1/Policy/bindings": bindings +"/pubsub:v1/Policy/bindings/binding": binding +"/pubsub:v1/Topic": topic +"/pubsub:v1/Topic/name": name +"/pubsub:v1/ModifyAckDeadlineRequest": modify_ack_deadline_request +"/pubsub:v1/ModifyAckDeadlineRequest/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/ModifyAckDeadlineRequest/ackIds": ack_ids +"/pubsub:v1/ModifyAckDeadlineRequest/ackIds/ack_id": ack_id +"/pubsub:v1/SetIamPolicyRequest": set_iam_policy_request +"/pubsub:v1/SetIamPolicyRequest/policy": policy +"/pubsub:v1/ModifyPushConfigRequest": modify_push_config_request +"/pubsub:v1/ModifyPushConfigRequest/pushConfig": push_config +"/pubsub:v1/PubsubMessage/messageId": message_id +"/pubsub:v1/PubsubMessage/attributes": attributes +"/pubsub:v1/PubsubMessage/attributes/attribute": attribute +"/pubsub:v1/PubsubMessage/publishTime": publish_time +"/pubsub:v1/PubsubMessage/data": data +"/pubsub:v1/Binding": binding +"/pubsub:v1/Binding/role": role +"/pubsub:v1/Binding/members": members +"/pubsub:v1/Binding/members/member": member +"/pubsub:v1/Empty": empty +"/pubsub:v1/AcknowledgeRequest": acknowledge_request +"/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids +"/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id +"/pubsub:v1/ListTopicsResponse": list_topics_response +"/pubsub:v1/ListTopicsResponse/nextPageToken": next_page_token +"/pubsub:v1/ListTopicsResponse/topics": topics +"/pubsub:v1/ListTopicsResponse/topics/topic": topic "/pubsub:v1/ListTopicSubscriptionsResponse": list_topic_subscriptions_response "/pubsub:v1/ListTopicSubscriptionsResponse/nextPageToken": next_page_token "/pubsub:v1/ListTopicSubscriptionsResponse/subscriptions": subscriptions @@ -34048,12 +34324,12 @@ "/pubsub:v1/PullResponse/receivedMessages": received_messages "/pubsub:v1/PullResponse/receivedMessages/received_message": received_message "/pubsub:v1/ReceivedMessage": received_message -"/pubsub:v1/ReceivedMessage/message": message "/pubsub:v1/ReceivedMessage/ackId": ack_id +"/pubsub:v1/ReceivedMessage/message": message "/pubsub:v1/PushConfig": push_config -"/pubsub:v1/PushConfig/pushEndpoint": push_endpoint "/pubsub:v1/PushConfig/attributes": attributes "/pubsub:v1/PushConfig/attributes/attribute": attribute +"/pubsub:v1/PushConfig/pushEndpoint": push_endpoint "/pubsub:v1/TestIamPermissionsResponse": test_iam_permissions_response "/pubsub:v1/TestIamPermissionsResponse/permissions": permissions "/pubsub:v1/TestIamPermissionsResponse/permissions/permission": permission @@ -34067,49 +34343,6 @@ "/pubsub:v1/PublishRequest": publish_request "/pubsub:v1/PublishRequest/messages": messages "/pubsub:v1/PublishRequest/messages/message": message -"/pubsub:v1/PublishResponse": publish_response -"/pubsub:v1/PublishResponse/messageIds": message_ids -"/pubsub:v1/PublishResponse/messageIds/message_id": message_id -"/pubsub:v1/Subscription": subscription -"/pubsub:v1/Subscription/pushConfig": push_config -"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds -"/pubsub:v1/Subscription/name": name -"/pubsub:v1/Subscription/topic": topic -"/pubsub:v1/TestIamPermissionsRequest": test_iam_permissions_request -"/pubsub:v1/TestIamPermissionsRequest/permissions": permissions -"/pubsub:v1/TestIamPermissionsRequest/permissions/permission": permission -"/pubsub:v1/Topic": topic -"/pubsub:v1/Topic/name": name -"/pubsub:v1/Policy": policy -"/pubsub:v1/Policy/etag": etag -"/pubsub:v1/Policy/version": version -"/pubsub:v1/Policy/bindings": bindings -"/pubsub:v1/Policy/bindings/binding": binding -"/pubsub:v1/ModifyAckDeadlineRequest": modify_ack_deadline_request -"/pubsub:v1/ModifyAckDeadlineRequest/ackDeadlineSeconds": ack_deadline_seconds -"/pubsub:v1/ModifyAckDeadlineRequest/ackIds": ack_ids -"/pubsub:v1/ModifyAckDeadlineRequest/ackIds/ack_id": ack_id -"/pubsub:v1/SetIamPolicyRequest": set_iam_policy_request -"/pubsub:v1/SetIamPolicyRequest/policy": policy -"/pubsub:v1/ModifyPushConfigRequest": modify_push_config_request -"/pubsub:v1/ModifyPushConfigRequest/pushConfig": push_config -"/pubsub:v1/PubsubMessage/data": data -"/pubsub:v1/PubsubMessage/attributes": attributes -"/pubsub:v1/PubsubMessage/attributes/attribute": attribute -"/pubsub:v1/PubsubMessage/messageId": message_id -"/pubsub:v1/PubsubMessage/publishTime": publish_time -"/pubsub:v1/Binding": binding -"/pubsub:v1/Binding/members": members -"/pubsub:v1/Binding/members/member": member -"/pubsub:v1/Binding/role": role -"/pubsub:v1/ListTopicsResponse": list_topics_response -"/pubsub:v1/ListTopicsResponse/topics": topics -"/pubsub:v1/ListTopicsResponse/topics/topic": topic -"/pubsub:v1/ListTopicsResponse/nextPageToken": next_page_token -"/pubsub:v1/Empty": empty -"/pubsub:v1/AcknowledgeRequest": acknowledge_request -"/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids -"/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id "/qpxExpress:v1/fields": fields "/qpxExpress:v1/key": key "/qpxExpress:v1/quotaUser": quota_user @@ -34829,81 +35062,81 @@ "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/endpoints/endpoint": endpoint "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/fingerprint": fingerprint "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/resourceName": resource_name +"/runtimeconfig:v1/quotaUser": quota_user "/runtimeconfig:v1/fields": fields "/runtimeconfig:v1/key": key -"/runtimeconfig:v1/quotaUser": quota_user "/runtimeconfig:v1/runtimeconfig.operations.cancel": cancel_operation "/runtimeconfig:v1/runtimeconfig.operations.cancel/name": name "/runtimeconfig:v1/runtimeconfig.operations.delete": delete_operation "/runtimeconfig:v1/runtimeconfig.operations.delete/name": name "/runtimeconfig:v1/runtimeconfig.operations.list": list_operations -"/runtimeconfig:v1/runtimeconfig.operations.list/name": name -"/runtimeconfig:v1/runtimeconfig.operations.list/pageToken": page_token "/runtimeconfig:v1/runtimeconfig.operations.list/pageSize": page_size "/runtimeconfig:v1/runtimeconfig.operations.list/filter": filter +"/runtimeconfig:v1/runtimeconfig.operations.list/pageToken": page_token +"/runtimeconfig:v1/runtimeconfig.operations.list/name": name +"/runtimeconfig:v1/CancelOperationRequest": cancel_operation_request "/runtimeconfig:v1/Status": status +"/runtimeconfig:v1/Status/message": message "/runtimeconfig:v1/Status/details": details "/runtimeconfig:v1/Status/details/detail": detail "/runtimeconfig:v1/Status/details/detail/detail": detail "/runtimeconfig:v1/Status/code": code -"/runtimeconfig:v1/Status/message": message -"/runtimeconfig:v1/ListOperationsResponse": list_operations_response -"/runtimeconfig:v1/ListOperationsResponse/nextPageToken": next_page_token -"/runtimeconfig:v1/ListOperationsResponse/operations": operations -"/runtimeconfig:v1/ListOperationsResponse/operations/operation": operation "/runtimeconfig:v1/Operation": operation +"/runtimeconfig:v1/Operation/metadata": metadata +"/runtimeconfig:v1/Operation/metadata/metadatum": metadatum "/runtimeconfig:v1/Operation/done": done "/runtimeconfig:v1/Operation/response": response "/runtimeconfig:v1/Operation/response/response": response "/runtimeconfig:v1/Operation/name": name "/runtimeconfig:v1/Operation/error": error -"/runtimeconfig:v1/Operation/metadata": metadata -"/runtimeconfig:v1/Operation/metadata/metadatum": metadatum +"/runtimeconfig:v1/ListOperationsResponse": list_operations_response +"/runtimeconfig:v1/ListOperationsResponse/nextPageToken": next_page_token +"/runtimeconfig:v1/ListOperationsResponse/operations": operations +"/runtimeconfig:v1/ListOperationsResponse/operations/operation": operation "/runtimeconfig:v1/Empty": empty -"/runtimeconfig:v1/CancelOperationRequest": cancel_operation_request -"/script:v1/key": key "/script:v1/quotaUser": quota_user "/script:v1/fields": fields +"/script:v1/key": key "/script:v1/script.scripts.run": run_script "/script:v1/script.scripts.run/scriptId": script_id -"/script:v1/ScriptStackTraceElement": script_stack_trace_element -"/script:v1/ScriptStackTraceElement/lineNumber": line_number -"/script:v1/ScriptStackTraceElement/function": function -"/script:v1/ExecutionError": execution_error -"/script:v1/ExecutionError/scriptStackTraceElements": script_stack_trace_elements -"/script:v1/ExecutionError/scriptStackTraceElements/script_stack_trace_element": script_stack_trace_element -"/script:v1/ExecutionError/errorType": error_type -"/script:v1/ExecutionError/errorMessage": error_message -"/script:v1/Status": status -"/script:v1/Status/message": message -"/script:v1/Status/details": details -"/script:v1/Status/details/detail": detail -"/script:v1/Status/details/detail/detail": detail -"/script:v1/Status/code": code -"/script:v1/ExecutionRequest": execution_request -"/script:v1/ExecutionRequest/function": function -"/script:v1/ExecutionRequest/devMode": dev_mode -"/script:v1/ExecutionRequest/parameters": parameters -"/script:v1/ExecutionRequest/parameters/parameter": parameter -"/script:v1/ExecutionRequest/sessionState": session_state "/script:v1/JoinAsyncRequest": join_async_request -"/script:v1/JoinAsyncRequest/names": names -"/script:v1/JoinAsyncRequest/names/name": name "/script:v1/JoinAsyncRequest/timeout": timeout "/script:v1/JoinAsyncRequest/scriptId": script_id +"/script:v1/JoinAsyncRequest/names": names +"/script:v1/JoinAsyncRequest/names/name": name "/script:v1/ExecutionResponse": execution_response "/script:v1/ExecutionResponse/result": result +"/script:v1/JoinAsyncResponse": join_async_response +"/script:v1/JoinAsyncResponse/results": results +"/script:v1/JoinAsyncResponse/results/result": result "/script:v1/Operation": operation +"/script:v1/Operation/done": done "/script:v1/Operation/response": response "/script:v1/Operation/response/response": response "/script:v1/Operation/name": name "/script:v1/Operation/error": error "/script:v1/Operation/metadata": metadata "/script:v1/Operation/metadata/metadatum": metadatum -"/script:v1/Operation/done": done -"/script:v1/JoinAsyncResponse": join_async_response -"/script:v1/JoinAsyncResponse/results": results -"/script:v1/JoinAsyncResponse/results/result": result +"/script:v1/ScriptStackTraceElement": script_stack_trace_element +"/script:v1/ScriptStackTraceElement/function": function +"/script:v1/ScriptStackTraceElement/lineNumber": line_number +"/script:v1/ExecutionError": execution_error +"/script:v1/ExecutionError/errorType": error_type +"/script:v1/ExecutionError/errorMessage": error_message +"/script:v1/ExecutionError/scriptStackTraceElements": script_stack_trace_elements +"/script:v1/ExecutionError/scriptStackTraceElements/script_stack_trace_element": script_stack_trace_element +"/script:v1/Status": status +"/script:v1/Status/details": details +"/script:v1/Status/details/detail": detail +"/script:v1/Status/details/detail/detail": detail +"/script:v1/Status/code": code +"/script:v1/Status/message": message +"/script:v1/ExecutionRequest": execution_request +"/script:v1/ExecutionRequest/devMode": dev_mode +"/script:v1/ExecutionRequest/function": function +"/script:v1/ExecutionRequest/parameters": parameters +"/script:v1/ExecutionRequest/parameters/parameter": parameter +"/script:v1/ExecutionRequest/sessionState": session_state "/searchconsole:v1/fields": fields "/searchconsole:v1/key": key "/searchconsole:v1/quotaUser": quota_user @@ -34929,13 +35162,11 @@ "/searchconsole:v1/Image/mimeType": mime_type "/searchconsole:v1/Image/data": data "/searchconsole:v1/RunMobileFriendlyTestRequest": run_mobile_friendly_test_request -"/searchconsole:v1/RunMobileFriendlyTestRequest/url": url "/searchconsole:v1/RunMobileFriendlyTestRequest/requestScreenshot": request_screenshot +"/searchconsole:v1/RunMobileFriendlyTestRequest/url": url +"/servicecontrol:v1/fields": fields "/servicecontrol:v1/key": key "/servicecontrol:v1/quotaUser": quota_user -"/servicecontrol:v1/fields": fields -"/servicecontrol:v1/servicecontrol.services.releaseQuota": release_service_quota -"/servicecontrol:v1/servicecontrol.services.releaseQuota/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.endReconciliation": end_service_reconciliation "/servicecontrol:v1/servicecontrol.services.endReconciliation/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.report": report_service @@ -34946,179 +35177,52 @@ "/servicecontrol:v1/servicecontrol.services.startReconciliation/serviceName": service_name "/servicecontrol:v1/servicecontrol.services.check": check_service "/servicecontrol:v1/servicecontrol.services.check/serviceName": service_name -"/servicecontrol:v1/RequestMetadata": request_metadata -"/servicecontrol:v1/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent -"/servicecontrol:v1/RequestMetadata/callerIp": caller_ip -"/servicecontrol:v1/QuotaError": quota_error -"/servicecontrol:v1/QuotaError/description": description -"/servicecontrol:v1/QuotaError/subject": subject -"/servicecontrol:v1/QuotaError/code": code -"/servicecontrol:v1/CheckInfo": check_info -"/servicecontrol:v1/CheckInfo/unusedArguments": unused_arguments -"/servicecontrol:v1/CheckInfo/unusedArguments/unused_argument": unused_argument -"/servicecontrol:v1/AllocateQuotaRequest": allocate_quota_request -"/servicecontrol:v1/AllocateQuotaRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/AllocateQuotaRequest/allocateOperation": allocate_operation -"/servicecontrol:v1/AllocateQuotaRequest/allocationMode": allocation_mode -"/servicecontrol:v1/ReleaseQuotaResponse": release_quota_response -"/servicecontrol:v1/ReleaseQuotaResponse/quotaMetrics": quota_metrics -"/servicecontrol:v1/ReleaseQuotaResponse/quotaMetrics/quota_metric": quota_metric -"/servicecontrol:v1/ReleaseQuotaResponse/operationId": operation_id -"/servicecontrol:v1/ReleaseQuotaResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/ReleaseQuotaResponse/releaseErrors": release_errors -"/servicecontrol:v1/ReleaseQuotaResponse/releaseErrors/release_error": release_error -"/servicecontrol:v1/MetricValueSet": metric_value_set -"/servicecontrol:v1/MetricValueSet/metricName": metric_name -"/servicecontrol:v1/MetricValueSet/metricValues": metric_values -"/servicecontrol:v1/MetricValueSet/metricValues/metric_value": metric_value -"/servicecontrol:v1/ReportError": report_error -"/servicecontrol:v1/ReportError/operationId": operation_id -"/servicecontrol:v1/ReportError/status": status -"/servicecontrol:v1/StartReconciliationRequest": start_reconciliation_request -"/servicecontrol:v1/StartReconciliationRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/StartReconciliationRequest/reconciliationOperation": reconciliation_operation -"/servicecontrol:v1/CheckError": check_error -"/servicecontrol:v1/CheckError/code": code -"/servicecontrol:v1/CheckError/detail": detail -"/servicecontrol:v1/QuotaInfo": quota_info -"/servicecontrol:v1/QuotaInfo/limitExceeded": limit_exceeded -"/servicecontrol:v1/QuotaInfo/limitExceeded/limit_exceeded": limit_exceeded -"/servicecontrol:v1/QuotaInfo/quotaConsumed": quota_consumed -"/servicecontrol:v1/QuotaInfo/quotaConsumed/quota_consumed": quota_consumed -"/servicecontrol:v1/QuotaInfo/quotaMetrics": quota_metrics -"/servicecontrol:v1/QuotaInfo/quotaMetrics/quota_metric": quota_metric -"/servicecontrol:v1/CheckRequest": check_request -"/servicecontrol:v1/CheckRequest/requestProjectSettings": request_project_settings -"/servicecontrol:v1/CheckRequest/operation": operation -"/servicecontrol:v1/CheckRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/CheckRequest/skipActivationCheck": skip_activation_check -"/servicecontrol:v1/QuotaOperation": quota_operation -"/servicecontrol:v1/QuotaOperation/labels": labels -"/servicecontrol:v1/QuotaOperation/labels/label": label -"/servicecontrol:v1/QuotaOperation/consumerId": consumer_id -"/servicecontrol:v1/QuotaOperation/operationId": operation_id -"/servicecontrol:v1/QuotaOperation/methodName": method_name -"/servicecontrol:v1/QuotaOperation/quotaMode": quota_mode -"/servicecontrol:v1/QuotaOperation/quotaMetrics": quota_metrics -"/servicecontrol:v1/QuotaOperation/quotaMetrics/quota_metric": quota_metric -"/servicecontrol:v1/EndReconciliationRequest": end_reconciliation_request -"/servicecontrol:v1/EndReconciliationRequest/reconciliationOperation": reconciliation_operation -"/servicecontrol:v1/EndReconciliationRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/ReportInfo": report_info -"/servicecontrol:v1/ReportInfo/operationId": operation_id -"/servicecontrol:v1/ReportInfo/quotaInfo": quota_info -"/servicecontrol:v1/ReportResponse": report_response -"/servicecontrol:v1/ReportResponse/reportErrors": report_errors -"/servicecontrol:v1/ReportResponse/reportErrors/report_error": report_error -"/servicecontrol:v1/ReportResponse/reportInfos": report_infos -"/servicecontrol:v1/ReportResponse/reportInfos/report_info": report_info -"/servicecontrol:v1/ReportResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/Operation": operation -"/servicecontrol:v1/Operation/metricValueSets": metric_value_sets -"/servicecontrol:v1/Operation/metricValueSets/metric_value_set": metric_value_set -"/servicecontrol:v1/Operation/quotaProperties": quota_properties -"/servicecontrol:v1/Operation/consumerId": consumer_id -"/servicecontrol:v1/Operation/operationId": operation_id -"/servicecontrol:v1/Operation/operationName": operation_name -"/servicecontrol:v1/Operation/endTime": end_time -"/servicecontrol:v1/Operation/startTime": start_time -"/servicecontrol:v1/Operation/importance": importance -"/servicecontrol:v1/Operation/resourceContainer": resource_container -"/servicecontrol:v1/Operation/labels": labels -"/servicecontrol:v1/Operation/labels/label": label -"/servicecontrol:v1/Operation/logEntries": log_entries -"/servicecontrol:v1/Operation/logEntries/log_entry": log_entry -"/servicecontrol:v1/Operation/userLabels": user_labels -"/servicecontrol:v1/Operation/userLabels/user_label": user_label -"/servicecontrol:v1/CheckResponse": check_response -"/servicecontrol:v1/CheckResponse/checkInfo": check_info -"/servicecontrol:v1/CheckResponse/checkErrors": check_errors -"/servicecontrol:v1/CheckResponse/checkErrors/check_error": check_error -"/servicecontrol:v1/CheckResponse/operationId": operation_id -"/servicecontrol:v1/CheckResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/CheckResponse/quotaInfo": quota_info -"/servicecontrol:v1/Status": status -"/servicecontrol:v1/Status/message": message -"/servicecontrol:v1/Status/details": details -"/servicecontrol:v1/Status/details/detail": detail -"/servicecontrol:v1/Status/details/detail/detail": detail -"/servicecontrol:v1/Status/code": code -"/servicecontrol:v1/ReportRequest": report_request -"/servicecontrol:v1/ReportRequest/serviceConfigId": service_config_id -"/servicecontrol:v1/ReportRequest/operations": operations -"/servicecontrol:v1/ReportRequest/operations/operation": operation -"/servicecontrol:v1/AuditLog": audit_log -"/servicecontrol:v1/AuditLog/authorizationInfo": authorization_info -"/servicecontrol:v1/AuditLog/authorizationInfo/authorization_info": authorization_info -"/servicecontrol:v1/AuditLog/resourceName": resource_name -"/servicecontrol:v1/AuditLog/request": request -"/servicecontrol:v1/AuditLog/request/request": request -"/servicecontrol:v1/AuditLog/serviceData": service_data -"/servicecontrol:v1/AuditLog/serviceData/service_datum": service_datum -"/servicecontrol:v1/AuditLog/requestMetadata": request_metadata -"/servicecontrol:v1/AuditLog/numResponseItems": num_response_items -"/servicecontrol:v1/AuditLog/authenticationInfo": authentication_info -"/servicecontrol:v1/AuditLog/status": status -"/servicecontrol:v1/AuditLog/response": response -"/servicecontrol:v1/AuditLog/response/response": response -"/servicecontrol:v1/AuditLog/serviceName": service_name -"/servicecontrol:v1/AuditLog/methodName": method_name -"/servicecontrol:v1/LogEntry": log_entry -"/servicecontrol:v1/LogEntry/labels": labels -"/servicecontrol:v1/LogEntry/labels/label": label -"/servicecontrol:v1/LogEntry/severity": severity -"/servicecontrol:v1/LogEntry/name": name -"/servicecontrol:v1/LogEntry/insertId": insert_id -"/servicecontrol:v1/LogEntry/structPayload": struct_payload -"/servicecontrol:v1/LogEntry/structPayload/struct_payload": struct_payload -"/servicecontrol:v1/LogEntry/textPayload": text_payload -"/servicecontrol:v1/LogEntry/protoPayload": proto_payload -"/servicecontrol:v1/LogEntry/protoPayload/proto_payload": proto_payload -"/servicecontrol:v1/LogEntry/timestamp": timestamp +"/servicecontrol:v1/servicecontrol.services.releaseQuota": release_service_quota +"/servicecontrol:v1/servicecontrol.services.releaseQuota/serviceName": service_name "/servicecontrol:v1/MetricValue": metric_value -"/servicecontrol:v1/MetricValue/doubleValue": double_value -"/servicecontrol:v1/MetricValue/int64Value": int64_value "/servicecontrol:v1/MetricValue/distributionValue": distribution_value "/servicecontrol:v1/MetricValue/boolValue": bool_value "/servicecontrol:v1/MetricValue/endTime": end_time "/servicecontrol:v1/MetricValue/startTime": start_time "/servicecontrol:v1/MetricValue/moneyValue": money_value -"/servicecontrol:v1/MetricValue/stringValue": string_value "/servicecontrol:v1/MetricValue/labels": labels "/servicecontrol:v1/MetricValue/labels/label": label +"/servicecontrol:v1/MetricValue/stringValue": string_value +"/servicecontrol:v1/MetricValue/doubleValue": double_value +"/servicecontrol:v1/MetricValue/int64Value": int64_value "/servicecontrol:v1/EndReconciliationResponse": end_reconciliation_response +"/servicecontrol:v1/EndReconciliationResponse/quotaMetrics": quota_metrics +"/servicecontrol:v1/EndReconciliationResponse/quotaMetrics/quota_metric": quota_metric "/servicecontrol:v1/EndReconciliationResponse/reconciliationErrors": reconciliation_errors "/servicecontrol:v1/EndReconciliationResponse/reconciliationErrors/reconciliation_error": reconciliation_error "/servicecontrol:v1/EndReconciliationResponse/operationId": operation_id "/servicecontrol:v1/EndReconciliationResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/EndReconciliationResponse/quotaMetrics": quota_metrics -"/servicecontrol:v1/EndReconciliationResponse/quotaMetrics/quota_metric": quota_metric "/servicecontrol:v1/Money": money +"/servicecontrol:v1/Money/currencyCode": currency_code "/servicecontrol:v1/Money/nanos": nanos "/servicecontrol:v1/Money/units": units -"/servicecontrol:v1/Money/currencyCode": currency_code -"/servicecontrol:v1/ExplicitBuckets": explicit_buckets -"/servicecontrol:v1/ExplicitBuckets/bounds": bounds -"/servicecontrol:v1/ExplicitBuckets/bounds/bound": bound "/servicecontrol:v1/Distribution": distribution -"/servicecontrol:v1/Distribution/maximum": maximum -"/servicecontrol:v1/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation -"/servicecontrol:v1/Distribution/exponentialBuckets": exponential_buckets -"/servicecontrol:v1/Distribution/linearBuckets": linear_buckets -"/servicecontrol:v1/Distribution/minimum": minimum "/servicecontrol:v1/Distribution/count": count "/servicecontrol:v1/Distribution/mean": mean "/servicecontrol:v1/Distribution/bucketCounts": bucket_counts "/servicecontrol:v1/Distribution/bucketCounts/bucket_count": bucket_count "/servicecontrol:v1/Distribution/explicitBuckets": explicit_buckets +"/servicecontrol:v1/Distribution/maximum": maximum +"/servicecontrol:v1/Distribution/sumOfSquaredDeviation": sum_of_squared_deviation +"/servicecontrol:v1/Distribution/exponentialBuckets": exponential_buckets +"/servicecontrol:v1/Distribution/minimum": minimum +"/servicecontrol:v1/Distribution/linearBuckets": linear_buckets +"/servicecontrol:v1/ExplicitBuckets": explicit_buckets +"/servicecontrol:v1/ExplicitBuckets/bounds": bounds +"/servicecontrol:v1/ExplicitBuckets/bounds/bound": bound "/servicecontrol:v1/ExponentialBuckets": exponential_buckets "/servicecontrol:v1/ExponentialBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/ExponentialBuckets/growthFactor": growth_factor "/servicecontrol:v1/ExponentialBuckets/scale": scale "/servicecontrol:v1/AuthorizationInfo": authorization_info +"/servicecontrol:v1/AuthorizationInfo/permission": permission "/servicecontrol:v1/AuthorizationInfo/resource": resource "/servicecontrol:v1/AuthorizationInfo/granted": granted -"/servicecontrol:v1/AuthorizationInfo/permission": permission "/servicecontrol:v1/StartReconciliationResponse": start_reconciliation_response "/servicecontrol:v1/StartReconciliationResponse/quotaMetrics": quota_metrics "/servicecontrol:v1/StartReconciliationResponse/quotaMetrics/quota_metric": quota_metric @@ -35131,37 +35235,170 @@ "/servicecontrol:v1/QuotaProperties/limitByIds/limit_by_id": limit_by_id "/servicecontrol:v1/QuotaProperties/quotaMode": quota_mode "/servicecontrol:v1/LinearBuckets": linear_buckets -"/servicecontrol:v1/LinearBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/LinearBuckets/width": width "/servicecontrol:v1/LinearBuckets/offset": offset +"/servicecontrol:v1/LinearBuckets/numFiniteBuckets": num_finite_buckets "/servicecontrol:v1/AuthenticationInfo": authentication_info "/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email "/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector "/servicecontrol:v1/AllocateQuotaResponse": allocate_quota_response +"/servicecontrol:v1/AllocateQuotaResponse/allocateErrors": allocate_errors +"/servicecontrol:v1/AllocateQuotaResponse/allocateErrors/allocate_error": allocate_error "/servicecontrol:v1/AllocateQuotaResponse/quotaMetrics": quota_metrics "/servicecontrol:v1/AllocateQuotaResponse/quotaMetrics/quota_metric": quota_metric "/servicecontrol:v1/AllocateQuotaResponse/operationId": operation_id "/servicecontrol:v1/AllocateQuotaResponse/serviceConfigId": service_config_id -"/servicecontrol:v1/AllocateQuotaResponse/allocateErrors": allocate_errors -"/servicecontrol:v1/AllocateQuotaResponse/allocateErrors/allocate_error": allocate_error "/servicecontrol:v1/ReleaseQuotaRequest": release_quota_request "/servicecontrol:v1/ReleaseQuotaRequest/serviceConfigId": service_config_id "/servicecontrol:v1/ReleaseQuotaRequest/releaseOperation": release_operation -"/servicemanagement:v1/fields": fields +"/servicecontrol:v1/QuotaError": quota_error +"/servicecontrol:v1/QuotaError/description": description +"/servicecontrol:v1/QuotaError/subject": subject +"/servicecontrol:v1/QuotaError/code": code +"/servicecontrol:v1/RequestMetadata": request_metadata +"/servicecontrol:v1/RequestMetadata/callerIp": caller_ip +"/servicecontrol:v1/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent +"/servicecontrol:v1/CheckInfo": check_info +"/servicecontrol:v1/CheckInfo/unusedArguments": unused_arguments +"/servicecontrol:v1/CheckInfo/unusedArguments/unused_argument": unused_argument +"/servicecontrol:v1/ReleaseQuotaResponse": release_quota_response +"/servicecontrol:v1/ReleaseQuotaResponse/releaseErrors": release_errors +"/servicecontrol:v1/ReleaseQuotaResponse/releaseErrors/release_error": release_error +"/servicecontrol:v1/ReleaseQuotaResponse/quotaMetrics": quota_metrics +"/servicecontrol:v1/ReleaseQuotaResponse/quotaMetrics/quota_metric": quota_metric +"/servicecontrol:v1/ReleaseQuotaResponse/operationId": operation_id +"/servicecontrol:v1/ReleaseQuotaResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/AllocateQuotaRequest": allocate_quota_request +"/servicecontrol:v1/AllocateQuotaRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/AllocateQuotaRequest/allocateOperation": allocate_operation +"/servicecontrol:v1/AllocateQuotaRequest/allocationMode": allocation_mode +"/servicecontrol:v1/MetricValueSet": metric_value_set +"/servicecontrol:v1/MetricValueSet/metricValues": metric_values +"/servicecontrol:v1/MetricValueSet/metricValues/metric_value": metric_value +"/servicecontrol:v1/MetricValueSet/metricName": metric_name +"/servicecontrol:v1/ReportError": report_error +"/servicecontrol:v1/ReportError/status": status +"/servicecontrol:v1/ReportError/operationId": operation_id +"/servicecontrol:v1/StartReconciliationRequest": start_reconciliation_request +"/servicecontrol:v1/StartReconciliationRequest/reconciliationOperation": reconciliation_operation +"/servicecontrol:v1/StartReconciliationRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/CheckError": check_error +"/servicecontrol:v1/CheckError/detail": detail +"/servicecontrol:v1/CheckError/code": code +"/servicecontrol:v1/QuotaInfo": quota_info +"/servicecontrol:v1/QuotaInfo/quotaConsumed": quota_consumed +"/servicecontrol:v1/QuotaInfo/quotaConsumed/quota_consumed": quota_consumed +"/servicecontrol:v1/QuotaInfo/quotaMetrics": quota_metrics +"/servicecontrol:v1/QuotaInfo/quotaMetrics/quota_metric": quota_metric +"/servicecontrol:v1/QuotaInfo/limitExceeded": limit_exceeded +"/servicecontrol:v1/QuotaInfo/limitExceeded/limit_exceeded": limit_exceeded +"/servicecontrol:v1/CheckRequest": check_request +"/servicecontrol:v1/CheckRequest/skipActivationCheck": skip_activation_check +"/servicecontrol:v1/CheckRequest/requestProjectSettings": request_project_settings +"/servicecontrol:v1/CheckRequest/operation": operation +"/servicecontrol:v1/CheckRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/QuotaOperation": quota_operation +"/servicecontrol:v1/QuotaOperation/quotaMetrics": quota_metrics +"/servicecontrol:v1/QuotaOperation/quotaMetrics/quota_metric": quota_metric +"/servicecontrol:v1/QuotaOperation/labels": labels +"/servicecontrol:v1/QuotaOperation/labels/label": label +"/servicecontrol:v1/QuotaOperation/consumerId": consumer_id +"/servicecontrol:v1/QuotaOperation/operationId": operation_id +"/servicecontrol:v1/QuotaOperation/quotaMode": quota_mode +"/servicecontrol:v1/QuotaOperation/methodName": method_name +"/servicecontrol:v1/EndReconciliationRequest": end_reconciliation_request +"/servicecontrol:v1/EndReconciliationRequest/reconciliationOperation": reconciliation_operation +"/servicecontrol:v1/EndReconciliationRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/ReportInfo": report_info +"/servicecontrol:v1/ReportInfo/operationId": operation_id +"/servicecontrol:v1/ReportInfo/quotaInfo": quota_info +"/servicecontrol:v1/Operation": operation +"/servicecontrol:v1/Operation/importance": importance +"/servicecontrol:v1/Operation/resourceContainer": resource_container +"/servicecontrol:v1/Operation/labels": labels +"/servicecontrol:v1/Operation/labels/label": label +"/servicecontrol:v1/Operation/logEntries": log_entries +"/servicecontrol:v1/Operation/logEntries/log_entry": log_entry +"/servicecontrol:v1/Operation/userLabels": user_labels +"/servicecontrol:v1/Operation/userLabels/user_label": user_label +"/servicecontrol:v1/Operation/metricValueSets": metric_value_sets +"/servicecontrol:v1/Operation/metricValueSets/metric_value_set": metric_value_set +"/servicecontrol:v1/Operation/quotaProperties": quota_properties +"/servicecontrol:v1/Operation/consumerId": consumer_id +"/servicecontrol:v1/Operation/operationId": operation_id +"/servicecontrol:v1/Operation/endTime": end_time +"/servicecontrol:v1/Operation/operationName": operation_name +"/servicecontrol:v1/Operation/startTime": start_time +"/servicecontrol:v1/ReportResponse": report_response +"/servicecontrol:v1/ReportResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/ReportResponse/reportErrors": report_errors +"/servicecontrol:v1/ReportResponse/reportErrors/report_error": report_error +"/servicecontrol:v1/ReportResponse/reportInfos": report_infos +"/servicecontrol:v1/ReportResponse/reportInfos/report_info": report_info +"/servicecontrol:v1/CheckResponse": check_response +"/servicecontrol:v1/CheckResponse/checkInfo": check_info +"/servicecontrol:v1/CheckResponse/checkErrors": check_errors +"/servicecontrol:v1/CheckResponse/checkErrors/check_error": check_error +"/servicecontrol:v1/CheckResponse/operationId": operation_id +"/servicecontrol:v1/CheckResponse/serviceConfigId": service_config_id +"/servicecontrol:v1/CheckResponse/quotaInfo": quota_info +"/servicecontrol:v1/ReportRequest": report_request +"/servicecontrol:v1/ReportRequest/serviceConfigId": service_config_id +"/servicecontrol:v1/ReportRequest/operations": operations +"/servicecontrol:v1/ReportRequest/operations/operation": operation +"/servicecontrol:v1/Status": status +"/servicecontrol:v1/Status/message": message +"/servicecontrol:v1/Status/details": details +"/servicecontrol:v1/Status/details/detail": detail +"/servicecontrol:v1/Status/details/detail/detail": detail +"/servicecontrol:v1/Status/code": code +"/servicecontrol:v1/LogEntry": log_entry +"/servicecontrol:v1/LogEntry/textPayload": text_payload +"/servicecontrol:v1/LogEntry/protoPayload": proto_payload +"/servicecontrol:v1/LogEntry/protoPayload/proto_payload": proto_payload +"/servicecontrol:v1/LogEntry/timestamp": timestamp +"/servicecontrol:v1/LogEntry/labels": labels +"/servicecontrol:v1/LogEntry/labels/label": label +"/servicecontrol:v1/LogEntry/severity": severity +"/servicecontrol:v1/LogEntry/insertId": insert_id +"/servicecontrol:v1/LogEntry/name": name +"/servicecontrol:v1/LogEntry/structPayload": struct_payload +"/servicecontrol:v1/LogEntry/structPayload/struct_payload": struct_payload +"/servicecontrol:v1/AuditLog": audit_log +"/servicecontrol:v1/AuditLog/authorizationInfo": authorization_info +"/servicecontrol:v1/AuditLog/authorizationInfo/authorization_info": authorization_info +"/servicecontrol:v1/AuditLog/resourceName": resource_name +"/servicecontrol:v1/AuditLog/request": request +"/servicecontrol:v1/AuditLog/request/request": request +"/servicecontrol:v1/AuditLog/requestMetadata": request_metadata +"/servicecontrol:v1/AuditLog/serviceData": service_data +"/servicecontrol:v1/AuditLog/serviceData/service_datum": service_datum +"/servicecontrol:v1/AuditLog/numResponseItems": num_response_items +"/servicecontrol:v1/AuditLog/authenticationInfo": authentication_info +"/servicecontrol:v1/AuditLog/status": status +"/servicecontrol:v1/AuditLog/serviceName": service_name +"/servicecontrol:v1/AuditLog/response": response +"/servicecontrol:v1/AuditLog/response/response": response +"/servicecontrol:v1/AuditLog/methodName": method_name "/servicemanagement:v1/key": key "/servicemanagement:v1/quotaUser": quota_user -"/servicemanagement:v1/servicemanagement.operations.list": list_operations -"/servicemanagement:v1/servicemanagement.operations.list/name": name -"/servicemanagement:v1/servicemanagement.operations.list/pageToken": page_token -"/servicemanagement:v1/servicemanagement.operations.list/pageSize": page_size -"/servicemanagement:v1/servicemanagement.operations.list/filter": filter +"/servicemanagement:v1/fields": fields "/servicemanagement:v1/servicemanagement.operations.get": get_operation "/servicemanagement:v1/servicemanagement.operations.get/name": name +"/servicemanagement:v1/servicemanagement.operations.list": list_operations +"/servicemanagement:v1/servicemanagement.operations.list/filter": filter +"/servicemanagement:v1/servicemanagement.operations.list/pageToken": page_token +"/servicemanagement:v1/servicemanagement.operations.list/name": name +"/servicemanagement:v1/servicemanagement.operations.list/pageSize": page_size +"/servicemanagement:v1/servicemanagement.services.getIamPolicy": get_service_iam_policy +"/servicemanagement:v1/servicemanagement.services.getIamPolicy/resource": resource +"/servicemanagement:v1/servicemanagement.services.undelete": undelete_service +"/servicemanagement:v1/servicemanagement.services.undelete/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.list": list_services -"/servicemanagement:v1/servicemanagement.services.list/consumerId": consumer_id -"/servicemanagement:v1/servicemanagement.services.list/pageToken": page_token "/servicemanagement:v1/servicemanagement.services.list/pageSize": page_size "/servicemanagement:v1/servicemanagement.services.list/producerProjectId": producer_project_id +"/servicemanagement:v1/servicemanagement.services.list/consumerId": consumer_id +"/servicemanagement:v1/servicemanagement.services.list/pageToken": page_token "/servicemanagement:v1/servicemanagement.services.create": create_service "/servicemanagement:v1/servicemanagement.services.generateConfigReport": generate_service_config_report "/servicemanagement:v1/servicemanagement.services.get": get_service @@ -35171,106 +35408,399 @@ "/servicemanagement:v1/servicemanagement.services.getConfig/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.getConfig/configId": config_id "/servicemanagement:v1/servicemanagement.services.getConfig/view": view -"/servicemanagement:v1/servicemanagement.services.enable": enable_service -"/servicemanagement:v1/servicemanagement.services.enable/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.delete": delete_service "/servicemanagement:v1/servicemanagement.services.delete/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.enable": enable_service +"/servicemanagement:v1/servicemanagement.services.enable/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.setIamPolicy": set_service_iam_policy "/servicemanagement:v1/servicemanagement.services.setIamPolicy/resource": resource "/servicemanagement:v1/servicemanagement.services.disable": disable_service "/servicemanagement:v1/servicemanagement.services.disable/serviceName": service_name -"/servicemanagement:v1/servicemanagement.services.getIamPolicy": get_service_iam_policy -"/servicemanagement:v1/servicemanagement.services.getIamPolicy/resource": resource -"/servicemanagement:v1/servicemanagement.services.undelete": undelete_service -"/servicemanagement:v1/servicemanagement.services.undelete/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.consumers.testIamPermissions": test_consumer_iam_permissions +"/servicemanagement:v1/servicemanagement.services.consumers.testIamPermissions/resource": resource "/servicemanagement:v1/servicemanagement.services.consumers.getIamPolicy": get_consumer_iam_policy "/servicemanagement:v1/servicemanagement.services.consumers.getIamPolicy/resource": resource "/servicemanagement:v1/servicemanagement.services.consumers.setIamPolicy": set_consumer_iam_policy "/servicemanagement:v1/servicemanagement.services.consumers.setIamPolicy/resource": resource -"/servicemanagement:v1/servicemanagement.services.consumers.testIamPermissions": test_consumer_iam_permissions -"/servicemanagement:v1/servicemanagement.services.consumers.testIamPermissions/resource": resource -"/servicemanagement:v1/servicemanagement.services.rollouts.list": list_service_rollouts -"/servicemanagement:v1/servicemanagement.services.rollouts.list/pageSize": page_size -"/servicemanagement:v1/servicemanagement.services.rollouts.list/filter": filter -"/servicemanagement:v1/servicemanagement.services.rollouts.list/serviceName": service_name -"/servicemanagement:v1/servicemanagement.services.rollouts.list/pageToken": page_token "/servicemanagement:v1/servicemanagement.services.rollouts.get": get_service_rollout "/servicemanagement:v1/servicemanagement.services.rollouts.get/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.rollouts.get/rolloutId": rollout_id +"/servicemanagement:v1/servicemanagement.services.rollouts.list": list_service_rollouts +"/servicemanagement:v1/servicemanagement.services.rollouts.list/filter": filter +"/servicemanagement:v1/servicemanagement.services.rollouts.list/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.rollouts.list/pageToken": page_token +"/servicemanagement:v1/servicemanagement.services.rollouts.list/pageSize": page_size "/servicemanagement:v1/servicemanagement.services.rollouts.create": create_service_rollout "/servicemanagement:v1/servicemanagement.services.rollouts.create/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.configs.get": get_service_config +"/servicemanagement:v1/servicemanagement.services.configs.get/serviceName": service_name +"/servicemanagement:v1/servicemanagement.services.configs.get/configId": config_id +"/servicemanagement:v1/servicemanagement.services.configs.get/view": view "/servicemanagement:v1/servicemanagement.services.configs.list": list_service_configs "/servicemanagement:v1/servicemanagement.services.configs.list/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.configs.list/pageToken": page_token "/servicemanagement:v1/servicemanagement.services.configs.list/pageSize": page_size -"/servicemanagement:v1/servicemanagement.services.configs.get": get_service_config -"/servicemanagement:v1/servicemanagement.services.configs.get/configId": config_id -"/servicemanagement:v1/servicemanagement.services.configs.get/view": view -"/servicemanagement:v1/servicemanagement.services.configs.get/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.configs.create": create_service_config "/servicemanagement:v1/servicemanagement.services.configs.create/serviceName": service_name "/servicemanagement:v1/servicemanagement.services.configs.submit": submit_config_source "/servicemanagement:v1/servicemanagement.services.configs.submit/serviceName": service_name +"/servicemanagement:v1/ConfigChange": config_change +"/servicemanagement:v1/ConfigChange/changeType": change_type +"/servicemanagement:v1/ConfigChange/element": element +"/servicemanagement:v1/ConfigChange/advices": advices +"/servicemanagement:v1/ConfigChange/advices/advice": advice +"/servicemanagement:v1/ConfigChange/oldValue": old_value +"/servicemanagement:v1/ConfigChange/newValue": new_value +"/servicemanagement:v1/SystemParameters": system_parameters +"/servicemanagement:v1/SystemParameters/rules": rules +"/servicemanagement:v1/SystemParameters/rules/rule": rule +"/servicemanagement:v1/Rollout": rollout +"/servicemanagement:v1/Rollout/status": status +"/servicemanagement:v1/Rollout/serviceName": service_name +"/servicemanagement:v1/Rollout/createdBy": created_by +"/servicemanagement:v1/Rollout/trafficPercentStrategy": traffic_percent_strategy +"/servicemanagement:v1/Rollout/rolloutId": rollout_id +"/servicemanagement:v1/Rollout/deleteServiceStrategy": delete_service_strategy +"/servicemanagement:v1/Rollout/createTime": create_time +"/servicemanagement:v1/Quota": quota +"/servicemanagement:v1/Quota/limits": limits +"/servicemanagement:v1/Quota/limits/limit": limit +"/servicemanagement:v1/Quota/metricRules": metric_rules +"/servicemanagement:v1/Quota/metricRules/metric_rule": metric_rule +"/servicemanagement:v1/GenerateConfigReportRequest": generate_config_report_request +"/servicemanagement:v1/GenerateConfigReportRequest/oldConfig": old_config +"/servicemanagement:v1/GenerateConfigReportRequest/oldConfig/old_config": old_config +"/servicemanagement:v1/GenerateConfigReportRequest/newConfig": new_config +"/servicemanagement:v1/GenerateConfigReportRequest/newConfig/new_config": new_config +"/servicemanagement:v1/SetIamPolicyRequest": set_iam_policy_request +"/servicemanagement:v1/SetIamPolicyRequest/updateMask": update_mask +"/servicemanagement:v1/SetIamPolicyRequest/policy": policy +"/servicemanagement:v1/DeleteServiceStrategy": delete_service_strategy +"/servicemanagement:v1/Step": step +"/servicemanagement:v1/Step/status": status +"/servicemanagement:v1/Step/description": description +"/servicemanagement:v1/LoggingDestination": logging_destination +"/servicemanagement:v1/LoggingDestination/logs": logs +"/servicemanagement:v1/LoggingDestination/logs/log": log +"/servicemanagement:v1/LoggingDestination/monitoredResource": monitored_resource +"/servicemanagement:v1/Option": option +"/servicemanagement:v1/Option/value": value +"/servicemanagement:v1/Option/value/value": value +"/servicemanagement:v1/Option/name": name +"/servicemanagement:v1/Logging": logging +"/servicemanagement:v1/Logging/consumerDestinations": consumer_destinations +"/servicemanagement:v1/Logging/consumerDestinations/consumer_destination": consumer_destination +"/servicemanagement:v1/Logging/producerDestinations": producer_destinations +"/servicemanagement:v1/Logging/producerDestinations/producer_destination": producer_destination +"/servicemanagement:v1/Method": method_prop +"/servicemanagement:v1/Method/responseStreaming": response_streaming +"/servicemanagement:v1/Method/name": name +"/servicemanagement:v1/Method/requestTypeUrl": request_type_url +"/servicemanagement:v1/Method/requestStreaming": request_streaming +"/servicemanagement:v1/Method/syntax": syntax +"/servicemanagement:v1/Method/responseTypeUrl": response_type_url +"/servicemanagement:v1/Method/options": options +"/servicemanagement:v1/Method/options/option": option +"/servicemanagement:v1/QuotaLimit": quota_limit +"/servicemanagement:v1/QuotaLimit/unit": unit +"/servicemanagement:v1/QuotaLimit/maxLimit": max_limit +"/servicemanagement:v1/QuotaLimit/name": name +"/servicemanagement:v1/QuotaLimit/duration": duration +"/servicemanagement:v1/QuotaLimit/freeTier": free_tier +"/servicemanagement:v1/QuotaLimit/defaultLimit": default_limit +"/servicemanagement:v1/QuotaLimit/displayName": display_name +"/servicemanagement:v1/QuotaLimit/description": description +"/servicemanagement:v1/QuotaLimit/metric": metric +"/servicemanagement:v1/QuotaLimit/values": values +"/servicemanagement:v1/QuotaLimit/values/value": value +"/servicemanagement:v1/ConfigRef": config_ref +"/servicemanagement:v1/ConfigRef/name": name +"/servicemanagement:v1/ListServiceRolloutsResponse": list_service_rollouts_response +"/servicemanagement:v1/ListServiceRolloutsResponse/nextPageToken": next_page_token +"/servicemanagement:v1/ListServiceRolloutsResponse/rollouts": rollouts +"/servicemanagement:v1/ListServiceRolloutsResponse/rollouts/rollout": rollout +"/servicemanagement:v1/Mixin": mixin +"/servicemanagement:v1/Mixin/name": name +"/servicemanagement:v1/Mixin/root": root +"/servicemanagement:v1/FlowOperationMetadata": flow_operation_metadata +"/servicemanagement:v1/FlowOperationMetadata/deadline": deadline +"/servicemanagement:v1/FlowOperationMetadata/cancelState": cancel_state +"/servicemanagement:v1/FlowOperationMetadata/startTime": start_time +"/servicemanagement:v1/FlowOperationMetadata/resourceNames": resource_names +"/servicemanagement:v1/FlowOperationMetadata/resourceNames/resource_name": resource_name +"/servicemanagement:v1/FlowOperationMetadata/flowName": flow_name +"/servicemanagement:v1/CustomError": custom_error +"/servicemanagement:v1/CustomError/rules": rules +"/servicemanagement:v1/CustomError/rules/rule": rule +"/servicemanagement:v1/CustomError/types": types +"/servicemanagement:v1/CustomError/types/type": type +"/servicemanagement:v1/CounterOptions": counter_options +"/servicemanagement:v1/CounterOptions/field": field +"/servicemanagement:v1/CounterOptions/metric": metric +"/servicemanagement:v1/Http": http +"/servicemanagement:v1/Http/rules": rules +"/servicemanagement:v1/Http/rules/rule": rule +"/servicemanagement:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion +"/servicemanagement:v1/SourceInfo": source_info +"/servicemanagement:v1/SourceInfo/sourceFiles": source_files +"/servicemanagement:v1/SourceInfo/sourceFiles/source_file": source_file +"/servicemanagement:v1/SourceInfo/sourceFiles/source_file/source_file": source_file +"/servicemanagement:v1/Control": control +"/servicemanagement:v1/Control/environment": environment +"/servicemanagement:v1/SystemParameter": system_parameter +"/servicemanagement:v1/SystemParameter/urlQueryParameter": url_query_parameter +"/servicemanagement:v1/SystemParameter/httpHeader": http_header +"/servicemanagement:v1/SystemParameter/name": name +"/servicemanagement:v1/Monitoring": monitoring +"/servicemanagement:v1/Monitoring/consumerDestinations": consumer_destinations +"/servicemanagement:v1/Monitoring/consumerDestinations/consumer_destination": consumer_destination +"/servicemanagement:v1/Monitoring/producerDestinations": producer_destinations +"/servicemanagement:v1/Monitoring/producerDestinations/producer_destination": producer_destination +"/servicemanagement:v1/Field": field +"/servicemanagement:v1/Field/number": number +"/servicemanagement:v1/Field/kind": kind +"/servicemanagement:v1/Field/jsonName": json_name +"/servicemanagement:v1/Field/options": options +"/servicemanagement:v1/Field/options/option": option +"/servicemanagement:v1/Field/oneofIndex": oneof_index +"/servicemanagement:v1/Field/packed": packed +"/servicemanagement:v1/Field/cardinality": cardinality +"/servicemanagement:v1/Field/defaultValue": default_value +"/servicemanagement:v1/Field/name": name +"/servicemanagement:v1/Field/typeUrl": type_url +"/servicemanagement:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/servicemanagement:v1/TestIamPermissionsRequest/permissions": permissions +"/servicemanagement:v1/TestIamPermissionsRequest/permissions/permission": permission +"/servicemanagement:v1/Enum": enum +"/servicemanagement:v1/Enum/options": options +"/servicemanagement:v1/Enum/options/option": option +"/servicemanagement:v1/Enum/syntax": syntax +"/servicemanagement:v1/Enum/sourceContext": source_context +"/servicemanagement:v1/Enum/enumvalue": enumvalue +"/servicemanagement:v1/Enum/enumvalue/enumvalue": enumvalue +"/servicemanagement:v1/Enum/name": name +"/servicemanagement:v1/LabelDescriptor": label_descriptor +"/servicemanagement:v1/LabelDescriptor/valueType": value_type +"/servicemanagement:v1/LabelDescriptor/key": key +"/servicemanagement:v1/LabelDescriptor/description": description +"/servicemanagement:v1/Diagnostic": diagnostic +"/servicemanagement:v1/Diagnostic/kind": kind +"/servicemanagement:v1/Diagnostic/message": message +"/servicemanagement:v1/Diagnostic/location": location +"/servicemanagement:v1/EnableServiceRequest": enable_service_request +"/servicemanagement:v1/EnableServiceRequest/consumerId": consumer_id +"/servicemanagement:v1/Type": type +"/servicemanagement:v1/Type/fields": fields +"/servicemanagement:v1/Type/fields/field": field +"/servicemanagement:v1/Type/name": name +"/servicemanagement:v1/Type/oneofs": oneofs +"/servicemanagement:v1/Type/oneofs/oneof": oneof +"/servicemanagement:v1/Type/syntax": syntax +"/servicemanagement:v1/Type/sourceContext": source_context +"/servicemanagement:v1/Type/options": options +"/servicemanagement:v1/Type/options/option": option +"/servicemanagement:v1/GenerateConfigReportResponse": generate_config_report_response +"/servicemanagement:v1/GenerateConfigReportResponse/diagnostics": diagnostics +"/servicemanagement:v1/GenerateConfigReportResponse/diagnostics/diagnostic": diagnostic +"/servicemanagement:v1/GenerateConfigReportResponse/serviceName": service_name +"/servicemanagement:v1/GenerateConfigReportResponse/changeReports": change_reports +"/servicemanagement:v1/GenerateConfigReportResponse/changeReports/change_report": change_report +"/servicemanagement:v1/GenerateConfigReportResponse/id": id +"/servicemanagement:v1/ListServiceConfigsResponse": list_service_configs_response +"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs": service_configs +"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs/service_config": service_config +"/servicemanagement:v1/ListServiceConfigsResponse/nextPageToken": next_page_token +"/servicemanagement:v1/Experimental": experimental +"/servicemanagement:v1/Experimental/authorization": authorization +"/servicemanagement:v1/Backend": backend +"/servicemanagement:v1/Backend/rules": rules +"/servicemanagement:v1/Backend/rules/rule": rule +"/servicemanagement:v1/AuditConfig": audit_config +"/servicemanagement:v1/AuditConfig/exemptedMembers": exempted_members +"/servicemanagement:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member +"/servicemanagement:v1/AuditConfig/service": service +"/servicemanagement:v1/AuditConfig/auditLogConfigs": audit_log_configs +"/servicemanagement:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/servicemanagement:v1/SubmitConfigSourceRequest": submit_config_source_request +"/servicemanagement:v1/SubmitConfigSourceRequest/configSource": config_source +"/servicemanagement:v1/SubmitConfigSourceRequest/validateOnly": validate_only +"/servicemanagement:v1/DocumentationRule": documentation_rule +"/servicemanagement:v1/DocumentationRule/deprecationDescription": deprecation_description +"/servicemanagement:v1/DocumentationRule/selector": selector +"/servicemanagement:v1/DocumentationRule/description": description +"/servicemanagement:v1/AuthorizationConfig": authorization_config +"/servicemanagement:v1/AuthorizationConfig/provider": provider +"/servicemanagement:v1/CloudAuditOptions": cloud_audit_options +"/servicemanagement:v1/CloudAuditOptions/logName": log_name +"/servicemanagement:v1/CloudAuditOptions/isReadPermissionType": is_read_permission_type +"/servicemanagement:v1/ContextRule": context_rule +"/servicemanagement:v1/ContextRule/selector": selector +"/servicemanagement:v1/ContextRule/provided": provided +"/servicemanagement:v1/ContextRule/provided/provided": provided +"/servicemanagement:v1/ContextRule/requested": requested +"/servicemanagement:v1/ContextRule/requested/requested": requested +"/servicemanagement:v1/MetricDescriptor": metric_descriptor +"/servicemanagement:v1/MetricDescriptor/unit": unit +"/servicemanagement:v1/MetricDescriptor/labels": labels +"/servicemanagement:v1/MetricDescriptor/labels/label": label +"/servicemanagement:v1/MetricDescriptor/name": name +"/servicemanagement:v1/MetricDescriptor/type": type +"/servicemanagement:v1/MetricDescriptor/valueType": value_type +"/servicemanagement:v1/MetricDescriptor/metricKind": metric_kind +"/servicemanagement:v1/MetricDescriptor/description": description +"/servicemanagement:v1/MetricDescriptor/displayName": display_name +"/servicemanagement:v1/SourceContext": source_context +"/servicemanagement:v1/SourceContext/fileName": file_name +"/servicemanagement:v1/Expr": expr +"/servicemanagement:v1/Expr/description": description +"/servicemanagement:v1/Expr/expression": expression +"/servicemanagement:v1/Expr/location": location +"/servicemanagement:v1/Expr/title": title +"/servicemanagement:v1/ListServicesResponse": list_services_response +"/servicemanagement:v1/ListServicesResponse/nextPageToken": next_page_token +"/servicemanagement:v1/ListServicesResponse/services": services +"/servicemanagement:v1/ListServicesResponse/services/service": service +"/servicemanagement:v1/Endpoint": endpoint +"/servicemanagement:v1/Endpoint/features": features +"/servicemanagement:v1/Endpoint/features/feature": feature +"/servicemanagement:v1/Endpoint/apis": apis +"/servicemanagement:v1/Endpoint/apis/api": api +"/servicemanagement:v1/Endpoint/aliases": aliases +"/servicemanagement:v1/Endpoint/aliases/alias": alias +"/servicemanagement:v1/Endpoint/allowCors": allow_cors +"/servicemanagement:v1/Endpoint/name": name +"/servicemanagement:v1/Endpoint/target": target +"/servicemanagement:v1/OAuthRequirements": o_auth_requirements +"/servicemanagement:v1/OAuthRequirements/canonicalScopes": canonical_scopes +"/servicemanagement:v1/Usage": usage +"/servicemanagement:v1/Usage/requirements": requirements +"/servicemanagement:v1/Usage/requirements/requirement": requirement +"/servicemanagement:v1/Usage/producerNotificationChannel": producer_notification_channel +"/servicemanagement:v1/Usage/rules": rules +"/servicemanagement:v1/Usage/rules/rule": rule +"/servicemanagement:v1/GetIamPolicyRequest": get_iam_policy_request +"/servicemanagement:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/servicemanagement:v1/TestIamPermissionsResponse/permissions": permissions +"/servicemanagement:v1/TestIamPermissionsResponse/permissions/permission": permission +"/servicemanagement:v1/Context": context +"/servicemanagement:v1/Context/rules": rules +"/servicemanagement:v1/Context/rules/rule": rule +"/servicemanagement:v1/Rule": rule +"/servicemanagement:v1/Rule/notIn": not_in +"/servicemanagement:v1/Rule/notIn/not_in": not_in +"/servicemanagement:v1/Rule/description": description +"/servicemanagement:v1/Rule/conditions": conditions +"/servicemanagement:v1/Rule/conditions/condition": condition +"/servicemanagement:v1/Rule/logConfig": log_config +"/servicemanagement:v1/Rule/logConfig/log_config": log_config +"/servicemanagement:v1/Rule/in": in +"/servicemanagement:v1/Rule/in/in": in +"/servicemanagement:v1/Rule/permissions": permissions +"/servicemanagement:v1/Rule/permissions/permission": permission +"/servicemanagement:v1/Rule/action": action +"/servicemanagement:v1/LogConfig": log_config +"/servicemanagement:v1/LogConfig/counter": counter +"/servicemanagement:v1/LogConfig/dataAccess": data_access +"/servicemanagement:v1/LogConfig/cloudAudit": cloud_audit +"/servicemanagement:v1/LogDescriptor": log_descriptor +"/servicemanagement:v1/LogDescriptor/labels": labels +"/servicemanagement:v1/LogDescriptor/labels/label": label +"/servicemanagement:v1/LogDescriptor/name": name +"/servicemanagement:v1/LogDescriptor/displayName": display_name +"/servicemanagement:v1/LogDescriptor/description": description +"/servicemanagement:v1/ConfigFile": config_file +"/servicemanagement:v1/ConfigFile/fileType": file_type +"/servicemanagement:v1/ConfigFile/fileContents": file_contents +"/servicemanagement:v1/ConfigFile/filePath": file_path +"/servicemanagement:v1/CustomErrorRule": custom_error_rule +"/servicemanagement:v1/CustomErrorRule/isErrorType": is_error_type +"/servicemanagement:v1/CustomErrorRule/selector": selector +"/servicemanagement:v1/MonitoredResourceDescriptor": monitored_resource_descriptor +"/servicemanagement:v1/MonitoredResourceDescriptor/labels": labels +"/servicemanagement:v1/MonitoredResourceDescriptor/labels/label": label +"/servicemanagement:v1/MonitoredResourceDescriptor/name": name +"/servicemanagement:v1/MonitoredResourceDescriptor/description": description +"/servicemanagement:v1/MonitoredResourceDescriptor/displayName": display_name +"/servicemanagement:v1/MonitoredResourceDescriptor/type": type +"/servicemanagement:v1/CustomAuthRequirements": custom_auth_requirements +"/servicemanagement:v1/CustomAuthRequirements/provider": provider +"/servicemanagement:v1/MediaDownload": media_download +"/servicemanagement:v1/MediaDownload/enabled": enabled +"/servicemanagement:v1/MediaDownload/downloadService": download_service +"/servicemanagement:v1/MediaDownload/completeNotification": complete_notification +"/servicemanagement:v1/MediaDownload/dropzone": dropzone +"/servicemanagement:v1/MediaDownload/maxDirectDownloadSize": max_direct_download_size +"/servicemanagement:v1/MediaDownload/useDirectDownload": use_direct_download +"/servicemanagement:v1/ChangeReport": change_report +"/servicemanagement:v1/ChangeReport/configChanges": config_changes +"/servicemanagement:v1/ChangeReport/configChanges/config_change": config_change +"/servicemanagement:v1/DisableServiceRequest": disable_service_request +"/servicemanagement:v1/DisableServiceRequest/consumerId": consumer_id +"/servicemanagement:v1/SubmitConfigSourceResponse": submit_config_source_response +"/servicemanagement:v1/SubmitConfigSourceResponse/serviceConfig": service_config "/servicemanagement:v1/MediaUpload": media_upload -"/servicemanagement:v1/MediaUpload/completeNotification": complete_notification -"/servicemanagement:v1/MediaUpload/progressNotification": progress_notification -"/servicemanagement:v1/MediaUpload/enabled": enabled -"/servicemanagement:v1/MediaUpload/dropzone": dropzone "/servicemanagement:v1/MediaUpload/startNotification": start_notification "/servicemanagement:v1/MediaUpload/uploadService": upload_service "/servicemanagement:v1/MediaUpload/mimeTypes": mime_types "/servicemanagement:v1/MediaUpload/mimeTypes/mime_type": mime_type "/servicemanagement:v1/MediaUpload/maxSize": max_size +"/servicemanagement:v1/MediaUpload/completeNotification": complete_notification +"/servicemanagement:v1/MediaUpload/progressNotification": progress_notification +"/servicemanagement:v1/MediaUpload/enabled": enabled +"/servicemanagement:v1/MediaUpload/dropzone": dropzone "/servicemanagement:v1/Advice": advice "/servicemanagement:v1/Advice/description": description "/servicemanagement:v1/ManagedService": managed_service "/servicemanagement:v1/ManagedService/serviceName": service_name "/servicemanagement:v1/ManagedService/producerProjectId": producer_project_id "/servicemanagement:v1/UsageRule": usage_rule -"/servicemanagement:v1/UsageRule/selector": selector "/servicemanagement:v1/UsageRule/allowUnregisteredCalls": allow_unregistered_calls -"/servicemanagement:v1/AuthRequirement": auth_requirement -"/servicemanagement:v1/AuthRequirement/providerId": provider_id -"/servicemanagement:v1/AuthRequirement/audiences": audiences +"/servicemanagement:v1/UsageRule/selector": selector +"/servicemanagement:v1/UsageRule/skipServiceControl": skip_service_control "/servicemanagement:v1/TrafficPercentStrategy": traffic_percent_strategy "/servicemanagement:v1/TrafficPercentStrategy/percentages": percentages "/servicemanagement:v1/TrafficPercentStrategy/percentages/percentage": percentage -"/servicemanagement:v1/Documentation": documentation -"/servicemanagement:v1/Documentation/rules": rules -"/servicemanagement:v1/Documentation/rules/rule": rule -"/servicemanagement:v1/Documentation/overview": overview -"/servicemanagement:v1/Documentation/pages": pages -"/servicemanagement:v1/Documentation/pages/page": page -"/servicemanagement:v1/Documentation/summary": summary -"/servicemanagement:v1/Documentation/documentationRootUrl": documentation_root_url +"/servicemanagement:v1/AuthRequirement": auth_requirement +"/servicemanagement:v1/AuthRequirement/audiences": audiences +"/servicemanagement:v1/AuthRequirement/providerId": provider_id "/servicemanagement:v1/Condition": condition -"/servicemanagement:v1/Condition/op": op -"/servicemanagement:v1/Condition/svc": svc -"/servicemanagement:v1/Condition/sys": sys "/servicemanagement:v1/Condition/value": value +"/servicemanagement:v1/Condition/sys": sys +"/servicemanagement:v1/Condition/iam": iam "/servicemanagement:v1/Condition/values": values "/servicemanagement:v1/Condition/values/value": value -"/servicemanagement:v1/Condition/iam": iam +"/servicemanagement:v1/Condition/op": op +"/servicemanagement:v1/Condition/svc": svc +"/servicemanagement:v1/Documentation": documentation +"/servicemanagement:v1/Documentation/summary": summary +"/servicemanagement:v1/Documentation/documentationRootUrl": documentation_root_url +"/servicemanagement:v1/Documentation/overview": overview +"/servicemanagement:v1/Documentation/rules": rules +"/servicemanagement:v1/Documentation/rules/rule": rule +"/servicemanagement:v1/Documentation/pages": pages +"/servicemanagement:v1/Documentation/pages/page": page "/servicemanagement:v1/AuditLogConfig": audit_log_config +"/servicemanagement:v1/AuditLogConfig/logType": log_type "/servicemanagement:v1/AuditLogConfig/exemptedMembers": exempted_members "/servicemanagement:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member -"/servicemanagement:v1/AuditLogConfig/logType": log_type "/servicemanagement:v1/ConfigSource": config_source +"/servicemanagement:v1/ConfigSource/id": id "/servicemanagement:v1/ConfigSource/files": files "/servicemanagement:v1/ConfigSource/files/file": file -"/servicemanagement:v1/ConfigSource/id": id +"/servicemanagement:v1/BackendRule": backend_rule +"/servicemanagement:v1/BackendRule/minDeadline": min_deadline +"/servicemanagement:v1/BackendRule/address": address +"/servicemanagement:v1/BackendRule/selector": selector +"/servicemanagement:v1/BackendRule/deadline": deadline "/servicemanagement:v1/AuthenticationRule": authentication_rule "/servicemanagement:v1/AuthenticationRule/requirements": requirements "/servicemanagement:v1/AuthenticationRule/requirements/requirement": requirement -"/servicemanagement:v1/AuthenticationRule/selector": selector "/servicemanagement:v1/AuthenticationRule/allowWithoutCredential": allow_without_credential -"/servicemanagement:v1/AuthenticationRule/oauth": oauth +"/servicemanagement:v1/AuthenticationRule/selector": selector "/servicemanagement:v1/AuthenticationRule/customAuth": custom_auth -"/servicemanagement:v1/BackendRule": backend_rule -"/servicemanagement:v1/BackendRule/selector": selector -"/servicemanagement:v1/BackendRule/deadline": deadline -"/servicemanagement:v1/BackendRule/minDeadline": min_deadline -"/servicemanagement:v1/BackendRule/address": address +"/servicemanagement:v1/AuthenticationRule/oauth": oauth +"/servicemanagement:v1/UndeleteServiceResponse": undelete_service_response +"/servicemanagement:v1/UndeleteServiceResponse/service": service "/servicemanagement:v1/Policy": policy "/servicemanagement:v1/Policy/iamOwned": iam_owned "/servicemanagement:v1/Policy/rules": rules @@ -35281,67 +35811,75 @@ "/servicemanagement:v1/Policy/bindings": bindings "/servicemanagement:v1/Policy/bindings/binding": binding "/servicemanagement:v1/Policy/etag": etag -"/servicemanagement:v1/UndeleteServiceResponse": undelete_service_response -"/servicemanagement:v1/UndeleteServiceResponse/service": service "/servicemanagement:v1/Api": api -"/servicemanagement:v1/Api/methods": methods_prop -"/servicemanagement:v1/Api/methods/methods_prop": methods_prop -"/servicemanagement:v1/Api/name": name -"/servicemanagement:v1/Api/sourceContext": source_context "/servicemanagement:v1/Api/syntax": syntax +"/servicemanagement:v1/Api/sourceContext": source_context "/servicemanagement:v1/Api/version": version "/servicemanagement:v1/Api/mixins": mixins "/servicemanagement:v1/Api/mixins/mixin": mixin "/servicemanagement:v1/Api/options": options "/servicemanagement:v1/Api/options/option": option +"/servicemanagement:v1/Api/methods": methods_prop +"/servicemanagement:v1/Api/methods/methods_prop": methods_prop +"/servicemanagement:v1/Api/name": name +"/servicemanagement:v1/DataAccessOptions": data_access_options "/servicemanagement:v1/MetricRule": metric_rule -"/servicemanagement:v1/MetricRule/selector": selector "/servicemanagement:v1/MetricRule/metricCosts": metric_costs "/servicemanagement:v1/MetricRule/metricCosts/metric_cost": metric_cost -"/servicemanagement:v1/DataAccessOptions": data_access_options +"/servicemanagement:v1/MetricRule/selector": selector "/servicemanagement:v1/Authentication": authentication "/servicemanagement:v1/Authentication/rules": rules "/servicemanagement:v1/Authentication/rules/rule": rule "/servicemanagement:v1/Authentication/providers": providers "/servicemanagement:v1/Authentication/providers/provider": provider "/servicemanagement:v1/Operation": operation -"/servicemanagement:v1/Operation/done": done -"/servicemanagement:v1/Operation/response": response -"/servicemanagement:v1/Operation/response/response": response "/servicemanagement:v1/Operation/name": name "/servicemanagement:v1/Operation/error": error "/servicemanagement:v1/Operation/metadata": metadata "/servicemanagement:v1/Operation/metadata/metadatum": metadatum +"/servicemanagement:v1/Operation/done": done +"/servicemanagement:v1/Operation/response": response +"/servicemanagement:v1/Operation/response/response": response "/servicemanagement:v1/Page": page -"/servicemanagement:v1/Page/subpages": subpages -"/servicemanagement:v1/Page/subpages/subpage": subpage "/servicemanagement:v1/Page/name": name "/servicemanagement:v1/Page/content": content +"/servicemanagement:v1/Page/subpages": subpages +"/servicemanagement:v1/Page/subpages/subpage": subpage "/servicemanagement:v1/Status": status -"/servicemanagement:v1/Status/code": code -"/servicemanagement:v1/Status/message": message "/servicemanagement:v1/Status/details": details "/servicemanagement:v1/Status/details/detail": detail "/servicemanagement:v1/Status/details/detail/detail": detail +"/servicemanagement:v1/Status/code": code +"/servicemanagement:v1/Status/message": message "/servicemanagement:v1/Binding": binding "/servicemanagement:v1/Binding/condition": condition "/servicemanagement:v1/Binding/members": members "/servicemanagement:v1/Binding/members/member": member "/servicemanagement:v1/Binding/role": role "/servicemanagement:v1/AuthProvider": auth_provider -"/servicemanagement:v1/AuthProvider/jwksUri": jwks_uri "/servicemanagement:v1/AuthProvider/audiences": audiences -"/servicemanagement:v1/AuthProvider/id": id "/servicemanagement:v1/AuthProvider/issuer": issuer +"/servicemanagement:v1/AuthProvider/id": id +"/servicemanagement:v1/AuthProvider/jwksUri": jwks_uri "/servicemanagement:v1/EnumValue": enum_value "/servicemanagement:v1/EnumValue/name": name "/servicemanagement:v1/EnumValue/options": options "/servicemanagement:v1/EnumValue/options/option": option "/servicemanagement:v1/EnumValue/number": number "/servicemanagement:v1/Service": service +"/servicemanagement:v1/Service/types": types +"/servicemanagement:v1/Service/types/type": type +"/servicemanagement:v1/Service/sourceInfo": source_info +"/servicemanagement:v1/Service/http": http +"/servicemanagement:v1/Service/backend": backend +"/servicemanagement:v1/Service/systemParameters": system_parameters +"/servicemanagement:v1/Service/documentation": documentation +"/servicemanagement:v1/Service/logging": logging +"/servicemanagement:v1/Service/monitoredResources": monitored_resources +"/servicemanagement:v1/Service/monitoredResources/monitored_resource": monitored_resource +"/servicemanagement:v1/Service/context": context "/servicemanagement:v1/Service/enums": enums "/servicemanagement:v1/Service/enums/enum": enum -"/servicemanagement:v1/Service/context": context "/servicemanagement:v1/Service/id": id "/servicemanagement:v1/Service/usage": usage "/servicemanagement:v1/Service/metrics": metrics @@ -35361,49 +35899,32 @@ "/servicemanagement:v1/Service/title": title "/servicemanagement:v1/Service/endpoints": endpoints "/servicemanagement:v1/Service/endpoints/endpoint": endpoint -"/servicemanagement:v1/Service/apis": apis -"/servicemanagement:v1/Service/apis/api": api "/servicemanagement:v1/Service/logs": logs "/servicemanagement:v1/Service/logs/log": log -"/servicemanagement:v1/Service/types": types -"/servicemanagement:v1/Service/types/type": type -"/servicemanagement:v1/Service/sourceInfo": source_info -"/servicemanagement:v1/Service/http": http -"/servicemanagement:v1/Service/backend": backend -"/servicemanagement:v1/Service/systemParameters": system_parameters -"/servicemanagement:v1/Service/documentation": documentation -"/servicemanagement:v1/Service/logging": logging -"/servicemanagement:v1/Service/monitoredResources": monitored_resources -"/servicemanagement:v1/Service/monitoredResources/monitored_resource": monitored_resource +"/servicemanagement:v1/Service/apis": apis +"/servicemanagement:v1/Service/apis/api": api "/servicemanagement:v1/ListOperationsResponse": list_operations_response -"/servicemanagement:v1/ListOperationsResponse/nextPageToken": next_page_token "/servicemanagement:v1/ListOperationsResponse/operations": operations "/servicemanagement:v1/ListOperationsResponse/operations/operation": operation -"/servicemanagement:v1/CustomHttpPattern": custom_http_pattern -"/servicemanagement:v1/CustomHttpPattern/path": path -"/servicemanagement:v1/CustomHttpPattern/kind": kind +"/servicemanagement:v1/ListOperationsResponse/nextPageToken": next_page_token "/servicemanagement:v1/OperationMetadata": operation_metadata +"/servicemanagement:v1/OperationMetadata/progressPercentage": progress_percentage "/servicemanagement:v1/OperationMetadata/startTime": start_time -"/servicemanagement:v1/OperationMetadata/resourceNames": resource_names -"/servicemanagement:v1/OperationMetadata/resourceNames/resource_name": resource_name "/servicemanagement:v1/OperationMetadata/steps": steps "/servicemanagement:v1/OperationMetadata/steps/step": step -"/servicemanagement:v1/OperationMetadata/progressPercentage": progress_percentage +"/servicemanagement:v1/OperationMetadata/resourceNames": resource_names +"/servicemanagement:v1/OperationMetadata/resourceNames/resource_name": resource_name +"/servicemanagement:v1/CustomHttpPattern": custom_http_pattern +"/servicemanagement:v1/CustomHttpPattern/kind": kind +"/servicemanagement:v1/CustomHttpPattern/path": path "/servicemanagement:v1/SystemParameterRule": system_parameter_rule +"/servicemanagement:v1/SystemParameterRule/selector": selector "/servicemanagement:v1/SystemParameterRule/parameters": parameters "/servicemanagement:v1/SystemParameterRule/parameters/parameter": parameter -"/servicemanagement:v1/SystemParameterRule/selector": selector "/servicemanagement:v1/VisibilityRule": visibility_rule "/servicemanagement:v1/VisibilityRule/restriction": restriction "/servicemanagement:v1/VisibilityRule/selector": selector "/servicemanagement:v1/HttpRule": http_rule -"/servicemanagement:v1/HttpRule/post": post -"/servicemanagement:v1/HttpRule/mediaDownload": media_download -"/servicemanagement:v1/HttpRule/restMethodName": rest_method_name -"/servicemanagement:v1/HttpRule/additionalBindings": additional_bindings -"/servicemanagement:v1/HttpRule/additionalBindings/additional_binding": additional_binding -"/servicemanagement:v1/HttpRule/restCollection": rest_collection -"/servicemanagement:v1/HttpRule/responseBody": response_body "/servicemanagement:v1/HttpRule/mediaUpload": media_upload "/servicemanagement:v1/HttpRule/selector": selector "/servicemanagement:v1/HttpRule/custom": custom @@ -35412,6 +35933,13 @@ "/servicemanagement:v1/HttpRule/put": put "/servicemanagement:v1/HttpRule/delete": delete "/servicemanagement:v1/HttpRule/body": body +"/servicemanagement:v1/HttpRule/mediaDownload": media_download +"/servicemanagement:v1/HttpRule/post": post +"/servicemanagement:v1/HttpRule/restMethodName": rest_method_name +"/servicemanagement:v1/HttpRule/additionalBindings": additional_bindings +"/servicemanagement:v1/HttpRule/additionalBindings/additional_binding": additional_binding +"/servicemanagement:v1/HttpRule/responseBody": response_body +"/servicemanagement:v1/HttpRule/restCollection": rest_collection "/servicemanagement:v1/MonitoringDestination": monitoring_destination "/servicemanagement:v1/MonitoringDestination/metrics": metrics "/servicemanagement:v1/MonitoringDestination/metrics/metric": metric @@ -35419,334 +35947,107 @@ "/servicemanagement:v1/Visibility": visibility "/servicemanagement:v1/Visibility/rules": rules "/servicemanagement:v1/Visibility/rules/rule": rule -"/servicemanagement:v1/SystemParameters": system_parameters -"/servicemanagement:v1/SystemParameters/rules": rules -"/servicemanagement:v1/SystemParameters/rules/rule": rule -"/servicemanagement:v1/ConfigChange": config_change -"/servicemanagement:v1/ConfigChange/newValue": new_value -"/servicemanagement:v1/ConfigChange/changeType": change_type -"/servicemanagement:v1/ConfigChange/element": element -"/servicemanagement:v1/ConfigChange/oldValue": old_value -"/servicemanagement:v1/ConfigChange/advices": advices -"/servicemanagement:v1/ConfigChange/advices/advice": advice -"/servicemanagement:v1/Quota": quota -"/servicemanagement:v1/Quota/limits": limits -"/servicemanagement:v1/Quota/limits/limit": limit -"/servicemanagement:v1/Quota/metricRules": metric_rules -"/servicemanagement:v1/Quota/metricRules/metric_rule": metric_rule -"/servicemanagement:v1/Rollout": rollout -"/servicemanagement:v1/Rollout/deleteServiceStrategy": delete_service_strategy -"/servicemanagement:v1/Rollout/createTime": create_time -"/servicemanagement:v1/Rollout/status": status -"/servicemanagement:v1/Rollout/serviceName": service_name -"/servicemanagement:v1/Rollout/createdBy": created_by -"/servicemanagement:v1/Rollout/trafficPercentStrategy": traffic_percent_strategy -"/servicemanagement:v1/Rollout/rolloutId": rollout_id -"/servicemanagement:v1/GenerateConfigReportRequest": generate_config_report_request -"/servicemanagement:v1/GenerateConfigReportRequest/oldConfig": old_config -"/servicemanagement:v1/GenerateConfigReportRequest/oldConfig/old_config": old_config -"/servicemanagement:v1/GenerateConfigReportRequest/newConfig": new_config -"/servicemanagement:v1/GenerateConfigReportRequest/newConfig/new_config": new_config -"/servicemanagement:v1/SetIamPolicyRequest": set_iam_policy_request -"/servicemanagement:v1/SetIamPolicyRequest/policy": policy -"/servicemanagement:v1/SetIamPolicyRequest/updateMask": update_mask -"/servicemanagement:v1/Step": step -"/servicemanagement:v1/Step/description": description -"/servicemanagement:v1/Step/status": status -"/servicemanagement:v1/DeleteServiceStrategy": delete_service_strategy -"/servicemanagement:v1/LoggingDestination": logging_destination -"/servicemanagement:v1/LoggingDestination/logs": logs -"/servicemanagement:v1/LoggingDestination/logs/log": log -"/servicemanagement:v1/LoggingDestination/monitoredResource": monitored_resource -"/servicemanagement:v1/Option": option -"/servicemanagement:v1/Option/name": name -"/servicemanagement:v1/Option/value": value -"/servicemanagement:v1/Option/value/value": value -"/servicemanagement:v1/Logging": logging -"/servicemanagement:v1/Logging/consumerDestinations": consumer_destinations -"/servicemanagement:v1/Logging/consumerDestinations/consumer_destination": consumer_destination -"/servicemanagement:v1/Logging/producerDestinations": producer_destinations -"/servicemanagement:v1/Logging/producerDestinations/producer_destination": producer_destination -"/servicemanagement:v1/Method": method_prop -"/servicemanagement:v1/Method/name": name -"/servicemanagement:v1/Method/requestTypeUrl": request_type_url -"/servicemanagement:v1/Method/requestStreaming": request_streaming -"/servicemanagement:v1/Method/syntax": syntax -"/servicemanagement:v1/Method/responseTypeUrl": response_type_url -"/servicemanagement:v1/Method/options": options -"/servicemanagement:v1/Method/options/option": option -"/servicemanagement:v1/Method/responseStreaming": response_streaming -"/servicemanagement:v1/QuotaLimit": quota_limit -"/servicemanagement:v1/QuotaLimit/freeTier": free_tier -"/servicemanagement:v1/QuotaLimit/duration": duration -"/servicemanagement:v1/QuotaLimit/defaultLimit": default_limit -"/servicemanagement:v1/QuotaLimit/displayName": display_name -"/servicemanagement:v1/QuotaLimit/description": description -"/servicemanagement:v1/QuotaLimit/metric": metric -"/servicemanagement:v1/QuotaLimit/values": values -"/servicemanagement:v1/QuotaLimit/values/value": value -"/servicemanagement:v1/QuotaLimit/unit": unit -"/servicemanagement:v1/QuotaLimit/maxLimit": max_limit -"/servicemanagement:v1/QuotaLimit/name": name -"/servicemanagement:v1/ListServiceRolloutsResponse": list_service_rollouts_response -"/servicemanagement:v1/ListServiceRolloutsResponse/nextPageToken": next_page_token -"/servicemanagement:v1/ListServiceRolloutsResponse/rollouts": rollouts -"/servicemanagement:v1/ListServiceRolloutsResponse/rollouts/rollout": rollout -"/servicemanagement:v1/ConfigRef": config_ref -"/servicemanagement:v1/ConfigRef/name": name -"/servicemanagement:v1/Mixin": mixin -"/servicemanagement:v1/Mixin/name": name -"/servicemanagement:v1/Mixin/root": root -"/servicemanagement:v1/FlowOperationMetadata": flow_operation_metadata -"/servicemanagement:v1/FlowOperationMetadata/startTime": start_time -"/servicemanagement:v1/FlowOperationMetadata/flowName": flow_name -"/servicemanagement:v1/FlowOperationMetadata/resourceNames": resource_names -"/servicemanagement:v1/FlowOperationMetadata/resourceNames/resource_name": resource_name -"/servicemanagement:v1/FlowOperationMetadata/cancelState": cancel_state -"/servicemanagement:v1/FlowOperationMetadata/deadline": deadline -"/servicemanagement:v1/CustomError": custom_error -"/servicemanagement:v1/CustomError/types": types -"/servicemanagement:v1/CustomError/types/type": type -"/servicemanagement:v1/CustomError/rules": rules -"/servicemanagement:v1/CustomError/rules/rule": rule -"/servicemanagement:v1/CounterOptions": counter_options -"/servicemanagement:v1/CounterOptions/metric": metric -"/servicemanagement:v1/CounterOptions/field": field -"/servicemanagement:v1/Http": http -"/servicemanagement:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion -"/servicemanagement:v1/Http/rules": rules -"/servicemanagement:v1/Http/rules/rule": rule -"/servicemanagement:v1/SourceInfo": source_info -"/servicemanagement:v1/SourceInfo/sourceFiles": source_files -"/servicemanagement:v1/SourceInfo/sourceFiles/source_file": source_file -"/servicemanagement:v1/SourceInfo/sourceFiles/source_file/source_file": source_file -"/servicemanagement:v1/Control": control -"/servicemanagement:v1/Control/environment": environment -"/servicemanagement:v1/SystemParameter": system_parameter -"/servicemanagement:v1/SystemParameter/urlQueryParameter": url_query_parameter -"/servicemanagement:v1/SystemParameter/httpHeader": http_header -"/servicemanagement:v1/SystemParameter/name": name -"/servicemanagement:v1/Monitoring": monitoring -"/servicemanagement:v1/Monitoring/consumerDestinations": consumer_destinations -"/servicemanagement:v1/Monitoring/consumerDestinations/consumer_destination": consumer_destination -"/servicemanagement:v1/Monitoring/producerDestinations": producer_destinations -"/servicemanagement:v1/Monitoring/producerDestinations/producer_destination": producer_destination -"/servicemanagement:v1/Field": field -"/servicemanagement:v1/Field/name": name -"/servicemanagement:v1/Field/typeUrl": type_url -"/servicemanagement:v1/Field/number": number -"/servicemanagement:v1/Field/jsonName": json_name -"/servicemanagement:v1/Field/kind": kind -"/servicemanagement:v1/Field/options": options -"/servicemanagement:v1/Field/options/option": option -"/servicemanagement:v1/Field/oneofIndex": oneof_index -"/servicemanagement:v1/Field/cardinality": cardinality -"/servicemanagement:v1/Field/packed": packed -"/servicemanagement:v1/Field/defaultValue": default_value -"/servicemanagement:v1/TestIamPermissionsRequest": test_iam_permissions_request -"/servicemanagement:v1/TestIamPermissionsRequest/permissions": permissions -"/servicemanagement:v1/TestIamPermissionsRequest/permissions/permission": permission -"/servicemanagement:v1/Enum": enum -"/servicemanagement:v1/Enum/name": name -"/servicemanagement:v1/Enum/enumvalue": enumvalue -"/servicemanagement:v1/Enum/enumvalue/enumvalue": enumvalue -"/servicemanagement:v1/Enum/options": options -"/servicemanagement:v1/Enum/options/option": option -"/servicemanagement:v1/Enum/sourceContext": source_context -"/servicemanagement:v1/Enum/syntax": syntax -"/servicemanagement:v1/LabelDescriptor": label_descriptor -"/servicemanagement:v1/LabelDescriptor/key": key -"/servicemanagement:v1/LabelDescriptor/description": description -"/servicemanagement:v1/LabelDescriptor/valueType": value_type -"/servicemanagement:v1/EnableServiceRequest": enable_service_request -"/servicemanagement:v1/EnableServiceRequest/consumerId": consumer_id -"/servicemanagement:v1/Diagnostic": diagnostic -"/servicemanagement:v1/Diagnostic/message": message -"/servicemanagement:v1/Diagnostic/location": location -"/servicemanagement:v1/Diagnostic/kind": kind -"/servicemanagement:v1/GenerateConfigReportResponse": generate_config_report_response -"/servicemanagement:v1/GenerateConfigReportResponse/changeReports": change_reports -"/servicemanagement:v1/GenerateConfigReportResponse/changeReports/change_report": change_report -"/servicemanagement:v1/GenerateConfigReportResponse/id": id -"/servicemanagement:v1/GenerateConfigReportResponse/diagnostics": diagnostics -"/servicemanagement:v1/GenerateConfigReportResponse/diagnostics/diagnostic": diagnostic -"/servicemanagement:v1/GenerateConfigReportResponse/serviceName": service_name -"/servicemanagement:v1/Type": type -"/servicemanagement:v1/Type/options": options -"/servicemanagement:v1/Type/options/option": option -"/servicemanagement:v1/Type/fields": fields -"/servicemanagement:v1/Type/fields/field": field -"/servicemanagement:v1/Type/name": name -"/servicemanagement:v1/Type/oneofs": oneofs -"/servicemanagement:v1/Type/oneofs/oneof": oneof -"/servicemanagement:v1/Type/sourceContext": source_context -"/servicemanagement:v1/Type/syntax": syntax -"/servicemanagement:v1/Experimental": experimental -"/servicemanagement:v1/Experimental/authorization": authorization -"/servicemanagement:v1/ListServiceConfigsResponse": list_service_configs_response -"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs": service_configs -"/servicemanagement:v1/ListServiceConfigsResponse/serviceConfigs/service_config": service_config -"/servicemanagement:v1/ListServiceConfigsResponse/nextPageToken": next_page_token -"/servicemanagement:v1/AuditConfig": audit_config -"/servicemanagement:v1/AuditConfig/service": service -"/servicemanagement:v1/AuditConfig/auditLogConfigs": audit_log_configs -"/servicemanagement:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/servicemanagement:v1/AuditConfig/exemptedMembers": exempted_members -"/servicemanagement:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member -"/servicemanagement:v1/Backend": backend -"/servicemanagement:v1/Backend/rules": rules -"/servicemanagement:v1/Backend/rules/rule": rule -"/servicemanagement:v1/SubmitConfigSourceRequest": submit_config_source_request -"/servicemanagement:v1/SubmitConfigSourceRequest/validateOnly": validate_only -"/servicemanagement:v1/SubmitConfigSourceRequest/configSource": config_source -"/servicemanagement:v1/DocumentationRule": documentation_rule -"/servicemanagement:v1/DocumentationRule/description": description -"/servicemanagement:v1/DocumentationRule/deprecationDescription": deprecation_description -"/servicemanagement:v1/DocumentationRule/selector": selector -"/servicemanagement:v1/AuthorizationConfig": authorization_config -"/servicemanagement:v1/AuthorizationConfig/provider": provider -"/servicemanagement:v1/ContextRule": context_rule -"/servicemanagement:v1/ContextRule/provided": provided -"/servicemanagement:v1/ContextRule/provided/provided": provided -"/servicemanagement:v1/ContextRule/requested": requested -"/servicemanagement:v1/ContextRule/requested/requested": requested -"/servicemanagement:v1/ContextRule/selector": selector -"/servicemanagement:v1/CloudAuditOptions": cloud_audit_options -"/servicemanagement:v1/CloudAuditOptions/logName": log_name -"/servicemanagement:v1/MetricDescriptor": metric_descriptor -"/servicemanagement:v1/MetricDescriptor/name": name -"/servicemanagement:v1/MetricDescriptor/type": type -"/servicemanagement:v1/MetricDescriptor/valueType": value_type -"/servicemanagement:v1/MetricDescriptor/metricKind": metric_kind -"/servicemanagement:v1/MetricDescriptor/displayName": display_name -"/servicemanagement:v1/MetricDescriptor/description": description -"/servicemanagement:v1/MetricDescriptor/unit": unit -"/servicemanagement:v1/MetricDescriptor/labels": labels -"/servicemanagement:v1/MetricDescriptor/labels/label": label -"/servicemanagement:v1/SourceContext": source_context -"/servicemanagement:v1/SourceContext/fileName": file_name -"/servicemanagement:v1/Expr": expr -"/servicemanagement:v1/Expr/title": title -"/servicemanagement:v1/Expr/location": location -"/servicemanagement:v1/Expr/description": description -"/servicemanagement:v1/Expr/expression": expression -"/servicemanagement:v1/ListServicesResponse": list_services_response -"/servicemanagement:v1/ListServicesResponse/services": services -"/servicemanagement:v1/ListServicesResponse/services/service": service -"/servicemanagement:v1/ListServicesResponse/nextPageToken": next_page_token -"/servicemanagement:v1/Endpoint": endpoint -"/servicemanagement:v1/Endpoint/features": features -"/servicemanagement:v1/Endpoint/features/feature": feature -"/servicemanagement:v1/Endpoint/apis": apis -"/servicemanagement:v1/Endpoint/apis/api": api -"/servicemanagement:v1/Endpoint/allowCors": allow_cors -"/servicemanagement:v1/Endpoint/aliases": aliases -"/servicemanagement:v1/Endpoint/aliases/alias": alias -"/servicemanagement:v1/Endpoint/target": target -"/servicemanagement:v1/Endpoint/name": name -"/servicemanagement:v1/OAuthRequirements": o_auth_requirements -"/servicemanagement:v1/OAuthRequirements/canonicalScopes": canonical_scopes -"/servicemanagement:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/servicemanagement:v1/TestIamPermissionsResponse/permissions": permissions -"/servicemanagement:v1/TestIamPermissionsResponse/permissions/permission": permission -"/servicemanagement:v1/GetIamPolicyRequest": get_iam_policy_request -"/servicemanagement:v1/Usage": usage -"/servicemanagement:v1/Usage/producerNotificationChannel": producer_notification_channel -"/servicemanagement:v1/Usage/rules": rules -"/servicemanagement:v1/Usage/rules/rule": rule -"/servicemanagement:v1/Usage/requirements": requirements -"/servicemanagement:v1/Usage/requirements/requirement": requirement -"/servicemanagement:v1/Context": context -"/servicemanagement:v1/Context/rules": rules -"/servicemanagement:v1/Context/rules/rule": rule -"/servicemanagement:v1/Rule": rule -"/servicemanagement:v1/Rule/notIn": not_in -"/servicemanagement:v1/Rule/notIn/not_in": not_in -"/servicemanagement:v1/Rule/description": description -"/servicemanagement:v1/Rule/conditions": conditions -"/servicemanagement:v1/Rule/conditions/condition": condition -"/servicemanagement:v1/Rule/logConfig": log_config -"/servicemanagement:v1/Rule/logConfig/log_config": log_config -"/servicemanagement:v1/Rule/in": in -"/servicemanagement:v1/Rule/in/in": in -"/servicemanagement:v1/Rule/permissions": permissions -"/servicemanagement:v1/Rule/permissions/permission": permission -"/servicemanagement:v1/Rule/action": action -"/servicemanagement:v1/LogConfig": log_config -"/servicemanagement:v1/LogConfig/dataAccess": data_access -"/servicemanagement:v1/LogConfig/cloudAudit": cloud_audit -"/servicemanagement:v1/LogConfig/counter": counter -"/servicemanagement:v1/LogDescriptor": log_descriptor -"/servicemanagement:v1/LogDescriptor/labels": labels -"/servicemanagement:v1/LogDescriptor/labels/label": label -"/servicemanagement:v1/LogDescriptor/name": name -"/servicemanagement:v1/LogDescriptor/description": description -"/servicemanagement:v1/LogDescriptor/displayName": display_name -"/servicemanagement:v1/ConfigFile": config_file -"/servicemanagement:v1/ConfigFile/fileType": file_type -"/servicemanagement:v1/ConfigFile/fileContents": file_contents -"/servicemanagement:v1/ConfigFile/filePath": file_path -"/servicemanagement:v1/MonitoredResourceDescriptor": monitored_resource_descriptor -"/servicemanagement:v1/MonitoredResourceDescriptor/displayName": display_name -"/servicemanagement:v1/MonitoredResourceDescriptor/description": description -"/servicemanagement:v1/MonitoredResourceDescriptor/type": type -"/servicemanagement:v1/MonitoredResourceDescriptor/labels": labels -"/servicemanagement:v1/MonitoredResourceDescriptor/labels/label": label -"/servicemanagement:v1/MonitoredResourceDescriptor/name": name -"/servicemanagement:v1/CustomErrorRule": custom_error_rule -"/servicemanagement:v1/CustomErrorRule/selector": selector -"/servicemanagement:v1/CustomErrorRule/isErrorType": is_error_type -"/servicemanagement:v1/MediaDownload": media_download -"/servicemanagement:v1/MediaDownload/useDirectDownload": use_direct_download -"/servicemanagement:v1/MediaDownload/enabled": enabled -"/servicemanagement:v1/MediaDownload/downloadService": download_service -"/servicemanagement:v1/MediaDownload/completeNotification": complete_notification -"/servicemanagement:v1/MediaDownload/dropzone": dropzone -"/servicemanagement:v1/MediaDownload/maxDirectDownloadSize": max_direct_download_size -"/servicemanagement:v1/CustomAuthRequirements": custom_auth_requirements -"/servicemanagement:v1/CustomAuthRequirements/provider": provider -"/servicemanagement:v1/ChangeReport": change_report -"/servicemanagement:v1/ChangeReport/configChanges": config_changes -"/servicemanagement:v1/ChangeReport/configChanges/config_change": config_change -"/servicemanagement:v1/DisableServiceRequest": disable_service_request -"/servicemanagement:v1/DisableServiceRequest/consumerId": consumer_id -"/servicemanagement:v1/SubmitConfigSourceResponse": submit_config_source_response -"/servicemanagement:v1/SubmitConfigSourceResponse/serviceConfig": service_config "/serviceuser:v1/fields": fields "/serviceuser:v1/key": key "/serviceuser:v1/quotaUser": quota_user +"/serviceuser:v1/serviceuser.projects.services.list": list_project_services +"/serviceuser:v1/serviceuser.projects.services.list/pageToken": page_token +"/serviceuser:v1/serviceuser.projects.services.list/pageSize": page_size +"/serviceuser:v1/serviceuser.projects.services.list/parent": parent +"/serviceuser:v1/serviceuser.projects.services.disable": disable_service +"/serviceuser:v1/serviceuser.projects.services.disable/name": name +"/serviceuser:v1/serviceuser.projects.services.enable": enable_service +"/serviceuser:v1/serviceuser.projects.services.enable/name": name "/serviceuser:v1/serviceuser.services.search": search_services "/serviceuser:v1/serviceuser.services.search/pageToken": page_token "/serviceuser:v1/serviceuser.services.search/pageSize": page_size -"/serviceuser:v1/serviceuser.projects.services.enable": enable_service -"/serviceuser:v1/serviceuser.projects.services.enable/name": name -"/serviceuser:v1/serviceuser.projects.services.list": list_project_services -"/serviceuser:v1/serviceuser.projects.services.list/parent": parent -"/serviceuser:v1/serviceuser.projects.services.list/pageToken": page_token -"/serviceuser:v1/serviceuser.projects.services.list/pageSize": page_size -"/serviceuser:v1/serviceuser.projects.services.disable": disable_service -"/serviceuser:v1/serviceuser.projects.services.disable/name": name +"/serviceuser:v1/ListEnabledServicesResponse": list_enabled_services_response +"/serviceuser:v1/ListEnabledServicesResponse/nextPageToken": next_page_token +"/serviceuser:v1/ListEnabledServicesResponse/services": services +"/serviceuser:v1/ListEnabledServicesResponse/services/service": service +"/serviceuser:v1/Endpoint": endpoint +"/serviceuser:v1/Endpoint/features": features +"/serviceuser:v1/Endpoint/features/feature": feature +"/serviceuser:v1/Endpoint/apis": apis +"/serviceuser:v1/Endpoint/apis/api": api +"/serviceuser:v1/Endpoint/allowCors": allow_cors +"/serviceuser:v1/Endpoint/aliases": aliases +"/serviceuser:v1/Endpoint/aliases/alias": alias +"/serviceuser:v1/Endpoint/name": name +"/serviceuser:v1/Endpoint/target": target +"/serviceuser:v1/OAuthRequirements": o_auth_requirements +"/serviceuser:v1/OAuthRequirements/canonicalScopes": canonical_scopes +"/serviceuser:v1/Usage": usage +"/serviceuser:v1/Usage/requirements": requirements +"/serviceuser:v1/Usage/requirements/requirement": requirement +"/serviceuser:v1/Usage/producerNotificationChannel": producer_notification_channel +"/serviceuser:v1/Usage/rules": rules +"/serviceuser:v1/Usage/rules/rule": rule +"/serviceuser:v1/Context": context +"/serviceuser:v1/Context/rules": rules +"/serviceuser:v1/Context/rules/rule": rule +"/serviceuser:v1/LogDescriptor": log_descriptor +"/serviceuser:v1/LogDescriptor/labels": labels +"/serviceuser:v1/LogDescriptor/labels/label": label +"/serviceuser:v1/LogDescriptor/name": name +"/serviceuser:v1/LogDescriptor/displayName": display_name +"/serviceuser:v1/LogDescriptor/description": description +"/serviceuser:v1/MonitoredResourceDescriptor": monitored_resource_descriptor +"/serviceuser:v1/MonitoredResourceDescriptor/name": name +"/serviceuser:v1/MonitoredResourceDescriptor/description": description +"/serviceuser:v1/MonitoredResourceDescriptor/displayName": display_name +"/serviceuser:v1/MonitoredResourceDescriptor/type": type +"/serviceuser:v1/MonitoredResourceDescriptor/labels": labels +"/serviceuser:v1/MonitoredResourceDescriptor/labels/label": label +"/serviceuser:v1/CustomErrorRule": custom_error_rule +"/serviceuser:v1/CustomErrorRule/isErrorType": is_error_type +"/serviceuser:v1/CustomErrorRule/selector": selector +"/serviceuser:v1/CustomAuthRequirements": custom_auth_requirements +"/serviceuser:v1/CustomAuthRequirements/provider": provider +"/serviceuser:v1/MediaDownload": media_download +"/serviceuser:v1/MediaDownload/completeNotification": complete_notification +"/serviceuser:v1/MediaDownload/enabled": enabled +"/serviceuser:v1/MediaDownload/downloadService": download_service +"/serviceuser:v1/MediaDownload/maxDirectDownloadSize": max_direct_download_size +"/serviceuser:v1/MediaDownload/dropzone": dropzone +"/serviceuser:v1/MediaDownload/useDirectDownload": use_direct_download +"/serviceuser:v1/DisableServiceRequest": disable_service_request +"/serviceuser:v1/SearchServicesResponse": search_services_response +"/serviceuser:v1/SearchServicesResponse/nextPageToken": next_page_token +"/serviceuser:v1/SearchServicesResponse/services": services +"/serviceuser:v1/SearchServicesResponse/services/service": service +"/serviceuser:v1/MediaUpload": media_upload +"/serviceuser:v1/MediaUpload/uploadService": upload_service +"/serviceuser:v1/MediaUpload/maxSize": max_size +"/serviceuser:v1/MediaUpload/mimeTypes": mime_types +"/serviceuser:v1/MediaUpload/mimeTypes/mime_type": mime_type +"/serviceuser:v1/MediaUpload/enabled": enabled +"/serviceuser:v1/MediaUpload/progressNotification": progress_notification +"/serviceuser:v1/MediaUpload/completeNotification": complete_notification +"/serviceuser:v1/MediaUpload/dropzone": dropzone +"/serviceuser:v1/MediaUpload/startNotification": start_notification "/serviceuser:v1/UsageRule": usage_rule -"/serviceuser:v1/UsageRule/selector": selector "/serviceuser:v1/UsageRule/allowUnregisteredCalls": allow_unregistered_calls +"/serviceuser:v1/UsageRule/selector": selector +"/serviceuser:v1/UsageRule/skipServiceControl": skip_service_control "/serviceuser:v1/AuthRequirement": auth_requirement -"/serviceuser:v1/AuthRequirement/providerId": provider_id "/serviceuser:v1/AuthRequirement/audiences": audiences +"/serviceuser:v1/AuthRequirement/providerId": provider_id "/serviceuser:v1/Documentation": documentation +"/serviceuser:v1/Documentation/summary": summary "/serviceuser:v1/Documentation/documentationRootUrl": documentation_root_url +"/serviceuser:v1/Documentation/overview": overview "/serviceuser:v1/Documentation/rules": rules "/serviceuser:v1/Documentation/rules/rule": rule -"/serviceuser:v1/Documentation/overview": overview "/serviceuser:v1/Documentation/pages": pages "/serviceuser:v1/Documentation/pages/page": page -"/serviceuser:v1/Documentation/summary": summary "/serviceuser:v1/AuthenticationRule": authentication_rule -"/serviceuser:v1/AuthenticationRule/oauth": oauth "/serviceuser:v1/AuthenticationRule/customAuth": custom_auth +"/serviceuser:v1/AuthenticationRule/oauth": oauth "/serviceuser:v1/AuthenticationRule/requirements": requirements "/serviceuser:v1/AuthenticationRule/requirements/requirement": requirement -"/serviceuser:v1/AuthenticationRule/selector": selector "/serviceuser:v1/AuthenticationRule/allowWithoutCredential": allow_without_credential +"/serviceuser:v1/AuthenticationRule/selector": selector "/serviceuser:v1/BackendRule": backend_rule "/serviceuser:v1/BackendRule/address": address "/serviceuser:v1/BackendRule/selector": selector @@ -35764,44 +36065,58 @@ "/serviceuser:v1/Api/mixins": mixins "/serviceuser:v1/Api/mixins/mixin": mixin "/serviceuser:v1/MetricRule": metric_rule -"/serviceuser:v1/MetricRule/selector": selector "/serviceuser:v1/MetricRule/metricCosts": metric_costs "/serviceuser:v1/MetricRule/metricCosts/metric_cost": metric_cost +"/serviceuser:v1/MetricRule/selector": selector "/serviceuser:v1/Authentication": authentication "/serviceuser:v1/Authentication/rules": rules "/serviceuser:v1/Authentication/rules/rule": rule "/serviceuser:v1/Authentication/providers": providers "/serviceuser:v1/Authentication/providers/provider": provider "/serviceuser:v1/Operation": operation +"/serviceuser:v1/Operation/metadata": metadata +"/serviceuser:v1/Operation/metadata/metadatum": metadatum +"/serviceuser:v1/Operation/done": done "/serviceuser:v1/Operation/response": response "/serviceuser:v1/Operation/response/response": response "/serviceuser:v1/Operation/name": name "/serviceuser:v1/Operation/error": error -"/serviceuser:v1/Operation/metadata": metadata -"/serviceuser:v1/Operation/metadata/metadatum": metadatum -"/serviceuser:v1/Operation/done": done "/serviceuser:v1/Page": page +"/serviceuser:v1/Page/name": name "/serviceuser:v1/Page/content": content "/serviceuser:v1/Page/subpages": subpages "/serviceuser:v1/Page/subpages/subpage": subpage -"/serviceuser:v1/Page/name": name "/serviceuser:v1/Status": status +"/serviceuser:v1/Status/code": code +"/serviceuser:v1/Status/message": message "/serviceuser:v1/Status/details": details "/serviceuser:v1/Status/details/detail": detail "/serviceuser:v1/Status/details/detail/detail": detail -"/serviceuser:v1/Status/code": code -"/serviceuser:v1/Status/message": message "/serviceuser:v1/AuthProvider": auth_provider -"/serviceuser:v1/AuthProvider/audiences": audiences -"/serviceuser:v1/AuthProvider/id": id -"/serviceuser:v1/AuthProvider/issuer": issuer "/serviceuser:v1/AuthProvider/jwksUri": jwks_uri +"/serviceuser:v1/AuthProvider/audiences": audiences +"/serviceuser:v1/AuthProvider/issuer": issuer +"/serviceuser:v1/AuthProvider/id": id "/serviceuser:v1/EnumValue": enum_value "/serviceuser:v1/EnumValue/options": options "/serviceuser:v1/EnumValue/options/option": option "/serviceuser:v1/EnumValue/number": number "/serviceuser:v1/EnumValue/name": name "/serviceuser:v1/Service": service +"/serviceuser:v1/Service/logs": logs +"/serviceuser:v1/Service/logs/log": log +"/serviceuser:v1/Service/apis": apis +"/serviceuser:v1/Service/apis/api": api +"/serviceuser:v1/Service/types": types +"/serviceuser:v1/Service/types/type": type +"/serviceuser:v1/Service/sourceInfo": source_info +"/serviceuser:v1/Service/http": http +"/serviceuser:v1/Service/backend": backend +"/serviceuser:v1/Service/systemParameters": system_parameters +"/serviceuser:v1/Service/documentation": documentation +"/serviceuser:v1/Service/monitoredResources": monitored_resources +"/serviceuser:v1/Service/monitoredResources/monitored_resource": monitored_resource +"/serviceuser:v1/Service/logging": logging "/serviceuser:v1/Service/enums": enums "/serviceuser:v1/Service/enums/enum": enum "/serviceuser:v1/Service/context": context @@ -35814,9 +36129,9 @@ "/serviceuser:v1/Service/control": control "/serviceuser:v1/Service/configVersion": config_version "/serviceuser:v1/Service/monitoring": monitoring -"/serviceuser:v1/Service/producerProjectId": producer_project_id "/serviceuser:v1/Service/systemTypes": system_types "/serviceuser:v1/Service/systemTypes/system_type": system_type +"/serviceuser:v1/Service/producerProjectId": producer_project_id "/serviceuser:v1/Service/visibility": visibility "/serviceuser:v1/Service/quota": quota "/serviceuser:v1/Service/name": name @@ -35824,27 +36139,13 @@ "/serviceuser:v1/Service/title": title "/serviceuser:v1/Service/endpoints": endpoints "/serviceuser:v1/Service/endpoints/endpoint": endpoint -"/serviceuser:v1/Service/apis": apis -"/serviceuser:v1/Service/apis/api": api -"/serviceuser:v1/Service/logs": logs -"/serviceuser:v1/Service/logs/log": log -"/serviceuser:v1/Service/types": types -"/serviceuser:v1/Service/types/type": type -"/serviceuser:v1/Service/sourceInfo": source_info -"/serviceuser:v1/Service/http": http -"/serviceuser:v1/Service/backend": backend -"/serviceuser:v1/Service/systemParameters": system_parameters -"/serviceuser:v1/Service/documentation": documentation -"/serviceuser:v1/Service/monitoredResources": monitored_resources -"/serviceuser:v1/Service/monitoredResources/monitored_resource": monitored_resource -"/serviceuser:v1/Service/logging": logging "/serviceuser:v1/OperationMetadata": operation_metadata -"/serviceuser:v1/OperationMetadata/startTime": start_time -"/serviceuser:v1/OperationMetadata/resourceNames": resource_names -"/serviceuser:v1/OperationMetadata/resourceNames/resource_name": resource_name "/serviceuser:v1/OperationMetadata/steps": steps "/serviceuser:v1/OperationMetadata/steps/step": step +"/serviceuser:v1/OperationMetadata/resourceNames": resource_names +"/serviceuser:v1/OperationMetadata/resourceNames/resource_name": resource_name "/serviceuser:v1/OperationMetadata/progressPercentage": progress_percentage +"/serviceuser:v1/OperationMetadata/startTime": start_time "/serviceuser:v1/CustomHttpPattern": custom_http_pattern "/serviceuser:v1/CustomHttpPattern/path": path "/serviceuser:v1/CustomHttpPattern/kind": kind @@ -35855,25 +36156,25 @@ "/serviceuser:v1/PublishedService": published_service "/serviceuser:v1/PublishedService/service": service "/serviceuser:v1/PublishedService/name": name -"/serviceuser:v1/VisibilityRule": visibility_rule -"/serviceuser:v1/VisibilityRule/restriction": restriction -"/serviceuser:v1/VisibilityRule/selector": selector "/serviceuser:v1/HttpRule": http_rule +"/serviceuser:v1/HttpRule/selector": selector "/serviceuser:v1/HttpRule/custom": custom "/serviceuser:v1/HttpRule/get": get "/serviceuser:v1/HttpRule/patch": patch "/serviceuser:v1/HttpRule/put": put "/serviceuser:v1/HttpRule/delete": delete "/serviceuser:v1/HttpRule/body": body -"/serviceuser:v1/HttpRule/post": post "/serviceuser:v1/HttpRule/mediaDownload": media_download +"/serviceuser:v1/HttpRule/post": post "/serviceuser:v1/HttpRule/restMethodName": rest_method_name "/serviceuser:v1/HttpRule/additionalBindings": additional_bindings "/serviceuser:v1/HttpRule/additionalBindings/additional_binding": additional_binding "/serviceuser:v1/HttpRule/responseBody": response_body "/serviceuser:v1/HttpRule/restCollection": rest_collection "/serviceuser:v1/HttpRule/mediaUpload": media_upload -"/serviceuser:v1/HttpRule/selector": selector +"/serviceuser:v1/VisibilityRule": visibility_rule +"/serviceuser:v1/VisibilityRule/restriction": restriction +"/serviceuser:v1/VisibilityRule/selector": selector "/serviceuser:v1/MonitoringDestination": monitoring_destination "/serviceuser:v1/MonitoringDestination/monitoredResource": monitored_resource "/serviceuser:v1/MonitoringDestination/metrics": metrics @@ -35885,10 +36186,10 @@ "/serviceuser:v1/SystemParameters/rules": rules "/serviceuser:v1/SystemParameters/rules/rule": rule "/serviceuser:v1/Quota": quota -"/serviceuser:v1/Quota/metricRules": metric_rules -"/serviceuser:v1/Quota/metricRules/metric_rule": metric_rule "/serviceuser:v1/Quota/limits": limits "/serviceuser:v1/Quota/limits/limit": limit +"/serviceuser:v1/Quota/metricRules": metric_rules +"/serviceuser:v1/Quota/metricRules/metric_rule": metric_rule "/serviceuser:v1/Step": step "/serviceuser:v1/Step/status": status "/serviceuser:v1/Step/description": description @@ -35897,35 +36198,35 @@ "/serviceuser:v1/LoggingDestination/logs/log": log "/serviceuser:v1/LoggingDestination/monitoredResource": monitored_resource "/serviceuser:v1/Option": option +"/serviceuser:v1/Option/name": name "/serviceuser:v1/Option/value": value "/serviceuser:v1/Option/value/value": value -"/serviceuser:v1/Option/name": name "/serviceuser:v1/Logging": logging -"/serviceuser:v1/Logging/producerDestinations": producer_destinations -"/serviceuser:v1/Logging/producerDestinations/producer_destination": producer_destination "/serviceuser:v1/Logging/consumerDestinations": consumer_destinations "/serviceuser:v1/Logging/consumerDestinations/consumer_destination": consumer_destination -"/serviceuser:v1/Method": method_prop -"/serviceuser:v1/Method/responseTypeUrl": response_type_url -"/serviceuser:v1/Method/options": options -"/serviceuser:v1/Method/options/option": option -"/serviceuser:v1/Method/responseStreaming": response_streaming -"/serviceuser:v1/Method/name": name -"/serviceuser:v1/Method/requestTypeUrl": request_type_url -"/serviceuser:v1/Method/requestStreaming": request_streaming -"/serviceuser:v1/Method/syntax": syntax +"/serviceuser:v1/Logging/producerDestinations": producer_destinations +"/serviceuser:v1/Logging/producerDestinations/producer_destination": producer_destination "/serviceuser:v1/QuotaLimit": quota_limit +"/serviceuser:v1/QuotaLimit/freeTier": free_tier +"/serviceuser:v1/QuotaLimit/duration": duration +"/serviceuser:v1/QuotaLimit/defaultLimit": default_limit +"/serviceuser:v1/QuotaLimit/displayName": display_name +"/serviceuser:v1/QuotaLimit/metric": metric +"/serviceuser:v1/QuotaLimit/description": description "/serviceuser:v1/QuotaLimit/values": values "/serviceuser:v1/QuotaLimit/values/value": value "/serviceuser:v1/QuotaLimit/unit": unit "/serviceuser:v1/QuotaLimit/maxLimit": max_limit "/serviceuser:v1/QuotaLimit/name": name -"/serviceuser:v1/QuotaLimit/duration": duration -"/serviceuser:v1/QuotaLimit/freeTier": free_tier -"/serviceuser:v1/QuotaLimit/defaultLimit": default_limit -"/serviceuser:v1/QuotaLimit/metric": metric -"/serviceuser:v1/QuotaLimit/displayName": display_name -"/serviceuser:v1/QuotaLimit/description": description +"/serviceuser:v1/Method": method_prop +"/serviceuser:v1/Method/name": name +"/serviceuser:v1/Method/requestTypeUrl": request_type_url +"/serviceuser:v1/Method/requestStreaming": request_streaming +"/serviceuser:v1/Method/syntax": syntax +"/serviceuser:v1/Method/responseTypeUrl": response_type_url +"/serviceuser:v1/Method/options": options +"/serviceuser:v1/Method/options/option": option +"/serviceuser:v1/Method/responseStreaming": response_streaming "/serviceuser:v1/Mixin": mixin "/serviceuser:v1/Mixin/root": root "/serviceuser:v1/Mixin/name": name @@ -35935,9 +36236,9 @@ "/serviceuser:v1/CustomError/types": types "/serviceuser:v1/CustomError/types/type": type "/serviceuser:v1/Http": http -"/serviceuser:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion "/serviceuser:v1/Http/rules": rules "/serviceuser:v1/Http/rules/rule": rule +"/serviceuser:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion "/serviceuser:v1/SourceInfo": source_info "/serviceuser:v1/SourceInfo/sourceFiles": source_files "/serviceuser:v1/SourceInfo/sourceFiles/source_file": source_file @@ -35948,31 +36249,31 @@ "/serviceuser:v1/SystemParameter/httpHeader": http_header "/serviceuser:v1/SystemParameter/name": name "/serviceuser:v1/SystemParameter/urlQueryParameter": url_query_parameter +"/serviceuser:v1/Monitoring": monitoring +"/serviceuser:v1/Monitoring/producerDestinations": producer_destinations +"/serviceuser:v1/Monitoring/producerDestinations/producer_destination": producer_destination +"/serviceuser:v1/Monitoring/consumerDestinations": consumer_destinations +"/serviceuser:v1/Monitoring/consumerDestinations/consumer_destination": consumer_destination "/serviceuser:v1/Field": field -"/serviceuser:v1/Field/cardinality": cardinality +"/serviceuser:v1/Field/options": options +"/serviceuser:v1/Field/options/option": option +"/serviceuser:v1/Field/oneofIndex": oneof_index "/serviceuser:v1/Field/packed": packed +"/serviceuser:v1/Field/cardinality": cardinality "/serviceuser:v1/Field/defaultValue": default_value "/serviceuser:v1/Field/name": name "/serviceuser:v1/Field/typeUrl": type_url "/serviceuser:v1/Field/number": number "/serviceuser:v1/Field/jsonName": json_name "/serviceuser:v1/Field/kind": kind -"/serviceuser:v1/Field/options": options -"/serviceuser:v1/Field/options/option": option -"/serviceuser:v1/Field/oneofIndex": oneof_index -"/serviceuser:v1/Monitoring": monitoring -"/serviceuser:v1/Monitoring/consumerDestinations": consumer_destinations -"/serviceuser:v1/Monitoring/consumerDestinations/consumer_destination": consumer_destination -"/serviceuser:v1/Monitoring/producerDestinations": producer_destinations -"/serviceuser:v1/Monitoring/producerDestinations/producer_destination": producer_destination "/serviceuser:v1/Enum": enum -"/serviceuser:v1/Enum/name": name -"/serviceuser:v1/Enum/enumvalue": enumvalue -"/serviceuser:v1/Enum/enumvalue/enumvalue": enumvalue "/serviceuser:v1/Enum/options": options "/serviceuser:v1/Enum/options/option": option -"/serviceuser:v1/Enum/sourceContext": source_context "/serviceuser:v1/Enum/syntax": syntax +"/serviceuser:v1/Enum/sourceContext": source_context +"/serviceuser:v1/Enum/enumvalue": enumvalue +"/serviceuser:v1/Enum/enumvalue/enumvalue": enumvalue +"/serviceuser:v1/Enum/name": name "/serviceuser:v1/EnableServiceRequest": enable_service_request "/serviceuser:v1/LabelDescriptor": label_descriptor "/serviceuser:v1/LabelDescriptor/valueType": value_type @@ -36000,121 +36301,38 @@ "/serviceuser:v1/AuthorizationConfig": authorization_config "/serviceuser:v1/AuthorizationConfig/provider": provider "/serviceuser:v1/ContextRule": context_rule +"/serviceuser:v1/ContextRule/selector": selector "/serviceuser:v1/ContextRule/provided": provided "/serviceuser:v1/ContextRule/provided/provided": provided "/serviceuser:v1/ContextRule/requested": requested "/serviceuser:v1/ContextRule/requested/requested": requested -"/serviceuser:v1/ContextRule/selector": selector "/serviceuser:v1/MetricDescriptor": metric_descriptor -"/serviceuser:v1/MetricDescriptor/name": name -"/serviceuser:v1/MetricDescriptor/type": type -"/serviceuser:v1/MetricDescriptor/valueType": value_type "/serviceuser:v1/MetricDescriptor/metricKind": metric_kind "/serviceuser:v1/MetricDescriptor/displayName": display_name "/serviceuser:v1/MetricDescriptor/description": description "/serviceuser:v1/MetricDescriptor/unit": unit "/serviceuser:v1/MetricDescriptor/labels": labels "/serviceuser:v1/MetricDescriptor/labels/label": label +"/serviceuser:v1/MetricDescriptor/name": name +"/serviceuser:v1/MetricDescriptor/type": type +"/serviceuser:v1/MetricDescriptor/valueType": value_type "/serviceuser:v1/SourceContext": source_context "/serviceuser:v1/SourceContext/fileName": file_name -"/serviceuser:v1/Endpoint": endpoint -"/serviceuser:v1/Endpoint/allowCors": allow_cors -"/serviceuser:v1/Endpoint/aliases": aliases -"/serviceuser:v1/Endpoint/aliases/alias": alias -"/serviceuser:v1/Endpoint/name": name -"/serviceuser:v1/Endpoint/target": target -"/serviceuser:v1/Endpoint/features": features -"/serviceuser:v1/Endpoint/features/feature": feature -"/serviceuser:v1/Endpoint/apis": apis -"/serviceuser:v1/Endpoint/apis/api": api -"/serviceuser:v1/ListEnabledServicesResponse": list_enabled_services_response -"/serviceuser:v1/ListEnabledServicesResponse/services": services -"/serviceuser:v1/ListEnabledServicesResponse/services/service": service -"/serviceuser:v1/ListEnabledServicesResponse/nextPageToken": next_page_token -"/serviceuser:v1/OAuthRequirements": o_auth_requirements -"/serviceuser:v1/OAuthRequirements/canonicalScopes": canonical_scopes -"/serviceuser:v1/Usage": usage -"/serviceuser:v1/Usage/producerNotificationChannel": producer_notification_channel -"/serviceuser:v1/Usage/rules": rules -"/serviceuser:v1/Usage/rules/rule": rule -"/serviceuser:v1/Usage/requirements": requirements -"/serviceuser:v1/Usage/requirements/requirement": requirement -"/serviceuser:v1/Context": context -"/serviceuser:v1/Context/rules": rules -"/serviceuser:v1/Context/rules/rule": rule -"/serviceuser:v1/LogDescriptor": log_descriptor -"/serviceuser:v1/LogDescriptor/labels": labels -"/serviceuser:v1/LogDescriptor/labels/label": label -"/serviceuser:v1/LogDescriptor/name": name -"/serviceuser:v1/LogDescriptor/description": description -"/serviceuser:v1/LogDescriptor/displayName": display_name -"/serviceuser:v1/CustomErrorRule": custom_error_rule -"/serviceuser:v1/CustomErrorRule/selector": selector -"/serviceuser:v1/CustomErrorRule/isErrorType": is_error_type -"/serviceuser:v1/MonitoredResourceDescriptor": monitored_resource_descriptor -"/serviceuser:v1/MonitoredResourceDescriptor/name": name -"/serviceuser:v1/MonitoredResourceDescriptor/displayName": display_name -"/serviceuser:v1/MonitoredResourceDescriptor/description": description -"/serviceuser:v1/MonitoredResourceDescriptor/type": type -"/serviceuser:v1/MonitoredResourceDescriptor/labels": labels -"/serviceuser:v1/MonitoredResourceDescriptor/labels/label": label -"/serviceuser:v1/MediaDownload": media_download -"/serviceuser:v1/MediaDownload/useDirectDownload": use_direct_download -"/serviceuser:v1/MediaDownload/enabled": enabled -"/serviceuser:v1/MediaDownload/downloadService": download_service -"/serviceuser:v1/MediaDownload/completeNotification": complete_notification -"/serviceuser:v1/MediaDownload/maxDirectDownloadSize": max_direct_download_size -"/serviceuser:v1/MediaDownload/dropzone": dropzone -"/serviceuser:v1/CustomAuthRequirements": custom_auth_requirements -"/serviceuser:v1/CustomAuthRequirements/provider": provider -"/serviceuser:v1/DisableServiceRequest": disable_service_request -"/serviceuser:v1/SearchServicesResponse": search_services_response -"/serviceuser:v1/SearchServicesResponse/services": services -"/serviceuser:v1/SearchServicesResponse/services/service": service -"/serviceuser:v1/SearchServicesResponse/nextPageToken": next_page_token -"/serviceuser:v1/MediaUpload": media_upload -"/serviceuser:v1/MediaUpload/completeNotification": complete_notification -"/serviceuser:v1/MediaUpload/progressNotification": progress_notification -"/serviceuser:v1/MediaUpload/enabled": enabled -"/serviceuser:v1/MediaUpload/dropzone": dropzone -"/serviceuser:v1/MediaUpload/startNotification": start_notification -"/serviceuser:v1/MediaUpload/uploadService": upload_service -"/serviceuser:v1/MediaUpload/mimeTypes": mime_types -"/serviceuser:v1/MediaUpload/mimeTypes/mime_type": mime_type -"/serviceuser:v1/MediaUpload/maxSize": max_size -"/sheets:v4/fields": fields "/sheets:v4/key": key "/sheets:v4/quotaUser": quota_user +"/sheets:v4/fields": fields "/sheets:v4/sheets.spreadsheets.get": get_spreadsheet -"/sheets:v4/sheets.spreadsheets.get/ranges": ranges "/sheets:v4/sheets.spreadsheets.get/includeGridData": include_grid_data +"/sheets:v4/sheets.spreadsheets.get/ranges": ranges "/sheets:v4/sheets.spreadsheets.get/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.create": create_spreadsheet "/sheets:v4/sheets.spreadsheets.batchUpdate": batch_update_spreadsheet "/sheets:v4/sheets.spreadsheets.batchUpdate/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.values.clear": clear_values -"/sheets:v4/sheets.spreadsheets.values.clear/range": range -"/sheets:v4/sheets.spreadsheets.values.clear/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges -"/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension -"/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option -"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option -"/sheets:v4/sheets.spreadsheets.values.append": append_spreadsheet_value -"/sheets:v4/sheets.spreadsheets.values.append/responseValueRenderOption": response_value_render_option -"/sheets:v4/sheets.spreadsheets.values.append/insertDataOption": insert_data_option -"/sheets:v4/sheets.spreadsheets.values.append/valueInputOption": value_input_option -"/sheets:v4/sheets.spreadsheets.values.append/responseDateTimeRenderOption": response_date_time_render_option -"/sheets:v4/sheets.spreadsheets.values.append/includeValuesInResponse": include_values_in_response -"/sheets:v4/sheets.spreadsheets.values.append/range": range -"/sheets:v4/sheets.spreadsheets.values.append/spreadsheetId": spreadsheet_id -"/sheets:v4/sheets.spreadsheets.values.batchClear": batch_clear_values -"/sheets:v4/sheets.spreadsheets.values.batchClear/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.create": create_spreadsheet "/sheets:v4/sheets.spreadsheets.values.get/majorDimension": major_dimension "/sheets:v4/sheets.spreadsheets.values.get/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.get/range": range -"/sheets:v4/sheets.spreadsheets.values.get/valueRenderOption": value_render_option "/sheets:v4/sheets.spreadsheets.values.get/dateTimeRenderOption": date_time_render_option +"/sheets:v4/sheets.spreadsheets.values.get/valueRenderOption": value_render_option "/sheets:v4/sheets.spreadsheets.values.update": update_spreadsheet_value "/sheets:v4/sheets.spreadsheets.values.update/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.update/responseValueRenderOption": response_value_render_option @@ -36124,14 +36342,320 @@ "/sheets:v4/sheets.spreadsheets.values.update/range": range "/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values "/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension +"/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges +"/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option +"/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option +"/sheets:v4/sheets.spreadsheets.values.clear": clear_values +"/sheets:v4/sheets.spreadsheets.values.clear/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.clear/range": range +"/sheets:v4/sheets.spreadsheets.values.append": append_spreadsheet_value +"/sheets:v4/sheets.spreadsheets.values.append/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.append/responseValueRenderOption": response_value_render_option +"/sheets:v4/sheets.spreadsheets.values.append/insertDataOption": insert_data_option +"/sheets:v4/sheets.spreadsheets.values.append/valueInputOption": value_input_option +"/sheets:v4/sheets.spreadsheets.values.append/responseDateTimeRenderOption": response_date_time_render_option +"/sheets:v4/sheets.spreadsheets.values.append/range": range +"/sheets:v4/sheets.spreadsheets.values.append/includeValuesInResponse": include_values_in_response +"/sheets:v4/sheets.spreadsheets.values.batchClear": batch_clear_values +"/sheets:v4/sheets.spreadsheets.values.batchClear/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo/sheetId": sheet_id +"/sheets:v4/AddFilterViewResponse": add_filter_view_response +"/sheets:v4/AddFilterViewResponse/filter": filter +"/sheets:v4/IterativeCalculationSettings": iterative_calculation_settings +"/sheets:v4/IterativeCalculationSettings/convergenceThreshold": convergence_threshold +"/sheets:v4/IterativeCalculationSettings/maxIterations": max_iterations +"/sheets:v4/SpreadsheetProperties": spreadsheet_properties +"/sheets:v4/SpreadsheetProperties/title": title +"/sheets:v4/SpreadsheetProperties/timeZone": time_zone +"/sheets:v4/SpreadsheetProperties/locale": locale +"/sheets:v4/SpreadsheetProperties/iterativeCalculationSettings": iterative_calculation_settings +"/sheets:v4/SpreadsheetProperties/autoRecalc": auto_recalc +"/sheets:v4/SpreadsheetProperties/defaultFormat": default_format +"/sheets:v4/OverlayPosition": overlay_position +"/sheets:v4/OverlayPosition/widthPixels": width_pixels +"/sheets:v4/OverlayPosition/offsetXPixels": offset_x_pixels +"/sheets:v4/OverlayPosition/anchorCell": anchor_cell +"/sheets:v4/OverlayPosition/heightPixels": height_pixels +"/sheets:v4/OverlayPosition/offsetYPixels": offset_y_pixels +"/sheets:v4/RepeatCellRequest": repeat_cell_request +"/sheets:v4/RepeatCellRequest/fields": fields +"/sheets:v4/RepeatCellRequest/cell": cell +"/sheets:v4/RepeatCellRequest/range": range +"/sheets:v4/AddChartResponse": add_chart_response +"/sheets:v4/AddChartResponse/chart": chart +"/sheets:v4/InsertDimensionRequest": insert_dimension_request +"/sheets:v4/InsertDimensionRequest/range": range +"/sheets:v4/InsertDimensionRequest/inheritFromBefore": inherit_from_before +"/sheets:v4/UpdateSpreadsheetPropertiesRequest": update_spreadsheet_properties_request +"/sheets:v4/UpdateSpreadsheetPropertiesRequest/fields": fields +"/sheets:v4/UpdateSpreadsheetPropertiesRequest/properties": properties +"/sheets:v4/ProtectedRange": protected_range +"/sheets:v4/ProtectedRange/range": range +"/sheets:v4/ProtectedRange/editors": editors +"/sheets:v4/ProtectedRange/description": description +"/sheets:v4/ProtectedRange/unprotectedRanges": unprotected_ranges +"/sheets:v4/ProtectedRange/unprotectedRanges/unprotected_range": unprotected_range +"/sheets:v4/ProtectedRange/namedRangeId": named_range_id +"/sheets:v4/ProtectedRange/protectedRangeId": protected_range_id +"/sheets:v4/ProtectedRange/warningOnly": warning_only +"/sheets:v4/ProtectedRange/requestingUserCanEdit": requesting_user_can_edit +"/sheets:v4/BatchUpdateValuesRequest": batch_update_values_request +"/sheets:v4/BatchUpdateValuesRequest/responseValueRenderOption": response_value_render_option +"/sheets:v4/BatchUpdateValuesRequest/includeValuesInResponse": include_values_in_response +"/sheets:v4/BatchUpdateValuesRequest/data": data +"/sheets:v4/BatchUpdateValuesRequest/data/datum": datum +"/sheets:v4/BatchUpdateValuesRequest/valueInputOption": value_input_option +"/sheets:v4/BatchUpdateValuesRequest/responseDateTimeRenderOption": response_date_time_render_option +"/sheets:v4/DimensionProperties": dimension_properties +"/sheets:v4/DimensionProperties/pixelSize": pixel_size +"/sheets:v4/DimensionProperties/hiddenByUser": hidden_by_user +"/sheets:v4/DimensionProperties/hiddenByFilter": hidden_by_filter +"/sheets:v4/NamedRange": named_range +"/sheets:v4/NamedRange/namedRangeId": named_range_id +"/sheets:v4/NamedRange/range": range +"/sheets:v4/NamedRange/name": name +"/sheets:v4/DimensionRange": dimension_range +"/sheets:v4/DimensionRange/dimension": dimension +"/sheets:v4/DimensionRange/endIndex": end_index +"/sheets:v4/DimensionRange/startIndex": start_index +"/sheets:v4/DimensionRange/sheetId": sheet_id +"/sheets:v4/CutPasteRequest": cut_paste_request +"/sheets:v4/CutPasteRequest/destination": destination +"/sheets:v4/CutPasteRequest/pasteType": paste_type +"/sheets:v4/CutPasteRequest/source": source +"/sheets:v4/Borders": borders +"/sheets:v4/Borders/right": right +"/sheets:v4/Borders/bottom": bottom +"/sheets:v4/Borders/top": top +"/sheets:v4/Borders/left": left +"/sheets:v4/BasicChartSeries": basic_chart_series +"/sheets:v4/BasicChartSeries/targetAxis": target_axis +"/sheets:v4/BasicChartSeries/type": type +"/sheets:v4/BasicChartSeries/series": series +"/sheets:v4/AutoResizeDimensionsRequest": auto_resize_dimensions_request +"/sheets:v4/AutoResizeDimensionsRequest/dimensions": dimensions +"/sheets:v4/UpdateBordersRequest": update_borders_request +"/sheets:v4/UpdateBordersRequest/innerVertical": inner_vertical +"/sheets:v4/UpdateBordersRequest/right": right +"/sheets:v4/UpdateBordersRequest/range": range +"/sheets:v4/UpdateBordersRequest/innerHorizontal": inner_horizontal +"/sheets:v4/UpdateBordersRequest/top": top +"/sheets:v4/UpdateBordersRequest/left": left +"/sheets:v4/UpdateBordersRequest/bottom": bottom +"/sheets:v4/CellFormat": cell_format +"/sheets:v4/CellFormat/numberFormat": number_format +"/sheets:v4/CellFormat/hyperlinkDisplayType": hyperlink_display_type +"/sheets:v4/CellFormat/horizontalAlignment": horizontal_alignment +"/sheets:v4/CellFormat/textFormat": text_format +"/sheets:v4/CellFormat/backgroundColor": background_color +"/sheets:v4/CellFormat/verticalAlignment": vertical_alignment +"/sheets:v4/CellFormat/padding": padding +"/sheets:v4/CellFormat/textDirection": text_direction +"/sheets:v4/CellFormat/borders": borders +"/sheets:v4/CellFormat/textRotation": text_rotation +"/sheets:v4/CellFormat/wrapStrategy": wrap_strategy +"/sheets:v4/ClearValuesResponse": clear_values_response +"/sheets:v4/ClearValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/ClearValuesResponse/clearedRange": cleared_range +"/sheets:v4/DeleteConditionalFormatRuleRequest": delete_conditional_format_rule_request +"/sheets:v4/DeleteConditionalFormatRuleRequest/index": index +"/sheets:v4/DeleteConditionalFormatRuleRequest/sheetId": sheet_id +"/sheets:v4/DeleteNamedRangeRequest": delete_named_range_request +"/sheets:v4/DeleteNamedRangeRequest/namedRangeId": named_range_id +"/sheets:v4/AddBandingResponse": add_banding_response +"/sheets:v4/AddBandingResponse/bandedRange": banded_range +"/sheets:v4/ChartData": chart_data +"/sheets:v4/ChartData/sourceRange": source_range +"/sheets:v4/BatchGetValuesResponse": batch_get_values_response +"/sheets:v4/BatchGetValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchGetValuesResponse/valueRanges": value_ranges +"/sheets:v4/BatchGetValuesResponse/valueRanges/value_range": value_range +"/sheets:v4/UpdateBandingRequest": update_banding_request +"/sheets:v4/UpdateBandingRequest/fields": fields +"/sheets:v4/UpdateBandingRequest/bandedRange": banded_range +"/sheets:v4/Color": color +"/sheets:v4/Color/alpha": alpha +"/sheets:v4/Color/blue": blue +"/sheets:v4/Color/green": green +"/sheets:v4/Color/red": red +"/sheets:v4/PivotGroup": pivot_group +"/sheets:v4/PivotGroup/valueBucket": value_bucket +"/sheets:v4/PivotGroup/valueMetadata": value_metadata +"/sheets:v4/PivotGroup/valueMetadata/value_metadatum": value_metadatum +"/sheets:v4/PivotGroup/showTotals": show_totals +"/sheets:v4/PivotGroup/sourceColumnOffset": source_column_offset +"/sheets:v4/PivotGroup/sortOrder": sort_order +"/sheets:v4/PivotTable": pivot_table +"/sheets:v4/PivotTable/criteria": criteria +"/sheets:v4/PivotTable/criteria/criterium": criterium +"/sheets:v4/PivotTable/rows": rows +"/sheets:v4/PivotTable/rows/row": row +"/sheets:v4/PivotTable/valueLayout": value_layout +"/sheets:v4/PivotTable/columns": columns +"/sheets:v4/PivotTable/columns/column": column +"/sheets:v4/PivotTable/values": values +"/sheets:v4/PivotTable/values/value": value +"/sheets:v4/PivotTable/source": source +"/sheets:v4/ChartSourceRange": chart_source_range +"/sheets:v4/ChartSourceRange/sources": sources +"/sheets:v4/ChartSourceRange/sources/source": source +"/sheets:v4/ValueRange": value_range +"/sheets:v4/ValueRange/range": range +"/sheets:v4/ValueRange/values": values +"/sheets:v4/ValueRange/values/value": value +"/sheets:v4/ValueRange/values/value/value": value +"/sheets:v4/ValueRange/majorDimension": major_dimension +"/sheets:v4/AppendCellsRequest": append_cells_request +"/sheets:v4/AppendCellsRequest/fields": fields +"/sheets:v4/AppendCellsRequest/rows": rows +"/sheets:v4/AppendCellsRequest/rows/row": row +"/sheets:v4/AppendCellsRequest/sheetId": sheet_id +"/sheets:v4/AddBandingRequest": add_banding_request +"/sheets:v4/AddBandingRequest/bandedRange": banded_range +"/sheets:v4/Response": response +"/sheets:v4/Response/addFilterView": add_filter_view +"/sheets:v4/Response/addBanding": add_banding +"/sheets:v4/Response/addProtectedRange": add_protected_range +"/sheets:v4/Response/duplicateSheet": duplicate_sheet +"/sheets:v4/Response/updateEmbeddedObjectPosition": update_embedded_object_position +"/sheets:v4/Response/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Response/duplicateFilterView": duplicate_filter_view +"/sheets:v4/Response/addChart": add_chart +"/sheets:v4/Response/findReplace": find_replace +"/sheets:v4/Response/addSheet": add_sheet +"/sheets:v4/Response/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Response/addNamedRange": add_named_range +"/sheets:v4/InsertRangeRequest": insert_range_request +"/sheets:v4/InsertRangeRequest/shiftDimension": shift_dimension +"/sheets:v4/InsertRangeRequest/range": range +"/sheets:v4/TextFormatRun": text_format_run +"/sheets:v4/TextFormatRun/format": format +"/sheets:v4/TextFormatRun/startIndex": start_index +"/sheets:v4/EmbeddedChart": embedded_chart +"/sheets:v4/EmbeddedChart/spec": spec +"/sheets:v4/EmbeddedChart/chartId": chart_id +"/sheets:v4/EmbeddedChart/position": position +"/sheets:v4/AddNamedRangeResponse": add_named_range_response +"/sheets:v4/AddNamedRangeResponse/namedRange": named_range +"/sheets:v4/RowData": row_data +"/sheets:v4/RowData/values": values +"/sheets:v4/RowData/values/value": value +"/sheets:v4/Border": border +"/sheets:v4/Border/width": width +"/sheets:v4/Border/style": style +"/sheets:v4/Border/color": color +"/sheets:v4/GridData": grid_data +"/sheets:v4/GridData/rowData": row_data +"/sheets:v4/GridData/rowData/row_datum": row_datum +"/sheets:v4/GridData/startRow": start_row +"/sheets:v4/GridData/columnMetadata": column_metadata +"/sheets:v4/GridData/columnMetadata/column_metadatum": column_metadatum +"/sheets:v4/GridData/startColumn": start_column +"/sheets:v4/GridData/rowMetadata": row_metadata +"/sheets:v4/GridData/rowMetadata/row_metadatum": row_metadatum +"/sheets:v4/UpdateNamedRangeRequest": update_named_range_request +"/sheets:v4/UpdateNamedRangeRequest/namedRange": named_range +"/sheets:v4/UpdateNamedRangeRequest/fields": fields +"/sheets:v4/FindReplaceRequest": find_replace_request +"/sheets:v4/FindReplaceRequest/replacement": replacement +"/sheets:v4/FindReplaceRequest/range": range +"/sheets:v4/FindReplaceRequest/sheetId": sheet_id +"/sheets:v4/FindReplaceRequest/matchCase": match_case +"/sheets:v4/FindReplaceRequest/allSheets": all_sheets +"/sheets:v4/FindReplaceRequest/includeFormulas": include_formulas +"/sheets:v4/FindReplaceRequest/matchEntireCell": match_entire_cell +"/sheets:v4/FindReplaceRequest/searchByRegex": search_by_regex +"/sheets:v4/FindReplaceRequest/find": find +"/sheets:v4/AddSheetRequest": add_sheet_request +"/sheets:v4/AddSheetRequest/properties": properties +"/sheets:v4/UpdateCellsRequest": update_cells_request +"/sheets:v4/UpdateCellsRequest/start": start +"/sheets:v4/UpdateCellsRequest/range": range +"/sheets:v4/UpdateCellsRequest/fields": fields +"/sheets:v4/UpdateCellsRequest/rows": rows +"/sheets:v4/UpdateCellsRequest/rows/row": row +"/sheets:v4/RandomizeRangeRequest": randomize_range_request +"/sheets:v4/RandomizeRangeRequest/range": range +"/sheets:v4/DeleteConditionalFormatRuleResponse": delete_conditional_format_rule_response +"/sheets:v4/DeleteConditionalFormatRuleResponse/rule": rule +"/sheets:v4/DeleteRangeRequest": delete_range_request +"/sheets:v4/DeleteRangeRequest/shiftDimension": shift_dimension +"/sheets:v4/DeleteRangeRequest/range": range +"/sheets:v4/GridCoordinate": grid_coordinate +"/sheets:v4/GridCoordinate/columnIndex": column_index +"/sheets:v4/GridCoordinate/rowIndex": row_index +"/sheets:v4/GridCoordinate/sheetId": sheet_id +"/sheets:v4/UpdateSheetPropertiesRequest": update_sheet_properties_request +"/sheets:v4/UpdateSheetPropertiesRequest/fields": fields +"/sheets:v4/UpdateSheetPropertiesRequest/properties": properties +"/sheets:v4/GridProperties": grid_properties +"/sheets:v4/GridProperties/rowCount": row_count +"/sheets:v4/GridProperties/hideGridlines": hide_gridlines +"/sheets:v4/GridProperties/frozenRowCount": frozen_row_count +"/sheets:v4/GridProperties/frozenColumnCount": frozen_column_count +"/sheets:v4/GridProperties/columnCount": column_count +"/sheets:v4/UnmergeCellsRequest": unmerge_cells_request +"/sheets:v4/UnmergeCellsRequest/range": range +"/sheets:v4/SortSpec": sort_spec +"/sheets:v4/SortSpec/dimensionIndex": dimension_index +"/sheets:v4/SortSpec/sortOrder": sort_order +"/sheets:v4/Sheet": sheet +"/sheets:v4/Sheet/filterViews": filter_views +"/sheets:v4/Sheet/filterViews/filter_view": filter_view +"/sheets:v4/Sheet/protectedRanges": protected_ranges +"/sheets:v4/Sheet/protectedRanges/protected_range": protected_range +"/sheets:v4/Sheet/conditionalFormats": conditional_formats +"/sheets:v4/Sheet/conditionalFormats/conditional_format": conditional_format +"/sheets:v4/Sheet/basicFilter": basic_filter +"/sheets:v4/Sheet/merges": merges +"/sheets:v4/Sheet/merges/merge": merge +"/sheets:v4/Sheet/data": data +"/sheets:v4/Sheet/data/datum": datum +"/sheets:v4/Sheet/bandedRanges": banded_ranges +"/sheets:v4/Sheet/bandedRanges/banded_range": banded_range +"/sheets:v4/Sheet/properties": properties +"/sheets:v4/Sheet/charts": charts +"/sheets:v4/Sheet/charts/chart": chart +"/sheets:v4/UpdateEmbeddedObjectPositionResponse": update_embedded_object_position_response +"/sheets:v4/UpdateEmbeddedObjectPositionResponse/position": position +"/sheets:v4/BooleanRule": boolean_rule +"/sheets:v4/BooleanRule/condition": condition +"/sheets:v4/BooleanRule/format": format +"/sheets:v4/FilterCriteria": filter_criteria +"/sheets:v4/FilterCriteria/condition": condition +"/sheets:v4/FilterCriteria/hiddenValues": hidden_values +"/sheets:v4/FilterCriteria/hiddenValues/hidden_value": hidden_value +"/sheets:v4/PivotGroupValueMetadata": pivot_group_value_metadata +"/sheets:v4/PivotGroupValueMetadata/value": value +"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed +"/sheets:v4/Editors": editors +"/sheets:v4/Editors/users": users +"/sheets:v4/Editors/users/user": user +"/sheets:v4/Editors/domainUsersCanEdit": domain_users_can_edit +"/sheets:v4/Editors/groups": groups +"/sheets:v4/Editors/groups/group": group +"/sheets:v4/UpdateConditionalFormatRuleRequest": update_conditional_format_rule_request +"/sheets:v4/UpdateConditionalFormatRuleRequest/newIndex": new_index +"/sheets:v4/UpdateConditionalFormatRuleRequest/rule": rule +"/sheets:v4/UpdateConditionalFormatRuleRequest/index": index +"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id +"/sheets:v4/BasicChartDomain": basic_chart_domain +"/sheets:v4/BasicChartDomain/domain": domain +"/sheets:v4/BasicChartDomain/reversed": reversed +"/sheets:v4/DataValidationRule": data_validation_rule +"/sheets:v4/DataValidationRule/condition": condition +"/sheets:v4/DataValidationRule/showCustomUi": show_custom_ui +"/sheets:v4/DataValidationRule/strict": strict +"/sheets:v4/DataValidationRule/inputMessage": input_message "/sheets:v4/PasteDataRequest": paste_data_request +"/sheets:v4/PasteDataRequest/coordinate": coordinate +"/sheets:v4/PasteDataRequest/delimiter": delimiter +"/sheets:v4/PasteDataRequest/data": data "/sheets:v4/PasteDataRequest/type": type "/sheets:v4/PasteDataRequest/html": html -"/sheets:v4/PasteDataRequest/coordinate": coordinate -"/sheets:v4/PasteDataRequest/data": data -"/sheets:v4/PasteDataRequest/delimiter": delimiter "/sheets:v4/AppendDimensionRequest": append_dimension_request "/sheets:v4/AppendDimensionRequest/dimension": dimension "/sheets:v4/AppendDimensionRequest/length": length @@ -36139,18 +36663,18 @@ "/sheets:v4/AddNamedRangeRequest": add_named_range_request "/sheets:v4/AddNamedRangeRequest/namedRange": named_range "/sheets:v4/UpdateEmbeddedObjectPositionRequest": update_embedded_object_position_request -"/sheets:v4/UpdateEmbeddedObjectPositionRequest/objectId": object_id_prop "/sheets:v4/UpdateEmbeddedObjectPositionRequest/newPosition": new_position "/sheets:v4/UpdateEmbeddedObjectPositionRequest/fields": fields +"/sheets:v4/UpdateEmbeddedObjectPositionRequest/objectId": object_id_prop "/sheets:v4/TextRotation": text_rotation "/sheets:v4/TextRotation/angle": angle "/sheets:v4/TextRotation/vertical": vertical "/sheets:v4/PieChartSpec": pie_chart_spec -"/sheets:v4/PieChartSpec/domain": domain -"/sheets:v4/PieChartSpec/threeDimensional": three_dimensional "/sheets:v4/PieChartSpec/series": series -"/sheets:v4/PieChartSpec/legendPosition": legend_position "/sheets:v4/PieChartSpec/pieHole": pie_hole +"/sheets:v4/PieChartSpec/legendPosition": legend_position +"/sheets:v4/PieChartSpec/threeDimensional": three_dimensional +"/sheets:v4/PieChartSpec/domain": domain "/sheets:v4/UpdateFilterViewRequest": update_filter_view_request "/sheets:v4/UpdateFilterViewRequest/filter": filter "/sheets:v4/UpdateFilterViewRequest/fields": fields @@ -36160,30 +36684,20 @@ "/sheets:v4/ConditionalFormatRule/gradientRule": gradient_rule "/sheets:v4/ConditionalFormatRule/booleanRule": boolean_rule "/sheets:v4/CopyPasteRequest": copy_paste_request -"/sheets:v4/CopyPasteRequest/source": source "/sheets:v4/CopyPasteRequest/pasteType": paste_type +"/sheets:v4/CopyPasteRequest/source": source "/sheets:v4/CopyPasteRequest/destination": destination "/sheets:v4/CopyPasteRequest/pasteOrientation": paste_orientation "/sheets:v4/Request": request -"/sheets:v4/Request/updateFilterView": update_filter_view -"/sheets:v4/Request/addBanding": add_banding -"/sheets:v4/Request/appendCells": append_cells -"/sheets:v4/Request/autoResizeDimensions": auto_resize_dimensions -"/sheets:v4/Request/cutPaste": cut_paste -"/sheets:v4/Request/mergeCells": merge_cells -"/sheets:v4/Request/updateNamedRange": update_named_range -"/sheets:v4/Request/updateSheetProperties": update_sheet_properties -"/sheets:v4/Request/deleteDimension": delete_dimension -"/sheets:v4/Request/autoFill": auto_fill "/sheets:v4/Request/sortRange": sort_range "/sheets:v4/Request/deleteProtectedRange": delete_protected_range "/sheets:v4/Request/duplicateFilterView": duplicate_filter_view "/sheets:v4/Request/addChart": add_chart "/sheets:v4/Request/findReplace": find_replace -"/sheets:v4/Request/updateChartSpec": update_chart_spec "/sheets:v4/Request/textToColumns": text_to_columns -"/sheets:v4/Request/updateProtectedRange": update_protected_range +"/sheets:v4/Request/updateChartSpec": update_chart_spec "/sheets:v4/Request/addSheet": add_sheet +"/sheets:v4/Request/updateProtectedRange": update_protected_range "/sheets:v4/Request/deleteFilterView": delete_filter_view "/sheets:v4/Request/copyPaste": copy_paste "/sheets:v4/Request/insertDimension": insert_dimension @@ -36199,12 +36713,13 @@ "/sheets:v4/Request/updateConditionalFormatRule": update_conditional_format_rule "/sheets:v4/Request/insertRange": insert_range "/sheets:v4/Request/moveDimension": move_dimension +"/sheets:v4/Request/randomizeRange": randomize_range "/sheets:v4/Request/updateBanding": update_banding -"/sheets:v4/Request/addProtectedRange": add_protected_range "/sheets:v4/Request/deleteNamedRange": delete_named_range +"/sheets:v4/Request/addProtectedRange": add_protected_range "/sheets:v4/Request/duplicateSheet": duplicate_sheet -"/sheets:v4/Request/unmergeCells": unmerge_cells "/sheets:v4/Request/deleteSheet": delete_sheet +"/sheets:v4/Request/unmergeCells": unmerge_cells "/sheets:v4/Request/updateEmbeddedObjectPosition": update_embedded_object_position "/sheets:v4/Request/updateDimensionProperties": update_dimension_properties "/sheets:v4/Request/pasteData": paste_data @@ -36214,88 +36729,98 @@ "/sheets:v4/Request/addNamedRange": add_named_range "/sheets:v4/Request/updateSpreadsheetProperties": update_spreadsheet_properties "/sheets:v4/Request/deleteEmbeddedObject": delete_embedded_object +"/sheets:v4/Request/updateFilterView": update_filter_view +"/sheets:v4/Request/addBanding": add_banding +"/sheets:v4/Request/autoResizeDimensions": auto_resize_dimensions +"/sheets:v4/Request/appendCells": append_cells +"/sheets:v4/Request/cutPaste": cut_paste +"/sheets:v4/Request/mergeCells": merge_cells +"/sheets:v4/Request/updateNamedRange": update_named_range +"/sheets:v4/Request/updateSheetProperties": update_sheet_properties +"/sheets:v4/Request/deleteDimension": delete_dimension +"/sheets:v4/Request/autoFill": auto_fill "/sheets:v4/BooleanCondition": boolean_condition -"/sheets:v4/BooleanCondition/type": type "/sheets:v4/BooleanCondition/values": values "/sheets:v4/BooleanCondition/values/value": value +"/sheets:v4/BooleanCondition/type": type "/sheets:v4/GridRange": grid_range -"/sheets:v4/GridRange/endRowIndex": end_row_index +"/sheets:v4/GridRange/sheetId": sheet_id "/sheets:v4/GridRange/endColumnIndex": end_column_index +"/sheets:v4/GridRange/endRowIndex": end_row_index "/sheets:v4/GridRange/startRowIndex": start_row_index "/sheets:v4/GridRange/startColumnIndex": start_column_index -"/sheets:v4/GridRange/sheetId": sheet_id "/sheets:v4/BasicChartSpec": basic_chart_spec -"/sheets:v4/BasicChartSpec/domains": domains -"/sheets:v4/BasicChartSpec/domains/domain": domain "/sheets:v4/BasicChartSpec/lineSmoothing": line_smoothing "/sheets:v4/BasicChartSpec/headerCount": header_count "/sheets:v4/BasicChartSpec/stackedType": stacked_type -"/sheets:v4/BasicChartSpec/threeDimensional": three_dimensional "/sheets:v4/BasicChartSpec/axis": axis "/sheets:v4/BasicChartSpec/axis/axis": axis +"/sheets:v4/BasicChartSpec/threeDimensional": three_dimensional "/sheets:v4/BasicChartSpec/interpolateNulls": interpolate_nulls "/sheets:v4/BasicChartSpec/chartType": chart_type "/sheets:v4/BasicChartSpec/series": series "/sheets:v4/BasicChartSpec/series/series": series "/sheets:v4/BasicChartSpec/legendPosition": legend_position +"/sheets:v4/BasicChartSpec/domains": domains +"/sheets:v4/BasicChartSpec/domains/domain": domain +"/sheets:v4/SetDataValidationRequest": set_data_validation_request +"/sheets:v4/SetDataValidationRequest/range": range +"/sheets:v4/SetDataValidationRequest/rule": rule "/sheets:v4/BubbleChartSpec": bubble_chart_spec -"/sheets:v4/BubbleChartSpec/groupIds": group_ids -"/sheets:v4/BubbleChartSpec/bubbleLabels": bubble_labels -"/sheets:v4/BubbleChartSpec/bubbleMinRadiusSize": bubble_min_radius_size "/sheets:v4/BubbleChartSpec/bubbleMaxRadiusSize": bubble_max_radius_size "/sheets:v4/BubbleChartSpec/series": series "/sheets:v4/BubbleChartSpec/legendPosition": legend_position +"/sheets:v4/BubbleChartSpec/bubbleSizes": bubble_sizes "/sheets:v4/BubbleChartSpec/domain": domain "/sheets:v4/BubbleChartSpec/bubbleOpacity": bubble_opacity -"/sheets:v4/BubbleChartSpec/bubbleSizes": bubble_sizes -"/sheets:v4/BubbleChartSpec/bubbleBorderColor": bubble_border_color "/sheets:v4/BubbleChartSpec/bubbleTextStyle": bubble_text_style -"/sheets:v4/SetDataValidationRequest": set_data_validation_request -"/sheets:v4/SetDataValidationRequest/rule": rule -"/sheets:v4/SetDataValidationRequest/range": range +"/sheets:v4/BubbleChartSpec/bubbleBorderColor": bubble_border_color +"/sheets:v4/BubbleChartSpec/groupIds": group_ids +"/sheets:v4/BubbleChartSpec/bubbleLabels": bubble_labels +"/sheets:v4/BubbleChartSpec/bubbleMinRadiusSize": bubble_min_radius_size "/sheets:v4/CellData": cell_data "/sheets:v4/CellData/pivotTable": pivot_table "/sheets:v4/CellData/userEnteredFormat": user_entered_format -"/sheets:v4/CellData/effectiveFormat": effective_format "/sheets:v4/CellData/note": note -"/sheets:v4/CellData/userEnteredValue": user_entered_value +"/sheets:v4/CellData/effectiveFormat": effective_format "/sheets:v4/CellData/dataValidation": data_validation +"/sheets:v4/CellData/userEnteredValue": user_entered_value "/sheets:v4/CellData/effectiveValue": effective_value "/sheets:v4/CellData/textFormatRuns": text_format_runs "/sheets:v4/CellData/textFormatRuns/text_format_run": text_format_run "/sheets:v4/CellData/formattedValue": formatted_value "/sheets:v4/CellData/hyperlink": hyperlink "/sheets:v4/BatchUpdateSpreadsheetRequest": batch_update_spreadsheet_request -"/sheets:v4/BatchUpdateSpreadsheetRequest/requests": requests -"/sheets:v4/BatchUpdateSpreadsheetRequest/requests/request": request -"/sheets:v4/BatchUpdateSpreadsheetRequest/includeSpreadsheetInResponse": include_spreadsheet_in_response +"/sheets:v4/BatchUpdateSpreadsheetRequest/responseIncludeGridData": response_include_grid_data "/sheets:v4/BatchUpdateSpreadsheetRequest/responseRanges": response_ranges "/sheets:v4/BatchUpdateSpreadsheetRequest/responseRanges/response_range": response_range -"/sheets:v4/BatchUpdateSpreadsheetRequest/responseIncludeGridData": response_include_grid_data +"/sheets:v4/BatchUpdateSpreadsheetRequest/includeSpreadsheetInResponse": include_spreadsheet_in_response +"/sheets:v4/BatchUpdateSpreadsheetRequest/requests": requests +"/sheets:v4/BatchUpdateSpreadsheetRequest/requests/request": request "/sheets:v4/Padding": padding "/sheets:v4/Padding/right": right "/sheets:v4/Padding/bottom": bottom "/sheets:v4/Padding/top": top "/sheets:v4/Padding/left": left "/sheets:v4/BasicChartAxis": basic_chart_axis -"/sheets:v4/BasicChartAxis/position": position -"/sheets:v4/BasicChartAxis/title": title "/sheets:v4/BasicChartAxis/format": format +"/sheets:v4/BasicChartAxis/title": title +"/sheets:v4/BasicChartAxis/position": position "/sheets:v4/DeleteDimensionRequest": delete_dimension_request "/sheets:v4/DeleteDimensionRequest/range": range "/sheets:v4/UpdateChartSpecRequest": update_chart_spec_request -"/sheets:v4/UpdateChartSpecRequest/chartId": chart_id "/sheets:v4/UpdateChartSpecRequest/spec": spec +"/sheets:v4/UpdateChartSpecRequest/chartId": chart_id "/sheets:v4/DeleteFilterViewRequest": delete_filter_view_request "/sheets:v4/DeleteFilterViewRequest/filterId": filter_id "/sheets:v4/BatchUpdateValuesResponse": batch_update_values_response -"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedSheets": total_updated_sheets -"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedCells": total_updated_cells -"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedColumns": total_updated_columns "/sheets:v4/BatchUpdateValuesResponse/spreadsheetId": spreadsheet_id "/sheets:v4/BatchUpdateValuesResponse/totalUpdatedRows": total_updated_rows "/sheets:v4/BatchUpdateValuesResponse/responses": responses "/sheets:v4/BatchUpdateValuesResponse/responses/response": response +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedSheets": total_updated_sheets +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedCells": total_updated_cells +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedColumns": total_updated_columns "/sheets:v4/SortRangeRequest": sort_range_request "/sheets:v4/SortRangeRequest/range": range "/sheets:v4/SortRangeRequest/sortSpecs": sort_specs @@ -36314,14 +36839,14 @@ "/sheets:v4/DuplicateSheetResponse/properties": properties "/sheets:v4/TextToColumnsRequest": text_to_columns_request "/sheets:v4/TextToColumnsRequest/delimiter": delimiter -"/sheets:v4/TextToColumnsRequest/source": source "/sheets:v4/TextToColumnsRequest/delimiterType": delimiter_type +"/sheets:v4/TextToColumnsRequest/source": source "/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request "/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id "/sheets:v4/BatchUpdateSpreadsheetResponse": batch_update_spreadsheet_response +"/sheets:v4/BatchUpdateSpreadsheetResponse/updatedSpreadsheet": updated_spreadsheet "/sheets:v4/BatchUpdateSpreadsheetResponse/replies": replies "/sheets:v4/BatchUpdateSpreadsheetResponse/replies/reply": reply -"/sheets:v4/BatchUpdateSpreadsheetResponse/updatedSpreadsheet": updated_spreadsheet "/sheets:v4/BatchUpdateSpreadsheetResponse/spreadsheetId": spreadsheet_id "/sheets:v4/DeleteBandingRequest": delete_banding_request "/sheets:v4/DeleteBandingRequest/bandedRangeId": banded_range_id @@ -36329,20 +36854,18 @@ "/sheets:v4/AppendValuesResponse/updates": updates "/sheets:v4/AppendValuesResponse/tableRange": table_range "/sheets:v4/AppendValuesResponse/spreadsheetId": spreadsheet_id -"/sheets:v4/AddFilterViewRequest": add_filter_view_request -"/sheets:v4/AddFilterViewRequest/filter": filter -"/sheets:v4/PivotFilterCriteria": pivot_filter_criteria -"/sheets:v4/PivotFilterCriteria/visibleValues": visible_values -"/sheets:v4/PivotFilterCriteria/visibleValues/visible_value": visible_value "/sheets:v4/MoveDimensionRequest": move_dimension_request "/sheets:v4/MoveDimensionRequest/destinationIndex": destination_index "/sheets:v4/MoveDimensionRequest/source": source +"/sheets:v4/PivotFilterCriteria": pivot_filter_criteria +"/sheets:v4/PivotFilterCriteria/visibleValues": visible_values +"/sheets:v4/PivotFilterCriteria/visibleValues/visible_value": visible_value +"/sheets:v4/AddFilterViewRequest": add_filter_view_request +"/sheets:v4/AddFilterViewRequest/filter": filter "/sheets:v4/AddConditionalFormatRuleRequest": add_conditional_format_rule_request "/sheets:v4/AddConditionalFormatRuleRequest/rule": rule "/sheets:v4/AddConditionalFormatRuleRequest/index": index "/sheets:v4/ChartSpec": chart_spec -"/sheets:v4/ChartSpec/pieChart": pie_chart -"/sheets:v4/ChartSpec/titleTextFormat": title_text_format "/sheets:v4/ChartSpec/title": title "/sheets:v4/ChartSpec/histogramChart": histogram_chart "/sheets:v4/ChartSpec/candlestickChart": candlestick_chart @@ -36353,13 +36876,15 @@ "/sheets:v4/ChartSpec/backgroundColor": background_color "/sheets:v4/ChartSpec/basicChart": basic_chart "/sheets:v4/ChartSpec/orgChart": org_chart +"/sheets:v4/ChartSpec/pieChart": pie_chart +"/sheets:v4/ChartSpec/titleTextFormat": title_text_format "/sheets:v4/NumberFormat": number_format -"/sheets:v4/NumberFormat/type": type "/sheets:v4/NumberFormat/pattern": pattern +"/sheets:v4/NumberFormat/type": type "/sheets:v4/CandlestickDomain": candlestick_domain +"/sheets:v4/CandlestickDomain/reversed": reversed "/sheets:v4/CandlestickDomain/data": data "/sheets:v4/SheetProperties": sheet_properties -"/sheets:v4/SheetProperties/title": title "/sheets:v4/SheetProperties/tabColor": tab_color "/sheets:v4/SheetProperties/index": index "/sheets:v4/SheetProperties/sheetId": sheet_id @@ -36367,109 +36892,110 @@ "/sheets:v4/SheetProperties/hidden": hidden "/sheets:v4/SheetProperties/sheetType": sheet_type "/sheets:v4/SheetProperties/gridProperties": grid_properties +"/sheets:v4/SheetProperties/title": title "/sheets:v4/UpdateDimensionPropertiesRequest": update_dimension_properties_request +"/sheets:v4/UpdateDimensionPropertiesRequest/properties": properties "/sheets:v4/UpdateDimensionPropertiesRequest/range": range "/sheets:v4/UpdateDimensionPropertiesRequest/fields": fields -"/sheets:v4/UpdateDimensionPropertiesRequest/properties": properties "/sheets:v4/SourceAndDestination": source_and_destination +"/sheets:v4/SourceAndDestination/fillLength": fill_length "/sheets:v4/SourceAndDestination/source": source "/sheets:v4/SourceAndDestination/dimension": dimension -"/sheets:v4/SourceAndDestination/fillLength": fill_length -"/sheets:v4/FilterView": filter_view -"/sheets:v4/FilterView/namedRangeId": named_range_id -"/sheets:v4/FilterView/filterViewId": filter_view_id -"/sheets:v4/FilterView/range": range -"/sheets:v4/FilterView/criteria": criteria -"/sheets:v4/FilterView/criteria/criterium": criterium -"/sheets:v4/FilterView/title": title -"/sheets:v4/FilterView/sortSpecs": sort_specs -"/sheets:v4/FilterView/sortSpecs/sort_spec": sort_spec "/sheets:v4/OrgChartSpec": org_chart_spec +"/sheets:v4/OrgChartSpec/nodeColor": node_color "/sheets:v4/OrgChartSpec/tooltips": tooltips "/sheets:v4/OrgChartSpec/selectedNodeColor": selected_node_color "/sheets:v4/OrgChartSpec/parentLabels": parent_labels -"/sheets:v4/OrgChartSpec/nodeSize": node_size "/sheets:v4/OrgChartSpec/labels": labels -"/sheets:v4/OrgChartSpec/nodeColor": node_color +"/sheets:v4/OrgChartSpec/nodeSize": node_size +"/sheets:v4/FilterView": filter_view +"/sheets:v4/FilterView/namedRangeId": named_range_id +"/sheets:v4/FilterView/filterViewId": filter_view_id +"/sheets:v4/FilterView/criteria": criteria +"/sheets:v4/FilterView/criteria/criterium": criterium +"/sheets:v4/FilterView/title": title +"/sheets:v4/FilterView/range": range +"/sheets:v4/FilterView/sortSpecs": sort_specs +"/sheets:v4/FilterView/sortSpecs/sort_spec": sort_spec "/sheets:v4/BandingProperties": banding_properties +"/sheets:v4/BandingProperties/secondBandColor": second_band_color "/sheets:v4/BandingProperties/footerColor": footer_color "/sheets:v4/BandingProperties/headerColor": header_color "/sheets:v4/BandingProperties/firstBandColor": first_band_color -"/sheets:v4/BandingProperties/secondBandColor": second_band_color -"/sheets:v4/AddProtectedRangeResponse": add_protected_range_response -"/sheets:v4/AddProtectedRangeResponse/protectedRange": protected_range -"/sheets:v4/BasicFilter": basic_filter -"/sheets:v4/BasicFilter/range": range -"/sheets:v4/BasicFilter/criteria": criteria -"/sheets:v4/BasicFilter/criteria/criterium": criterium -"/sheets:v4/BasicFilter/sortSpecs": sort_specs -"/sheets:v4/BasicFilter/sortSpecs/sort_spec": sort_spec "/sheets:v4/CandlestickSeries": candlestick_series "/sheets:v4/CandlestickSeries/data": data +"/sheets:v4/BasicFilter": basic_filter +"/sheets:v4/BasicFilter/sortSpecs": sort_specs +"/sheets:v4/BasicFilter/sortSpecs/sort_spec": sort_spec +"/sheets:v4/BasicFilter/criteria": criteria +"/sheets:v4/BasicFilter/criteria/criterium": criterium +"/sheets:v4/BasicFilter/range": range +"/sheets:v4/AddProtectedRangeResponse": add_protected_range_response +"/sheets:v4/AddProtectedRangeResponse/protectedRange": protected_range "/sheets:v4/HistogramChartSpec": histogram_chart_spec -"/sheets:v4/HistogramChartSpec/bucketSize": bucket_size "/sheets:v4/HistogramChartSpec/outlierPercentile": outlier_percentile "/sheets:v4/HistogramChartSpec/showItemDividers": show_item_dividers "/sheets:v4/HistogramChartSpec/series": series "/sheets:v4/HistogramChartSpec/series/series": series "/sheets:v4/HistogramChartSpec/legendPosition": legend_position +"/sheets:v4/HistogramChartSpec/bucketSize": bucket_size "/sheets:v4/UpdateValuesResponse": update_values_response -"/sheets:v4/UpdateValuesResponse/updatedRows": updated_rows "/sheets:v4/UpdateValuesResponse/updatedData": updated_data +"/sheets:v4/UpdateValuesResponse/updatedRows": updated_rows "/sheets:v4/UpdateValuesResponse/updatedColumns": updated_columns "/sheets:v4/UpdateValuesResponse/spreadsheetId": spreadsheet_id "/sheets:v4/UpdateValuesResponse/updatedRange": updated_range "/sheets:v4/UpdateValuesResponse/updatedCells": updated_cells "/sheets:v4/ErrorValue": error_value -"/sheets:v4/ErrorValue/type": type "/sheets:v4/ErrorValue/message": message +"/sheets:v4/ErrorValue/type": type "/sheets:v4/PivotValue": pivot_value +"/sheets:v4/PivotValue/formula": formula "/sheets:v4/PivotValue/summarizeFunction": summarize_function "/sheets:v4/PivotValue/sourceColumnOffset": source_column_offset "/sheets:v4/PivotValue/name": name -"/sheets:v4/PivotValue/formula": formula "/sheets:v4/CopySheetToAnotherSpreadsheetRequest": copy_sheet_to_another_spreadsheet_request "/sheets:v4/CopySheetToAnotherSpreadsheetRequest/destinationSpreadsheetId": destination_spreadsheet_id "/sheets:v4/PivotGroupSortValueBucket": pivot_group_sort_value_bucket -"/sheets:v4/PivotGroupSortValueBucket/valuesIndex": values_index "/sheets:v4/PivotGroupSortValueBucket/buckets": buckets "/sheets:v4/PivotGroupSortValueBucket/buckets/bucket": bucket +"/sheets:v4/PivotGroupSortValueBucket/valuesIndex": values_index "/sheets:v4/CandlestickChartSpec": candlestick_chart_spec -"/sheets:v4/CandlestickChartSpec/domain": domain "/sheets:v4/CandlestickChartSpec/data": data "/sheets:v4/CandlestickChartSpec/data/datum": datum +"/sheets:v4/CandlestickChartSpec/domain": domain "/sheets:v4/CandlestickData": candlestick_data -"/sheets:v4/CandlestickData/highSeries": high_series -"/sheets:v4/CandlestickData/lowSeries": low_series "/sheets:v4/CandlestickData/closeSeries": close_series +"/sheets:v4/CandlestickData/lowSeries": low_series "/sheets:v4/CandlestickData/openSeries": open_series +"/sheets:v4/CandlestickData/highSeries": high_series "/sheets:v4/EmbeddedObjectPosition": embedded_object_position "/sheets:v4/EmbeddedObjectPosition/newSheet": new_sheet -"/sheets:v4/EmbeddedObjectPosition/sheetId": sheet_id "/sheets:v4/EmbeddedObjectPosition/overlayPosition": overlay_position +"/sheets:v4/EmbeddedObjectPosition/sheetId": sheet_id "/sheets:v4/DeleteProtectedRangeRequest": delete_protected_range_request "/sheets:v4/DeleteProtectedRangeRequest/protectedRangeId": protected_range_id "/sheets:v4/AutoFillRequest": auto_fill_request -"/sheets:v4/AutoFillRequest/range": range "/sheets:v4/AutoFillRequest/useAlternateSeries": use_alternate_series "/sheets:v4/AutoFillRequest/sourceAndDestination": source_and_destination +"/sheets:v4/AutoFillRequest/range": range "/sheets:v4/GradientRule": gradient_rule "/sheets:v4/GradientRule/midpoint": midpoint -"/sheets:v4/GradientRule/minpoint": minpoint "/sheets:v4/GradientRule/maxpoint": maxpoint -"/sheets:v4/ClearValuesRequest": clear_values_request +"/sheets:v4/GradientRule/minpoint": minpoint "/sheets:v4/SetBasicFilterRequest": set_basic_filter_request "/sheets:v4/SetBasicFilterRequest/filter": filter +"/sheets:v4/ClearValuesRequest": clear_values_request "/sheets:v4/InterpolationPoint": interpolation_point +"/sheets:v4/InterpolationPoint/color": color "/sheets:v4/InterpolationPoint/type": type "/sheets:v4/InterpolationPoint/value": value -"/sheets:v4/InterpolationPoint/color": color "/sheets:v4/FindReplaceResponse": find_replace_response +"/sheets:v4/FindReplaceResponse/sheetsChanged": sheets_changed "/sheets:v4/FindReplaceResponse/formulasChanged": formulas_changed "/sheets:v4/FindReplaceResponse/valuesChanged": values_changed "/sheets:v4/FindReplaceResponse/occurrencesChanged": occurrences_changed "/sheets:v4/FindReplaceResponse/rowsChanged": rows_changed -"/sheets:v4/FindReplaceResponse/sheetsChanged": sheets_changed "/sheets:v4/DeleteEmbeddedObjectRequest": delete_embedded_object_request "/sheets:v4/DeleteEmbeddedObjectRequest/objectId": object_id_prop "/sheets:v4/DuplicateFilterViewRequest": duplicate_filter_view_request @@ -36479,343 +37005,57 @@ "/sheets:v4/UpdateConditionalFormatRuleResponse": update_conditional_format_rule_response "/sheets:v4/UpdateConditionalFormatRuleResponse/oldRule": old_rule "/sheets:v4/UpdateConditionalFormatRuleResponse/newIndex": new_index -"/sheets:v4/UpdateConditionalFormatRuleResponse/oldIndex": old_index "/sheets:v4/UpdateConditionalFormatRuleResponse/newRule": new_rule +"/sheets:v4/UpdateConditionalFormatRuleResponse/oldIndex": old_index "/sheets:v4/DuplicateSheetRequest": duplicate_sheet_request -"/sheets:v4/DuplicateSheetRequest/insertSheetIndex": insert_sheet_index -"/sheets:v4/DuplicateSheetRequest/newSheetName": new_sheet_name "/sheets:v4/DuplicateSheetRequest/sourceSheetId": source_sheet_id "/sheets:v4/DuplicateSheetRequest/newSheetId": new_sheet_id +"/sheets:v4/DuplicateSheetRequest/insertSheetIndex": insert_sheet_index +"/sheets:v4/DuplicateSheetRequest/newSheetName": new_sheet_name "/sheets:v4/ConditionValue": condition_value -"/sheets:v4/ConditionValue/relativeDate": relative_date "/sheets:v4/ConditionValue/userEnteredValue": user_entered_value +"/sheets:v4/ConditionValue/relativeDate": relative_date "/sheets:v4/ExtendedValue": extended_value -"/sheets:v4/ExtendedValue/stringValue": string_value -"/sheets:v4/ExtendedValue/boolValue": bool_value -"/sheets:v4/ExtendedValue/formulaValue": formula_value -"/sheets:v4/ExtendedValue/numberValue": number_value "/sheets:v4/ExtendedValue/errorValue": error_value +"/sheets:v4/ExtendedValue/formulaValue": formula_value +"/sheets:v4/ExtendedValue/boolValue": bool_value +"/sheets:v4/ExtendedValue/stringValue": string_value +"/sheets:v4/ExtendedValue/numberValue": number_value +"/sheets:v4/AddChartRequest": add_chart_request +"/sheets:v4/AddChartRequest/chart": chart +"/sheets:v4/Spreadsheet": spreadsheet +"/sheets:v4/Spreadsheet/namedRanges": named_ranges +"/sheets:v4/Spreadsheet/namedRanges/named_range": named_range +"/sheets:v4/Spreadsheet/sheets": sheets +"/sheets:v4/Spreadsheet/sheets/sheet": sheet +"/sheets:v4/Spreadsheet/spreadsheetId": spreadsheet_id +"/sheets:v4/Spreadsheet/spreadsheetUrl": spreadsheet_url +"/sheets:v4/Spreadsheet/properties": properties "/sheets:v4/BatchClearValuesResponse": batch_clear_values_response "/sheets:v4/BatchClearValuesResponse/clearedRanges": cleared_ranges "/sheets:v4/BatchClearValuesResponse/clearedRanges/cleared_range": cleared_range "/sheets:v4/BatchClearValuesResponse/spreadsheetId": spreadsheet_id -"/sheets:v4/Spreadsheet": spreadsheet -"/sheets:v4/Spreadsheet/properties": properties -"/sheets:v4/Spreadsheet/spreadsheetId": spreadsheet_id -"/sheets:v4/Spreadsheet/sheets": sheets -"/sheets:v4/Spreadsheet/sheets/sheet": sheet -"/sheets:v4/Spreadsheet/namedRanges": named_ranges -"/sheets:v4/Spreadsheet/namedRanges/named_range": named_range -"/sheets:v4/Spreadsheet/spreadsheetUrl": spreadsheet_url -"/sheets:v4/AddChartRequest": add_chart_request -"/sheets:v4/AddChartRequest/chart": chart "/sheets:v4/HistogramSeries": histogram_series "/sheets:v4/HistogramSeries/barColor": bar_color "/sheets:v4/HistogramSeries/data": data "/sheets:v4/BandedRange": banded_range +"/sheets:v4/BandedRange/columnProperties": column_properties +"/sheets:v4/BandedRange/rowProperties": row_properties "/sheets:v4/BandedRange/range": range "/sheets:v4/BandedRange/bandedRangeId": banded_range_id -"/sheets:v4/BandedRange/rowProperties": row_properties -"/sheets:v4/BandedRange/columnProperties": column_properties "/sheets:v4/UpdateProtectedRangeRequest": update_protected_range_request -"/sheets:v4/UpdateProtectedRangeRequest/protectedRange": protected_range "/sheets:v4/UpdateProtectedRangeRequest/fields": fields +"/sheets:v4/UpdateProtectedRangeRequest/protectedRange": protected_range "/sheets:v4/TextFormat": text_format +"/sheets:v4/TextFormat/fontSize": font_size "/sheets:v4/TextFormat/underline": underline "/sheets:v4/TextFormat/foregroundColor": foreground_color "/sheets:v4/TextFormat/bold": bold "/sheets:v4/TextFormat/fontFamily": font_family -"/sheets:v4/TextFormat/italic": italic "/sheets:v4/TextFormat/strikethrough": strikethrough -"/sheets:v4/TextFormat/fontSize": font_size +"/sheets:v4/TextFormat/italic": italic "/sheets:v4/AddSheetResponse": add_sheet_response "/sheets:v4/AddSheetResponse/properties": properties -"/sheets:v4/AddFilterViewResponse": add_filter_view_response -"/sheets:v4/AddFilterViewResponse/filter": filter -"/sheets:v4/IterativeCalculationSettings": iterative_calculation_settings -"/sheets:v4/IterativeCalculationSettings/convergenceThreshold": convergence_threshold -"/sheets:v4/IterativeCalculationSettings/maxIterations": max_iterations -"/sheets:v4/SpreadsheetProperties": spreadsheet_properties -"/sheets:v4/SpreadsheetProperties/title": title -"/sheets:v4/SpreadsheetProperties/timeZone": time_zone -"/sheets:v4/SpreadsheetProperties/locale": locale -"/sheets:v4/SpreadsheetProperties/iterativeCalculationSettings": iterative_calculation_settings -"/sheets:v4/SpreadsheetProperties/autoRecalc": auto_recalc -"/sheets:v4/SpreadsheetProperties/defaultFormat": default_format -"/sheets:v4/OverlayPosition": overlay_position -"/sheets:v4/OverlayPosition/anchorCell": anchor_cell -"/sheets:v4/OverlayPosition/offsetYPixels": offset_y_pixels -"/sheets:v4/OverlayPosition/heightPixels": height_pixels -"/sheets:v4/OverlayPosition/widthPixels": width_pixels -"/sheets:v4/OverlayPosition/offsetXPixels": offset_x_pixels -"/sheets:v4/RepeatCellRequest": repeat_cell_request -"/sheets:v4/RepeatCellRequest/cell": cell -"/sheets:v4/RepeatCellRequest/range": range -"/sheets:v4/RepeatCellRequest/fields": fields -"/sheets:v4/AddChartResponse": add_chart_response -"/sheets:v4/AddChartResponse/chart": chart -"/sheets:v4/InsertDimensionRequest": insert_dimension_request -"/sheets:v4/InsertDimensionRequest/range": range -"/sheets:v4/InsertDimensionRequest/inheritFromBefore": inherit_from_before -"/sheets:v4/UpdateSpreadsheetPropertiesRequest": update_spreadsheet_properties_request -"/sheets:v4/UpdateSpreadsheetPropertiesRequest/properties": properties -"/sheets:v4/UpdateSpreadsheetPropertiesRequest/fields": fields -"/sheets:v4/BatchUpdateValuesRequest": batch_update_values_request -"/sheets:v4/BatchUpdateValuesRequest/responseValueRenderOption": response_value_render_option -"/sheets:v4/BatchUpdateValuesRequest/includeValuesInResponse": include_values_in_response -"/sheets:v4/BatchUpdateValuesRequest/valueInputOption": value_input_option -"/sheets:v4/BatchUpdateValuesRequest/data": data -"/sheets:v4/BatchUpdateValuesRequest/data/datum": datum -"/sheets:v4/BatchUpdateValuesRequest/responseDateTimeRenderOption": response_date_time_render_option -"/sheets:v4/ProtectedRange": protected_range -"/sheets:v4/ProtectedRange/namedRangeId": named_range_id -"/sheets:v4/ProtectedRange/protectedRangeId": protected_range_id -"/sheets:v4/ProtectedRange/warningOnly": warning_only -"/sheets:v4/ProtectedRange/requestingUserCanEdit": requesting_user_can_edit -"/sheets:v4/ProtectedRange/editors": editors -"/sheets:v4/ProtectedRange/range": range -"/sheets:v4/ProtectedRange/description": description -"/sheets:v4/ProtectedRange/unprotectedRanges": unprotected_ranges -"/sheets:v4/ProtectedRange/unprotectedRanges/unprotected_range": unprotected_range -"/sheets:v4/DimensionProperties": dimension_properties -"/sheets:v4/DimensionProperties/pixelSize": pixel_size -"/sheets:v4/DimensionProperties/hiddenByFilter": hidden_by_filter -"/sheets:v4/DimensionProperties/hiddenByUser": hidden_by_user -"/sheets:v4/NamedRange": named_range -"/sheets:v4/NamedRange/namedRangeId": named_range_id -"/sheets:v4/NamedRange/range": range -"/sheets:v4/NamedRange/name": name -"/sheets:v4/DimensionRange": dimension_range -"/sheets:v4/DimensionRange/dimension": dimension -"/sheets:v4/DimensionRange/startIndex": start_index -"/sheets:v4/DimensionRange/endIndex": end_index -"/sheets:v4/DimensionRange/sheetId": sheet_id -"/sheets:v4/CutPasteRequest": cut_paste_request -"/sheets:v4/CutPasteRequest/source": source -"/sheets:v4/CutPasteRequest/pasteType": paste_type -"/sheets:v4/CutPasteRequest/destination": destination -"/sheets:v4/Borders": borders -"/sheets:v4/Borders/right": right -"/sheets:v4/Borders/bottom": bottom -"/sheets:v4/Borders/top": top -"/sheets:v4/Borders/left": left -"/sheets:v4/BasicChartSeries": basic_chart_series -"/sheets:v4/BasicChartSeries/series": series -"/sheets:v4/BasicChartSeries/type": type -"/sheets:v4/BasicChartSeries/targetAxis": target_axis -"/sheets:v4/AutoResizeDimensionsRequest": auto_resize_dimensions_request -"/sheets:v4/AutoResizeDimensionsRequest/dimensions": dimensions -"/sheets:v4/UpdateBordersRequest": update_borders_request -"/sheets:v4/UpdateBordersRequest/bottom": bottom -"/sheets:v4/UpdateBordersRequest/innerVertical": inner_vertical -"/sheets:v4/UpdateBordersRequest/right": right -"/sheets:v4/UpdateBordersRequest/range": range -"/sheets:v4/UpdateBordersRequest/innerHorizontal": inner_horizontal -"/sheets:v4/UpdateBordersRequest/top": top -"/sheets:v4/UpdateBordersRequest/left": left -"/sheets:v4/CellFormat": cell_format -"/sheets:v4/CellFormat/numberFormat": number_format -"/sheets:v4/CellFormat/hyperlinkDisplayType": hyperlink_display_type -"/sheets:v4/CellFormat/horizontalAlignment": horizontal_alignment -"/sheets:v4/CellFormat/textFormat": text_format -"/sheets:v4/CellFormat/backgroundColor": background_color -"/sheets:v4/CellFormat/padding": padding -"/sheets:v4/CellFormat/verticalAlignment": vertical_alignment -"/sheets:v4/CellFormat/borders": borders -"/sheets:v4/CellFormat/textDirection": text_direction -"/sheets:v4/CellFormat/textRotation": text_rotation -"/sheets:v4/CellFormat/wrapStrategy": wrap_strategy -"/sheets:v4/ClearValuesResponse": clear_values_response -"/sheets:v4/ClearValuesResponse/clearedRange": cleared_range -"/sheets:v4/ClearValuesResponse/spreadsheetId": spreadsheet_id -"/sheets:v4/DeleteConditionalFormatRuleRequest": delete_conditional_format_rule_request -"/sheets:v4/DeleteConditionalFormatRuleRequest/index": index -"/sheets:v4/DeleteConditionalFormatRuleRequest/sheetId": sheet_id -"/sheets:v4/AddBandingResponse": add_banding_response -"/sheets:v4/AddBandingResponse/bandedRange": banded_range -"/sheets:v4/DeleteNamedRangeRequest": delete_named_range_request -"/sheets:v4/DeleteNamedRangeRequest/namedRangeId": named_range_id -"/sheets:v4/ChartData": chart_data -"/sheets:v4/ChartData/sourceRange": source_range -"/sheets:v4/BatchGetValuesResponse": batch_get_values_response -"/sheets:v4/BatchGetValuesResponse/valueRanges": value_ranges -"/sheets:v4/BatchGetValuesResponse/valueRanges/value_range": value_range -"/sheets:v4/BatchGetValuesResponse/spreadsheetId": spreadsheet_id -"/sheets:v4/UpdateBandingRequest": update_banding_request -"/sheets:v4/UpdateBandingRequest/fields": fields -"/sheets:v4/UpdateBandingRequest/bandedRange": banded_range -"/sheets:v4/Color": color -"/sheets:v4/Color/red": red -"/sheets:v4/Color/green": green -"/sheets:v4/Color/blue": blue -"/sheets:v4/Color/alpha": alpha -"/sheets:v4/PivotGroup": pivot_group -"/sheets:v4/PivotGroup/sortOrder": sort_order -"/sheets:v4/PivotGroup/valueBucket": value_bucket -"/sheets:v4/PivotGroup/sourceColumnOffset": source_column_offset -"/sheets:v4/PivotGroup/showTotals": show_totals -"/sheets:v4/PivotGroup/valueMetadata": value_metadata -"/sheets:v4/PivotGroup/valueMetadata/value_metadatum": value_metadatum -"/sheets:v4/PivotTable": pivot_table -"/sheets:v4/PivotTable/valueLayout": value_layout -"/sheets:v4/PivotTable/columns": columns -"/sheets:v4/PivotTable/columns/column": column -"/sheets:v4/PivotTable/values": values -"/sheets:v4/PivotTable/values/value": value -"/sheets:v4/PivotTable/source": source -"/sheets:v4/PivotTable/criteria": criteria -"/sheets:v4/PivotTable/criteria/criterium": criterium -"/sheets:v4/PivotTable/rows": rows -"/sheets:v4/PivotTable/rows/row": row -"/sheets:v4/ChartSourceRange": chart_source_range -"/sheets:v4/ChartSourceRange/sources": sources -"/sheets:v4/ChartSourceRange/sources/source": source -"/sheets:v4/AppendCellsRequest": append_cells_request -"/sheets:v4/AppendCellsRequest/rows": rows -"/sheets:v4/AppendCellsRequest/rows/row": row -"/sheets:v4/AppendCellsRequest/fields": fields -"/sheets:v4/AppendCellsRequest/sheetId": sheet_id -"/sheets:v4/ValueRange": value_range -"/sheets:v4/ValueRange/majorDimension": major_dimension -"/sheets:v4/ValueRange/values": values -"/sheets:v4/ValueRange/values/value": value -"/sheets:v4/ValueRange/values/value/value": value -"/sheets:v4/ValueRange/range": range -"/sheets:v4/AddBandingRequest": add_banding_request -"/sheets:v4/AddBandingRequest/bandedRange": banded_range -"/sheets:v4/Response": response -"/sheets:v4/Response/updateConditionalFormatRule": update_conditional_format_rule -"/sheets:v4/Response/addNamedRange": add_named_range -"/sheets:v4/Response/addFilterView": add_filter_view -"/sheets:v4/Response/addBanding": add_banding -"/sheets:v4/Response/addProtectedRange": add_protected_range -"/sheets:v4/Response/duplicateSheet": duplicate_sheet -"/sheets:v4/Response/updateEmbeddedObjectPosition": update_embedded_object_position -"/sheets:v4/Response/deleteConditionalFormatRule": delete_conditional_format_rule -"/sheets:v4/Response/duplicateFilterView": duplicate_filter_view -"/sheets:v4/Response/addChart": add_chart -"/sheets:v4/Response/findReplace": find_replace -"/sheets:v4/Response/addSheet": add_sheet -"/sheets:v4/EmbeddedChart": embedded_chart -"/sheets:v4/EmbeddedChart/chartId": chart_id -"/sheets:v4/EmbeddedChart/position": position -"/sheets:v4/EmbeddedChart/spec": spec -"/sheets:v4/TextFormatRun": text_format_run -"/sheets:v4/TextFormatRun/format": format -"/sheets:v4/TextFormatRun/startIndex": start_index -"/sheets:v4/InsertRangeRequest": insert_range_request -"/sheets:v4/InsertRangeRequest/shiftDimension": shift_dimension -"/sheets:v4/InsertRangeRequest/range": range -"/sheets:v4/AddNamedRangeResponse": add_named_range_response -"/sheets:v4/AddNamedRangeResponse/namedRange": named_range -"/sheets:v4/RowData": row_data -"/sheets:v4/RowData/values": values -"/sheets:v4/RowData/values/value": value -"/sheets:v4/Border": border -"/sheets:v4/Border/width": width -"/sheets:v4/Border/style": style -"/sheets:v4/Border/color": color -"/sheets:v4/GridData": grid_data -"/sheets:v4/GridData/startRow": start_row -"/sheets:v4/GridData/columnMetadata": column_metadata -"/sheets:v4/GridData/columnMetadata/column_metadatum": column_metadatum -"/sheets:v4/GridData/startColumn": start_column -"/sheets:v4/GridData/rowMetadata": row_metadata -"/sheets:v4/GridData/rowMetadata/row_metadatum": row_metadatum -"/sheets:v4/GridData/rowData": row_data -"/sheets:v4/GridData/rowData/row_datum": row_datum -"/sheets:v4/UpdateNamedRangeRequest": update_named_range_request -"/sheets:v4/UpdateNamedRangeRequest/namedRange": named_range -"/sheets:v4/UpdateNamedRangeRequest/fields": fields -"/sheets:v4/FindReplaceRequest": find_replace_request -"/sheets:v4/FindReplaceRequest/includeFormulas": include_formulas -"/sheets:v4/FindReplaceRequest/matchEntireCell": match_entire_cell -"/sheets:v4/FindReplaceRequest/find": find -"/sheets:v4/FindReplaceRequest/searchByRegex": search_by_regex -"/sheets:v4/FindReplaceRequest/replacement": replacement -"/sheets:v4/FindReplaceRequest/range": range -"/sheets:v4/FindReplaceRequest/sheetId": sheet_id -"/sheets:v4/FindReplaceRequest/matchCase": match_case -"/sheets:v4/FindReplaceRequest/allSheets": all_sheets -"/sheets:v4/AddSheetRequest": add_sheet_request -"/sheets:v4/AddSheetRequest/properties": properties -"/sheets:v4/UpdateCellsRequest": update_cells_request -"/sheets:v4/UpdateCellsRequest/start": start -"/sheets:v4/UpdateCellsRequest/range": range -"/sheets:v4/UpdateCellsRequest/rows": rows -"/sheets:v4/UpdateCellsRequest/rows/row": row -"/sheets:v4/UpdateCellsRequest/fields": fields -"/sheets:v4/DeleteConditionalFormatRuleResponse": delete_conditional_format_rule_response -"/sheets:v4/DeleteConditionalFormatRuleResponse/rule": rule -"/sheets:v4/DeleteRangeRequest": delete_range_request -"/sheets:v4/DeleteRangeRequest/shiftDimension": shift_dimension -"/sheets:v4/DeleteRangeRequest/range": range -"/sheets:v4/GridCoordinate": grid_coordinate -"/sheets:v4/GridCoordinate/rowIndex": row_index -"/sheets:v4/GridCoordinate/columnIndex": column_index -"/sheets:v4/GridCoordinate/sheetId": sheet_id -"/sheets:v4/UpdateSheetPropertiesRequest": update_sheet_properties_request -"/sheets:v4/UpdateSheetPropertiesRequest/properties": properties -"/sheets:v4/UpdateSheetPropertiesRequest/fields": fields -"/sheets:v4/UnmergeCellsRequest": unmerge_cells_request -"/sheets:v4/UnmergeCellsRequest/range": range -"/sheets:v4/GridProperties": grid_properties -"/sheets:v4/GridProperties/frozenRowCount": frozen_row_count -"/sheets:v4/GridProperties/hideGridlines": hide_gridlines -"/sheets:v4/GridProperties/columnCount": column_count -"/sheets:v4/GridProperties/frozenColumnCount": frozen_column_count -"/sheets:v4/GridProperties/rowCount": row_count -"/sheets:v4/Sheet": sheet -"/sheets:v4/Sheet/basicFilter": basic_filter -"/sheets:v4/Sheet/merges": merges -"/sheets:v4/Sheet/merges/merge": merge -"/sheets:v4/Sheet/data": data -"/sheets:v4/Sheet/data/datum": datum -"/sheets:v4/Sheet/bandedRanges": banded_ranges -"/sheets:v4/Sheet/bandedRanges/banded_range": banded_range -"/sheets:v4/Sheet/charts": charts -"/sheets:v4/Sheet/charts/chart": chart -"/sheets:v4/Sheet/properties": properties -"/sheets:v4/Sheet/filterViews": filter_views -"/sheets:v4/Sheet/filterViews/filter_view": filter_view -"/sheets:v4/Sheet/protectedRanges": protected_ranges -"/sheets:v4/Sheet/protectedRanges/protected_range": protected_range -"/sheets:v4/Sheet/conditionalFormats": conditional_formats -"/sheets:v4/Sheet/conditionalFormats/conditional_format": conditional_format -"/sheets:v4/SortSpec": sort_spec -"/sheets:v4/SortSpec/dimensionIndex": dimension_index -"/sheets:v4/SortSpec/sortOrder": sort_order -"/sheets:v4/UpdateEmbeddedObjectPositionResponse": update_embedded_object_position_response -"/sheets:v4/UpdateEmbeddedObjectPositionResponse/position": position -"/sheets:v4/BooleanRule": boolean_rule -"/sheets:v4/BooleanRule/format": format -"/sheets:v4/BooleanRule/condition": condition -"/sheets:v4/PivotGroupValueMetadata": pivot_group_value_metadata -"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed -"/sheets:v4/PivotGroupValueMetadata/value": value -"/sheets:v4/FilterCriteria": filter_criteria -"/sheets:v4/FilterCriteria/hiddenValues": hidden_values -"/sheets:v4/FilterCriteria/hiddenValues/hidden_value": hidden_value -"/sheets:v4/FilterCriteria/condition": condition -"/sheets:v4/Editors": editors -"/sheets:v4/Editors/users": users -"/sheets:v4/Editors/users/user": user -"/sheets:v4/Editors/groups": groups -"/sheets:v4/Editors/groups/group": group -"/sheets:v4/Editors/domainUsersCanEdit": domain_users_can_edit -"/sheets:v4/UpdateConditionalFormatRuleRequest": update_conditional_format_rule_request -"/sheets:v4/UpdateConditionalFormatRuleRequest/rule": rule -"/sheets:v4/UpdateConditionalFormatRuleRequest/index": index -"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id -"/sheets:v4/UpdateConditionalFormatRuleRequest/newIndex": new_index -"/sheets:v4/DataValidationRule": data_validation_rule -"/sheets:v4/DataValidationRule/condition": condition -"/sheets:v4/DataValidationRule/showCustomUi": show_custom_ui -"/sheets:v4/DataValidationRule/strict": strict -"/sheets:v4/DataValidationRule/inputMessage": input_message -"/sheets:v4/BasicChartDomain": basic_chart_domain -"/sheets:v4/BasicChartDomain/domain": domain -"/sheets:v4/BasicChartDomain/reversed": reversed "/siteVerification:v1/fields": fields "/siteVerification:v1/key": key "/siteVerification:v1/quotaUser": quota_user @@ -36846,38 +37086,281 @@ "/siteVerification:v1/SiteVerificationWebResourceResource/site": site "/siteVerification:v1/SiteVerificationWebResourceResource/site/identifier": identifier "/siteVerification:v1/SiteVerificationWebResourceResource/site/type": type +"/slides:v1/fields": fields "/slides:v1/key": key "/slides:v1/quotaUser": quota_user -"/slides:v1/fields": fields "/slides:v1/slides.presentations.get": get_presentation "/slides:v1/slides.presentations.get/presentationId": presentation_id -"/slides:v1/slides.presentations.create": create_presentation "/slides:v1/slides.presentations.batchUpdate": batch_update_presentation "/slides:v1/slides.presentations.batchUpdate/presentationId": presentation_id +"/slides:v1/slides.presentations.create": create_presentation "/slides:v1/slides.presentations.pages.get": get_presentation_page -"/slides:v1/slides.presentations.pages.get/pageObjectId": page_object_id "/slides:v1/slides.presentations.pages.get/presentationId": presentation_id +"/slides:v1/slides.presentations.pages.get/pageObjectId": page_object_id "/slides:v1/slides.presentations.pages.getThumbnail": get_presentation_page_thumbnail -"/slides:v1/slides.presentations.pages.getThumbnail/thumbnailProperties.mimeType": thumbnail_properties_mime_type "/slides:v1/slides.presentations.pages.getThumbnail/thumbnailProperties.thumbnailSize": thumbnail_properties_thumbnail_size +"/slides:v1/slides.presentations.pages.getThumbnail/thumbnailProperties.mimeType": thumbnail_properties_mime_type "/slides:v1/slides.presentations.pages.getThumbnail/presentationId": presentation_id "/slides:v1/slides.presentations.pages.getThumbnail/pageObjectId": page_object_id +"/slides:v1/Line": line +"/slides:v1/Line/lineProperties": line_properties +"/slides:v1/Line/lineType": line_type +"/slides:v1/BatchUpdatePresentationResponse": batch_update_presentation_response +"/slides:v1/BatchUpdatePresentationResponse/replies": replies +"/slides:v1/BatchUpdatePresentationResponse/replies/reply": reply +"/slides:v1/BatchUpdatePresentationResponse/presentationId": presentation_id +"/slides:v1/CreateSheetsChartRequest": create_sheets_chart_request +"/slides:v1/CreateSheetsChartRequest/objectId": object_id_prop +"/slides:v1/CreateSheetsChartRequest/elementProperties": element_properties +"/slides:v1/CreateSheetsChartRequest/linkingMode": linking_mode +"/slides:v1/CreateSheetsChartRequest/spreadsheetId": spreadsheet_id +"/slides:v1/CreateSheetsChartRequest/chartId": chart_id +"/slides:v1/CreateImageResponse": create_image_response +"/slides:v1/CreateImageResponse/objectId": object_id_prop +"/slides:v1/SlideProperties": slide_properties +"/slides:v1/SlideProperties/notesPage": notes_page +"/slides:v1/SlideProperties/masterObjectId": master_object_id +"/slides:v1/SlideProperties/layoutObjectId": layout_object_id +"/slides:v1/Response": response +"/slides:v1/Response/replaceAllText": replace_all_text +"/slides:v1/Response/createSlide": create_slide +"/slides:v1/Response/createShape": create_shape +"/slides:v1/Response/duplicateObject": duplicate_object +"/slides:v1/Response/createLine": create_line +"/slides:v1/Response/createImage": create_image +"/slides:v1/Response/createVideo": create_video +"/slides:v1/Response/createSheetsChart": create_sheets_chart +"/slides:v1/Response/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart +"/slides:v1/Response/replaceAllShapesWithImage": replace_all_shapes_with_image +"/slides:v1/Response/createTable": create_table +"/slides:v1/MasterProperties": master_properties +"/slides:v1/MasterProperties/displayName": display_name +"/slides:v1/TextRun": text_run +"/slides:v1/TextRun/content": content +"/slides:v1/TextRun/style": style +"/slides:v1/LayoutReference": layout_reference +"/slides:v1/LayoutReference/predefinedLayout": predefined_layout +"/slides:v1/LayoutReference/layoutId": layout_id +"/slides:v1/SubstringMatchCriteria": substring_match_criteria +"/slides:v1/SubstringMatchCriteria/text": text +"/slides:v1/SubstringMatchCriteria/matchCase": match_case +"/slides:v1/TableRange": table_range +"/slides:v1/TableRange/rowSpan": row_span +"/slides:v1/TableRange/location": location +"/slides:v1/TableRange/columnSpan": column_span +"/slides:v1/CreateTableResponse": create_table_response +"/slides:v1/CreateTableResponse/objectId": object_id_prop +"/slides:v1/CreateTableRequest": create_table_request +"/slides:v1/CreateTableRequest/columns": columns +"/slides:v1/CreateTableRequest/objectId": object_id_prop +"/slides:v1/CreateTableRequest/elementProperties": element_properties +"/slides:v1/CreateTableRequest/rows": rows +"/slides:v1/Table": table +"/slides:v1/Table/rows": rows +"/slides:v1/Table/tableColumns": table_columns +"/slides:v1/Table/tableColumns/table_column": table_column +"/slides:v1/Table/columns": columns +"/slides:v1/Table/tableRows": table_rows +"/slides:v1/Table/tableRows/table_row": table_row +"/slides:v1/PageBackgroundFill": page_background_fill +"/slides:v1/PageBackgroundFill/stretchedPictureFill": stretched_picture_fill +"/slides:v1/PageBackgroundFill/solidFill": solid_fill +"/slides:v1/PageBackgroundFill/propertyState": property_state +"/slides:v1/SheetsChart": sheets_chart +"/slides:v1/SheetsChart/sheetsChartProperties": sheets_chart_properties +"/slides:v1/SheetsChart/contentUrl": content_url +"/slides:v1/SheetsChart/spreadsheetId": spreadsheet_id +"/slides:v1/SheetsChart/chartId": chart_id +"/slides:v1/SolidFill": solid_fill +"/slides:v1/SolidFill/alpha": alpha +"/slides:v1/SolidFill/color": color +"/slides:v1/ThemeColorPair": theme_color_pair +"/slides:v1/ThemeColorPair/color": color +"/slides:v1/ThemeColorPair/type": type +"/slides:v1/OptionalColor": optional_color +"/slides:v1/OptionalColor/opaqueColor": opaque_color +"/slides:v1/PageElementProperties": page_element_properties +"/slides:v1/PageElementProperties/transform": transform +"/slides:v1/PageElementProperties/pageObjectId": page_object_id +"/slides:v1/PageElementProperties/size": size +"/slides:v1/SheetsChartProperties": sheets_chart_properties +"/slides:v1/SheetsChartProperties/chartImageProperties": chart_image_properties +"/slides:v1/StretchedPictureFill": stretched_picture_fill +"/slides:v1/StretchedPictureFill/contentUrl": content_url +"/slides:v1/StretchedPictureFill/size": size +"/slides:v1/DeleteTableColumnRequest": delete_table_column_request +"/slides:v1/DeleteTableColumnRequest/cellLocation": cell_location +"/slides:v1/DeleteTableColumnRequest/tableObjectId": table_object_id +"/slides:v1/UpdateTextStyleRequest": update_text_style_request +"/slides:v1/UpdateTextStyleRequest/fields": fields +"/slides:v1/UpdateTextStyleRequest/textRange": text_range +"/slides:v1/UpdateTextStyleRequest/objectId": object_id_prop +"/slides:v1/UpdateTextStyleRequest/style": style +"/slides:v1/UpdateTextStyleRequest/cellLocation": cell_location +"/slides:v1/List": list +"/slides:v1/List/nestingLevel": nesting_level +"/slides:v1/List/nestingLevel/nesting_level": nesting_level +"/slides:v1/List/listId": list_id +"/slides:v1/WeightedFontFamily": weighted_font_family +"/slides:v1/WeightedFontFamily/weight": weight +"/slides:v1/WeightedFontFamily/fontFamily": font_family +"/slides:v1/PageElement": page_element +"/slides:v1/PageElement/line": line +"/slides:v1/PageElement/description": description +"/slides:v1/PageElement/elementGroup": element_group +"/slides:v1/PageElement/image": image +"/slides:v1/PageElement/size": size +"/slides:v1/PageElement/title": title +"/slides:v1/PageElement/sheetsChart": sheets_chart +"/slides:v1/PageElement/video": video +"/slides:v1/PageElement/wordArt": word_art +"/slides:v1/PageElement/table": table +"/slides:v1/PageElement/objectId": object_id_prop +"/slides:v1/PageElement/transform": transform +"/slides:v1/PageElement/shape": shape +"/slides:v1/CreateImageRequest": create_image_request +"/slides:v1/CreateImageRequest/objectId": object_id_prop +"/slides:v1/CreateImageRequest/elementProperties": element_properties +"/slides:v1/CreateImageRequest/url": url +"/slides:v1/CreateParagraphBulletsRequest": create_paragraph_bullets_request +"/slides:v1/CreateParagraphBulletsRequest/textRange": text_range +"/slides:v1/CreateParagraphBulletsRequest/objectId": object_id_prop +"/slides:v1/CreateParagraphBulletsRequest/bulletPreset": bullet_preset +"/slides:v1/CreateParagraphBulletsRequest/cellLocation": cell_location +"/slides:v1/Size": size +"/slides:v1/Size/height": height +"/slides:v1/Size/width": width +"/slides:v1/TextStyle": text_style +"/slides:v1/TextStyle/smallCaps": small_caps +"/slides:v1/TextStyle/backgroundColor": background_color +"/slides:v1/TextStyle/link": link +"/slides:v1/TextStyle/underline": underline +"/slides:v1/TextStyle/foregroundColor": foreground_color +"/slides:v1/TextStyle/bold": bold +"/slides:v1/TextStyle/fontFamily": font_family +"/slides:v1/TextStyle/italic": italic +"/slides:v1/TextStyle/strikethrough": strikethrough +"/slides:v1/TextStyle/fontSize": font_size +"/slides:v1/TextStyle/baselineOffset": baseline_offset +"/slides:v1/TextStyle/weightedFontFamily": weighted_font_family +"/slides:v1/UpdateVideoPropertiesRequest": update_video_properties_request +"/slides:v1/UpdateVideoPropertiesRequest/objectId": object_id_prop +"/slides:v1/UpdateVideoPropertiesRequest/videoProperties": video_properties +"/slides:v1/UpdateVideoPropertiesRequest/fields": fields +"/slides:v1/Request": request +"/slides:v1/Request/duplicateObject": duplicate_object +"/slides:v1/Request/deleteTableColumn": delete_table_column +"/slides:v1/Request/updateVideoProperties": update_video_properties +"/slides:v1/Request/createLine": create_line +"/slides:v1/Request/createImage": create_image +"/slides:v1/Request/createParagraphBullets": create_paragraph_bullets +"/slides:v1/Request/createVideo": create_video +"/slides:v1/Request/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart +"/slides:v1/Request/createSheetsChart": create_sheets_chart +"/slides:v1/Request/updatePageElementTransform": update_page_element_transform +"/slides:v1/Request/updateTextStyle": update_text_style +"/slides:v1/Request/replaceAllShapesWithImage": replace_all_shapes_with_image +"/slides:v1/Request/replaceAllText": replace_all_text +"/slides:v1/Request/updateImageProperties": update_image_properties +"/slides:v1/Request/insertTableRows": insert_table_rows +"/slides:v1/Request/createSlide": create_slide +"/slides:v1/Request/updateLineProperties": update_line_properties +"/slides:v1/Request/updateSlidesPosition": update_slides_position +"/slides:v1/Request/deleteTableRow": delete_table_row +"/slides:v1/Request/updateShapeProperties": update_shape_properties +"/slides:v1/Request/insertText": insert_text +"/slides:v1/Request/deleteText": delete_text +"/slides:v1/Request/updatePageProperties": update_page_properties +"/slides:v1/Request/createShape": create_shape +"/slides:v1/Request/deleteParagraphBullets": delete_paragraph_bullets +"/slides:v1/Request/insertTableColumns": insert_table_columns +"/slides:v1/Request/refreshSheetsChart": refresh_sheets_chart +"/slides:v1/Request/updateTableCellProperties": update_table_cell_properties +"/slides:v1/Request/createTable": create_table +"/slides:v1/Request/deleteObject": delete_object +"/slides:v1/Request/updateParagraphStyle": update_paragraph_style +"/slides:v1/UpdateImagePropertiesRequest": update_image_properties_request +"/slides:v1/UpdateImagePropertiesRequest/fields": fields +"/slides:v1/UpdateImagePropertiesRequest/imageProperties": image_properties +"/slides:v1/UpdateImagePropertiesRequest/objectId": object_id_prop +"/slides:v1/ParagraphStyle": paragraph_style +"/slides:v1/ParagraphStyle/indentFirstLine": indent_first_line +"/slides:v1/ParagraphStyle/lineSpacing": line_spacing +"/slides:v1/ParagraphStyle/alignment": alignment +"/slides:v1/ParagraphStyle/spaceBelow": space_below +"/slides:v1/ParagraphStyle/direction": direction +"/slides:v1/ParagraphStyle/spacingMode": spacing_mode +"/slides:v1/ParagraphStyle/indentEnd": indent_end +"/slides:v1/ParagraphStyle/indentStart": indent_start +"/slides:v1/ParagraphStyle/spaceAbove": space_above +"/slides:v1/ReplaceAllShapesWithSheetsChartResponse": replace_all_shapes_with_sheets_chart_response +"/slides:v1/ReplaceAllShapesWithSheetsChartResponse/occurrencesChanged": occurrences_changed +"/slides:v1/TableCellProperties": table_cell_properties +"/slides:v1/TableCellProperties/tableCellBackgroundFill": table_cell_background_fill +"/slides:v1/RefreshSheetsChartRequest": refresh_sheets_chart_request +"/slides:v1/RefreshSheetsChartRequest/objectId": object_id_prop +"/slides:v1/Outline": outline +"/slides:v1/Outline/outlineFill": outline_fill +"/slides:v1/Outline/weight": weight +"/slides:v1/Outline/dashStyle": dash_style +"/slides:v1/Outline/propertyState": property_state +"/slides:v1/TableColumnProperties": table_column_properties +"/slides:v1/TableColumnProperties/columnWidth": column_width +"/slides:v1/ShapeProperties": shape_properties +"/slides:v1/ShapeProperties/outline": outline +"/slides:v1/ShapeProperties/shadow": shadow +"/slides:v1/ShapeProperties/shapeBackgroundFill": shape_background_fill +"/slides:v1/ShapeProperties/link": link +"/slides:v1/NotesProperties": notes_properties +"/slides:v1/NotesProperties/speakerNotesObjectId": speaker_notes_object_id +"/slides:v1/TableRow": table_row +"/slides:v1/TableRow/tableCells": table_cells +"/slides:v1/TableRow/tableCells/table_cell": table_cell +"/slides:v1/TableRow/rowHeight": row_height +"/slides:v1/UpdateTableCellPropertiesRequest": update_table_cell_properties_request +"/slides:v1/UpdateTableCellPropertiesRequest/fields": fields +"/slides:v1/UpdateTableCellPropertiesRequest/tableRange": table_range +"/slides:v1/UpdateTableCellPropertiesRequest/objectId": object_id_prop +"/slides:v1/UpdateTableCellPropertiesRequest/tableCellProperties": table_cell_properties +"/slides:v1/CreateSlideRequest": create_slide_request +"/slides:v1/CreateSlideRequest/objectId": object_id_prop +"/slides:v1/CreateSlideRequest/insertionIndex": insertion_index +"/slides:v1/CreateSlideRequest/placeholderIdMappings": placeholder_id_mappings +"/slides:v1/CreateSlideRequest/placeholderIdMappings/placeholder_id_mapping": placeholder_id_mapping +"/slides:v1/CreateSlideRequest/slideLayoutReference": slide_layout_reference +"/slides:v1/BatchUpdatePresentationRequest": batch_update_presentation_request +"/slides:v1/BatchUpdatePresentationRequest/requests": requests +"/slides:v1/BatchUpdatePresentationRequest/requests/request": request +"/slides:v1/BatchUpdatePresentationRequest/writeControl": write_control +"/slides:v1/TextContent": text_content +"/slides:v1/TextContent/textElements": text_elements +"/slides:v1/TextContent/textElements/text_element": text_element +"/slides:v1/TextContent/lists": lists +"/slides:v1/TextContent/lists/list": list +"/slides:v1/CreateSheetsChartResponse": create_sheets_chart_response +"/slides:v1/CreateSheetsChartResponse/objectId": object_id_prop +"/slides:v1/WriteControl": write_control +"/slides:v1/WriteControl/requiredRevisionId": required_revision_id +"/slides:v1/DeleteParagraphBulletsRequest": delete_paragraph_bullets_request +"/slides:v1/DeleteParagraphBulletsRequest/textRange": text_range +"/slides:v1/DeleteParagraphBulletsRequest/objectId": object_id_prop +"/slides:v1/DeleteParagraphBulletsRequest/cellLocation": cell_location "/slides:v1/ParagraphMarker": paragraph_marker -"/slides:v1/ParagraphMarker/style": style "/slides:v1/ParagraphMarker/bullet": bullet -"/slides:v1/InsertTableColumnsRequest": insert_table_columns_request -"/slides:v1/InsertTableColumnsRequest/number": number -"/slides:v1/InsertTableColumnsRequest/cellLocation": cell_location -"/slides:v1/InsertTableColumnsRequest/insertRight": insert_right -"/slides:v1/InsertTableColumnsRequest/tableObjectId": table_object_id +"/slides:v1/ParagraphMarker/style": style "/slides:v1/Thumbnail": thumbnail +"/slides:v1/Thumbnail/height": height "/slides:v1/Thumbnail/contentUrl": content_url "/slides:v1/Thumbnail/width": width -"/slides:v1/Thumbnail/height": height +"/slides:v1/InsertTableColumnsRequest": insert_table_columns_request +"/slides:v1/InsertTableColumnsRequest/insertRight": insert_right +"/slides:v1/InsertTableColumnsRequest/tableObjectId": table_object_id +"/slides:v1/InsertTableColumnsRequest/number": number +"/slides:v1/InsertTableColumnsRequest/cellLocation": cell_location "/slides:v1/LayoutPlaceholderIdMapping": layout_placeholder_id_mapping -"/slides:v1/LayoutPlaceholderIdMapping/layoutPlaceholder": layout_placeholder "/slides:v1/LayoutPlaceholderIdMapping/layoutPlaceholderObjectId": layout_placeholder_object_id "/slides:v1/LayoutPlaceholderIdMapping/objectId": object_id_prop +"/slides:v1/LayoutPlaceholderIdMapping/layoutPlaceholder": layout_placeholder "/slides:v1/UpdateShapePropertiesRequest": update_shape_properties_request "/slides:v1/UpdateShapePropertiesRequest/fields": fields "/slides:v1/UpdateShapePropertiesRequest/objectId": object_id_prop @@ -36890,15 +37373,15 @@ "/slides:v1/Recolor/name": name "/slides:v1/Link": link "/slides:v1/Link/pageObjectId": page_object_id -"/slides:v1/Link/url": url -"/slides:v1/Link/relativeLink": relative_link "/slides:v1/Link/slideIndex": slide_index +"/slides:v1/Link/relativeLink": relative_link +"/slides:v1/Link/url": url "/slides:v1/CreateShapeResponse": create_shape_response "/slides:v1/CreateShapeResponse/objectId": object_id_prop "/slides:v1/RgbColor": rgb_color "/slides:v1/RgbColor/red": red -"/slides:v1/RgbColor/green": green "/slides:v1/RgbColor/blue": blue +"/slides:v1/RgbColor/green": green "/slides:v1/CreateLineRequest": create_line_request "/slides:v1/CreateLineRequest/objectId": object_id_prop "/slides:v1/CreateLineRequest/elementProperties": element_properties @@ -36906,25 +37389,25 @@ "/slides:v1/CreateSlideResponse": create_slide_response "/slides:v1/CreateSlideResponse/objectId": object_id_prop "/slides:v1/CreateShapeRequest": create_shape_request -"/slides:v1/CreateShapeRequest/objectId": object_id_prop "/slides:v1/CreateShapeRequest/shapeType": shape_type +"/slides:v1/CreateShapeRequest/objectId": object_id_prop "/slides:v1/CreateShapeRequest/elementProperties": element_properties "/slides:v1/Video": video -"/slides:v1/Video/videoProperties": video_properties "/slides:v1/Video/source": source -"/slides:v1/Video/url": url "/slides:v1/Video/id": id +"/slides:v1/Video/url": url +"/slides:v1/Video/videoProperties": video_properties "/slides:v1/PageProperties": page_properties -"/slides:v1/PageProperties/pageBackgroundFill": page_background_fill "/slides:v1/PageProperties/colorScheme": color_scheme -"/slides:v1/NestingLevel": nesting_level -"/slides:v1/NestingLevel/bulletStyle": bullet_style +"/slides:v1/PageProperties/pageBackgroundFill": page_background_fill "/slides:v1/TableCell": table_cell "/slides:v1/TableCell/text": text "/slides:v1/TableCell/tableCellProperties": table_cell_properties -"/slides:v1/TableCell/location": location "/slides:v1/TableCell/rowSpan": row_span +"/slides:v1/TableCell/location": location "/slides:v1/TableCell/columnSpan": column_span +"/slides:v1/NestingLevel": nesting_level +"/slides:v1/NestingLevel/bulletStyle": bullet_style "/slides:v1/UpdateLinePropertiesRequest": update_line_properties_request "/slides:v1/UpdateLinePropertiesRequest/lineProperties": line_properties "/slides:v1/UpdateLinePropertiesRequest/fields": fields @@ -36938,61 +37421,62 @@ "/slides:v1/UpdateSlidesPositionRequest/insertionIndex": insertion_index "/slides:v1/UpdatePagePropertiesRequest": update_page_properties_request "/slides:v1/UpdatePagePropertiesRequest/fields": fields -"/slides:v1/UpdatePagePropertiesRequest/objectId": object_id_prop "/slides:v1/UpdatePagePropertiesRequest/pageProperties": page_properties +"/slides:v1/UpdatePagePropertiesRequest/objectId": object_id_prop "/slides:v1/Group": group "/slides:v1/Group/children": children "/slides:v1/Group/children/child": child "/slides:v1/Placeholder": placeholder -"/slides:v1/Placeholder/parentObjectId": parent_object_id "/slides:v1/Placeholder/index": index "/slides:v1/Placeholder/type": type +"/slides:v1/Placeholder/parentObjectId": parent_object_id "/slides:v1/DuplicateObjectRequest": duplicate_object_request "/slides:v1/DuplicateObjectRequest/objectIds": object_ids "/slides:v1/DuplicateObjectRequest/objectIds/object_id": object_id_prop "/slides:v1/DuplicateObjectRequest/objectId": object_id_prop "/slides:v1/ReplaceAllTextRequest": replace_all_text_request -"/slides:v1/ReplaceAllTextRequest/replaceText": replace_text +"/slides:v1/ReplaceAllTextRequest/containsText": contains_text "/slides:v1/ReplaceAllTextRequest/pageObjectIds": page_object_ids "/slides:v1/ReplaceAllTextRequest/pageObjectIds/page_object_id": page_object_id -"/slides:v1/ReplaceAllTextRequest/containsText": contains_text +"/slides:v1/ReplaceAllTextRequest/replaceText": replace_text "/slides:v1/Page": page +"/slides:v1/Page/masterProperties": master_properties "/slides:v1/Page/objectId": object_id_prop "/slides:v1/Page/revisionId": revision_id "/slides:v1/Page/layoutProperties": layout_properties -"/slides:v1/Page/notesProperties": notes_properties -"/slides:v1/Page/pageType": page_type "/slides:v1/Page/pageElements": page_elements "/slides:v1/Page/pageElements/page_element": page_element -"/slides:v1/Page/slideProperties": slide_properties +"/slides:v1/Page/notesProperties": notes_properties +"/slides:v1/Page/pageType": page_type "/slides:v1/Page/pageProperties": page_properties +"/slides:v1/Page/slideProperties": slide_properties "/slides:v1/ShapeBackgroundFill": shape_background_fill -"/slides:v1/ShapeBackgroundFill/solidFill": solid_fill "/slides:v1/ShapeBackgroundFill/propertyState": property_state +"/slides:v1/ShapeBackgroundFill/solidFill": solid_fill "/slides:v1/CropProperties": crop_properties -"/slides:v1/CropProperties/leftOffset": left_offset "/slides:v1/CropProperties/rightOffset": right_offset "/slides:v1/CropProperties/bottomOffset": bottom_offset "/slides:v1/CropProperties/angle": angle "/slides:v1/CropProperties/topOffset": top_offset +"/slides:v1/CropProperties/leftOffset": left_offset "/slides:v1/ReplaceAllShapesWithSheetsChartRequest": replace_all_shapes_with_sheets_chart_request -"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/spreadsheetId": spreadsheet_id "/slides:v1/ReplaceAllShapesWithSheetsChartRequest/linkingMode": linking_mode -"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/containsText": contains_text -"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/chartId": chart_id +"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/spreadsheetId": spreadsheet_id "/slides:v1/ReplaceAllShapesWithSheetsChartRequest/pageObjectIds": page_object_ids "/slides:v1/ReplaceAllShapesWithSheetsChartRequest/pageObjectIds/page_object_id": page_object_id -"/slides:v1/ColorStop": color_stop -"/slides:v1/ColorStop/alpha": alpha -"/slides:v1/ColorStop/position": position -"/slides:v1/ColorStop/color": color +"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/chartId": chart_id +"/slides:v1/ReplaceAllShapesWithSheetsChartRequest/containsText": contains_text "/slides:v1/Range": range -"/slides:v1/Range/type": type -"/slides:v1/Range/startIndex": start_index "/slides:v1/Range/endIndex": end_index +"/slides:v1/Range/startIndex": start_index +"/slides:v1/Range/type": type +"/slides:v1/ColorStop": color_stop +"/slides:v1/ColorStop/position": position +"/slides:v1/ColorStop/alpha": alpha +"/slides:v1/ColorStop/color": color "/slides:v1/CreateVideoRequest": create_video_request -"/slides:v1/CreateVideoRequest/objectId": object_id_prop "/slides:v1/CreateVideoRequest/source": source +"/slides:v1/CreateVideoRequest/objectId": object_id_prop "/slides:v1/CreateVideoRequest/elementProperties": element_properties "/slides:v1/CreateVideoRequest/id": id "/slides:v1/DuplicateObjectResponse": duplicate_object_response @@ -37000,11 +37484,10 @@ "/slides:v1/ReplaceAllShapesWithImageRequest": replace_all_shapes_with_image_request "/slides:v1/ReplaceAllShapesWithImageRequest/imageUrl": image_url "/slides:v1/ReplaceAllShapesWithImageRequest/replaceMethod": replace_method -"/slides:v1/ReplaceAllShapesWithImageRequest/containsText": contains_text "/slides:v1/ReplaceAllShapesWithImageRequest/pageObjectIds": page_object_ids "/slides:v1/ReplaceAllShapesWithImageRequest/pageObjectIds/page_object_id": page_object_id +"/slides:v1/ReplaceAllShapesWithImageRequest/containsText": contains_text "/slides:v1/Shadow": shadow -"/slides:v1/Shadow/blurRadius": blur_radius "/slides:v1/Shadow/type": type "/slides:v1/Shadow/transform": transform "/slides:v1/Shadow/alignment": alignment @@ -37012,100 +37495,100 @@ "/slides:v1/Shadow/color": color "/slides:v1/Shadow/rotateWithShape": rotate_with_shape "/slides:v1/Shadow/propertyState": property_state +"/slides:v1/Shadow/blurRadius": blur_radius "/slides:v1/DeleteTableRowRequest": delete_table_row_request "/slides:v1/DeleteTableRowRequest/cellLocation": cell_location "/slides:v1/DeleteTableRowRequest/tableObjectId": table_object_id "/slides:v1/Bullet": bullet -"/slides:v1/Bullet/bulletStyle": bullet_style -"/slides:v1/Bullet/listId": list_id "/slides:v1/Bullet/glyph": glyph "/slides:v1/Bullet/nestingLevel": nesting_level +"/slides:v1/Bullet/bulletStyle": bullet_style +"/slides:v1/Bullet/listId": list_id "/slides:v1/OutlineFill": outline_fill "/slides:v1/OutlineFill/solidFill": solid_fill "/slides:v1/CreateLineResponse": create_line_response "/slides:v1/CreateLineResponse/objectId": object_id_prop "/slides:v1/TableCellLocation": table_cell_location -"/slides:v1/TableCellLocation/rowIndex": row_index "/slides:v1/TableCellLocation/columnIndex": column_index +"/slides:v1/TableCellLocation/rowIndex": row_index "/slides:v1/ReplaceAllTextResponse": replace_all_text_response "/slides:v1/ReplaceAllTextResponse/occurrencesChanged": occurrences_changed "/slides:v1/UpdateParagraphStyleRequest": update_paragraph_style_request -"/slides:v1/UpdateParagraphStyleRequest/cellLocation": cell_location -"/slides:v1/UpdateParagraphStyleRequest/style": style "/slides:v1/UpdateParagraphStyleRequest/fields": fields -"/slides:v1/UpdateParagraphStyleRequest/objectId": object_id_prop "/slides:v1/UpdateParagraphStyleRequest/textRange": text_range +"/slides:v1/UpdateParagraphStyleRequest/objectId": object_id_prop +"/slides:v1/UpdateParagraphStyleRequest/style": style +"/slides:v1/UpdateParagraphStyleRequest/cellLocation": cell_location "/slides:v1/ColorScheme": color_scheme "/slides:v1/ColorScheme/colors": colors "/slides:v1/ColorScheme/colors/color": color "/slides:v1/Shape": shape -"/slides:v1/Shape/shapeType": shape_type -"/slides:v1/Shape/text": text "/slides:v1/Shape/placeholder": placeholder +"/slides:v1/Shape/text": text +"/slides:v1/Shape/shapeType": shape_type "/slides:v1/Shape/shapeProperties": shape_properties "/slides:v1/Image": image -"/slides:v1/Image/imageProperties": image_properties "/slides:v1/Image/contentUrl": content_url +"/slides:v1/Image/imageProperties": image_properties "/slides:v1/AffineTransform": affine_transform +"/slides:v1/AffineTransform/shearX": shear_x +"/slides:v1/AffineTransform/scaleY": scale_y "/slides:v1/AffineTransform/translateY": translate_y "/slides:v1/AffineTransform/translateX": translate_x "/slides:v1/AffineTransform/shearY": shear_y "/slides:v1/AffineTransform/unit": unit "/slides:v1/AffineTransform/scaleX": scale_x -"/slides:v1/AffineTransform/shearX": shear_x -"/slides:v1/AffineTransform/scaleY": scale_y "/slides:v1/InsertTextRequest": insert_text_request -"/slides:v1/InsertTextRequest/objectId": object_id_prop "/slides:v1/InsertTextRequest/text": text +"/slides:v1/InsertTextRequest/objectId": object_id_prop "/slides:v1/InsertTextRequest/insertionIndex": insertion_index "/slides:v1/InsertTextRequest/cellLocation": cell_location "/slides:v1/AutoText": auto_text -"/slides:v1/AutoText/type": type "/slides:v1/AutoText/content": content +"/slides:v1/AutoText/type": type "/slides:v1/AutoText/style": style "/slides:v1/CreateVideoResponse": create_video_response "/slides:v1/CreateVideoResponse/objectId": object_id_prop -"/slides:v1/DeleteTextRequest": delete_text_request -"/slides:v1/DeleteTextRequest/objectId": object_id_prop -"/slides:v1/DeleteTextRequest/textRange": text_range -"/slides:v1/DeleteTextRequest/cellLocation": cell_location "/slides:v1/UpdatePageElementTransformRequest": update_page_element_transform_request -"/slides:v1/UpdatePageElementTransformRequest/objectId": object_id_prop "/slides:v1/UpdatePageElementTransformRequest/transform": transform +"/slides:v1/UpdatePageElementTransformRequest/objectId": object_id_prop "/slides:v1/UpdatePageElementTransformRequest/applyMode": apply_mode +"/slides:v1/DeleteTextRequest": delete_text_request +"/slides:v1/DeleteTextRequest/textRange": text_range +"/slides:v1/DeleteTextRequest/objectId": object_id_prop +"/slides:v1/DeleteTextRequest/cellLocation": cell_location "/slides:v1/DeleteObjectRequest": delete_object_request "/slides:v1/DeleteObjectRequest/objectId": object_id_prop -"/slides:v1/Dimension": dimension -"/slides:v1/Dimension/magnitude": magnitude -"/slides:v1/Dimension/unit": unit "/slides:v1/TextElement": text_element +"/slides:v1/TextElement/endIndex": end_index +"/slides:v1/TextElement/startIndex": start_index "/slides:v1/TextElement/textRun": text_run "/slides:v1/TextElement/autoText": auto_text "/slides:v1/TextElement/paragraphMarker": paragraph_marker -"/slides:v1/TextElement/startIndex": start_index -"/slides:v1/TextElement/endIndex": end_index +"/slides:v1/Dimension": dimension +"/slides:v1/Dimension/magnitude": magnitude +"/slides:v1/Dimension/unit": unit "/slides:v1/LineFill": line_fill "/slides:v1/LineFill/solidFill": solid_fill "/slides:v1/VideoProperties": video_properties "/slides:v1/VideoProperties/outline": outline "/slides:v1/InsertTableRowsRequest": insert_table_rows_request -"/slides:v1/InsertTableRowsRequest/cellLocation": cell_location "/slides:v1/InsertTableRowsRequest/tableObjectId": table_object_id "/slides:v1/InsertTableRowsRequest/insertBelow": insert_below "/slides:v1/InsertTableRowsRequest/number": number +"/slides:v1/InsertTableRowsRequest/cellLocation": cell_location "/slides:v1/LayoutProperties": layout_properties +"/slides:v1/LayoutProperties/masterObjectId": master_object_id "/slides:v1/LayoutProperties/name": name "/slides:v1/LayoutProperties/displayName": display_name -"/slides:v1/LayoutProperties/masterObjectId": master_object_id "/slides:v1/LineProperties": line_properties -"/slides:v1/LineProperties/dashStyle": dash_style -"/slides:v1/LineProperties/link": link -"/slides:v1/LineProperties/startArrow": start_arrow -"/slides:v1/LineProperties/endArrow": end_arrow "/slides:v1/LineProperties/weight": weight "/slides:v1/LineProperties/lineFill": line_fill +"/slides:v1/LineProperties/link": link +"/slides:v1/LineProperties/dashStyle": dash_style +"/slides:v1/LineProperties/endArrow": end_arrow +"/slides:v1/LineProperties/startArrow": start_arrow "/slides:v1/Presentation": presentation -"/slides:v1/Presentation/notesMaster": notes_master "/slides:v1/Presentation/layouts": layouts "/slides:v1/Presentation/layouts/layout": layout "/slides:v1/Presentation/title": title @@ -37117,264 +37600,24 @@ "/slides:v1/Presentation/slides": slides "/slides:v1/Presentation/slides/slide": slide "/slides:v1/Presentation/revisionId": revision_id +"/slides:v1/Presentation/notesMaster": notes_master "/slides:v1/OpaqueColor": opaque_color "/slides:v1/OpaqueColor/rgbColor": rgb_color "/slides:v1/OpaqueColor/themeColor": theme_color "/slides:v1/ImageProperties": image_properties -"/slides:v1/ImageProperties/shadow": shadow -"/slides:v1/ImageProperties/contrast": contrast -"/slides:v1/ImageProperties/link": link "/slides:v1/ImageProperties/cropProperties": crop_properties "/slides:v1/ImageProperties/recolor": recolor "/slides:v1/ImageProperties/outline": outline "/slides:v1/ImageProperties/brightness": brightness "/slides:v1/ImageProperties/transparency": transparency +"/slides:v1/ImageProperties/shadow": shadow +"/slides:v1/ImageProperties/contrast": contrast +"/slides:v1/ImageProperties/link": link "/slides:v1/ReplaceAllShapesWithImageResponse": replace_all_shapes_with_image_response "/slides:v1/ReplaceAllShapesWithImageResponse/occurrencesChanged": occurrences_changed -"/slides:v1/Line": line -"/slides:v1/Line/lineProperties": line_properties -"/slides:v1/Line/lineType": line_type -"/slides:v1/BatchUpdatePresentationResponse": batch_update_presentation_response -"/slides:v1/BatchUpdatePresentationResponse/replies": replies -"/slides:v1/BatchUpdatePresentationResponse/replies/reply": reply -"/slides:v1/BatchUpdatePresentationResponse/presentationId": presentation_id -"/slides:v1/CreateSheetsChartRequest": create_sheets_chart_request -"/slides:v1/CreateSheetsChartRequest/chartId": chart_id -"/slides:v1/CreateSheetsChartRequest/objectId": object_id_prop -"/slides:v1/CreateSheetsChartRequest/elementProperties": element_properties -"/slides:v1/CreateSheetsChartRequest/spreadsheetId": spreadsheet_id -"/slides:v1/CreateSheetsChartRequest/linkingMode": linking_mode -"/slides:v1/CreateImageResponse": create_image_response -"/slides:v1/CreateImageResponse/objectId": object_id_prop -"/slides:v1/SlideProperties": slide_properties -"/slides:v1/SlideProperties/layoutObjectId": layout_object_id -"/slides:v1/SlideProperties/masterObjectId": master_object_id -"/slides:v1/SlideProperties/notesPage": notes_page -"/slides:v1/Response": response -"/slides:v1/Response/duplicateObject": duplicate_object -"/slides:v1/Response/createShape": create_shape -"/slides:v1/Response/createLine": create_line -"/slides:v1/Response/createImage": create_image -"/slides:v1/Response/createVideo": create_video -"/slides:v1/Response/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart -"/slides:v1/Response/createSheetsChart": create_sheets_chart -"/slides:v1/Response/replaceAllShapesWithImage": replace_all_shapes_with_image -"/slides:v1/Response/createTable": create_table -"/slides:v1/Response/replaceAllText": replace_all_text -"/slides:v1/Response/createSlide": create_slide -"/slides:v1/TextRun": text_run -"/slides:v1/TextRun/content": content -"/slides:v1/TextRun/style": style -"/slides:v1/LayoutReference": layout_reference -"/slides:v1/LayoutReference/layoutId": layout_id -"/slides:v1/LayoutReference/predefinedLayout": predefined_layout -"/slides:v1/SubstringMatchCriteria": substring_match_criteria -"/slides:v1/SubstringMatchCriteria/text": text -"/slides:v1/SubstringMatchCriteria/matchCase": match_case -"/slides:v1/TableRange": table_range -"/slides:v1/TableRange/location": location -"/slides:v1/TableRange/rowSpan": row_span -"/slides:v1/TableRange/columnSpan": column_span -"/slides:v1/CreateTableResponse": create_table_response -"/slides:v1/CreateTableResponse/objectId": object_id_prop -"/slides:v1/CreateTableRequest": create_table_request -"/slides:v1/CreateTableRequest/rows": rows -"/slides:v1/CreateTableRequest/objectId": object_id_prop -"/slides:v1/CreateTableRequest/columns": columns -"/slides:v1/CreateTableRequest/elementProperties": element_properties -"/slides:v1/Table": table -"/slides:v1/Table/columns": columns -"/slides:v1/Table/tableRows": table_rows -"/slides:v1/Table/tableRows/table_row": table_row -"/slides:v1/Table/rows": rows -"/slides:v1/Table/tableColumns": table_columns -"/slides:v1/Table/tableColumns/table_column": table_column -"/slides:v1/PageBackgroundFill": page_background_fill -"/slides:v1/PageBackgroundFill/solidFill": solid_fill -"/slides:v1/PageBackgroundFill/propertyState": property_state -"/slides:v1/PageBackgroundFill/stretchedPictureFill": stretched_picture_fill -"/slides:v1/SheetsChart": sheets_chart -"/slides:v1/SheetsChart/sheetsChartProperties": sheets_chart_properties -"/slides:v1/SheetsChart/contentUrl": content_url -"/slides:v1/SheetsChart/spreadsheetId": spreadsheet_id -"/slides:v1/SheetsChart/chartId": chart_id -"/slides:v1/SolidFill": solid_fill -"/slides:v1/SolidFill/color": color -"/slides:v1/SolidFill/alpha": alpha -"/slides:v1/ThemeColorPair": theme_color_pair -"/slides:v1/ThemeColorPair/type": type -"/slides:v1/ThemeColorPair/color": color -"/slides:v1/OptionalColor": optional_color -"/slides:v1/OptionalColor/opaqueColor": opaque_color -"/slides:v1/PageElementProperties": page_element_properties -"/slides:v1/PageElementProperties/size": size -"/slides:v1/PageElementProperties/transform": transform -"/slides:v1/PageElementProperties/pageObjectId": page_object_id -"/slides:v1/SheetsChartProperties": sheets_chart_properties -"/slides:v1/SheetsChartProperties/chartImageProperties": chart_image_properties -"/slides:v1/StretchedPictureFill": stretched_picture_fill -"/slides:v1/StretchedPictureFill/contentUrl": content_url -"/slides:v1/StretchedPictureFill/size": size -"/slides:v1/DeleteTableColumnRequest": delete_table_column_request -"/slides:v1/DeleteTableColumnRequest/cellLocation": cell_location -"/slides:v1/DeleteTableColumnRequest/tableObjectId": table_object_id -"/slides:v1/UpdateTextStyleRequest": update_text_style_request -"/slides:v1/UpdateTextStyleRequest/cellLocation": cell_location -"/slides:v1/UpdateTextStyleRequest/style": style -"/slides:v1/UpdateTextStyleRequest/fields": fields -"/slides:v1/UpdateTextStyleRequest/objectId": object_id_prop -"/slides:v1/UpdateTextStyleRequest/textRange": text_range -"/slides:v1/List": list -"/slides:v1/List/nestingLevel": nesting_level -"/slides:v1/List/nestingLevel/nesting_level": nesting_level -"/slides:v1/List/listId": list_id -"/slides:v1/WeightedFontFamily": weighted_font_family -"/slides:v1/WeightedFontFamily/fontFamily": font_family -"/slides:v1/WeightedFontFamily/weight": weight -"/slides:v1/PageElement": page_element -"/slides:v1/PageElement/elementGroup": element_group -"/slides:v1/PageElement/image": image -"/slides:v1/PageElement/size": size -"/slides:v1/PageElement/title": title -"/slides:v1/PageElement/sheetsChart": sheets_chart -"/slides:v1/PageElement/video": video -"/slides:v1/PageElement/wordArt": word_art -"/slides:v1/PageElement/table": table -"/slides:v1/PageElement/transform": transform -"/slides:v1/PageElement/objectId": object_id_prop -"/slides:v1/PageElement/shape": shape -"/slides:v1/PageElement/line": line -"/slides:v1/PageElement/description": description -"/slides:v1/CreateImageRequest": create_image_request -"/slides:v1/CreateImageRequest/objectId": object_id_prop -"/slides:v1/CreateImageRequest/elementProperties": element_properties -"/slides:v1/CreateImageRequest/url": url -"/slides:v1/CreateParagraphBulletsRequest": create_paragraph_bullets_request -"/slides:v1/CreateParagraphBulletsRequest/bulletPreset": bullet_preset -"/slides:v1/CreateParagraphBulletsRequest/cellLocation": cell_location -"/slides:v1/CreateParagraphBulletsRequest/objectId": object_id_prop -"/slides:v1/CreateParagraphBulletsRequest/textRange": text_range -"/slides:v1/Size": size -"/slides:v1/Size/width": width -"/slides:v1/Size/height": height -"/slides:v1/TextStyle": text_style -"/slides:v1/TextStyle/smallCaps": small_caps -"/slides:v1/TextStyle/backgroundColor": background_color -"/slides:v1/TextStyle/underline": underline -"/slides:v1/TextStyle/link": link -"/slides:v1/TextStyle/foregroundColor": foreground_color -"/slides:v1/TextStyle/bold": bold -"/slides:v1/TextStyle/fontFamily": font_family -"/slides:v1/TextStyle/strikethrough": strikethrough -"/slides:v1/TextStyle/italic": italic -"/slides:v1/TextStyle/fontSize": font_size -"/slides:v1/TextStyle/baselineOffset": baseline_offset -"/slides:v1/TextStyle/weightedFontFamily": weighted_font_family -"/slides:v1/UpdateVideoPropertiesRequest": update_video_properties_request -"/slides:v1/UpdateVideoPropertiesRequest/videoProperties": video_properties -"/slides:v1/UpdateVideoPropertiesRequest/fields": fields -"/slides:v1/UpdateVideoPropertiesRequest/objectId": object_id_prop -"/slides:v1/Request": request -"/slides:v1/Request/deleteTableRow": delete_table_row -"/slides:v1/Request/updateShapeProperties": update_shape_properties -"/slides:v1/Request/insertText": insert_text -"/slides:v1/Request/deleteText": delete_text -"/slides:v1/Request/updatePageProperties": update_page_properties -"/slides:v1/Request/deleteParagraphBullets": delete_paragraph_bullets -"/slides:v1/Request/createShape": create_shape -"/slides:v1/Request/insertTableColumns": insert_table_columns -"/slides:v1/Request/refreshSheetsChart": refresh_sheets_chart -"/slides:v1/Request/createTable": create_table -"/slides:v1/Request/updateTableCellProperties": update_table_cell_properties -"/slides:v1/Request/deleteObject": delete_object -"/slides:v1/Request/updateParagraphStyle": update_paragraph_style -"/slides:v1/Request/duplicateObject": duplicate_object -"/slides:v1/Request/deleteTableColumn": delete_table_column -"/slides:v1/Request/updateVideoProperties": update_video_properties -"/slides:v1/Request/createLine": create_line -"/slides:v1/Request/createImage": create_image -"/slides:v1/Request/createParagraphBullets": create_paragraph_bullets -"/slides:v1/Request/createVideo": create_video -"/slides:v1/Request/createSheetsChart": create_sheets_chart -"/slides:v1/Request/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart -"/slides:v1/Request/updatePageElementTransform": update_page_element_transform -"/slides:v1/Request/updateTextStyle": update_text_style -"/slides:v1/Request/replaceAllShapesWithImage": replace_all_shapes_with_image -"/slides:v1/Request/replaceAllText": replace_all_text -"/slides:v1/Request/updateImageProperties": update_image_properties -"/slides:v1/Request/createSlide": create_slide -"/slides:v1/Request/insertTableRows": insert_table_rows -"/slides:v1/Request/updateLineProperties": update_line_properties -"/slides:v1/Request/updateSlidesPosition": update_slides_position -"/slides:v1/UpdateImagePropertiesRequest": update_image_properties_request -"/slides:v1/UpdateImagePropertiesRequest/fields": fields -"/slides:v1/UpdateImagePropertiesRequest/imageProperties": image_properties -"/slides:v1/UpdateImagePropertiesRequest/objectId": object_id_prop -"/slides:v1/ParagraphStyle": paragraph_style -"/slides:v1/ParagraphStyle/spaceBelow": space_below -"/slides:v1/ParagraphStyle/direction": direction -"/slides:v1/ParagraphStyle/indentEnd": indent_end -"/slides:v1/ParagraphStyle/spacingMode": spacing_mode -"/slides:v1/ParagraphStyle/indentStart": indent_start -"/slides:v1/ParagraphStyle/spaceAbove": space_above -"/slides:v1/ParagraphStyle/indentFirstLine": indent_first_line -"/slides:v1/ParagraphStyle/lineSpacing": line_spacing -"/slides:v1/ParagraphStyle/alignment": alignment -"/slides:v1/ReplaceAllShapesWithSheetsChartResponse": replace_all_shapes_with_sheets_chart_response -"/slides:v1/ReplaceAllShapesWithSheetsChartResponse/occurrencesChanged": occurrences_changed -"/slides:v1/TableCellProperties": table_cell_properties -"/slides:v1/TableCellProperties/tableCellBackgroundFill": table_cell_background_fill -"/slides:v1/RefreshSheetsChartRequest": refresh_sheets_chart_request -"/slides:v1/RefreshSheetsChartRequest/objectId": object_id_prop -"/slides:v1/Outline": outline -"/slides:v1/Outline/dashStyle": dash_style -"/slides:v1/Outline/propertyState": property_state -"/slides:v1/Outline/outlineFill": outline_fill -"/slides:v1/Outline/weight": weight -"/slides:v1/NotesProperties": notes_properties -"/slides:v1/NotesProperties/speakerNotesObjectId": speaker_notes_object_id -"/slides:v1/ShapeProperties": shape_properties -"/slides:v1/ShapeProperties/outline": outline -"/slides:v1/ShapeProperties/shapeBackgroundFill": shape_background_fill -"/slides:v1/ShapeProperties/shadow": shadow -"/slides:v1/ShapeProperties/link": link -"/slides:v1/TableColumnProperties": table_column_properties -"/slides:v1/TableColumnProperties/columnWidth": column_width -"/slides:v1/TableRow": table_row -"/slides:v1/TableRow/rowHeight": row_height -"/slides:v1/TableRow/tableCells": table_cells -"/slides:v1/TableRow/tableCells/table_cell": table_cell -"/slides:v1/UpdateTableCellPropertiesRequest": update_table_cell_properties_request -"/slides:v1/UpdateTableCellPropertiesRequest/fields": fields -"/slides:v1/UpdateTableCellPropertiesRequest/objectId": object_id_prop -"/slides:v1/UpdateTableCellPropertiesRequest/tableRange": table_range -"/slides:v1/UpdateTableCellPropertiesRequest/tableCellProperties": table_cell_properties -"/slides:v1/CreateSlideRequest": create_slide_request -"/slides:v1/CreateSlideRequest/slideLayoutReference": slide_layout_reference -"/slides:v1/CreateSlideRequest/objectId": object_id_prop -"/slides:v1/CreateSlideRequest/insertionIndex": insertion_index -"/slides:v1/CreateSlideRequest/placeholderIdMappings": placeholder_id_mappings -"/slides:v1/CreateSlideRequest/placeholderIdMappings/placeholder_id_mapping": placeholder_id_mapping -"/slides:v1/BatchUpdatePresentationRequest": batch_update_presentation_request -"/slides:v1/BatchUpdatePresentationRequest/requests": requests -"/slides:v1/BatchUpdatePresentationRequest/requests/request": request -"/slides:v1/BatchUpdatePresentationRequest/writeControl": write_control -"/slides:v1/TextContent": text_content -"/slides:v1/TextContent/lists": lists -"/slides:v1/TextContent/lists/list": list -"/slides:v1/TextContent/textElements": text_elements -"/slides:v1/TextContent/textElements/text_element": text_element -"/slides:v1/CreateSheetsChartResponse": create_sheets_chart_response -"/slides:v1/CreateSheetsChartResponse/objectId": object_id_prop -"/slides:v1/WriteControl": write_control -"/slides:v1/WriteControl/requiredRevisionId": required_revision_id -"/slides:v1/DeleteParagraphBulletsRequest": delete_paragraph_bullets_request -"/slides:v1/DeleteParagraphBulletsRequest/cellLocation": cell_location -"/slides:v1/DeleteParagraphBulletsRequest/objectId": object_id_prop -"/slides:v1/DeleteParagraphBulletsRequest/textRange": text_range -"/sourcerepo:v1/fields": fields "/sourcerepo:v1/key": key "/sourcerepo:v1/quotaUser": quota_user +"/sourcerepo:v1/fields": fields "/sourcerepo:v1/sourcerepo.projects.repos.getIamPolicy": get_project_repo_iam_policy "/sourcerepo:v1/sourcerepo.projects.repos.getIamPolicy/resource": resource "/sourcerepo:v1/sourcerepo.projects.repos.get": get_project_repo @@ -37384,20 +37627,19 @@ "/sourcerepo:v1/sourcerepo.projects.repos.delete": delete_project_repo "/sourcerepo:v1/sourcerepo.projects.repos.delete/name": name "/sourcerepo:v1/sourcerepo.projects.repos.list": list_project_repos -"/sourcerepo:v1/sourcerepo.projects.repos.list/pageSize": page_size -"/sourcerepo:v1/sourcerepo.projects.repos.list/name": name "/sourcerepo:v1/sourcerepo.projects.repos.list/pageToken": page_token -"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy -"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource +"/sourcerepo:v1/sourcerepo.projects.repos.list/name": name +"/sourcerepo:v1/sourcerepo.projects.repos.list/pageSize": page_size "/sourcerepo:v1/sourcerepo.projects.repos.create": create_project_repo "/sourcerepo:v1/sourcerepo.projects.repos.create/parent": parent -"/sourcerepo:v1/DataAccessOptions": data_access_options +"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy +"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource "/sourcerepo:v1/AuditConfig": audit_config -"/sourcerepo:v1/AuditConfig/service": service "/sourcerepo:v1/AuditConfig/auditLogConfigs": audit_log_configs "/sourcerepo:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config "/sourcerepo:v1/AuditConfig/exemptedMembers": exempted_members "/sourcerepo:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member +"/sourcerepo:v1/AuditConfig/service": service "/sourcerepo:v1/SetIamPolicyRequest": set_iam_policy_request "/sourcerepo:v1/SetIamPolicyRequest/policy": policy "/sourcerepo:v1/SetIamPolicyRequest/updateMask": update_mask @@ -37407,38 +37649,38 @@ "/sourcerepo:v1/Binding/members": members "/sourcerepo:v1/Binding/members/member": member "/sourcerepo:v1/Binding/role": role -"/sourcerepo:v1/Empty": empty "/sourcerepo:v1/MirrorConfig": mirror_config "/sourcerepo:v1/MirrorConfig/url": url "/sourcerepo:v1/MirrorConfig/webhookId": webhook_id "/sourcerepo:v1/MirrorConfig/deployKeyId": deploy_key_id +"/sourcerepo:v1/Empty": empty "/sourcerepo:v1/Repo": repo -"/sourcerepo:v1/Repo/url": url -"/sourcerepo:v1/Repo/size": size "/sourcerepo:v1/Repo/name": name "/sourcerepo:v1/Repo/mirrorConfig": mirror_config +"/sourcerepo:v1/Repo/url": url +"/sourcerepo:v1/Repo/size": size +"/sourcerepo:v1/ListReposResponse": list_repos_response +"/sourcerepo:v1/ListReposResponse/repos": repos +"/sourcerepo:v1/ListReposResponse/repos/repo": repo +"/sourcerepo:v1/ListReposResponse/nextPageToken": next_page_token +"/sourcerepo:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/sourcerepo:v1/TestIamPermissionsResponse/permissions": permissions +"/sourcerepo:v1/TestIamPermissionsResponse/permissions/permission": permission "/sourcerepo:v1/Condition": condition -"/sourcerepo:v1/Condition/value": value "/sourcerepo:v1/Condition/sys": sys +"/sourcerepo:v1/Condition/value": value "/sourcerepo:v1/Condition/values": values "/sourcerepo:v1/Condition/values/value": value "/sourcerepo:v1/Condition/iam": iam "/sourcerepo:v1/Condition/op": op "/sourcerepo:v1/Condition/svc": svc -"/sourcerepo:v1/ListReposResponse": list_repos_response -"/sourcerepo:v1/ListReposResponse/nextPageToken": next_page_token -"/sourcerepo:v1/ListReposResponse/repos": repos -"/sourcerepo:v1/ListReposResponse/repos/repo": repo -"/sourcerepo:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/sourcerepo:v1/TestIamPermissionsResponse/permissions": permissions -"/sourcerepo:v1/TestIamPermissionsResponse/permissions/permission": permission "/sourcerepo:v1/CounterOptions": counter_options -"/sourcerepo:v1/CounterOptions/metric": metric "/sourcerepo:v1/CounterOptions/field": field +"/sourcerepo:v1/CounterOptions/metric": metric "/sourcerepo:v1/AuditLogConfig": audit_log_config -"/sourcerepo:v1/AuditLogConfig/logType": log_type "/sourcerepo:v1/AuditLogConfig/exemptedMembers": exempted_members "/sourcerepo:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/sourcerepo:v1/AuditLogConfig/logType": log_type "/sourcerepo:v1/Rule": rule "/sourcerepo:v1/Rule/logConfig": log_config "/sourcerepo:v1/Rule/logConfig/log_config": log_config @@ -37453,13 +37695,14 @@ "/sourcerepo:v1/Rule/conditions": conditions "/sourcerepo:v1/Rule/conditions/condition": condition "/sourcerepo:v1/LogConfig": log_config -"/sourcerepo:v1/LogConfig/cloudAudit": cloud_audit "/sourcerepo:v1/LogConfig/counter": counter "/sourcerepo:v1/LogConfig/dataAccess": data_access +"/sourcerepo:v1/LogConfig/cloudAudit": cloud_audit "/sourcerepo:v1/TestIamPermissionsRequest": test_iam_permissions_request "/sourcerepo:v1/TestIamPermissionsRequest/permissions": permissions "/sourcerepo:v1/TestIamPermissionsRequest/permissions/permission": permission "/sourcerepo:v1/Policy": policy +"/sourcerepo:v1/Policy/etag": etag "/sourcerepo:v1/Policy/iamOwned": iam_owned "/sourcerepo:v1/Policy/rules": rules "/sourcerepo:v1/Policy/rules/rule": rule @@ -37468,16 +37711,12 @@ "/sourcerepo:v1/Policy/auditConfigs/audit_config": audit_config "/sourcerepo:v1/Policy/bindings": bindings "/sourcerepo:v1/Policy/bindings/binding": binding -"/sourcerepo:v1/Policy/etag": etag +"/sourcerepo:v1/DataAccessOptions": data_access_options "/spanner:v1/key": key "/spanner:v1/quotaUser": quota_user "/spanner:v1/fields": fields -"/spanner:v1/spanner.projects.instanceConfigs.list": list_project_instance_configs -"/spanner:v1/spanner.projects.instanceConfigs.list/parent": parent -"/spanner:v1/spanner.projects.instanceConfigs.list/pageToken": page_token -"/spanner:v1/spanner.projects.instanceConfigs.list/pageSize": page_size -"/spanner:v1/spanner.projects.instanceConfigs.get": get_project_instance_config -"/spanner:v1/spanner.projects.instanceConfigs.get/name": name +"/spanner:v1/spanner.projects.instances.getIamPolicy": get_instance_iam_policy +"/spanner:v1/spanner.projects.instances.getIamPolicy/resource": resource "/spanner:v1/spanner.projects.instances.get": get_project_instance "/spanner:v1/spanner.projects.instances.get/name": name "/spanner:v1/spanner.projects.instances.patch": patch_project_instance @@ -37487,26 +37726,14 @@ "/spanner:v1/spanner.projects.instances.delete": delete_project_instance "/spanner:v1/spanner.projects.instances.delete/name": name "/spanner:v1/spanner.projects.instances.list": list_project_instances -"/spanner:v1/spanner.projects.instances.list/pageToken": page_token -"/spanner:v1/spanner.projects.instances.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.list/parent": parent "/spanner:v1/spanner.projects.instances.list/filter": filter -"/spanner:v1/spanner.projects.instances.create": create_instance -"/spanner:v1/spanner.projects.instances.create/parent": parent +"/spanner:v1/spanner.projects.instances.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.setIamPolicy": set_instance_iam_policy "/spanner:v1/spanner.projects.instances.setIamPolicy/resource": resource -"/spanner:v1/spanner.projects.instances.getIamPolicy": get_instance_iam_policy -"/spanner:v1/spanner.projects.instances.getIamPolicy/resource": resource -"/spanner:v1/spanner.projects.instances.databases.getIamPolicy": get_database_iam_policy -"/spanner:v1/spanner.projects.instances.databases.getIamPolicy/resource": resource -"/spanner:v1/spanner.projects.instances.databases.get": get_project_instance_database -"/spanner:v1/spanner.projects.instances.databases.get/name": name -"/spanner:v1/spanner.projects.instances.databases.dropDatabase": drop_project_instance_database_database -"/spanner:v1/spanner.projects.instances.databases.dropDatabase/database": database -"/spanner:v1/spanner.projects.instances.databases.updateDdl": update_project_instance_database_ddl -"/spanner:v1/spanner.projects.instances.databases.updateDdl/database": database -"/spanner:v1/spanner.projects.instances.databases.testIamPermissions": test_database_iam_permissions -"/spanner:v1/spanner.projects.instances.databases.testIamPermissions/resource": resource +"/spanner:v1/spanner.projects.instances.create": create_instance +"/spanner:v1/spanner.projects.instances.create/parent": parent "/spanner:v1/spanner.projects.instances.databases.getDdl": get_project_instance_database_ddl "/spanner:v1/spanner.projects.instances.databases.getDdl/database": database "/spanner:v1/spanner.projects.instances.databases.list": list_project_instance_databases @@ -37517,211 +37744,71 @@ "/spanner:v1/spanner.projects.instances.databases.create/parent": parent "/spanner:v1/spanner.projects.instances.databases.setIamPolicy": set_database_iam_policy "/spanner:v1/spanner.projects.instances.databases.setIamPolicy/resource": resource -"/spanner:v1/spanner.projects.instances.databases.operations.cancel": cancel_project_instance_database_operation -"/spanner:v1/spanner.projects.instances.databases.operations.cancel/name": name -"/spanner:v1/spanner.projects.instances.databases.operations.delete": delete_project_instance_database_operation -"/spanner:v1/spanner.projects.instances.databases.operations.delete/name": name -"/spanner:v1/spanner.projects.instances.databases.operations.list": list_project_instance_database_operations -"/spanner:v1/spanner.projects.instances.databases.operations.list/filter": filter -"/spanner:v1/spanner.projects.instances.databases.operations.list/name": name -"/spanner:v1/spanner.projects.instances.databases.operations.list/pageToken": page_token -"/spanner:v1/spanner.projects.instances.databases.operations.list/pageSize": page_size -"/spanner:v1/spanner.projects.instances.databases.operations.get": get_project_instance_database_operation -"/spanner:v1/spanner.projects.instances.databases.operations.get/name": name +"/spanner:v1/spanner.projects.instances.databases.getIamPolicy": get_database_iam_policy +"/spanner:v1/spanner.projects.instances.databases.getIamPolicy/resource": resource +"/spanner:v1/spanner.projects.instances.databases.get": get_project_instance_database +"/spanner:v1/spanner.projects.instances.databases.get/name": name +"/spanner:v1/spanner.projects.instances.databases.dropDatabase": drop_project_instance_database_database +"/spanner:v1/spanner.projects.instances.databases.dropDatabase/database": database +"/spanner:v1/spanner.projects.instances.databases.updateDdl": update_project_instance_database_ddl +"/spanner:v1/spanner.projects.instances.databases.updateDdl/database": database +"/spanner:v1/spanner.projects.instances.databases.testIamPermissions": test_database_iam_permissions +"/spanner:v1/spanner.projects.instances.databases.testIamPermissions/resource": resource +"/spanner:v1/spanner.projects.instances.databases.sessions.read": read_session +"/spanner:v1/spanner.projects.instances.databases.sessions.read/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.get": get_project_instance_database_session "/spanner:v1/spanner.projects.instances.databases.sessions.get/name": name -"/spanner:v1/spanner.projects.instances.databases.sessions.delete": delete_project_instance_database_session -"/spanner:v1/spanner.projects.instances.databases.sessions.delete/name": name "/spanner:v1/spanner.projects.instances.databases.sessions.executeStreamingSql": execute_project_instance_database_session_streaming_sql "/spanner:v1/spanner.projects.instances.databases.sessions.executeStreamingSql/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.commit": commit_session "/spanner:v1/spanner.projects.instances.databases.sessions.commit/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.beginTransaction": begin_session_transaction "/spanner:v1/spanner.projects.instances.databases.sessions.beginTransaction/session": session +"/spanner:v1/spanner.projects.instances.databases.sessions.delete": delete_project_instance_database_session +"/spanner:v1/spanner.projects.instances.databases.sessions.delete/name": name "/spanner:v1/spanner.projects.instances.databases.sessions.executeSql": execute_session_sql "/spanner:v1/spanner.projects.instances.databases.sessions.executeSql/session": session -"/spanner:v1/spanner.projects.instances.databases.sessions.streamingRead": streaming_project_instance_database_session_read -"/spanner:v1/spanner.projects.instances.databases.sessions.streamingRead/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.rollback": rollback_session "/spanner:v1/spanner.projects.instances.databases.sessions.rollback/session": session +"/spanner:v1/spanner.projects.instances.databases.sessions.streamingRead": streaming_project_instance_database_session_read +"/spanner:v1/spanner.projects.instances.databases.sessions.streamingRead/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.create": create_project_instance_database_session "/spanner:v1/spanner.projects.instances.databases.sessions.create/database": database -"/spanner:v1/spanner.projects.instances.databases.sessions.read": read_session -"/spanner:v1/spanner.projects.instances.databases.sessions.read/session": session -"/spanner:v1/spanner.projects.instances.operations.list": list_project_instance_operations -"/spanner:v1/spanner.projects.instances.operations.list/filter": filter -"/spanner:v1/spanner.projects.instances.operations.list/name": name -"/spanner:v1/spanner.projects.instances.operations.list/pageToken": page_token -"/spanner:v1/spanner.projects.instances.operations.list/pageSize": page_size +"/spanner:v1/spanner.projects.instances.databases.operations.cancel": cancel_project_instance_database_operation +"/spanner:v1/spanner.projects.instances.databases.operations.cancel/name": name +"/spanner:v1/spanner.projects.instances.databases.operations.delete": delete_project_instance_database_operation +"/spanner:v1/spanner.projects.instances.databases.operations.delete/name": name +"/spanner:v1/spanner.projects.instances.databases.operations.get": get_project_instance_database_operation +"/spanner:v1/spanner.projects.instances.databases.operations.get/name": name +"/spanner:v1/spanner.projects.instances.databases.operations.list": list_project_instance_database_operations +"/spanner:v1/spanner.projects.instances.databases.operations.list/filter": filter +"/spanner:v1/spanner.projects.instances.databases.operations.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.databases.operations.list/name": name +"/spanner:v1/spanner.projects.instances.databases.operations.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.operations.get": get_project_instance_operation "/spanner:v1/spanner.projects.instances.operations.get/name": name +"/spanner:v1/spanner.projects.instances.operations.list": list_project_instance_operations +"/spanner:v1/spanner.projects.instances.operations.list/filter": filter +"/spanner:v1/spanner.projects.instances.operations.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.operations.list/name": name +"/spanner:v1/spanner.projects.instances.operations.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.operations.cancel": cancel_project_instance_operation "/spanner:v1/spanner.projects.instances.operations.cancel/name": name "/spanner:v1/spanner.projects.instances.operations.delete": delete_project_instance_operation "/spanner:v1/spanner.projects.instances.operations.delete/name": name -"/spanner:v1/KeySet": key_set -"/spanner:v1/KeySet/ranges": ranges -"/spanner:v1/KeySet/ranges/range": range -"/spanner:v1/KeySet/keys": keys -"/spanner:v1/KeySet/keys/key": key -"/spanner:v1/KeySet/keys/key/key": key -"/spanner:v1/KeySet/all": all -"/spanner:v1/Mutation": mutation -"/spanner:v1/Mutation/delete": delete -"/spanner:v1/Mutation/insert": insert -"/spanner:v1/Mutation/insertOrUpdate": insert_or_update -"/spanner:v1/Mutation/update": update -"/spanner:v1/Mutation/replace": replace -"/spanner:v1/GetDatabaseDdlResponse": get_database_ddl_response -"/spanner:v1/GetDatabaseDdlResponse/statements": statements -"/spanner:v1/GetDatabaseDdlResponse/statements/statement": statement -"/spanner:v1/Database": database -"/spanner:v1/Database/state": state -"/spanner:v1/Database/name": name -"/spanner:v1/ListDatabasesResponse": list_databases_response -"/spanner:v1/ListDatabasesResponse/nextPageToken": next_page_token -"/spanner:v1/ListDatabasesResponse/databases": databases -"/spanner:v1/ListDatabasesResponse/databases/database": database -"/spanner:v1/SetIamPolicyRequest": set_iam_policy_request -"/spanner:v1/SetIamPolicyRequest/policy": policy -"/spanner:v1/SetIamPolicyRequest/updateMask": update_mask -"/spanner:v1/Instance": instance -"/spanner:v1/Instance/config": config -"/spanner:v1/Instance/state": state -"/spanner:v1/Instance/name": name -"/spanner:v1/Instance/displayName": display_name -"/spanner:v1/Instance/nodeCount": node_count -"/spanner:v1/Instance/labels": labels -"/spanner:v1/Instance/labels/label": label -"/spanner:v1/RollbackRequest": rollback_request -"/spanner:v1/RollbackRequest/transactionId": transaction_id -"/spanner:v1/Transaction": transaction -"/spanner:v1/Transaction/readTimestamp": read_timestamp -"/spanner:v1/Transaction/id": id -"/spanner:v1/UpdateDatabaseDdlMetadata": update_database_ddl_metadata -"/spanner:v1/UpdateDatabaseDdlMetadata/statements": statements -"/spanner:v1/UpdateDatabaseDdlMetadata/statements/statement": statement -"/spanner:v1/UpdateDatabaseDdlMetadata/commitTimestamps": commit_timestamps -"/spanner:v1/UpdateDatabaseDdlMetadata/commitTimestamps/commit_timestamp": commit_timestamp -"/spanner:v1/UpdateDatabaseDdlMetadata/database": database -"/spanner:v1/CounterOptions": counter_options -"/spanner:v1/CounterOptions/metric": metric -"/spanner:v1/CounterOptions/field": field -"/spanner:v1/QueryPlan": query_plan -"/spanner:v1/QueryPlan/planNodes": plan_nodes -"/spanner:v1/QueryPlan/planNodes/plan_node": plan_node -"/spanner:v1/StructType": struct_type -"/spanner:v1/StructType/fields": fields -"/spanner:v1/StructType/fields/field": field -"/spanner:v1/Field": field -"/spanner:v1/Field/name": name -"/spanner:v1/Field/type": type -"/spanner:v1/ResultSetStats": result_set_stats -"/spanner:v1/ResultSetStats/queryStats": query_stats -"/spanner:v1/ResultSetStats/queryStats/query_stat": query_stat -"/spanner:v1/ResultSetStats/queryPlan": query_plan -"/spanner:v1/TestIamPermissionsRequest": test_iam_permissions_request -"/spanner:v1/TestIamPermissionsRequest/permissions": permissions -"/spanner:v1/TestIamPermissionsRequest/permissions/permission": permission -"/spanner:v1/CommitResponse": commit_response -"/spanner:v1/CommitResponse/commitTimestamp": commit_timestamp -"/spanner:v1/Type": type -"/spanner:v1/Type/structType": struct_type -"/spanner:v1/Type/arrayElementType": array_element_type -"/spanner:v1/Type/code": code -"/spanner:v1/PlanNode": plan_node -"/spanner:v1/PlanNode/shortRepresentation": short_representation -"/spanner:v1/PlanNode/index": index -"/spanner:v1/PlanNode/kind": kind -"/spanner:v1/PlanNode/displayName": display_name -"/spanner:v1/PlanNode/childLinks": child_links -"/spanner:v1/PlanNode/childLinks/child_link": child_link -"/spanner:v1/PlanNode/metadata": metadata -"/spanner:v1/PlanNode/metadata/metadatum": metadatum -"/spanner:v1/PlanNode/executionStats": execution_stats -"/spanner:v1/PlanNode/executionStats/execution_stat": execution_stat -"/spanner:v1/CreateInstanceMetadata": create_instance_metadata -"/spanner:v1/CreateInstanceMetadata/cancelTime": cancel_time -"/spanner:v1/CreateInstanceMetadata/endTime": end_time -"/spanner:v1/CreateInstanceMetadata/instance": instance -"/spanner:v1/CreateInstanceMetadata/startTime": start_time -"/spanner:v1/AuditConfig": audit_config -"/spanner:v1/AuditConfig/exemptedMembers": exempted_members -"/spanner:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member -"/spanner:v1/AuditConfig/service": service -"/spanner:v1/AuditConfig/auditLogConfigs": audit_log_configs -"/spanner:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config -"/spanner:v1/ChildLink": child_link -"/spanner:v1/ChildLink/type": type -"/spanner:v1/ChildLink/childIndex": child_index -"/spanner:v1/ChildLink/variable": variable -"/spanner:v1/CloudAuditOptions": cloud_audit_options -"/spanner:v1/Delete": delete -"/spanner:v1/Delete/table": table -"/spanner:v1/Delete/keySet": key_set -"/spanner:v1/ListInstanceConfigsResponse": list_instance_configs_response -"/spanner:v1/ListInstanceConfigsResponse/nextPageToken": next_page_token -"/spanner:v1/ListInstanceConfigsResponse/instanceConfigs": instance_configs -"/spanner:v1/ListInstanceConfigsResponse/instanceConfigs/instance_config": instance_config -"/spanner:v1/BeginTransactionRequest": begin_transaction_request -"/spanner:v1/BeginTransactionRequest/options": options -"/spanner:v1/CommitRequest": commit_request -"/spanner:v1/CommitRequest/singleUseTransaction": single_use_transaction -"/spanner:v1/CommitRequest/mutations": mutations -"/spanner:v1/CommitRequest/mutations/mutation": mutation -"/spanner:v1/CommitRequest/transactionId": transaction_id -"/spanner:v1/GetIamPolicyRequest": get_iam_policy_request -"/spanner:v1/TestIamPermissionsResponse": test_iam_permissions_response -"/spanner:v1/TestIamPermissionsResponse/permissions": permissions -"/spanner:v1/TestIamPermissionsResponse/permissions/permission": permission -"/spanner:v1/Rule": rule -"/spanner:v1/Rule/notIn": not_in -"/spanner:v1/Rule/notIn/not_in": not_in -"/spanner:v1/Rule/description": description -"/spanner:v1/Rule/conditions": conditions -"/spanner:v1/Rule/conditions/condition": condition -"/spanner:v1/Rule/logConfig": log_config -"/spanner:v1/Rule/logConfig/log_config": log_config -"/spanner:v1/Rule/in": in -"/spanner:v1/Rule/in/in": in -"/spanner:v1/Rule/permissions": permissions -"/spanner:v1/Rule/permissions/permission": permission -"/spanner:v1/Rule/action": action -"/spanner:v1/CreateDatabaseMetadata": create_database_metadata -"/spanner:v1/CreateDatabaseMetadata/database": database -"/spanner:v1/LogConfig": log_config -"/spanner:v1/LogConfig/counter": counter -"/spanner:v1/LogConfig/dataAccess": data_access -"/spanner:v1/LogConfig/cloudAudit": cloud_audit -"/spanner:v1/Session": session -"/spanner:v1/Session/name": name -"/spanner:v1/KeyRange": key_range -"/spanner:v1/KeyRange/startClosed": start_closed -"/spanner:v1/KeyRange/startClosed/start_closed": start_closed -"/spanner:v1/KeyRange/startOpen": start_open -"/spanner:v1/KeyRange/startOpen/start_open": start_open -"/spanner:v1/KeyRange/endOpen": end_open -"/spanner:v1/KeyRange/endOpen/end_open": end_open -"/spanner:v1/KeyRange/endClosed": end_closed -"/spanner:v1/KeyRange/endClosed/end_closed": end_closed -"/spanner:v1/ListInstancesResponse": list_instances_response -"/spanner:v1/ListInstancesResponse/instances": instances -"/spanner:v1/ListInstancesResponse/instances/instance": instance -"/spanner:v1/ListInstancesResponse/nextPageToken": next_page_token -"/spanner:v1/ShortRepresentation": short_representation -"/spanner:v1/ShortRepresentation/description": description -"/spanner:v1/ShortRepresentation/subqueries": subqueries -"/spanner:v1/ShortRepresentation/subqueries/subquery": subquery -"/spanner:v1/InstanceConfig": instance_config -"/spanner:v1/InstanceConfig/displayName": display_name -"/spanner:v1/InstanceConfig/name": name +"/spanner:v1/spanner.projects.instanceConfigs.get": get_project_instance_config +"/spanner:v1/spanner.projects.instanceConfigs.get/name": name +"/spanner:v1/spanner.projects.instanceConfigs.list": list_project_instance_configs +"/spanner:v1/spanner.projects.instanceConfigs.list/pageToken": page_token +"/spanner:v1/spanner.projects.instanceConfigs.list/pageSize": page_size +"/spanner:v1/spanner.projects.instanceConfigs.list/parent": parent "/spanner:v1/UpdateInstanceRequest": update_instance_request -"/spanner:v1/UpdateInstanceRequest/instance": instance "/spanner:v1/UpdateInstanceRequest/fieldMask": field_mask +"/spanner:v1/UpdateInstanceRequest/instance": instance "/spanner:v1/Empty": empty "/spanner:v1/TransactionOptions": transaction_options -"/spanner:v1/TransactionOptions/readWrite": read_write "/spanner:v1/TransactionOptions/readOnly": read_only +"/spanner:v1/TransactionOptions/readWrite": read_write "/spanner:v1/CreateDatabaseRequest": create_database_request "/spanner:v1/CreateDatabaseRequest/createStatement": create_statement "/spanner:v1/CreateDatabaseRequest/extraStatements": extra_statements @@ -37732,9 +37819,9 @@ "/spanner:v1/Condition": condition "/spanner:v1/Condition/sys": sys "/spanner:v1/Condition/value": value -"/spanner:v1/Condition/iam": iam "/spanner:v1/Condition/values": values "/spanner:v1/Condition/values/value": value +"/spanner:v1/Condition/iam": iam "/spanner:v1/Condition/op": op "/spanner:v1/Condition/svc": svc "/spanner:v1/AuditLogConfig": audit_log_config @@ -37742,24 +37829,22 @@ "/spanner:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/spanner:v1/AuditLogConfig/logType": log_type "/spanner:v1/ReadOnly": read_only -"/spanner:v1/ReadOnly/strong": strong "/spanner:v1/ReadOnly/minReadTimestamp": min_read_timestamp "/spanner:v1/ReadOnly/maxStaleness": max_staleness "/spanner:v1/ReadOnly/readTimestamp": read_timestamp "/spanner:v1/ReadOnly/returnReadTimestamp": return_read_timestamp "/spanner:v1/ReadOnly/exactStaleness": exact_staleness +"/spanner:v1/ReadOnly/strong": strong "/spanner:v1/ExecuteSqlRequest": execute_sql_request -"/spanner:v1/ExecuteSqlRequest/sql": sql -"/spanner:v1/ExecuteSqlRequest/params": params -"/spanner:v1/ExecuteSqlRequest/params/param": param -"/spanner:v1/ExecuteSqlRequest/queryMode": query_mode "/spanner:v1/ExecuteSqlRequest/transaction": transaction "/spanner:v1/ExecuteSqlRequest/resumeToken": resume_token "/spanner:v1/ExecuteSqlRequest/paramTypes": param_types "/spanner:v1/ExecuteSqlRequest/paramTypes/param_type": param_type +"/spanner:v1/ExecuteSqlRequest/sql": sql +"/spanner:v1/ExecuteSqlRequest/params": params +"/spanner:v1/ExecuteSqlRequest/params/param": param +"/spanner:v1/ExecuteSqlRequest/queryMode": query_mode "/spanner:v1/Policy": policy -"/spanner:v1/Policy/etag": etag -"/spanner:v1/Policy/iamOwned": iam_owned "/spanner:v1/Policy/rules": rules "/spanner:v1/Policy/rules/rule": rule "/spanner:v1/Policy/version": version @@ -37767,6 +37852,8 @@ "/spanner:v1/Policy/auditConfigs/audit_config": audit_config "/spanner:v1/Policy/bindings": bindings "/spanner:v1/Policy/bindings/binding": binding +"/spanner:v1/Policy/etag": etag +"/spanner:v1/Policy/iamOwned": iam_owned "/spanner:v1/ReadRequest": read_request "/spanner:v1/ReadRequest/limit": limit "/spanner:v1/ReadRequest/index": index @@ -37778,13 +37865,13 @@ "/spanner:v1/ReadRequest/table": table "/spanner:v1/Write": write "/spanner:v1/Write/table": table -"/spanner:v1/Write/columns": columns -"/spanner:v1/Write/columns/column": column "/spanner:v1/Write/values": values "/spanner:v1/Write/values/value": value "/spanner:v1/Write/values/value/value": value -"/spanner:v1/DataAccessOptions": data_access_options +"/spanner:v1/Write/columns": columns +"/spanner:v1/Write/columns/column": column "/spanner:v1/ReadWrite": read_write +"/spanner:v1/DataAccessOptions": data_access_options "/spanner:v1/Operation": operation "/spanner:v1/Operation/done": done "/spanner:v1/Operation/response": response @@ -37793,18 +37880,18 @@ "/spanner:v1/Operation/error": error "/spanner:v1/Operation/metadata": metadata "/spanner:v1/Operation/metadata/metadatum": metadatum +"/spanner:v1/ResultSet": result_set +"/spanner:v1/ResultSet/stats": stats +"/spanner:v1/ResultSet/rows": rows +"/spanner:v1/ResultSet/rows/row": row +"/spanner:v1/ResultSet/rows/row/row": row +"/spanner:v1/ResultSet/metadata": metadata "/spanner:v1/Status": status "/spanner:v1/Status/details": details "/spanner:v1/Status/details/detail": detail "/spanner:v1/Status/details/detail/detail": detail "/spanner:v1/Status/code": code "/spanner:v1/Status/message": message -"/spanner:v1/ResultSet": result_set -"/spanner:v1/ResultSet/metadata": metadata -"/spanner:v1/ResultSet/stats": stats -"/spanner:v1/ResultSet/rows": rows -"/spanner:v1/ResultSet/rows/row": row -"/spanner:v1/ResultSet/rows/row/row": row "/spanner:v1/UpdateDatabaseDdlRequest": update_database_ddl_request "/spanner:v1/UpdateDatabaseDdlRequest/statements": statements "/spanner:v1/UpdateDatabaseDdlRequest/statements/statement": statement @@ -37813,18 +37900,19 @@ "/spanner:v1/Binding/members": members "/spanner:v1/Binding/members/member": member "/spanner:v1/Binding/role": role +"/spanner:v1/Binding/condition": condition "/spanner:v1/PartialResultSet": partial_result_set -"/spanner:v1/PartialResultSet/stats": stats "/spanner:v1/PartialResultSet/chunkedValue": chunked_value -"/spanner:v1/PartialResultSet/metadata": metadata "/spanner:v1/PartialResultSet/values": values "/spanner:v1/PartialResultSet/values/value": value +"/spanner:v1/PartialResultSet/metadata": metadata "/spanner:v1/PartialResultSet/resumeToken": resume_token +"/spanner:v1/PartialResultSet/stats": stats "/spanner:v1/UpdateInstanceMetadata": update_instance_metadata -"/spanner:v1/UpdateInstanceMetadata/cancelTime": cancel_time -"/spanner:v1/UpdateInstanceMetadata/endTime": end_time -"/spanner:v1/UpdateInstanceMetadata/instance": instance "/spanner:v1/UpdateInstanceMetadata/startTime": start_time +"/spanner:v1/UpdateInstanceMetadata/instance": instance +"/spanner:v1/UpdateInstanceMetadata/endTime": end_time +"/spanner:v1/UpdateInstanceMetadata/cancelTime": cancel_time "/spanner:v1/ListOperationsResponse": list_operations_response "/spanner:v1/ListOperationsResponse/operations": operations "/spanner:v1/ListOperationsResponse/operations/operation": operation @@ -37836,20 +37924,214 @@ "/spanner:v1/TransactionSelector/singleUse": single_use "/spanner:v1/TransactionSelector/begin": begin "/spanner:v1/TransactionSelector/id": id -"/speech:v1beta1/quotaUser": quota_user +"/spanner:v1/Mutation": mutation +"/spanner:v1/Mutation/delete": delete +"/spanner:v1/Mutation/insertOrUpdate": insert_or_update +"/spanner:v1/Mutation/insert": insert +"/spanner:v1/Mutation/update": update +"/spanner:v1/Mutation/replace": replace +"/spanner:v1/KeySet": key_set +"/spanner:v1/KeySet/ranges": ranges +"/spanner:v1/KeySet/ranges/range": range +"/spanner:v1/KeySet/all": all +"/spanner:v1/KeySet/keys": keys +"/spanner:v1/KeySet/keys/key": key +"/spanner:v1/KeySet/keys/key/key": key +"/spanner:v1/GetDatabaseDdlResponse": get_database_ddl_response +"/spanner:v1/GetDatabaseDdlResponse/statements": statements +"/spanner:v1/GetDatabaseDdlResponse/statements/statement": statement +"/spanner:v1/Database": database +"/spanner:v1/Database/state": state +"/spanner:v1/Database/name": name +"/spanner:v1/Instance": instance +"/spanner:v1/Instance/name": name +"/spanner:v1/Instance/displayName": display_name +"/spanner:v1/Instance/nodeCount": node_count +"/spanner:v1/Instance/labels": labels +"/spanner:v1/Instance/labels/label": label +"/spanner:v1/Instance/config": config +"/spanner:v1/Instance/state": state +"/spanner:v1/SetIamPolicyRequest": set_iam_policy_request +"/spanner:v1/SetIamPolicyRequest/policy": policy +"/spanner:v1/SetIamPolicyRequest/updateMask": update_mask +"/spanner:v1/ListDatabasesResponse": list_databases_response +"/spanner:v1/ListDatabasesResponse/nextPageToken": next_page_token +"/spanner:v1/ListDatabasesResponse/databases": databases +"/spanner:v1/ListDatabasesResponse/databases/database": database +"/spanner:v1/RollbackRequest": rollback_request +"/spanner:v1/RollbackRequest/transactionId": transaction_id +"/spanner:v1/Transaction": transaction +"/spanner:v1/Transaction/readTimestamp": read_timestamp +"/spanner:v1/Transaction/id": id +"/spanner:v1/UpdateDatabaseDdlMetadata": update_database_ddl_metadata +"/spanner:v1/UpdateDatabaseDdlMetadata/database": database +"/spanner:v1/UpdateDatabaseDdlMetadata/statements": statements +"/spanner:v1/UpdateDatabaseDdlMetadata/statements/statement": statement +"/spanner:v1/UpdateDatabaseDdlMetadata/commitTimestamps": commit_timestamps +"/spanner:v1/UpdateDatabaseDdlMetadata/commitTimestamps/commit_timestamp": commit_timestamp +"/spanner:v1/CounterOptions": counter_options +"/spanner:v1/CounterOptions/field": field +"/spanner:v1/CounterOptions/metric": metric +"/spanner:v1/StructType": struct_type +"/spanner:v1/StructType/fields": fields +"/spanner:v1/StructType/fields/field": field +"/spanner:v1/QueryPlan": query_plan +"/spanner:v1/QueryPlan/planNodes": plan_nodes +"/spanner:v1/QueryPlan/planNodes/plan_node": plan_node +"/spanner:v1/Field": field +"/spanner:v1/Field/name": name +"/spanner:v1/Field/type": type +"/spanner:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/spanner:v1/TestIamPermissionsRequest/permissions": permissions +"/spanner:v1/TestIamPermissionsRequest/permissions/permission": permission +"/spanner:v1/ResultSetStats": result_set_stats +"/spanner:v1/ResultSetStats/queryStats": query_stats +"/spanner:v1/ResultSetStats/queryStats/query_stat": query_stat +"/spanner:v1/ResultSetStats/queryPlan": query_plan +"/spanner:v1/CommitResponse": commit_response +"/spanner:v1/CommitResponse/commitTimestamp": commit_timestamp +"/spanner:v1/Type": type +"/spanner:v1/Type/structType": struct_type +"/spanner:v1/Type/arrayElementType": array_element_type +"/spanner:v1/Type/code": code +"/spanner:v1/PlanNode": plan_node +"/spanner:v1/PlanNode/childLinks": child_links +"/spanner:v1/PlanNode/childLinks/child_link": child_link +"/spanner:v1/PlanNode/metadata": metadata +"/spanner:v1/PlanNode/metadata/metadatum": metadatum +"/spanner:v1/PlanNode/executionStats": execution_stats +"/spanner:v1/PlanNode/executionStats/execution_stat": execution_stat +"/spanner:v1/PlanNode/shortRepresentation": short_representation +"/spanner:v1/PlanNode/index": index +"/spanner:v1/PlanNode/kind": kind +"/spanner:v1/PlanNode/displayName": display_name +"/spanner:v1/CreateInstanceMetadata": create_instance_metadata +"/spanner:v1/CreateInstanceMetadata/endTime": end_time +"/spanner:v1/CreateInstanceMetadata/cancelTime": cancel_time +"/spanner:v1/CreateInstanceMetadata/startTime": start_time +"/spanner:v1/CreateInstanceMetadata/instance": instance +"/spanner:v1/AuditConfig": audit_config +"/spanner:v1/AuditConfig/auditLogConfigs": audit_log_configs +"/spanner:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/spanner:v1/AuditConfig/exemptedMembers": exempted_members +"/spanner:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member +"/spanner:v1/AuditConfig/service": service +"/spanner:v1/ChildLink": child_link +"/spanner:v1/ChildLink/variable": variable +"/spanner:v1/ChildLink/childIndex": child_index +"/spanner:v1/ChildLink/type": type +"/spanner:v1/CloudAuditOptions": cloud_audit_options +"/spanner:v1/CloudAuditOptions/logName": log_name +"/spanner:v1/Expr": expr +"/spanner:v1/Expr/description": description +"/spanner:v1/Expr/expression": expression +"/spanner:v1/Expr/location": location +"/spanner:v1/Expr/title": title +"/spanner:v1/Delete": delete +"/spanner:v1/Delete/keySet": key_set +"/spanner:v1/Delete/table": table +"/spanner:v1/ListInstanceConfigsResponse": list_instance_configs_response +"/spanner:v1/ListInstanceConfigsResponse/nextPageToken": next_page_token +"/spanner:v1/ListInstanceConfigsResponse/instanceConfigs": instance_configs +"/spanner:v1/ListInstanceConfigsResponse/instanceConfigs/instance_config": instance_config +"/spanner:v1/BeginTransactionRequest": begin_transaction_request +"/spanner:v1/BeginTransactionRequest/options": options +"/spanner:v1/CommitRequest": commit_request +"/spanner:v1/CommitRequest/mutations": mutations +"/spanner:v1/CommitRequest/mutations/mutation": mutation +"/spanner:v1/CommitRequest/singleUseTransaction": single_use_transaction +"/spanner:v1/CommitRequest/transactionId": transaction_id +"/spanner:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/spanner:v1/TestIamPermissionsResponse/permissions": permissions +"/spanner:v1/TestIamPermissionsResponse/permissions/permission": permission +"/spanner:v1/GetIamPolicyRequest": get_iam_policy_request +"/spanner:v1/Rule": rule +"/spanner:v1/Rule/conditions": conditions +"/spanner:v1/Rule/conditions/condition": condition +"/spanner:v1/Rule/logConfig": log_config +"/spanner:v1/Rule/logConfig/log_config": log_config +"/spanner:v1/Rule/in": in +"/spanner:v1/Rule/in/in": in +"/spanner:v1/Rule/permissions": permissions +"/spanner:v1/Rule/permissions/permission": permission +"/spanner:v1/Rule/action": action +"/spanner:v1/Rule/notIn": not_in +"/spanner:v1/Rule/notIn/not_in": not_in +"/spanner:v1/Rule/description": description +"/spanner:v1/CreateDatabaseMetadata": create_database_metadata +"/spanner:v1/CreateDatabaseMetadata/database": database +"/spanner:v1/LogConfig": log_config +"/spanner:v1/LogConfig/counter": counter +"/spanner:v1/LogConfig/dataAccess": data_access +"/spanner:v1/LogConfig/cloudAudit": cloud_audit +"/spanner:v1/Session": session +"/spanner:v1/Session/name": name +"/spanner:v1/KeyRange": key_range +"/spanner:v1/KeyRange/startOpen": start_open +"/spanner:v1/KeyRange/startOpen/start_open": start_open +"/spanner:v1/KeyRange/startClosed": start_closed +"/spanner:v1/KeyRange/startClosed/start_closed": start_closed +"/spanner:v1/KeyRange/endOpen": end_open +"/spanner:v1/KeyRange/endOpen/end_open": end_open +"/spanner:v1/KeyRange/endClosed": end_closed +"/spanner:v1/KeyRange/endClosed/end_closed": end_closed +"/spanner:v1/ListInstancesResponse": list_instances_response +"/spanner:v1/ListInstancesResponse/nextPageToken": next_page_token +"/spanner:v1/ListInstancesResponse/instances": instances +"/spanner:v1/ListInstancesResponse/instances/instance": instance +"/spanner:v1/ShortRepresentation": short_representation +"/spanner:v1/ShortRepresentation/description": description +"/spanner:v1/ShortRepresentation/subqueries": subqueries +"/spanner:v1/ShortRepresentation/subqueries/subquery": subquery +"/spanner:v1/InstanceConfig": instance_config +"/spanner:v1/InstanceConfig/name": name +"/spanner:v1/InstanceConfig/displayName": display_name "/speech:v1beta1/fields": fields "/speech:v1beta1/key": key -"/speech:v1beta1/speech.operations.cancel": cancel_operation -"/speech:v1beta1/speech.operations.cancel/name": name +"/speech:v1beta1/quotaUser": quota_user "/speech:v1beta1/speech.operations.delete": delete_operation "/speech:v1beta1/speech.operations.delete/name": name -"/speech:v1beta1/speech.operations.list": list_operations -"/speech:v1beta1/speech.operations.list/filter": filter -"/speech:v1beta1/speech.operations.list/name": name -"/speech:v1beta1/speech.operations.list/pageToken": page_token -"/speech:v1beta1/speech.operations.list/pageSize": page_size "/speech:v1beta1/speech.operations.get": get_operation "/speech:v1beta1/speech.operations.get/name": name +"/speech:v1beta1/speech.operations.list": list_operations +"/speech:v1beta1/speech.operations.list/pageToken": page_token +"/speech:v1beta1/speech.operations.list/name": name +"/speech:v1beta1/speech.operations.list/pageSize": page_size +"/speech:v1beta1/speech.operations.list/filter": filter +"/speech:v1beta1/speech.operations.cancel": cancel_operation +"/speech:v1beta1/speech.operations.cancel/name": name +"/speech:v1beta1/SyncRecognizeRequest": sync_recognize_request +"/speech:v1beta1/SyncRecognizeRequest/audio": audio +"/speech:v1beta1/SyncRecognizeRequest/config": config +"/speech:v1beta1/Status": status +"/speech:v1beta1/Status/code": code +"/speech:v1beta1/Status/message": message +"/speech:v1beta1/Status/details": details +"/speech:v1beta1/Status/details/detail": detail +"/speech:v1beta1/Status/details/detail/detail": detail +"/speech:v1beta1/SyncRecognizeResponse": sync_recognize_response +"/speech:v1beta1/SyncRecognizeResponse/results": results +"/speech:v1beta1/SyncRecognizeResponse/results/result": result +"/speech:v1beta1/Empty": empty +"/speech:v1beta1/ListOperationsResponse": list_operations_response +"/speech:v1beta1/ListOperationsResponse/operations": operations +"/speech:v1beta1/ListOperationsResponse/operations/operation": operation +"/speech:v1beta1/ListOperationsResponse/nextPageToken": next_page_token +"/speech:v1beta1/SpeechContext": speech_context +"/speech:v1beta1/SpeechContext/phrases": phrases +"/speech:v1beta1/SpeechContext/phrases/phrase": phrase +"/speech:v1beta1/SpeechRecognitionAlternative": speech_recognition_alternative +"/speech:v1beta1/SpeechRecognitionAlternative/confidence": confidence +"/speech:v1beta1/SpeechRecognitionAlternative/transcript": transcript +"/speech:v1beta1/SpeechRecognitionResult": speech_recognition_result +"/speech:v1beta1/SpeechRecognitionResult/alternatives": alternatives +"/speech:v1beta1/SpeechRecognitionResult/alternatives/alternative": alternative +"/speech:v1beta1/AsyncRecognizeRequest": async_recognize_request +"/speech:v1beta1/AsyncRecognizeRequest/audio": audio +"/speech:v1beta1/AsyncRecognizeRequest/config": config +"/speech:v1beta1/RecognitionAudio": recognition_audio +"/speech:v1beta1/RecognitionAudio/content": content +"/speech:v1beta1/RecognitionAudio/uri": uri "/speech:v1beta1/Operation": operation "/speech:v1beta1/Operation/done": done "/speech:v1beta1/Operation/response": response @@ -37859,44 +38141,12 @@ "/speech:v1beta1/Operation/metadata": metadata "/speech:v1beta1/Operation/metadata/metadatum": metadatum "/speech:v1beta1/RecognitionConfig": recognition_config -"/speech:v1beta1/RecognitionConfig/maxAlternatives": max_alternatives -"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate "/speech:v1beta1/RecognitionConfig/languageCode": language_code +"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate +"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter "/speech:v1beta1/RecognitionConfig/speechContext": speech_context "/speech:v1beta1/RecognitionConfig/encoding": encoding -"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter -"/speech:v1beta1/SyncRecognizeRequest": sync_recognize_request -"/speech:v1beta1/SyncRecognizeRequest/config": config -"/speech:v1beta1/SyncRecognizeRequest/audio": audio -"/speech:v1beta1/SyncRecognizeResponse": sync_recognize_response -"/speech:v1beta1/SyncRecognizeResponse/results": results -"/speech:v1beta1/SyncRecognizeResponse/results/result": result -"/speech:v1beta1/Status": status -"/speech:v1beta1/Status/message": message -"/speech:v1beta1/Status/details": details -"/speech:v1beta1/Status/details/detail": detail -"/speech:v1beta1/Status/details/detail/detail": detail -"/speech:v1beta1/Status/code": code -"/speech:v1beta1/Empty": empty -"/speech:v1beta1/SpeechRecognitionAlternative": speech_recognition_alternative -"/speech:v1beta1/SpeechRecognitionAlternative/confidence": confidence -"/speech:v1beta1/SpeechRecognitionAlternative/transcript": transcript -"/speech:v1beta1/SpeechContext": speech_context -"/speech:v1beta1/SpeechContext/phrases": phrases -"/speech:v1beta1/SpeechContext/phrases/phrase": phrase -"/speech:v1beta1/ListOperationsResponse": list_operations_response -"/speech:v1beta1/ListOperationsResponse/operations": operations -"/speech:v1beta1/ListOperationsResponse/operations/operation": operation -"/speech:v1beta1/ListOperationsResponse/nextPageToken": next_page_token -"/speech:v1beta1/SpeechRecognitionResult": speech_recognition_result -"/speech:v1beta1/SpeechRecognitionResult/alternatives": alternatives -"/speech:v1beta1/SpeechRecognitionResult/alternatives/alternative": alternative -"/speech:v1beta1/RecognitionAudio": recognition_audio -"/speech:v1beta1/RecognitionAudio/content": content -"/speech:v1beta1/RecognitionAudio/uri": uri -"/speech:v1beta1/AsyncRecognizeRequest": async_recognize_request -"/speech:v1beta1/AsyncRecognizeRequest/config": config -"/speech:v1beta1/AsyncRecognizeRequest/audio": audio +"/speech:v1beta1/RecognitionConfig/maxAlternatives": max_alternatives "/sqladmin:v1beta4/fields": fields "/sqladmin:v1beta4/key": key "/sqladmin:v1beta4/quotaUser": quota_user @@ -38786,44 +39036,74 @@ "/storage:v1/TestIamPermissionsResponse/kind": kind "/storage:v1/TestIamPermissionsResponse/permissions": permissions "/storage:v1/TestIamPermissionsResponse/permissions/permission": permission +"/storagetransfer:v1/fields": fields "/storagetransfer:v1/key": key "/storagetransfer:v1/quotaUser": quota_user -"/storagetransfer:v1/fields": fields "/storagetransfer:v1/storagetransfer.googleServiceAccounts.get": get_google_service_account "/storagetransfer:v1/storagetransfer.googleServiceAccounts.get/projectId": project_id -"/storagetransfer:v1/storagetransfer.transferJobs.create": create_transfer_job -"/storagetransfer:v1/storagetransfer.transferJobs.patch": patch_transfer_job -"/storagetransfer:v1/storagetransfer.transferJobs.patch/jobName": job_name -"/storagetransfer:v1/storagetransfer.transferJobs.get": get_transfer_job -"/storagetransfer:v1/storagetransfer.transferJobs.get/jobName": job_name -"/storagetransfer:v1/storagetransfer.transferJobs.get/projectId": project_id -"/storagetransfer:v1/storagetransfer.transferJobs.list": list_transfer_jobs -"/storagetransfer:v1/storagetransfer.transferJobs.list/filter": filter -"/storagetransfer:v1/storagetransfer.transferJobs.list/pageToken": page_token -"/storagetransfer:v1/storagetransfer.transferJobs.list/pageSize": page_size -"/storagetransfer:v1/storagetransfer.transferOperations.delete": delete_transfer_operation -"/storagetransfer:v1/storagetransfer.transferOperations.delete/name": name -"/storagetransfer:v1/storagetransfer.transferOperations.list": list_transfer_operations -"/storagetransfer:v1/storagetransfer.transferOperations.list/name": name -"/storagetransfer:v1/storagetransfer.transferOperations.list/pageToken": page_token -"/storagetransfer:v1/storagetransfer.transferOperations.list/pageSize": page_size -"/storagetransfer:v1/storagetransfer.transferOperations.list/filter": filter -"/storagetransfer:v1/storagetransfer.transferOperations.resume": resume_transfer_operation -"/storagetransfer:v1/storagetransfer.transferOperations.resume/name": name "/storagetransfer:v1/storagetransfer.transferOperations.cancel": cancel_transfer_operation "/storagetransfer:v1/storagetransfer.transferOperations.cancel/name": name "/storagetransfer:v1/storagetransfer.transferOperations.get": get_transfer_operation "/storagetransfer:v1/storagetransfer.transferOperations.get/name": name "/storagetransfer:v1/storagetransfer.transferOperations.pause": pause_transfer_operation "/storagetransfer:v1/storagetransfer.transferOperations.pause/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.delete": delete_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.delete/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.list": list_transfer_operations +"/storagetransfer:v1/storagetransfer.transferOperations.list/filter": filter +"/storagetransfer:v1/storagetransfer.transferOperations.list/pageToken": page_token +"/storagetransfer:v1/storagetransfer.transferOperations.list/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.list/pageSize": page_size +"/storagetransfer:v1/storagetransfer.transferOperations.resume": resume_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.resume/name": name +"/storagetransfer:v1/storagetransfer.transferJobs.list": list_transfer_jobs +"/storagetransfer:v1/storagetransfer.transferJobs.list/pageToken": page_token +"/storagetransfer:v1/storagetransfer.transferJobs.list/pageSize": page_size +"/storagetransfer:v1/storagetransfer.transferJobs.list/filter": filter +"/storagetransfer:v1/storagetransfer.transferJobs.get": get_transfer_job +"/storagetransfer:v1/storagetransfer.transferJobs.get/projectId": project_id +"/storagetransfer:v1/storagetransfer.transferJobs.get/jobName": job_name +"/storagetransfer:v1/storagetransfer.transferJobs.patch": patch_transfer_job +"/storagetransfer:v1/storagetransfer.transferJobs.patch/jobName": job_name +"/storagetransfer:v1/storagetransfer.transferJobs.create": create_transfer_job +"/storagetransfer:v1/TransferCounters": transfer_counters +"/storagetransfer:v1/TransferCounters/bytesDeletedFromSource": bytes_deleted_from_source +"/storagetransfer:v1/TransferCounters/objectsFoundFromSource": objects_found_from_source +"/storagetransfer:v1/TransferCounters/objectsFailedToDeleteFromSink": objects_failed_to_delete_from_sink +"/storagetransfer:v1/TransferCounters/objectsDeletedFromSink": objects_deleted_from_sink +"/storagetransfer:v1/TransferCounters/objectsFoundOnlyFromSink": objects_found_only_from_sink +"/storagetransfer:v1/TransferCounters/bytesFromSourceSkippedBySync": bytes_from_source_skipped_by_sync +"/storagetransfer:v1/TransferCounters/bytesDeletedFromSink": bytes_deleted_from_sink +"/storagetransfer:v1/TransferCounters/bytesFailedToDeleteFromSink": bytes_failed_to_delete_from_sink +"/storagetransfer:v1/TransferCounters/bytesFromSourceFailed": bytes_from_source_failed +"/storagetransfer:v1/TransferCounters/objectsFromSourceFailed": objects_from_source_failed +"/storagetransfer:v1/TransferCounters/objectsCopiedToSink": objects_copied_to_sink +"/storagetransfer:v1/TransferCounters/bytesFoundOnlyFromSink": bytes_found_only_from_sink +"/storagetransfer:v1/TransferCounters/objectsDeletedFromSource": objects_deleted_from_source +"/storagetransfer:v1/TransferCounters/bytesCopiedToSink": bytes_copied_to_sink +"/storagetransfer:v1/TransferCounters/bytesFoundFromSource": bytes_found_from_source +"/storagetransfer:v1/TransferCounters/objectsFromSourceSkippedBySync": objects_from_source_skipped_by_sync +"/storagetransfer:v1/ErrorSummary": error_summary +"/storagetransfer:v1/ErrorSummary/errorCode": error_code +"/storagetransfer:v1/ErrorSummary/errorCount": error_count +"/storagetransfer:v1/ErrorSummary/errorLogEntries": error_log_entries +"/storagetransfer:v1/ErrorSummary/errorLogEntries/error_log_entry": error_log_entry +"/storagetransfer:v1/HttpData": http_data +"/storagetransfer:v1/HttpData/listUrl": list_url +"/storagetransfer:v1/GcsData": gcs_data +"/storagetransfer:v1/GcsData/bucketName": bucket_name +"/storagetransfer:v1/ListTransferJobsResponse": list_transfer_jobs_response +"/storagetransfer:v1/ListTransferJobsResponse/nextPageToken": next_page_token +"/storagetransfer:v1/ListTransferJobsResponse/transferJobs": transfer_jobs +"/storagetransfer:v1/ListTransferJobsResponse/transferJobs/transfer_job": transfer_job "/storagetransfer:v1/UpdateTransferJobRequest": update_transfer_job_request -"/storagetransfer:v1/UpdateTransferJobRequest/transferJob": transfer_job "/storagetransfer:v1/UpdateTransferJobRequest/projectId": project_id "/storagetransfer:v1/UpdateTransferJobRequest/updateTransferJobFieldMask": update_transfer_job_field_mask +"/storagetransfer:v1/UpdateTransferJobRequest/transferJob": transfer_job "/storagetransfer:v1/ObjectConditions": object_conditions -"/storagetransfer:v1/ObjectConditions/minTimeElapsedSinceLastModification": min_time_elapsed_since_last_modification "/storagetransfer:v1/ObjectConditions/excludePrefixes": exclude_prefixes "/storagetransfer:v1/ObjectConditions/excludePrefixes/exclude_prefix": exclude_prefix +"/storagetransfer:v1/ObjectConditions/minTimeElapsedSinceLastModification": min_time_elapsed_since_last_modification "/storagetransfer:v1/ObjectConditions/maxTimeElapsedSinceLastModification": max_time_elapsed_since_last_modification "/storagetransfer:v1/ObjectConditions/includePrefixes": include_prefixes "/storagetransfer:v1/ObjectConditions/includePrefixes/include_prefix": include_prefix @@ -38840,19 +39120,19 @@ "/storagetransfer:v1/TransferOptions/overwriteObjectsAlreadyExistingInSink": overwrite_objects_already_existing_in_sink "/storagetransfer:v1/TransferOptions/deleteObjectsFromSourceAfterTransfer": delete_objects_from_source_after_transfer "/storagetransfer:v1/TransferSpec": transfer_spec -"/storagetransfer:v1/TransferSpec/gcsDataSource": gcs_data_source "/storagetransfer:v1/TransferSpec/transferOptions": transfer_options "/storagetransfer:v1/TransferSpec/awsS3DataSource": aws_s3_data_source "/storagetransfer:v1/TransferSpec/httpDataSource": http_data_source "/storagetransfer:v1/TransferSpec/objectConditions": object_conditions "/storagetransfer:v1/TransferSpec/gcsDataSink": gcs_data_sink +"/storagetransfer:v1/TransferSpec/gcsDataSource": gcs_data_source "/storagetransfer:v1/ResumeTransferOperationRequest": resume_transfer_operation_request "/storagetransfer:v1/Status": status -"/storagetransfer:v1/Status/message": message "/storagetransfer:v1/Status/details": details "/storagetransfer:v1/Status/details/detail": detail "/storagetransfer:v1/Status/details/detail/detail": detail "/storagetransfer:v1/Status/code": code +"/storagetransfer:v1/Status/message": message "/storagetransfer:v1/ListOperationsResponse": list_operations_response "/storagetransfer:v1/ListOperationsResponse/nextPageToken": next_page_token "/storagetransfer:v1/ListOperationsResponse/operations": operations @@ -38860,33 +39140,34 @@ "/storagetransfer:v1/GoogleServiceAccount": google_service_account "/storagetransfer:v1/GoogleServiceAccount/accountEmail": account_email "/storagetransfer:v1/TimeOfDay": time_of_day -"/storagetransfer:v1/TimeOfDay/seconds": seconds -"/storagetransfer:v1/TimeOfDay/minutes": minutes "/storagetransfer:v1/TimeOfDay/hours": hours "/storagetransfer:v1/TimeOfDay/nanos": nanos +"/storagetransfer:v1/TimeOfDay/seconds": seconds +"/storagetransfer:v1/TimeOfDay/minutes": minutes "/storagetransfer:v1/ErrorLogEntry": error_log_entry -"/storagetransfer:v1/ErrorLogEntry/url": url "/storagetransfer:v1/ErrorLogEntry/errorDetails": error_details "/storagetransfer:v1/ErrorLogEntry/errorDetails/error_detail": error_detail +"/storagetransfer:v1/ErrorLogEntry/url": url "/storagetransfer:v1/TransferJob": transfer_job +"/storagetransfer:v1/TransferJob/description": description "/storagetransfer:v1/TransferJob/creationTime": creation_time "/storagetransfer:v1/TransferJob/transferSpec": transfer_spec "/storagetransfer:v1/TransferJob/status": status "/storagetransfer:v1/TransferJob/schedule": schedule -"/storagetransfer:v1/TransferJob/name": name "/storagetransfer:v1/TransferJob/deletionTime": deletion_time -"/storagetransfer:v1/TransferJob/lastModificationTime": last_modification_time +"/storagetransfer:v1/TransferJob/name": name "/storagetransfer:v1/TransferJob/projectId": project_id -"/storagetransfer:v1/TransferJob/description": description +"/storagetransfer:v1/TransferJob/lastModificationTime": last_modification_time "/storagetransfer:v1/Schedule": schedule "/storagetransfer:v1/Schedule/scheduleEndDate": schedule_end_date "/storagetransfer:v1/Schedule/startTimeOfDay": start_time_of_day "/storagetransfer:v1/Schedule/scheduleStartDate": schedule_start_date "/storagetransfer:v1/Date": date -"/storagetransfer:v1/Date/year": year "/storagetransfer:v1/Date/day": day +"/storagetransfer:v1/Date/year": year "/storagetransfer:v1/Date/month": month "/storagetransfer:v1/TransferOperation": transfer_operation +"/storagetransfer:v1/TransferOperation/endTime": end_time "/storagetransfer:v1/TransferOperation/startTime": start_time "/storagetransfer:v1/TransferOperation/transferJobName": transfer_job_name "/storagetransfer:v1/TransferOperation/transferSpec": transfer_spec @@ -38896,45 +39177,14 @@ "/storagetransfer:v1/TransferOperation/errorBreakdowns/error_breakdown": error_breakdown "/storagetransfer:v1/TransferOperation/name": name "/storagetransfer:v1/TransferOperation/projectId": project_id -"/storagetransfer:v1/TransferOperation/endTime": end_time "/storagetransfer:v1/AwsS3Data": aws_s3_data "/storagetransfer:v1/AwsS3Data/awsAccessKey": aws_access_key "/storagetransfer:v1/AwsS3Data/bucketName": bucket_name +"/storagetransfer:v1/Empty": empty "/storagetransfer:v1/AwsAccessKey": aws_access_key "/storagetransfer:v1/AwsAccessKey/secretAccessKey": secret_access_key "/storagetransfer:v1/AwsAccessKey/accessKeyId": access_key_id -"/storagetransfer:v1/Empty": empty "/storagetransfer:v1/PauseTransferOperationRequest": pause_transfer_operation_request -"/storagetransfer:v1/TransferCounters": transfer_counters -"/storagetransfer:v1/TransferCounters/bytesDeletedFromSink": bytes_deleted_from_sink -"/storagetransfer:v1/TransferCounters/bytesFailedToDeleteFromSink": bytes_failed_to_delete_from_sink -"/storagetransfer:v1/TransferCounters/bytesFromSourceFailed": bytes_from_source_failed -"/storagetransfer:v1/TransferCounters/objectsCopiedToSink": objects_copied_to_sink -"/storagetransfer:v1/TransferCounters/objectsFromSourceFailed": objects_from_source_failed -"/storagetransfer:v1/TransferCounters/bytesFoundOnlyFromSink": bytes_found_only_from_sink -"/storagetransfer:v1/TransferCounters/objectsDeletedFromSource": objects_deleted_from_source -"/storagetransfer:v1/TransferCounters/bytesCopiedToSink": bytes_copied_to_sink -"/storagetransfer:v1/TransferCounters/bytesFoundFromSource": bytes_found_from_source -"/storagetransfer:v1/TransferCounters/objectsFromSourceSkippedBySync": objects_from_source_skipped_by_sync -"/storagetransfer:v1/TransferCounters/bytesDeletedFromSource": bytes_deleted_from_source -"/storagetransfer:v1/TransferCounters/objectsFoundFromSource": objects_found_from_source -"/storagetransfer:v1/TransferCounters/objectsFailedToDeleteFromSink": objects_failed_to_delete_from_sink -"/storagetransfer:v1/TransferCounters/objectsFoundOnlyFromSink": objects_found_only_from_sink -"/storagetransfer:v1/TransferCounters/objectsDeletedFromSink": objects_deleted_from_sink -"/storagetransfer:v1/TransferCounters/bytesFromSourceSkippedBySync": bytes_from_source_skipped_by_sync -"/storagetransfer:v1/ErrorSummary": error_summary -"/storagetransfer:v1/ErrorSummary/errorCode": error_code -"/storagetransfer:v1/ErrorSummary/errorCount": error_count -"/storagetransfer:v1/ErrorSummary/errorLogEntries": error_log_entries -"/storagetransfer:v1/ErrorSummary/errorLogEntries/error_log_entry": error_log_entry -"/storagetransfer:v1/HttpData": http_data -"/storagetransfer:v1/HttpData/listUrl": list_url -"/storagetransfer:v1/GcsData": gcs_data -"/storagetransfer:v1/GcsData/bucketName": bucket_name -"/storagetransfer:v1/ListTransferJobsResponse": list_transfer_jobs_response -"/storagetransfer:v1/ListTransferJobsResponse/nextPageToken": next_page_token -"/storagetransfer:v1/ListTransferJobsResponse/transferJobs": transfer_jobs -"/storagetransfer:v1/ListTransferJobsResponse/transferJobs/transfer_job": transfer_job "/surveys:v2/fields": fields "/surveys:v2/key": key "/surveys:v2/quotaUser": quota_user @@ -40275,6 +40525,9 @@ "/toolresults:v1beta3/Any": any "/toolresults:v1beta3/Any/typeUrl": type_url "/toolresults:v1beta3/Any/value": value +"/toolresults:v1beta3/AppStartTime": app_start_time +"/toolresults:v1beta3/AppStartTime/fullyDrawnTime": fully_drawn_time +"/toolresults:v1beta3/AppStartTime/initialDisplayTime": initial_display_time "/toolresults:v1beta3/BasicPerfSampleSeries": basic_perf_sample_series "/toolresults:v1beta3/BasicPerfSampleSeries/perfMetricType": perf_metric_type "/toolresults:v1beta3/BasicPerfSampleSeries/perfUnit": perf_unit @@ -40355,6 +40608,7 @@ "/toolresults:v1beta3/PerfEnvironment/cpuInfo": cpu_info "/toolresults:v1beta3/PerfEnvironment/memoryInfo": memory_info "/toolresults:v1beta3/PerfMetricsSummary": perf_metrics_summary +"/toolresults:v1beta3/PerfMetricsSummary/appStartTime": app_start_time "/toolresults:v1beta3/PerfMetricsSummary/executionId": execution_id "/toolresults:v1beta3/PerfMetricsSummary/historyId": history_id "/toolresults:v1beta3/PerfMetricsSummary/perfEnvironment": perf_environment @@ -40461,15 +40715,9 @@ "/toolresults:v1beta3/ToolOutputReference/creationTime": creation_time "/toolresults:v1beta3/ToolOutputReference/output": output "/toolresults:v1beta3/ToolOutputReference/testCase": test_case -"/translate:v2/key": key "/translate:v2/quotaUser": quota_user "/translate:v2/fields": fields -"/translate:v2/language.detections.list": list_detections -"/translate:v2/language.detections.list/q": q -"/translate:v2/language.detections.detect": detect_detection_language -"/translate:v2/language.languages.list": list_languages -"/translate:v2/language.languages.list/model": model -"/translate:v2/language.languages.list/target": target +"/translate:v2/key": key "/translate:v2/language.translations.translate": translate_translation_text "/translate:v2/language.translations.list": list_translations "/translate:v2/language.translations.list/q": q @@ -40478,36 +40726,42 @@ "/translate:v2/language.translations.list/target": target "/translate:v2/language.translations.list/format": format "/translate:v2/language.translations.list/model": model -"/translate:v2/LanguagesResource": languages_resource -"/translate:v2/LanguagesResource/language": language -"/translate:v2/LanguagesResource/name": name -"/translate:v2/DetectionsListResponse/detections": detections -"/translate:v2/DetectionsListResponse/detections/detection": detection -"/translate:v2/GetSupportedLanguagesRequest": get_supported_languages_request -"/translate:v2/GetSupportedLanguagesRequest/target": target +"/translate:v2/language.detections.detect": detect_detection_language +"/translate:v2/language.detections.list": list_detections +"/translate:v2/language.detections.list/q": q +"/translate:v2/language.languages.list": list_languages +"/translate:v2/language.languages.list/model": model +"/translate:v2/language.languages.list/target": target "/translate:v2/LanguagesListResponse/languages": languages "/translate:v2/LanguagesListResponse/languages/language": language -"/translate:v2/TranslationsResource": translations_resource -"/translate:v2/TranslationsResource/detectedSourceLanguage": detected_source_language -"/translate:v2/TranslationsResource/model": model -"/translate:v2/TranslationsResource/translatedText": translated_text "/translate:v2/DetectionsResource": detections_resource "/translate:v2/DetectionsResource/detections_resource": detections_resource "/translate:v2/DetectionsResource/detections_resource/confidence": confidence -"/translate:v2/DetectionsResource/detections_resource/isReliable": is_reliable "/translate:v2/DetectionsResource/detections_resource/language": language +"/translate:v2/DetectionsResource/detections_resource/isReliable": is_reliable +"/translate:v2/TranslationsResource": translations_resource +"/translate:v2/TranslationsResource/model": model +"/translate:v2/TranslationsResource/translatedText": translated_text +"/translate:v2/TranslationsResource/detectedSourceLanguage": detected_source_language "/translate:v2/TranslationsListResponse/translations": translations "/translate:v2/TranslationsListResponse/translations/translation": translation "/translate:v2/TranslateTextRequest": translate_text_request "/translate:v2/TranslateTextRequest/target": target +"/translate:v2/TranslateTextRequest/format": format "/translate:v2/TranslateTextRequest/q": q "/translate:v2/TranslateTextRequest/q/q": q -"/translate:v2/TranslateTextRequest/format": format "/translate:v2/TranslateTextRequest/source": source "/translate:v2/TranslateTextRequest/model": model "/translate:v2/DetectLanguageRequest": detect_language_request "/translate:v2/DetectLanguageRequest/q": q "/translate:v2/DetectLanguageRequest/q/q": q +"/translate:v2/LanguagesResource": languages_resource +"/translate:v2/LanguagesResource/name": name +"/translate:v2/LanguagesResource/language": language +"/translate:v2/DetectionsListResponse/detections": detections +"/translate:v2/DetectionsListResponse/detections/detection": detection +"/translate:v2/GetSupportedLanguagesRequest": get_supported_languages_request +"/translate:v2/GetSupportedLanguagesRequest/target": target "/urlshortener:v1/fields": fields "/urlshortener:v1/key": key "/urlshortener:v1/quotaUser": quota_user @@ -40557,6 +40811,21 @@ "/vision:v1/key": key "/vision:v1/quotaUser": quota_user "/vision:v1/vision.images.annotate": annotate_image +"/vision:v1/Color": color +"/vision:v1/Color/red": red +"/vision:v1/Color/alpha": alpha +"/vision:v1/Color/blue": blue +"/vision:v1/Color/green": green +"/vision:v1/Feature": feature +"/vision:v1/Feature/maxResults": max_results +"/vision:v1/Feature/type": type +"/vision:v1/ImageProperties": image_properties +"/vision:v1/ImageProperties/dominantColors": dominant_colors +"/vision:v1/SafeSearchAnnotation": safe_search_annotation +"/vision:v1/SafeSearchAnnotation/medical": medical +"/vision:v1/SafeSearchAnnotation/violence": violence +"/vision:v1/SafeSearchAnnotation/adult": adult +"/vision:v1/SafeSearchAnnotation/spoof": spoof "/vision:v1/DominantColorsAnnotation": dominant_colors_annotation "/vision:v1/DominantColorsAnnotation/colors": colors "/vision:v1/DominantColorsAnnotation/colors/color": color @@ -40570,34 +40839,34 @@ "/vision:v1/DetectedLanguage": detected_language "/vision:v1/DetectedLanguage/languageCode": language_code "/vision:v1/DetectedLanguage/confidence": confidence -"/vision:v1/TextProperty": text_property -"/vision:v1/TextProperty/detectedBreak": detected_break -"/vision:v1/TextProperty/detectedLanguages": detected_languages -"/vision:v1/TextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1/WebEntity": web_entity +"/vision:v1/WebEntity/entityId": entity_id +"/vision:v1/WebEntity/description": description +"/vision:v1/WebEntity/score": score "/vision:v1/BoundingPoly": bounding_poly "/vision:v1/BoundingPoly/vertices": vertices "/vision:v1/BoundingPoly/vertices/vertex": vertex -"/vision:v1/WebEntity": web_entity -"/vision:v1/WebEntity/score": score -"/vision:v1/WebEntity/entityId": entity_id -"/vision:v1/WebEntity/description": description +"/vision:v1/TextProperty": text_property +"/vision:v1/TextProperty/detectedLanguages": detected_languages +"/vision:v1/TextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1/TextProperty/detectedBreak": detected_break "/vision:v1/AnnotateImageResponse": annotate_image_response +"/vision:v1/AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1/AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1/AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation "/vision:v1/AnnotateImageResponse/error": error "/vision:v1/AnnotateImageResponse/fullTextAnnotation": full_text_annotation "/vision:v1/AnnotateImageResponse/landmarkAnnotations": landmark_annotations "/vision:v1/AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation "/vision:v1/AnnotateImageResponse/textAnnotations": text_annotations "/vision:v1/AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1/AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation "/vision:v1/AnnotateImageResponse/faceAnnotations": face_annotations "/vision:v1/AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation -"/vision:v1/AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation "/vision:v1/AnnotateImageResponse/logoAnnotations": logo_annotations "/vision:v1/AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation "/vision:v1/AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation "/vision:v1/AnnotateImageResponse/webDetection": web_detection -"/vision:v1/AnnotateImageResponse/labelAnnotations": label_annotations -"/vision:v1/AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation -"/vision:v1/AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation "/vision:v1/CropHintsParams": crop_hints_params "/vision:v1/CropHintsParams/aspectRatios": aspect_ratios "/vision:v1/CropHintsParams/aspectRatios/aspect_ratio": aspect_ratio @@ -40607,55 +40876,55 @@ "/vision:v1/Block/boundingBox": bounding_box "/vision:v1/Block/paragraphs": paragraphs "/vision:v1/Block/paragraphs/paragraph": paragraph +"/vision:v1/WebDetection": web_detection +"/vision:v1/WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1/WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1/WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1/WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1/WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1/WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1/WebDetection/fullMatchingImages": full_matching_images +"/vision:v1/WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1/WebDetection/webEntities": web_entities +"/vision:v1/WebDetection/webEntities/web_entity": web_entity +"/vision:v1/BatchAnnotateImagesResponse": batch_annotate_images_response +"/vision:v1/BatchAnnotateImagesResponse/responses": responses +"/vision:v1/BatchAnnotateImagesResponse/responses/response": response +"/vision:v1/ImageSource": image_source +"/vision:v1/ImageSource/gcsImageUri": gcs_image_uri +"/vision:v1/ImageSource/imageUri": image_uri "/vision:v1/Property": property "/vision:v1/Property/value": value "/vision:v1/Property/uint64Value": uint64_value "/vision:v1/Property/name": name "/vision:v1/LocationInfo": location_info "/vision:v1/LocationInfo/latLng": lat_lng -"/vision:v1/ImageSource": image_source -"/vision:v1/ImageSource/gcsImageUri": gcs_image_uri -"/vision:v1/ImageSource/imageUri": image_uri -"/vision:v1/BatchAnnotateImagesResponse": batch_annotate_images_response -"/vision:v1/BatchAnnotateImagesResponse/responses": responses -"/vision:v1/BatchAnnotateImagesResponse/responses/response": response -"/vision:v1/WebDetection": web_detection -"/vision:v1/WebDetection/fullMatchingImages": full_matching_images -"/vision:v1/WebDetection/fullMatchingImages/full_matching_image": full_matching_image -"/vision:v1/WebDetection/webEntities": web_entities -"/vision:v1/WebDetection/webEntities/web_entity": web_entity -"/vision:v1/WebDetection/pagesWithMatchingImages": pages_with_matching_images -"/vision:v1/WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image -"/vision:v1/WebDetection/partialMatchingImages": partial_matching_images -"/vision:v1/WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image -"/vision:v1/WebDetection/visuallySimilarImages": visually_similar_images -"/vision:v1/WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image "/vision:v1/Position": position -"/vision:v1/Position/y": y -"/vision:v1/Position/x": x "/vision:v1/Position/z": z +"/vision:v1/Position/x": x +"/vision:v1/Position/y": y "/vision:v1/WebPage": web_page "/vision:v1/WebPage/score": score "/vision:v1/WebPage/url": url "/vision:v1/ColorInfo": color_info -"/vision:v1/ColorInfo/score": score "/vision:v1/ColorInfo/pixelFraction": pixel_fraction "/vision:v1/ColorInfo/color": color +"/vision:v1/ColorInfo/score": score "/vision:v1/EntityAnnotation": entity_annotation "/vision:v1/EntityAnnotation/mid": mid "/vision:v1/EntityAnnotation/confidence": confidence "/vision:v1/EntityAnnotation/locale": locale "/vision:v1/EntityAnnotation/boundingPoly": bounding_poly -"/vision:v1/EntityAnnotation/description": description "/vision:v1/EntityAnnotation/topicality": topicality +"/vision:v1/EntityAnnotation/description": description "/vision:v1/EntityAnnotation/properties": properties "/vision:v1/EntityAnnotation/properties/property": property "/vision:v1/EntityAnnotation/score": score "/vision:v1/EntityAnnotation/locations": locations "/vision:v1/EntityAnnotation/locations/location": location "/vision:v1/CropHint": crop_hint -"/vision:v1/CropHint/confidence": confidence "/vision:v1/CropHint/importanceFraction": importance_fraction +"/vision:v1/CropHint/confidence": confidence "/vision:v1/CropHint/boundingPoly": bounding_poly "/vision:v1/Landmark": landmark "/vision:v1/Landmark/type": type @@ -40664,18 +40933,18 @@ "/vision:v1/WebImage/score": score "/vision:v1/WebImage/url": url "/vision:v1/Word": word -"/vision:v1/Word/boundingBox": bounding_box "/vision:v1/Word/symbols": symbols "/vision:v1/Word/symbols/symbol": symbol "/vision:v1/Word/property": property +"/vision:v1/Word/boundingBox": bounding_box "/vision:v1/Paragraph": paragraph "/vision:v1/Paragraph/property": property "/vision:v1/Paragraph/boundingBox": bounding_box "/vision:v1/Paragraph/words": words "/vision:v1/Paragraph/words/word": word "/vision:v1/Image": image -"/vision:v1/Image/content": content "/vision:v1/Image/source": source +"/vision:v1/Image/content": content "/vision:v1/FaceAnnotation": face_annotation "/vision:v1/FaceAnnotation/tiltAngle": tilt_angle "/vision:v1/FaceAnnotation/fdBoundingPoly": fd_bounding_poly @@ -40683,11 +40952,11 @@ "/vision:v1/FaceAnnotation/landmarks": landmarks "/vision:v1/FaceAnnotation/landmarks/landmark": landmark "/vision:v1/FaceAnnotation/angerLikelihood": anger_likelihood -"/vision:v1/FaceAnnotation/joyLikelihood": joy_likelihood "/vision:v1/FaceAnnotation/landmarkingConfidence": landmarking_confidence -"/vision:v1/FaceAnnotation/detectionConfidence": detection_confidence -"/vision:v1/FaceAnnotation/panAngle": pan_angle +"/vision:v1/FaceAnnotation/joyLikelihood": joy_likelihood "/vision:v1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1/FaceAnnotation/panAngle": pan_angle +"/vision:v1/FaceAnnotation/detectionConfidence": detection_confidence "/vision:v1/FaceAnnotation/blurredLikelihood": blurred_likelihood "/vision:v1/FaceAnnotation/headwearLikelihood": headwear_likelihood "/vision:v1/FaceAnnotation/boundingPoly": bounding_poly @@ -40700,55 +40969,40 @@ "/vision:v1/DetectedBreak/type": type "/vision:v1/DetectedBreak/isPrefix": is_prefix "/vision:v1/ImageContext": image_context +"/vision:v1/ImageContext/cropHintsParams": crop_hints_params "/vision:v1/ImageContext/languageHints": language_hints "/vision:v1/ImageContext/languageHints/language_hint": language_hint "/vision:v1/ImageContext/latLongRect": lat_long_rect -"/vision:v1/ImageContext/cropHintsParams": crop_hints_params "/vision:v1/Page": page -"/vision:v1/Page/height": height "/vision:v1/Page/width": width "/vision:v1/Page/blocks": blocks "/vision:v1/Page/blocks/block": block "/vision:v1/Page/property": property +"/vision:v1/Page/height": height "/vision:v1/AnnotateImageRequest": annotate_image_request -"/vision:v1/AnnotateImageRequest/image": image "/vision:v1/AnnotateImageRequest/features": features "/vision:v1/AnnotateImageRequest/features/feature": feature +"/vision:v1/AnnotateImageRequest/image": image "/vision:v1/AnnotateImageRequest/imageContext": image_context "/vision:v1/Status": status +"/vision:v1/Status/code": code +"/vision:v1/Status/message": message "/vision:v1/Status/details": details "/vision:v1/Status/details/detail": detail "/vision:v1/Status/details/detail/detail": detail -"/vision:v1/Status/code": code -"/vision:v1/Status/message": message -"/vision:v1/Symbol": symbol -"/vision:v1/Symbol/text": text -"/vision:v1/Symbol/property": property -"/vision:v1/Symbol/boundingBox": bounding_box "/vision:v1/LatLongRect": lat_long_rect "/vision:v1/LatLongRect/minLatLng": min_lat_lng "/vision:v1/LatLongRect/maxLatLng": max_lat_lng +"/vision:v1/Symbol": symbol +"/vision:v1/Symbol/property": property +"/vision:v1/Symbol/boundingBox": bounding_box +"/vision:v1/Symbol/text": text "/vision:v1/CropHintsAnnotation": crop_hints_annotation "/vision:v1/CropHintsAnnotation/cropHints": crop_hints "/vision:v1/CropHintsAnnotation/cropHints/crop_hint": crop_hint "/vision:v1/LatLng": lat_lng "/vision:v1/LatLng/latitude": latitude "/vision:v1/LatLng/longitude": longitude -"/vision:v1/Color": color -"/vision:v1/Color/green": green -"/vision:v1/Color/blue": blue -"/vision:v1/Color/alpha": alpha -"/vision:v1/Color/red": red -"/vision:v1/ImageProperties": image_properties -"/vision:v1/ImageProperties/dominantColors": dominant_colors -"/vision:v1/Feature": feature -"/vision:v1/Feature/type": type -"/vision:v1/Feature/maxResults": max_results -"/vision:v1/SafeSearchAnnotation": safe_search_annotation -"/vision:v1/SafeSearchAnnotation/medical": medical -"/vision:v1/SafeSearchAnnotation/violence": violence -"/vision:v1/SafeSearchAnnotation/adult": adult -"/vision:v1/SafeSearchAnnotation/spoof": spoof "/webfonts:v1/fields": fields "/webfonts:v1/key": key "/webfonts:v1/quotaUser": quota_user @@ -42482,70 +42736,70 @@ "/youtubereporting:v1/key": key "/youtubereporting:v1/quotaUser": quota_user "/youtubereporting:v1/fields": fields +"/youtubereporting:v1/youtubereporting.reportTypes.list": list_report_types +"/youtubereporting:v1/youtubereporting.reportTypes.list/includeSystemManaged": include_system_managed +"/youtubereporting:v1/youtubereporting.reportTypes.list/pageToken": page_token +"/youtubereporting:v1/youtubereporting.reportTypes.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.reportTypes.list/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.media.download": download_medium "/youtubereporting:v1/youtubereporting.media.download/resourceName": resource_name -"/youtubereporting:v1/youtubereporting.jobs.list": list_jobs -"/youtubereporting:v1/youtubereporting.jobs.list/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtubereporting:v1/youtubereporting.jobs.list/pageToken": page_token -"/youtubereporting:v1/youtubereporting.jobs.list/includeSystemManaged": include_system_managed -"/youtubereporting:v1/youtubereporting.jobs.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.jobs.delete": delete_job +"/youtubereporting:v1/youtubereporting.jobs.delete/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.delete/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.jobs.get": get_job "/youtubereporting:v1/youtubereporting.jobs.get/jobId": job_id "/youtubereporting:v1/youtubereporting.jobs.get/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.list": list_jobs +"/youtubereporting:v1/youtubereporting.jobs.list/includeSystemManaged": include_system_managed +"/youtubereporting:v1/youtubereporting.jobs.list/pageToken": page_token +"/youtubereporting:v1/youtubereporting.jobs.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.jobs.list/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.jobs.create": create_job "/youtubereporting:v1/youtubereporting.jobs.create/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtubereporting:v1/youtubereporting.jobs.delete": delete_job -"/youtubereporting:v1/youtubereporting.jobs.delete/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtubereporting:v1/youtubereporting.jobs.delete/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.reports.get": get_job_report +"/youtubereporting:v1/youtubereporting.jobs.reports.get/reportId": report_id +"/youtubereporting:v1/youtubereporting.jobs.reports.get/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.reports.get/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.jobs.reports.list": list_job_reports -"/youtubereporting:v1/youtubereporting.jobs.reports.list/jobId": job_id "/youtubereporting:v1/youtubereporting.jobs.reports.list/createdAfter": created_after "/youtubereporting:v1/youtubereporting.jobs.reports.list/pageToken": page_token "/youtubereporting:v1/youtubereporting.jobs.reports.list/startTimeAtOrAfter": start_time_at_or_after "/youtubereporting:v1/youtubereporting.jobs.reports.list/pageSize": page_size "/youtubereporting:v1/youtubereporting.jobs.reports.list/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubereporting:v1/youtubereporting.jobs.reports.list/startTimeBefore": start_time_before -"/youtubereporting:v1/youtubereporting.jobs.reports.get": get_job_report -"/youtubereporting:v1/youtubereporting.jobs.reports.get/reportId": report_id -"/youtubereporting:v1/youtubereporting.jobs.reports.get/jobId": job_id -"/youtubereporting:v1/youtubereporting.jobs.reports.get/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtubereporting:v1/youtubereporting.reportTypes.list": list_report_types -"/youtubereporting:v1/youtubereporting.reportTypes.list/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtubereporting:v1/youtubereporting.reportTypes.list/pageToken": page_token -"/youtubereporting:v1/youtubereporting.reportTypes.list/includeSystemManaged": include_system_managed -"/youtubereporting:v1/youtubereporting.reportTypes.list/pageSize": page_size -"/youtubereporting:v1/Report": report -"/youtubereporting:v1/Report/id": id -"/youtubereporting:v1/Report/endTime": end_time -"/youtubereporting:v1/Report/jobExpireTime": job_expire_time -"/youtubereporting:v1/Report/downloadUrl": download_url -"/youtubereporting:v1/Report/startTime": start_time -"/youtubereporting:v1/Report/createTime": create_time -"/youtubereporting:v1/Report/jobId": job_id -"/youtubereporting:v1/Empty": empty -"/youtubereporting:v1/ReportType": report_type -"/youtubereporting:v1/ReportType/deprecateTime": deprecate_time -"/youtubereporting:v1/ReportType/name": name -"/youtubereporting:v1/ReportType/id": id -"/youtubereporting:v1/ReportType/systemManaged": system_managed -"/youtubereporting:v1/ListReportTypesResponse": list_report_types_response -"/youtubereporting:v1/ListReportTypesResponse/reportTypes": report_types -"/youtubereporting:v1/ListReportTypesResponse/reportTypes/report_type": report_type -"/youtubereporting:v1/ListReportTypesResponse/nextPageToken": next_page_token -"/youtubereporting:v1/ListJobsResponse": list_jobs_response -"/youtubereporting:v1/ListJobsResponse/jobs": jobs -"/youtubereporting:v1/ListJobsResponse/jobs/job": job -"/youtubereporting:v1/ListJobsResponse/nextPageToken": next_page_token -"/youtubereporting:v1/Job": job -"/youtubereporting:v1/Job/createTime": create_time -"/youtubereporting:v1/Job/reportTypeId": report_type_id -"/youtubereporting:v1/Job/expireTime": expire_time -"/youtubereporting:v1/Job/name": name -"/youtubereporting:v1/Job/id": id -"/youtubereporting:v1/Job/systemManaged": system_managed +"/youtubereporting:v1/youtubereporting.jobs.reports.list/jobId": job_id "/youtubereporting:v1/ListReportsResponse": list_reports_response "/youtubereporting:v1/ListReportsResponse/nextPageToken": next_page_token "/youtubereporting:v1/ListReportsResponse/reports": reports "/youtubereporting:v1/ListReportsResponse/reports/report": report "/youtubereporting:v1/Media": media "/youtubereporting:v1/Media/resourceName": resource_name +"/youtubereporting:v1/ReportType": report_type +"/youtubereporting:v1/ReportType/deprecateTime": deprecate_time +"/youtubereporting:v1/ReportType/name": name +"/youtubereporting:v1/ReportType/systemManaged": system_managed +"/youtubereporting:v1/ReportType/id": id +"/youtubereporting:v1/ListReportTypesResponse": list_report_types_response +"/youtubereporting:v1/ListReportTypesResponse/nextPageToken": next_page_token +"/youtubereporting:v1/ListReportTypesResponse/reportTypes": report_types +"/youtubereporting:v1/ListReportTypesResponse/reportTypes/report_type": report_type +"/youtubereporting:v1/Empty": empty +"/youtubereporting:v1/Report": report +"/youtubereporting:v1/Report/startTime": start_time +"/youtubereporting:v1/Report/createTime": create_time +"/youtubereporting:v1/Report/jobId": job_id +"/youtubereporting:v1/Report/id": id +"/youtubereporting:v1/Report/jobExpireTime": job_expire_time +"/youtubereporting:v1/Report/endTime": end_time +"/youtubereporting:v1/Report/downloadUrl": download_url +"/youtubereporting:v1/ListJobsResponse": list_jobs_response +"/youtubereporting:v1/ListJobsResponse/nextPageToken": next_page_token +"/youtubereporting:v1/ListJobsResponse/jobs": jobs +"/youtubereporting:v1/ListJobsResponse/jobs/job": job +"/youtubereporting:v1/Job": job +"/youtubereporting:v1/Job/createTime": create_time +"/youtubereporting:v1/Job/reportTypeId": report_type_id +"/youtubereporting:v1/Job/expireTime": expire_time +"/youtubereporting:v1/Job/name": name +"/youtubereporting:v1/Job/systemManaged": system_managed +"/youtubereporting:v1/Job/id": id diff --git a/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb b/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb index c85c54aff..0bdbe8a5a 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb @@ -22,6 +22,34 @@ module Google module Apis module AcceleratedmobilepageurlV1 + # Batch AMP URL response. + class BatchGetAmpUrlsResponse + include Google::Apis::Core::Hashable + + # The errors for requested URLs that have no AMP URL. + # Corresponds to the JSON property `urlErrors` + # @return [Array] + attr_accessor :url_errors + + # For each URL in BatchAmpUrlsRequest, the URL response. The response might + # not be in the same order as URLs in the batch request. + # If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated + # only once. + # Corresponds to the JSON property `ampUrls` + # @return [Array] + attr_accessor :amp_urls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url_errors = args[:url_errors] if args.key?(:url_errors) + @amp_urls = args[:amp_urls] if args.key?(:amp_urls) + end + end + # AMP URL response for a requested URL. class AmpUrl include Google::Apis::Core::Hashable @@ -32,16 +60,16 @@ module Google # @return [String] attr_accessor :cdn_amp_url - # The original non-AMP URL. - # Corresponds to the JSON property `originalUrl` - # @return [String] - attr_accessor :original_url - # The AMP URL pointing to the publisher's web server. # Corresponds to the JSON property `ampUrl` # @return [String] attr_accessor :amp_url + # The original non-AMP URL. + # Corresponds to the JSON property `originalUrl` + # @return [String] + attr_accessor :original_url + def initialize(**args) update!(**args) end @@ -49,8 +77,8 @@ module Google # Update properties of this object def update!(**args) @cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url) - @original_url = args[:original_url] if args.key?(:original_url) @amp_url = args[:amp_url] if args.key?(:amp_url) + @original_url = args[:original_url] if args.key?(:original_url) end end @@ -58,6 +86,11 @@ module Google class AmpUrlError include Google::Apis::Core::Hashable + # An optional descriptive error message. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + # The error code of an API call. # Corresponds to the JSON property `errorCode` # @return [String] @@ -68,20 +101,15 @@ module Google # @return [String] attr_accessor :original_url - # An optional descriptive error message. - # Corresponds to the JSON property `errorMessage` - # @return [String] - attr_accessor :error_message - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @error_message = args[:error_message] if args.key?(:error_message) @error_code = args[:error_code] if args.key?(:error_code) @original_url = args[:original_url] if args.key?(:original_url) - @error_message = args[:error_message] if args.key?(:error_message) end end @@ -89,11 +117,6 @@ module Google class BatchGetAmpUrlsRequest include Google::Apis::Core::Hashable - # The lookup_strategy being requested. - # Corresponds to the JSON property `lookupStrategy` - # @return [String] - attr_accessor :lookup_strategy - # List of URLs to look up for the paired AMP URLs. # The URLs are case-sensitive. Up to 50 URLs per lookup # (see [Usage Limits](/amp/cache/reference/limits)). @@ -101,42 +124,19 @@ module Google # @return [Array] attr_accessor :urls + # The lookup_strategy being requested. + # Corresponds to the JSON property `lookupStrategy` + # @return [String] + attr_accessor :lookup_strategy + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy) @urls = args[:urls] if args.key?(:urls) - end - end - - # Batch AMP URL response. - class BatchGetAmpUrlsResponse - include Google::Apis::Core::Hashable - - # For each URL in BatchAmpUrlsRequest, the URL response. The response might - # not be in the same order as URLs in the batch request. - # If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated - # only once. - # Corresponds to the JSON property `ampUrls` - # @return [Array] - attr_accessor :amp_urls - - # The errors for requested URLs that have no AMP URL. - # Corresponds to the JSON property `urlErrors` - # @return [Array] - attr_accessor :url_errors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @amp_urls = args[:amp_urls] if args.key?(:amp_urls) - @url_errors = args[:url_errors] if args.key?(:url_errors) + @lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy) end end end diff --git a/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb b/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb index 815af856b..da81daa97 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module AcceleratedmobilepageurlV1 + class BatchGetAmpUrlsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AmpUrl class Representation < Google::Apis::Core::JsonRepresentation; end @@ -41,44 +47,38 @@ module Google end class BatchGetAmpUrlsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation - include Google::Apis::Core::JsonObjectSupport + collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation + + end end class AmpUrl # @private class Representation < Google::Apis::Core::JsonRepresentation property :cdn_amp_url, as: 'cdnAmpUrl' - property :original_url, as: 'originalUrl' property :amp_url, as: 'ampUrl' + property :original_url, as: 'originalUrl' end end class AmpUrlError # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error_message, as: 'errorMessage' property :error_code, as: 'errorCode' property :original_url, as: 'originalUrl' - property :error_message, as: 'errorMessage' end end class BatchGetAmpUrlsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :lookup_strategy, as: 'lookupStrategy' collection :urls, as: 'urls' - end - end - - class BatchGetAmpUrlsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation - - collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation - + property :lookup_strategy, as: 'lookupStrategy' end end end diff --git a/generated/google/apis/acceleratedmobilepageurl_v1/service.rb b/generated/google/apis/acceleratedmobilepageurl_v1/service.rb index 6e3891372..723b07dcb 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1/service.rb @@ -51,11 +51,11 @@ module Google # Returns AMP URL(s) and equivalent # [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format). # @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -68,14 +68,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/ampUrls:batchGet', options) command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation command.request_object = batch_get_amp_urls_request_object command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index c0a429fbf..a91371099 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20170608' + REVISION = '20170710' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index e02e5fcdb..86103dca4 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -72,46 +72,36 @@ module Google end end - # The number of impressions with the specified dimension values that were - # filtered due to the specified filtering status. - class ImpressionStatusRow - include Google::Apis::Core::Hashable - - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `impressionCount` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :impression_count - - # The status for which impressions were filtered. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # A response may include multiple rows, breaking down along various dimensions. - # Encapsulates the values of all dimensions for a given row. - # Corresponds to the JSON property `rowDimensions` - # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] - attr_accessor :row_dimensions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @impression_count = args[:impression_count] if args.key?(:impression_count) - @status = args[:status] if args.key?(:status) - @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) - end - end - # The set of metrics that are measured in numbers of bids, representing how # many bids with the specified dimension values were considered eligible at # each stage of the bidding funnel; class BidMetricsRow include Google::Apis::Core::Hashable + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `impressionsWon` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :impressions_won + + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `viewableImpressions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :viewable_impressions + + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `measurableImpressions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :measurable_impressions + + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `bids` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :bids + # A metric value, with an expected value and a variance; represents a count # that may be either exact or estimated (i.e. when sampled). # Corresponds to the JSON property `billedImpressions` @@ -130,36 +120,19 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] attr_accessor :row_dimensions - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `impressionsWon` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :impressions_won - - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `viewableImpressions` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :viewable_impressions - - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `bids` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :bids - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @impressions_won = args[:impressions_won] if args.key?(:impressions_won) + @viewable_impressions = args[:viewable_impressions] if args.key?(:viewable_impressions) + @measurable_impressions = args[:measurable_impressions] if args.key?(:measurable_impressions) + @bids = args[:bids] if args.key?(:bids) @billed_impressions = args[:billed_impressions] if args.key?(:billed_impressions) @bids_in_auction = args[:bids_in_auction] if args.key?(:bids_in_auction) @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) - @impressions_won = args[:impressions_won] if args.key?(:impressions_won) - @viewable_impressions = args[:viewable_impressions] if args.key?(:viewable_impressions) - @bids = args[:bids] if args.key?(:bids) end end @@ -252,39 +225,73 @@ module Google end end - # The number of filtered bids with the specified dimension values, among those - # filtered due to the requested filtering reason (i.e. creative status), that - # have the specified detail. - class FilteredBidDetailRow + # The number of winning bids with the specified dimension values for which the + # buyer was not billed, as described by the specified status. + class NonBillableWinningBidStatusRow include Google::Apis::Core::Hashable - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `bidCount` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :bid_count - - # The ID of the detail. The associated value can be looked up in the - # dictionary file corresponding to the DetailType in the response message. - # Corresponds to the JSON property `detailId` - # @return [Fixnum] - attr_accessor :detail_id - # A response may include multiple rows, breaking down along various dimensions. # Encapsulates the values of all dimensions for a given row. # Corresponds to the JSON property `rowDimensions` # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] attr_accessor :row_dimensions + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `bidCount` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :bid_count + + # The status specifying why the winning bids were not billed. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @bid_count = args[:bid_count] if args.key?(:bid_count) - @detail_id = args[:detail_id] if args.key?(:detail_id) @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) + @bid_count = args[:bid_count] if args.key?(:bid_count) + @status = args[:status] if args.key?(:status) + end + end + + # The number of filtered bids with the specified dimension values, among those + # filtered due to the requested filtering reason (i.e. creative status), that + # have the specified detail. + class FilteredBidDetailRow + include Google::Apis::Core::Hashable + + # A response may include multiple rows, breaking down along various dimensions. + # Encapsulates the values of all dimensions for a given row. + # Corresponds to the JSON property `rowDimensions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] + attr_accessor :row_dimensions + + # The ID of the detail. The associated value can be looked up in the + # dictionary file corresponding to the DetailType in the response message. + # Corresponds to the JSON property `detailId` + # @return [Fixnum] + attr_accessor :detail_id + + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `bidCount` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :bid_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) + @detail_id = args[:detail_id] if args.key?(:detail_id) + @bid_count = args[:bid_count] if args.key?(:bid_count) end end @@ -303,9 +310,9 @@ module Google # expiration date. The year may be 0 to represent a month and day independent # of year, e.g. anniversary date. Related types are google.type.TimeOfDay # and `google.protobuf.Timestamp`. - # Corresponds to the JSON property `endDate` + # Corresponds to the JSON property `startDate` # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] - attr_accessor :end_date + attr_accessor :start_date # Represents a whole calendar date, e.g. date of birth. The time of day and # time zone are either specified elsewhere or are not significant. The date @@ -314,9 +321,9 @@ module Google # expiration date. The year may be 0 to represent a month and day independent # of year, e.g. anniversary date. Related types are google.type.TimeOfDay # and `google.protobuf.Timestamp`. - # Corresponds to the JSON property `startDate` + # Corresponds to the JSON property `endDate` # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] - attr_accessor :start_date + attr_accessor :end_date def initialize(**args) update!(**args) @@ -324,8 +331,8 @@ module Google # Update properties of this object def update!(**args) - @end_date = args[:end_date] if args.key?(:end_date) @start_date = args[:start_date] if args.key?(:start_date) + @end_date = args[:end_date] if args.key?(:end_date) end end @@ -412,6 +419,12 @@ module Google class FilteredBidCreativeRow include Google::Apis::Core::Hashable + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `bidCount` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :bid_count + # The ID of the creative. # Corresponds to the JSON property `creativeId` # @return [String] @@ -423,21 +436,15 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] attr_accessor :row_dimensions - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `bidCount` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :bid_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @bid_count = args[:bid_count] if args.key?(:bid_count) @creative_id = args[:creative_id] if args.key?(:creative_id) @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) - @bid_count = args[:bid_count] if args.key?(:bid_count) end end @@ -450,26 +457,26 @@ module Google class RelativeDateRange include Google::Apis::Core::Hashable - # The end date of the filter set, specified as the number of days before - # today. E.g. for a range where the last date is today, 0. - # Corresponds to the JSON property `offsetDays` - # @return [Fixnum] - attr_accessor :offset_days - # The number of days in the requested date range. E.g. for a range spanning # today, 1. For a range spanning the last 7 days, 7. # Corresponds to the JSON property `durationDays` # @return [Fixnum] attr_accessor :duration_days + # The end date of the filter set, specified as the number of days before + # today. E.g. for a range where the last date is today, 0. + # Corresponds to the JSON property `offsetDays` + # @return [Fixnum] + attr_accessor :offset_days + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @offset_days = args[:offset_days] if args.key?(:offset_days) @duration_days = args[:duration_days] if args.key?(:duration_days) + @offset_days = args[:offset_days] if args.key?(:offset_days) end end @@ -507,6 +514,11 @@ module Google class NativeContent include Google::Apis::Core::Hashable + # 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 + # A long description of the ad. # Corresponds to the JSON property `body` # @return [String] @@ -522,33 +534,33 @@ module Google # @return [String] attr_accessor :video_url - # The URL that the browser/SDK will load when the user clicks the ad. - # Corresponds to the JSON property `clickLinkUrl` - # @return [String] - attr_accessor :click_link_url - # An image resource. You may provide a larger image than was requested, # so long as the aspect ratio is preserved. # Corresponds to the JSON property `logo` # @return [Google::Apis::Adexchangebuyer2V2beta1::Image] attr_accessor :logo + # The URL that the browser/SDK will load when the user clicks the ad. + # Corresponds to the JSON property `clickLinkUrl` + # @return [String] + attr_accessor :click_link_url + # The price of the promoted app including currency info. # Corresponds to the JSON property `priceDisplayText` # @return [String] attr_accessor :price_display_text + # The URL to use for click tracking. + # Corresponds to the JSON property `clickTrackingUrl` + # @return [String] + attr_accessor :click_tracking_url + # An image resource. You may provide a larger image than was requested, # so long as the aspect ratio is preserved. # Corresponds to the JSON property `image` # @return [Google::Apis::Adexchangebuyer2V2beta1::Image] attr_accessor :image - # The URL to use for click tracking. - # Corresponds to the JSON property `clickTrackingUrl` - # @return [String] - attr_accessor :click_tracking_url - # The name of the advertiser or sponsor, to be displayed in the ad creative. # Corresponds to the JSON property `advertiserName` # @return [String] @@ -570,30 +582,25 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::Image] attr_accessor :app_icon - # 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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @call_to_action = args[:call_to_action] if args.key?(:call_to_action) @body = args[:body] if args.key?(:body) @star_rating = args[:star_rating] if args.key?(:star_rating) @video_url = args[:video_url] if args.key?(:video_url) - @click_link_url = args[:click_link_url] if args.key?(:click_link_url) @logo = args[:logo] if args.key?(:logo) + @click_link_url = args[:click_link_url] if args.key?(:click_link_url) @price_display_text = args[:price_display_text] if args.key?(:price_display_text) - @image = args[:image] if args.key?(:image) @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) + @image = args[:image] if args.key?(:image) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @store_url = args[:store_url] if args.key?(:store_url) @headline = args[:headline] if args.key?(:headline) @app_icon = args[:app_icon] if args.key?(:app_icon) - @call_to_action = args[:call_to_action] if args.key?(:call_to_action) end end @@ -602,12 +609,6 @@ module Google class ListBidResponsesWithoutBidsResponse include Google::Apis::Core::Hashable - # List of rows, with counts of bid responses without bids aggregated by - # status. - # Corresponds to the JSON property `bidResponseWithoutBidsStatusRows` - # @return [Array] - attr_accessor :bid_response_without_bids_status_rows - # A token to retrieve the next page of results. # Pass this value in the # ListBidResponsesWithoutBidsRequest.pageToken @@ -618,14 +619,20 @@ module Google # @return [String] attr_accessor :next_page_token + # List of rows, with counts of bid responses without bids aggregated by + # status. + # Corresponds to the JSON property `bidResponseWithoutBidsStatusRows` + # @return [Array] + attr_accessor :bid_response_without_bids_status_rows + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @bid_response_without_bids_status_rows = args[:bid_response_without_bids_status_rows] if args.key?(:bid_response_without_bids_status_rows) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @bid_response_without_bids_status_rows = args[:bid_response_without_bids_status_rows] if args.key?(:bid_response_without_bids_status_rows) end end @@ -633,6 +640,16 @@ module Google class ServingContext include Google::Apis::Core::Hashable + # @OutputOnly A security context. + # Corresponds to the JSON property `securityType` + # @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext] + attr_accessor :security_type + + # @OutputOnly The type of platform the restriction applies to. + # Corresponds to the JSON property `platform` + # @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext] + attr_accessor :platform + # @OutputOnly The Geo criteria the restriction applies to. # Corresponds to the JSON property `location` # @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext] @@ -653,28 +670,18 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::AppContext] attr_accessor :app_type - # @OutputOnly A security context. - # Corresponds to the JSON property `securityType` - # @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext] - attr_accessor :security_type - - # @OutputOnly The type of platform the restriction applies to. - # Corresponds to the JSON property `platform` - # @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext] - attr_accessor :platform - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @security_type = args[:security_type] if args.key?(:security_type) + @platform = args[:platform] if args.key?(:platform) @location = args[:location] if args.key?(:location) @auction_type = args[:auction_type] if args.key?(:auction_type) @all = args[:all] if args.key?(:all) @app_type = args[:app_type] if args.key?(:app_type) - @security_type = args[:security_type] if args.key?(:security_type) - @platform = args[:platform] if args.key?(:platform) end end @@ -751,7 +758,7 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] attr_accessor :impression_count - # The status that caused the bid response to be considered to have no + # The status specifying why the bid responses were considered to have no # applicable bids. # Corresponds to the JSON property `status` # @return [String] @@ -781,13 +788,6 @@ module Google class ClientUserInvitation include Google::Apis::Core::Hashable - # The email address to which the invitation is sent. Email - # addresses should be unique among all client users under each sponsor - # buyer. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - # Numerical account ID of the client buyer # that the invited user is associated with. # The value of this field is ignored in create operations. @@ -801,15 +801,22 @@ module Google # @return [Fixnum] attr_accessor :invitation_id + # The email address to which the invitation is sent. Email + # addresses should be unique among all client users under each sponsor + # buyer. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @email = args[:email] if args.key?(:email) @client_account_id = args[:client_account_id] if args.key?(:client_account_id) @invitation_id = args[:invitation_id] if args.key?(:invitation_id) + @email = args[:email] if args.key?(:email) end end @@ -848,6 +855,11 @@ module Google class ListClientUsersResponse include Google::Apis::Core::Hashable + # The returned list of client users. + # Corresponds to the JSON property `users` + # @return [Array] + attr_accessor :users + # A token to retrieve the next page of results. # Pass this value in the # ListClientUsersRequest.pageToken @@ -859,19 +871,14 @@ module Google # @return [String] attr_accessor :next_page_token - # The returned list of client users. - # Corresponds to the JSON property `users` - # @return [Array] - attr_accessor :users - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @users = args[:users] if args.key?(:users) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -880,17 +887,6 @@ module Google class ListCreativeStatusBreakdownByDetailResponse include Google::Apis::Core::Hashable - # The type of detail that the detail IDs represent. - # Corresponds to the JSON property `detailType` - # @return [String] - attr_accessor :detail_type - - # List of rows, with counts of bids with a given creative status aggregated - # by detail. - # Corresponds to the JSON property `filteredBidDetailRows` - # @return [Array] - attr_accessor :filtered_bid_detail_rows - # A token to retrieve the next page of results. # Pass this value in the # ListCreativeStatusBreakdownByDetailRequest.pageToken @@ -901,15 +897,26 @@ module Google # @return [String] attr_accessor :next_page_token + # List of rows, with counts of bids with a given creative status aggregated + # by detail. + # Corresponds to the JSON property `filteredBidDetailRows` + # @return [Array] + attr_accessor :filtered_bid_detail_rows + + # The type of detail that the detail IDs represent. + # Corresponds to the JSON property `detailType` + # @return [String] + attr_accessor :detail_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @detail_type = args[:detail_type] if args.key?(:detail_type) - @filtered_bid_detail_rows = args[:filtered_bid_detail_rows] if args.key?(:filtered_bid_detail_rows) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @filtered_bid_detail_rows = args[:filtered_bid_detail_rows] if args.key?(:filtered_bid_detail_rows) + @detail_type = args[:detail_type] if args.key?(:detail_type) end end @@ -1005,6 +1012,12 @@ module Google # @return [String] attr_accessor :status + # User's email address. The value of this field + # is ignored in an update operation. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + # The unique numerical ID of the client user # that has accepted an invitation. # The value of this field is ignored in an update operation. @@ -1012,12 +1025,6 @@ module Google # @return [Fixnum] attr_accessor :user_id - # User's email address. The value of this field - # is ignored in an update operation. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - # Numerical account ID of the client buyer # with which the user is associated; the # buyer must be a client of the current sponsor buyer. @@ -1033,8 +1040,8 @@ module Google # Update properties of this object def update!(**args) @status = args[:status] if args.key?(:status) - @user_id = args[:user_id] if args.key?(:user_id) @email = args[:email] if args.key?(:email) + @user_id = args[:user_id] if args.key?(:user_id) @client_account_id = args[:client_account_id] if args.key?(:client_account_id) end end @@ -1043,6 +1050,11 @@ module Google class CreativeDealAssociation include Google::Apis::Core::Hashable + # The account the creative belongs to. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + # The ID of the creative associated with the deal. # Corresponds to the JSON property `creativeId` # @return [String] @@ -1053,20 +1065,15 @@ module Google # @return [String] attr_accessor :deals_id - # The account the creative belongs to. - # 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) @creative_id = args[:creative_id] if args.key?(:creative_id) @deals_id = args[:deals_id] if args.key?(:deals_id) - @account_id = args[:account_id] if args.key?(:account_id) end end @@ -1074,33 +1081,6 @@ module Google class Creative include Google::Apis::Core::Hashable - # @OutputOnly Filtering reasons for this creative during a period of a single - # day (from midnight to midnight Pacific). - # Corresponds to the JSON property `filteringStats` - # @return [Google::Apis::Adexchangebuyer2V2beta1::FilteringStats] - attr_accessor :filtering_stats - - # All attributes for the ads that may be shown from this creative. - # Can be used to filter the response of the - # creatives.list - # method. - # Corresponds to the JSON property `attributes` - # @return [Array] - attr_accessor :attributes - - # @OutputOnly The last update timestamp of the creative via API. - # Corresponds to the JSON property `apiUpdateTime` - # @return [String] - attr_accessor :api_update_time - - # @OutputOnly - # The detected languages for this creative. The order is arbitrary. The codes - # are 2 or 5 characters and are documented at - # https://developers.google.com/adwords/api/docs/appendix/languagecodes. - # Corresponds to the JSON property `detectedLanguages` - # @return [Array] - attr_accessor :detected_languages - # The buyer-defined creative ID of this creative. # Can be used to filter the response of the # creatives.list @@ -1237,16 +1217,39 @@ module Google # @return [Array] attr_accessor :detected_domains + # @OutputOnly Filtering reasons for this creative during a period of a single + # day (from midnight to midnight Pacific). + # Corresponds to the JSON property `filteringStats` + # @return [Google::Apis::Adexchangebuyer2V2beta1::FilteringStats] + attr_accessor :filtering_stats + + # All attributes for the ads that may be shown from this creative. + # Can be used to filter the response of the + # creatives.list + # method. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # @OutputOnly The last update timestamp of the creative via API. + # Corresponds to the JSON property `apiUpdateTime` + # @return [String] + attr_accessor :api_update_time + + # @OutputOnly + # The detected languages for this creative. The order is arbitrary. The codes + # are 2 or 5 characters and are documented at + # https://developers.google.com/adwords/api/docs/appendix/languagecodes. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats) - @attributes = args[:attributes] if args.key?(:attributes) - @api_update_time = args[:api_update_time] if args.key?(:api_update_time) - @detected_languages = args[:detected_languages] if args.key?(:detected_languages) @creative_id = args[:creative_id] if args.key?(:creative_id) @account_id = args[:account_id] if args.key?(:account_id) @native = args[:native] if args.key?(:native) @@ -1268,6 +1271,10 @@ module Google @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids) @detected_domains = args[:detected_domains] if args.key?(:detected_domains) + @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats) + @attributes = args[:attributes] if args.key?(:attributes) + @api_update_time = args[:api_update_time] if args.key?(:api_update_time) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) end end @@ -1276,11 +1283,6 @@ module Google class FilteringStats include Google::Apis::Core::Hashable - # The set of filtering reasons for this date. - # Corresponds to the JSON property `reasons` - # @return [Array] - attr_accessor :reasons - # Represents a whole calendar date, e.g. date of birth. The time of day and # time zone are either specified elsewhere or are not significant. The date # is relative to the Proleptic Gregorian Calendar. The day may be 0 to @@ -1292,14 +1294,19 @@ module Google # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] attr_accessor :date + # The set of filtering reasons for this date. + # 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) - @reasons = args[:reasons] if args.key?(:reasons) @date = args[:date] if args.key?(:date) + @reasons = args[:reasons] if args.key?(:reasons) end end @@ -1322,37 +1329,6 @@ module Google end end - # Response message for listing all reasons that impressions were filtered (i.e. - # not considered as an inventory match) for the buyer. - class ListFilteredImpressionsResponse - include Google::Apis::Core::Hashable - - # A token to retrieve the next page of results. - # Pass this value in the - # ListFilteredImpressionsRequest.pageToken - # field in the subsequent call to the - # accounts.filterSets.filteredImpressions.list - # method to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # List of rows, with counts of filtered impressions aggregated by status. - # Corresponds to the JSON property `impressionsStatusRows` - # @return [Array] - attr_accessor :impressions_status_rows - - 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) - @impressions_status_rows = args[:impressions_status_rows] if args.key?(:impressions_status_rows) - end - end - # Response message for listing all creatives associated with a given filtered # bid reason. class ListCreativeStatusBreakdownByCreativeResponse @@ -1395,27 +1371,6 @@ module Google class Client include Google::Apis::Core::Hashable - # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. - # Corresponds to the JSON property `entityType` - # @return [String] - attr_accessor :entity_type - - # Name used to represent this client to publishers. - # You may have multiple clients that map to the same entity, - # but for each client the combination of `clientName` and entity - # must be unique. - # You can specify this field as empty. - # Corresponds to the JSON property `clientName` - # @return [String] - attr_accessor :client_name - - # The role which is assigned to the client buyer. Each role implies a set of - # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, - # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - # Whether the client buyer will be visible to sellers. # Corresponds to the JSON property `visibleToSeller` # @return [Boolean] @@ -1458,20 +1413,41 @@ module Google # @return [String] attr_accessor :status + # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # Name used to represent this client to publishers. + # You may have multiple clients that map to the same entity, + # but for each client the combination of `clientName` and entity + # must be unique. + # You can specify this field as empty. + # Corresponds to the JSON property `clientName` + # @return [String] + attr_accessor :client_name + + # The role which is assigned to the client buyer. Each role implies a set of + # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, + # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @entity_type = args[:entity_type] if args.key?(:entity_type) - @client_name = args[:client_name] if args.key?(:client_name) - @role = args[:role] if args.key?(:role) @visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller) @entity_id = args[:entity_id] if args.key?(:entity_id) @client_account_id = args[:client_account_id] if args.key?(:client_account_id) @entity_name = args[:entity_name] if args.key?(:entity_name) @status = args[:status] if args.key?(:status) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @client_name = args[:client_name] if args.key?(:client_name) + @role = args[:role] if args.key?(:role) end end @@ -1479,11 +1455,6 @@ module Google class Correction include Google::Apis::Core::Hashable - # Additional details about what was corrected. - # 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 `type` # @return [String] @@ -1494,15 +1465,20 @@ module Google # @return [Array] attr_accessor :contexts + # Additional details about what was corrected. + # 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) - @details = args[:details] if args.key?(:details) @type = args[:type] if args.key?(:type) @contexts = args[:contexts] if args.key?(:contexts) + @details = args[:details] if args.key?(:details) end end @@ -1551,16 +1527,16 @@ module Google # @return [String] attr_accessor :environment - # The format on which to filter; optional. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - # The ID of the deal on which to filter; optional. # Corresponds to the JSON property `dealId` # @return [Fixnum] attr_accessor :deal_id + # The format on which to filter; optional. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + # The granularity of time intervals if a time series breakdown is desired; # optional. # Corresponds to the JSON property `timeSeriesGranularity` @@ -1614,8 +1590,8 @@ module Google @absolute_date_range = args[:absolute_date_range] if args.key?(:absolute_date_range) @buyer_account_id = args[:buyer_account_id] if args.key?(:buyer_account_id) @environment = args[:environment] if args.key?(:environment) - @format = args[:format] if args.key?(:format) @deal_id = args[:deal_id] if args.key?(:deal_id) + @format = args[:format] if args.key?(:format) @time_series_granularity = args[:time_series_granularity] if args.key?(:time_series_granularity) @filter_set_id = args[:filter_set_id] if args.key?(:filter_set_id) @realtime_time_range = args[:realtime_time_range] if args.key?(:realtime_time_range) @@ -1625,43 +1601,6 @@ module Google end end - # The number of impressions with the specified dimension values where the - # corresponding bid request or bid response was not successful, as described by - # the specified callout status. - class CalloutStatusRow - include Google::Apis::Core::Hashable - - # A response may include multiple rows, breaking down along various dimensions. - # Encapsulates the values of all dimensions for a given row. - # Corresponds to the JSON property `rowDimensions` - # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] - attr_accessor :row_dimensions - - # The ID of the callout status. - # See [callout-status-codes](https://developers.google.com/ad-exchange/rtb/ - # downloads/callout-status-codes). - # Corresponds to the JSON property `calloutStatusId` - # @return [Fixnum] - attr_accessor :callout_status_id - - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `impressionCount` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :impression_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) - @callout_status_id = args[:callout_status_id] if args.key?(:callout_status_id) - @impression_count = args[:impression_count] if args.key?(:impression_count) - end - end - # A response for listing creative and deal associations class ListDealAssociationsResponse include Google::Apis::Core::Hashable @@ -1691,16 +1630,40 @@ module Google end end - # A request for stopping notifications for changes to creative Status. - class StopWatchingCreativeRequest + # The number of impressions with the specified dimension values where the + # corresponding bid request or bid response was not successful, as described by + # the specified callout status. + class CalloutStatusRow include Google::Apis::Core::Hashable + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `impressionCount` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :impression_count + + # A response may include multiple rows, breaking down along various dimensions. + # Encapsulates the values of all dimensions for a given row. + # Corresponds to the JSON property `rowDimensions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] + attr_accessor :row_dimensions + + # The ID of the callout status. + # See [callout-status-codes](https://developers.google.com/ad-exchange/rtb/ + # downloads/callout-status-codes). + # Corresponds to the JSON property `calloutStatusId` + # @return [Fixnum] + attr_accessor :callout_status_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @impression_count = args[:impression_count] if args.key?(:impression_count) + @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) + @callout_status_id = args[:callout_status_id] if args.key?(:callout_status_id) end end @@ -1729,6 +1692,19 @@ module Google end end + # A request for stopping notifications for changes to creative Status. + class StopWatchingCreativeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # @OutputOnly A representation of the status of an ad in a # specific context. A context here relates to where something ultimately serves # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, @@ -1736,6 +1712,15 @@ module Google class ServingRestriction include Google::Apis::Core::Hashable + # Any disapprovals bound to this restriction. + # Only present if status=DISAPPROVED. + # Can be used to filter the response of the + # creatives.list + # method. + # Corresponds to the JSON property `disapprovalReasons` + # @return [Array] + attr_accessor :disapproval_reasons + # The contexts for the restriction. # Corresponds to the JSON property `contexts` # @return [Array] @@ -1747,24 +1732,15 @@ module Google # @return [String] attr_accessor :status - # Any disapprovals bound to this restriction. - # Only present if status=DISAPPROVED. - # Can be used to filter the response of the - # creatives.list - # method. - # Corresponds to the JSON property `disapprovalReasons` - # @return [Array] - attr_accessor :disapproval_reasons - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) @contexts = args[:contexts] if args.key?(:contexts) @status = args[:status] if args.key?(:status) - @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) end end @@ -1778,18 +1754,18 @@ module Google class Date include Google::Apis::Core::Hashable - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 # if specifying a year/month where the day is not significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + # Month of year. Must be from 1 to 12. # Corresponds to the JSON property `month` # @return [Fixnum] @@ -1801,8 +1777,8 @@ module Google # Update properties of this object def update!(**args) - @year = args[:year] if args.key?(:year) @day = args[:day] if args.key?(:day) + @year = args[:year] if args.key?(:year) @month = args[:month] if args.key?(:month) end end @@ -1855,44 +1831,6 @@ module Google end end - # Response message for listing all details associated with a given filtered bid - # reason and a given creative. - class ListCreativeStatusAndCreativeBreakdownByDetailResponse - include Google::Apis::Core::Hashable - - # List of rows, with counts of bids with a given creative status and - # creative, aggregated by detail. - # Corresponds to the JSON property `filteredBidDetailRows` - # @return [Array] - attr_accessor :filtered_bid_detail_rows - - # A token to retrieve the next page of results. - # Pass this value in the - # ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken - # field in the subsequent call to the - # accounts.filterSets.filteredBids.creatives.details.list - # method to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The type of detail that the detail IDs represent. - # Corresponds to the JSON property `detailType` - # @return [String] - attr_accessor :detail_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @filtered_bid_detail_rows = args[:filtered_bid_detail_rows] if args.key?(:filtered_bid_detail_rows) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @detail_type = args[:detail_type] if args.key?(:detail_type) - end - end - # @OutputOnly The app type the restriction applies to for mobile device. class AppContext include Google::Apis::Core::Hashable @@ -1917,12 +1855,6 @@ module Google class ListFilteredBidsResponse include Google::Apis::Core::Hashable - # List of rows, with counts of filtered bids aggregated by filtering reason - # (i.e. creative status). - # Corresponds to the JSON property `creativeStatusRows` - # @return [Array] - attr_accessor :creative_status_rows - # A token to retrieve the next page of results. # Pass this value in the # ListFilteredBidsRequest.pageToken @@ -1933,14 +1865,20 @@ module Google # @return [String] attr_accessor :next_page_token + # List of rows, with counts of filtered bids aggregated by filtering reason + # (i.e. creative status). + # Corresponds to the JSON property `creativeStatusRows` + # @return [Array] + attr_accessor :creative_status_rows + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @creative_status_rows = args[:creative_status_rows] if args.key?(:creative_status_rows) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @creative_status_rows = args[:creative_status_rows] if args.key?(:creative_status_rows) end end @@ -1963,66 +1901,6 @@ module Google end end - # HTML content for a creative. - class HtmlContent - include Google::Apis::Core::Hashable - - # The height of the HTML snippet in pixels. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # The width of the HTML snippet in pixels. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - # The HTML snippet that displays the ad when inserted in the web page. - # Corresponds to the JSON property `snippet` - # @return [String] - attr_accessor :snippet - - 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) - @snippet = args[:snippet] if args.key?(:snippet) - end - end - - # A response for listing creatives. - class ListCreativesResponse - include Google::Apis::Core::Hashable - - # A token to retrieve the next page of results. - # Pass this value in the - # ListCreativesRequest.page_token - # field in the subsequent call to `ListCreatives` method to retrieve the next - # page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of creatives. - # Corresponds to the JSON property `creatives` - # @return [Array] - attr_accessor :creatives - - 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) - @creatives = args[:creatives] if args.key?(:creatives) - end - end - # Response message for listing all reasons that bid requests were filtered and # not sent to the buyer. class ListFilteredBidRequestsResponse @@ -2055,15 +1933,70 @@ module Google end end + # A response for listing creatives. + class ListCreativesResponse + include Google::Apis::Core::Hashable + + # The list of creatives. + # Corresponds to the JSON property `creatives` + # @return [Array] + attr_accessor :creatives + + # A token to retrieve the next page of results. + # Pass this value in the + # ListCreativesRequest.page_token + # field in the subsequent call to `ListCreatives` method to retrieve the next + # page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creatives = args[:creatives] if args.key?(:creatives) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # HTML content for a creative. + class HtmlContent + include Google::Apis::Core::Hashable + + # The height of the HTML snippet in pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # The width of the HTML snippet in pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + # The HTML snippet that displays the ad when inserted in the web page. + # Corresponds to the JSON property `snippet` + # @return [String] + attr_accessor :snippet + + 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) + @snippet = args[:snippet] if args.key?(:snippet) + end + end + # Response message for listing the metrics that are measured in number of bids. class ListBidMetricsResponse include Google::Apis::Core::Hashable - # List of rows, each containing a set of bid metrics. - # Corresponds to the JSON property `bidMetricsRows` - # @return [Array] - attr_accessor :bid_metrics_rows - # A token to retrieve the next page of results. # Pass this value in the # ListBidMetricsRequest.pageToken @@ -2074,14 +2007,19 @@ module Google # @return [String] attr_accessor :next_page_token + # List of rows, each containing a set of bid metrics. + # Corresponds to the JSON property `bidMetricsRows` + # @return [Array] + attr_accessor :bid_metrics_rows + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @bid_metrics_rows = args[:bid_metrics_rows] if args.key?(:bid_metrics_rows) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @bid_metrics_rows = args[:bid_metrics_rows] if args.key?(:bid_metrics_rows) end end @@ -2114,6 +2052,25 @@ module Google end end + # Video content for a creative. + class VideoContent + include Google::Apis::Core::Hashable + + # The URL to fetch a video ad. + # Corresponds to the JSON property `videoUrl` + # @return [String] + attr_accessor :video_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @video_url = args[:video_url] if args.key?(:video_url) + end + end + # Response message for listing all reasons that bids lost in the auction. class ListLosingBidsResponse include Google::Apis::Core::Hashable @@ -2145,14 +2102,25 @@ module Google end end - # Video content for a creative. - class VideoContent + # Response message for listing all reasons for which a buyer was not billed for + # a winning bid. + class ListNonBillableWinningBidsResponse include Google::Apis::Core::Hashable - # The URL to fetch a video ad. - # Corresponds to the JSON property `videoUrl` + # A token to retrieve the next page of results. + # Pass this value in the + # ListNonBillableWinningBidsRequest.pageToken + # field in the subsequent call to the + # accounts.filterSets.nonBillableWinningBids.list + # method to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` # @return [String] - attr_accessor :video_url + attr_accessor :next_page_token + + # List of rows, with counts of bids not billed aggregated by reason. + # Corresponds to the JSON property `nonBillableWinningBidStatusRows` + # @return [Array] + attr_accessor :non_billable_winning_bid_status_rows def initialize(**args) update!(**args) @@ -2160,7 +2128,8 @@ module Google # Update properties of this object def update!(**args) - @video_url = args[:video_url] if args.key?(:video_url) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @non_billable_winning_bid_status_rows = args[:non_billable_winning_bid_status_rows] if args.key?(:non_billable_winning_bid_status_rows) end end @@ -2170,18 +2139,18 @@ module Google class ImpressionMetricsRow include Google::Apis::Core::Hashable - # A metric value, with an expected value and a variance; represents a count - # that may be either exact or estimated (i.e. when sampled). - # Corresponds to the JSON property `availableImpressions` - # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] - attr_accessor :available_impressions - # A response may include multiple rows, breaking down along various dimensions. # Encapsulates the values of all dimensions for a given row. # Corresponds to the JSON property `rowDimensions` # @return [Google::Apis::Adexchangebuyer2V2beta1::RowDimensions] attr_accessor :row_dimensions + # A metric value, with an expected value and a variance; represents a count + # that may be either exact or estimated (i.e. when sampled). + # Corresponds to the JSON property `availableImpressions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue] + attr_accessor :available_impressions + # A metric value, with an expected value and a variance; represents a count # that may be either exact or estimated (i.e. when sampled). # Corresponds to the JSON property `inventoryMatches` @@ -2212,8 +2181,8 @@ module Google # Update properties of this object def update!(**args) - @available_impressions = args[:available_impressions] if args.key?(:available_impressions) @row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions) + @available_impressions = args[:available_impressions] if args.key?(:available_impressions) @inventory_matches = args[:inventory_matches] if args.key?(:inventory_matches) @bid_requests = args[:bid_requests] if args.key?(:bid_requests) @responses_with_bids = args[:responses_with_bids] if args.key?(:responses_with_bids) diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index f11ac8fd4..fba238772 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -34,12 +34,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ImpressionStatusRow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BidMetricsRow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -64,6 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NonBillableWinningBidStatusRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FilteredBidDetailRow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,12 +220,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListFilteredImpressionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListCreativeStatusBreakdownByCreativeResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -250,19 +244,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CalloutStatusRow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListDealAssociationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StopWatchingCreativeRequest + class CalloutStatusRow class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -274,6 +262,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StopWatchingCreativeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ServingRestriction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -298,12 +292,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListCreativeStatusAndCreativeBreakdownByDetailResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AppContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,7 +310,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class HtmlContent + class ListFilteredBidRequestsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -334,7 +322,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListFilteredBidRequestsResponse + class HtmlContent class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -352,13 +340,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VideoContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLosingBidsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class VideoContent + class ListNonBillableWinningBidsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -386,32 +380,23 @@ module Google end end - class ImpressionStatusRow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - - property :status, as: 'status' - property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation - - end - end - class BidMetricsRow # @private class Representation < Google::Apis::Core::JsonRepresentation + property :impressions_won, as: 'impressionsWon', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + + property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + + property :measurable_impressions, as: 'measurableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + + property :bids, as: 'bids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + property :billed_impressions, as: 'billedImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :bids_in_auction, as: 'bidsInAuction', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation - property :impressions_won, as: 'impressionsWon', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - - property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - - property :bids, as: 'bids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - end end @@ -442,13 +427,24 @@ module Google end end + class NonBillableWinningBidStatusRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation + + property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + + property :status, as: 'status' + end + end + class FilteredBidDetailRow # @private class Representation < Google::Apis::Core::JsonRepresentation - property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation property :detail_id, as: 'detailId' - property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation + property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation end end @@ -456,10 +452,10 @@ module Google class AbsoluteDateRange # @private class Representation < Google::Apis::Core::JsonRepresentation - property :end_date, as: 'endDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation - property :start_date, as: 'startDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation + property :end_date, as: 'endDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation + end end @@ -489,19 +485,19 @@ module Google class FilteredBidCreativeRow # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + property :creative_id, as: 'creativeId' property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation - property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - end end class RelativeDateRange # @private class Representation < Google::Apis::Core::JsonRepresentation - property :offset_days, as: 'offsetDays' property :duration_days, as: 'durationDays' + property :offset_days, as: 'offsetDays' end end @@ -517,37 +513,41 @@ module Google class NativeContent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :call_to_action, as: 'callToAction' property :body, as: 'body' property :star_rating, as: 'starRating' property :video_url, as: 'videoUrl' - property :click_link_url, as: 'clickLinkUrl' property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation + property :click_link_url, as: 'clickLinkUrl' property :price_display_text, as: 'priceDisplayText' + property :click_tracking_url, as: 'clickTrackingUrl' property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation - property :click_tracking_url, as: 'clickTrackingUrl' property :advertiser_name, as: 'advertiserName' property :store_url, as: 'storeUrl' property :headline, as: 'headline' property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation - property :call_to_action, as: 'callToAction' end end class ListBidResponsesWithoutBidsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :bid_response_without_bids_status_rows, as: 'bidResponseWithoutBidsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow::Representation - property :next_page_token, as: 'nextPageToken' end end class ServingContext # @private class Representation < Google::Apis::Core::JsonRepresentation + property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation + + property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation + property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation @@ -555,10 +555,6 @@ module Google property :all, as: 'all' property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation - property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation - - property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation - end end @@ -594,9 +590,9 @@ module Google class ClientUserInvitation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :email, as: 'email' property :client_account_id, :numeric_string => true, as: 'clientAccountId' property :invitation_id, :numeric_string => true, as: 'invitationId' + property :email, as: 'email' end end @@ -612,19 +608,19 @@ module Google class ListClientUsersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation + property :next_page_token, as: 'nextPageToken' end end class ListCreativeStatusBreakdownByDetailResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :detail_type, as: 'detailType' + property :next_page_token, as: 'nextPageToken' collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation - property :next_page_token, as: 'nextPageToken' + property :detail_type, as: 'detailType' end end @@ -654,8 +650,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :status, as: 'status' - property :user_id, :numeric_string => true, as: 'userId' property :email, as: 'email' + property :user_id, :numeric_string => true, as: 'userId' property :client_account_id, :numeric_string => true, as: 'clientAccountId' end end @@ -663,20 +659,15 @@ module Google class CreativeDealAssociation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' property :creative_id, as: 'creativeId' property :deals_id, as: 'dealsId' - property :account_id, as: 'accountId' end end class Creative # @private class Representation < Google::Apis::Core::JsonRepresentation - property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation - - collection :attributes, as: 'attributes' - property :api_update_time, as: 'apiUpdateTime' - collection :detected_languages, as: 'detectedLanguages' property :creative_id, as: 'creativeId' property :account_id, as: 'accountId' property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation @@ -703,16 +694,21 @@ module Google property :advertiser_name, as: 'advertiserName' collection :detected_advertiser_ids, as: 'detectedAdvertiserIds' collection :detected_domains, as: 'detectedDomains' + property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation + + collection :attributes, as: 'attributes' + property :api_update_time, as: 'apiUpdateTime' + collection :detected_languages, as: 'detectedLanguages' end end class FilteringStats # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation - property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation + collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation + end end @@ -724,15 +720,6 @@ module Google end end - class ListFilteredImpressionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :impressions_status_rows, as: 'impressionsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow::Representation - - end - end - class ListCreativeStatusBreakdownByCreativeResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -745,24 +732,24 @@ module Google class Client # @private class Representation < Google::Apis::Core::JsonRepresentation - property :entity_type, as: 'entityType' - property :client_name, as: 'clientName' - property :role, as: 'role' property :visible_to_seller, as: 'visibleToSeller' property :entity_id, :numeric_string => true, as: 'entityId' property :client_account_id, :numeric_string => true, as: 'clientAccountId' property :entity_name, as: 'entityName' property :status, as: 'status' + property :entity_type, as: 'entityType' + property :client_name, as: 'clientName' + property :role, as: 'role' end end class Correction # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' property :type, as: 'type' collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation + collection :details, as: 'details' end end @@ -775,8 +762,8 @@ module Google property :buyer_account_id, :numeric_string => true, as: 'buyerAccountId' property :environment, as: 'environment' - property :format, as: 'format' property :deal_id, :numeric_string => true, as: 'dealId' + property :format, as: 'format' property :time_series_granularity, as: 'timeSeriesGranularity' property :filter_set_id, :numeric_string => true, as: 'filterSetId' property :realtime_time_range, as: 'realtimeTimeRange', class: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange::Representation @@ -788,17 +775,6 @@ module Google end end - class CalloutStatusRow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation - - property :callout_status_id, as: 'calloutStatusId' - property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - - end - end - class ListDealAssociationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -808,9 +784,14 @@ module Google end end - class StopWatchingCreativeRequest + class CalloutStatusRow # @private class Representation < Google::Apis::Core::JsonRepresentation + property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + + property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation + + property :callout_status_id, as: 'calloutStatusId' end end @@ -822,22 +803,28 @@ module Google end end + class StopWatchingCreativeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class ServingRestriction # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation + collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation property :status, as: 'status' - collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation - end end class Date # @private class Representation < Google::Apis::Core::JsonRepresentation - property :year, as: 'year' property :day, as: 'day' + property :year, as: 'year' property :month, as: 'month' end end @@ -856,16 +843,6 @@ module Google end end - class ListCreativeStatusAndCreativeBreakdownByDetailResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation - - property :next_page_token, as: 'nextPageToken' - property :detail_type, as: 'detailType' - end - end - class AppContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -876,9 +853,9 @@ module Google class ListFilteredBidsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :creative_status_rows, as: 'creativeStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -889,24 +866,6 @@ module Google end end - class HtmlContent - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :height, as: 'height' - property :width, as: 'width' - property :snippet, as: 'snippet' - end - end - - class ListCreativesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation - - end - end - class ListFilteredBidRequestsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -916,12 +875,30 @@ module Google end end + class ListCreativesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class HtmlContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :width, as: 'width' + property :snippet, as: 'snippet' + end + end + class ListBidMetricsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :bid_metrics_rows, as: 'bidMetricsRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -933,6 +910,13 @@ module Google end end + class VideoContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :video_url, as: 'videoUrl' + end + end + class ListLosingBidsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -942,20 +926,22 @@ module Google end end - class VideoContent + class ListNonBillableWinningBidsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :video_url, as: 'videoUrl' + property :next_page_token, as: 'nextPageToken' + collection :non_billable_winning_bid_status_rows, as: 'nonBillableWinningBidStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::NonBillableWinningBidStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::NonBillableWinningBidStatusRow::Representation + end end class ImpressionMetricsRow # @private class Representation < Google::Apis::Core::JsonRepresentation - property :available_impressions, as: 'availableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation - property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation + property :available_impressions, as: 'availableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation + property :inventory_matches, as: 'inventoryMatches', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :bid_requests, as: 'bidRequests', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb index e0c63947d..c567325d4 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb @@ -48,18 +48,18 @@ module Google @batch_path = 'batch' end - # Updates a creative. - # @param [String] account_id - # The account that this creative belongs to. - # Can be used to filter the response of the - # creatives.list - # method. - # @param [String] creative_id - # The buyer-defined creative ID of this creative. - # Can be used to filter the response of the - # creatives.list - # method. - # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object + # Lists all the clients for the current sponsor buyer. + # @param [Fixnum] account_id + # Unique numerical account ID of the sponsor buyer to list the clients for. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer clients than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListClientsResponse.nextPageToken + # returned from the previous call to the + # accounts.clients.list method. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -69,57 +69,31 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative] + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation - command.request_object = creative_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative + def list_account_clients(account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse command.params['accountId'] = account_id unless account_id.nil? - command.params['creativeId'] = creative_id unless creative_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 - # Lists creatives. - # @param [String] account_id - # The account to list the creatives from. - # Specify "-" to list all creatives the current user has access to. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListCreativesResponse.next_page_token - # returned from the previous call to 'ListCreatives' method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer creatives than requested - # (due to timeout constraint) even if more are available via another call. - # If unspecified, server will pick an appropriate default. - # Acceptable values are 1 to 1000, inclusive. - # @param [String] query - # An optional query string to filter creatives. If no filter is specified, - # all active creatives will be returned. - # Supported queries are: - #
    - #
  • accountId=account_id_string - #
  • creativeId=creative_id_string - #
  • dealsStatus: `approved, conditionally_approved, disapproved, - # not_checked` - #
  • openAuctionStatus: `approved, conditionally_approved, disapproved, - # not_checked` - #
  • attribute: `a numeric attribute from the list of attributes` - #
  • disapprovalReason: `a reason from DisapprovalReason - #
- # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason: - # unacceptable_content) OR attribute:47' + # Gets a client buyer with a given client account ID. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [Fixnum] client_account_id + # Numerical account ID of the client buyer to retrieve. (required) # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -129,22 +103,345 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] + # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse + def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_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 + + # Updates an existing client buyer. + # @param [Fixnum] account_id + # Unique numerical account ID for the buyer of which the client buyer + # is a customer; the sponsor buyer to update a client for. (required) + # @param [Fixnum] client_account_id + # Unique numerical account ID of the client to update. (required) + # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_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::Adexchangebuyer2V2beta1::Client] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation + command.request_object = client_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_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 + + # Creates a new client buyer. + # @param [Fixnum] account_id + # Unique numerical account ID for the buyer of which the client buyer + # is a customer; the sponsor buyer to create a client for. (required) + # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_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::Adexchangebuyer2V2beta1::Client] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation + command.request_object = client_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client + command.params['accountId'] = account_id unless account_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 all the client users invitations for a client + # with a given account ID. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [String] client_account_id + # Numerical account ID of the client buyer to list invitations for. + # (required) + # You must either specify a string representation of a + # numerical account identifier or the `-` character + # to list all the invitations for all the clients + # of a given sponsor buyer. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListClientUserInvitationsResponse.nextPageToken + # returned from the previous call to the + # clients.invitations.list + # method. + # @param [Fixnum] page_size + # Requested page size. Server may return fewer clients than requested. + # If unspecified, server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_id.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['query'] = query unless query.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an existing client user invitation. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [Fixnum] client_account_id + # Numerical account ID of the client buyer that the user invitation + # to be retrieved is associated with. (required) + # @param [Fixnum] invitation_id + # Numerical identifier of the user invitation to retrieve. (required) + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_id.nil? + command.params['invitationId'] = invitation_id unless invitation_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 + + # Creates and sends out an email invitation to access + # an Ad Exchange client buyer account. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [Fixnum] client_account_id + # Numerical account ID of the client buyer that the user + # should be associated with. (required) + # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_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::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation + command.request_object = client_user_invitation_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_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 + + # Retrieves an existing client user. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [Fixnum] client_account_id + # Numerical account ID of the client buyer + # that the user to be retrieved is associated with. (required) + # @param [Fixnum] user_id + # Numerical identifier of the user to retrieve. (required) + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ClientUser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_id.nil? + command.params['userId'] = user_id unless user_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 all the known client users for a specified + # sponsor buyer account ID. + # @param [Fixnum] account_id + # Numerical account ID of the sponsor buyer of the client to list users for. + # (required) + # @param [String] client_account_id + # The account ID of the client buyer to list users for. (required) + # You must specify either a string representation of a + # numerical account identifier or the `-` character + # to list all the client users for all the clients + # of a given sponsor buyer. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListClientUsersResponse.nextPageToken + # returned from the previous call to the + # accounts.clients.users.list method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer clients than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing client user. + # Only the user status can be changed on update. + # @param [Fixnum] account_id + # Numerical account ID of the client's sponsor buyer. (required) + # @param [Fixnum] client_account_id + # Numerical account ID of the client buyer that the user to be retrieved + # is associated with. (required) + # @param [Fixnum] user_id + # Numerical identifier of the user to retrieve. (required) + # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_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::Adexchangebuyer2V2beta1::ClientUser] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation + command.request_object = client_user_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser + command.params['accountId'] = account_id unless account_id.nil? + command.params['clientAccountId'] = client_account_id unless client_account_id.nil? + command.params['userId'] = user_id unless user_id.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -302,6 +599,108 @@ module Google execute_or_queue_command(command, &block) end + # Updates a creative. + # @param [String] account_id + # The account that this creative belongs to. + # Can be used to filter the response of the + # creatives.list + # method. + # @param [String] creative_id + # The buyer-defined creative ID of this creative. + # Can be used to filter the response of the + # creatives.list + # method. + # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_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::Adexchangebuyer2V2beta1::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::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 update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation + command.request_object = creative_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative + command.params['accountId'] = account_id unless account_id.nil? + command.params['creativeId'] = creative_id unless creative_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 creatives. + # @param [String] account_id + # The account to list the creatives from. + # Specify "-" to list all creatives the current user has access to. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListCreativesResponse.next_page_token + # returned from the previous call to 'ListCreatives' method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer creatives than requested + # (due to timeout constraint) even if more are available via another call. + # If unspecified, server will pick an appropriate default. + # Acceptable values are 1 to 1000, inclusive. + # @param [String] query + # An optional query string to filter creatives. If no filter is specified, + # all active creatives will be returned. + # Supported queries are: + #
    + #
  • accountId=account_id_string + #
  • creativeId=creative_id_string + #
  • dealsStatus: `approved, conditionally_approved, disapproved, + # not_checked` + #
  • openAuctionStatus: `approved, conditionally_approved, disapproved, + # not_checked` + #
  • attribute: `a numeric attribute from the list of attributes` + #
  • disapprovalReason: `a reason from DisapprovalReason + #
+ # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason: + # unacceptable_content) OR attribute:47' + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['query'] = query unless query.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # List all creative-deal associations. # @param [String] account_id # The account to list the associations from. @@ -362,42 +761,6 @@ module Google execute_or_queue_command(command, &block) end - # Associate an existing deal with a creative. - # @param [String] account_id - # The account the creative belongs to. - # @param [String] creative_id - # The ID of the creative associated with the deal. - # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_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::Adexchangebuyer2V2beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::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 add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation - command.request_object = add_deal_association_request_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty - command.params['accountId'] = account_id unless account_id.nil? - command.params['creativeId'] = creative_id unless creative_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 - # Remove the association between a deal and a creative. # @param [String] account_id # The account the creative belongs to. @@ -434,6 +797,42 @@ module Google execute_or_queue_command(command, &block) end + # Associate an existing deal with a creative. + # @param [String] account_id + # The account the creative belongs to. + # @param [String] creative_id + # The ID of the creative associated with the deal. + # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_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::Adexchangebuyer2V2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::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 add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation + command.request_object = add_deal_association_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty + command.params['accountId'] = account_id unless account_id.nil? + command.params['creativeId'] = creative_id unless creative_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 + # Deletes the requested filter set from the account with the given account # ID. # @param [Fixnum] account_id @@ -468,6 +867,48 @@ module Google execute_or_queue_command(command, &block) end + # Lists all filter sets for the account with the given account ID. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListFilterSetsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_sets(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the requested filter set for the account with the given account # ID. # @param [Fixnum] account_id @@ -502,48 +943,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists all filter sets for the account with the given account ID. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListFilterSetsResponse.nextPageToken - # returned from the previous call to the - # accounts.rtbBreakout.filterSets.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_sets(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - # Creates the specified filter set for the account with the given account ID. # @param [Fixnum] account_id # Account ID of the buyer. @@ -582,6 +981,234 @@ module Google execute_or_queue_command(command, &block) end + # Lists all metrics that are measured in terms of number of bids. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [Fixnum] filter_set_id + # The ID of the filter set to apply. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListBidMetricsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.bidMetrics.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidMetrics', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.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 all metrics that are measured in terms of number of impressions. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [Fixnum] filter_set_id + # The ID of the filter set to apply. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListImpressionMetricsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.impressionMetrics.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_impression_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/impressionMetrics', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # List all errors that occurred in bid responses, with the number of bid + # responses affected for each reason. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [Fixnum] filter_set_id + # The ID of the filter set to apply. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListBidResponseErrorsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.bidResponseErrors.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_response_errors(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponseErrors', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # List all reasons for which bid responses were considered to have no + # applicable bids, with the number of bid responses affected for each reason. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [Fixnum] filter_set_id + # The ID of the filter set to apply. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListBidResponsesWithoutBidsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.bidResponsesWithoutBids.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_responses_without_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponsesWithoutBids', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # List all reasons that caused a bid request not to be sent for an + # impression, with the number of bid requests not sent for each reason. + # @param [Fixnum] account_id + # Account ID of the buyer. + # @param [Fixnum] filter_set_id + # The ID of the filter set to apply. + # @param [String] page_token + # A token identifying a page of results the server should return. + # Typically, this is the value of + # ListFilteredBidRequestsResponse.nextPageToken + # returned from the previous call to the + # accounts.filterSets.filteredBidRequests.list + # method. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] quota_user + # Available 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::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_filtered_bid_requests(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBidRequests', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # List all reasons for which bids were filtered, with the number of bids # filtered for each reason. # @param [Fixnum] account_id @@ -596,7 +1223,7 @@ module Google # accounts.filterSets.filteredBids.list # method. # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. + # Requested page size. The server may return fewer results than requested. # If unspecified, the server will pick an appropriate default. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -648,7 +1275,7 @@ module Google # accounts.filterSets.filteredBids.creatives.list # method. # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. + # Requested page size. The server may return fewer results than requested. # If unspecified, the server will pick an appropriate default. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -681,62 +1308,6 @@ module Google execute_or_queue_command(command, &block) end - # List all details associated with a specific reason for which bids were - # filtered and a specific creative that was filtered for that reason, with - # the number of bids filtered for each detail. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [Fixnum] creative_status_id - # The ID of the creative status for which to retrieve a breakdown by detail. - # See - # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/ - # downloads/creative-status-codes). - # @param [String] creative_id - # The creative ID for which to retrieve a breakdown by detail. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.filteredBids.creatives.details.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_filtered_bid_creative_details(account_id, filter_set_id, creative_status_id, creative_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil? - command.params['creativeId'] = creative_id unless creative_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - # List all details associated with a specific reason for which bids were # filtered, with the number of bids filtered for each detail. # @param [Fixnum] account_id @@ -748,6 +1319,7 @@ module Google # See # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/ # downloads/creative-status-codes). + # Details are only available for statuses 14, 15, 17, 18, 19, 86, and 87. # @param [String] page_token # A token identifying a page of results the server should return. # Typically, this is the value of @@ -756,7 +1328,7 @@ module Google # accounts.filterSets.filteredBids.details.list # method. # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. + # Requested page size. The server may return fewer results than requested. # If unspecified, the server will pick an appropriate default. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -789,9 +1361,8 @@ module Google execute_or_queue_command(command, &block) end - # List all reasons that caused an impression to be filtered (i.e. not - # considered as an inventory match), with the number of impressions that were - # filtered for each reason. + # List all reasons for which winning bids were not billable, with the number + # of bids not billed for each reason. # @param [Fixnum] account_id # Account ID of the buyer. # @param [Fixnum] filter_set_id @@ -799,12 +1370,12 @@ module Google # @param [String] page_token # A token identifying a page of results the server should return. # Typically, this is the value of - # ListFilteredImpressionsResponse.nextPageToken + # ListNonBillableWinningBidsResponse.nextPageToken # returned from the previous call to the - # accounts.filterSets.filteredImpressions.list + # accounts.filterSets.nonBillableWinningBids.list # method. # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. + # Requested page size. The server may return fewer results than requested. # If unspecified, the server will pick an appropriate default. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -815,18 +1386,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse] parsed result object + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse] + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_filtered_impressions(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredImpressions', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse + def list_account_filter_set_non_billable_winning_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/nonBillableWinningBids', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse command.params['accountId'] = account_id unless account_id.nil? command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -842,6 +1413,9 @@ module Google # Account ID of the buyer. # @param [Fixnum] filter_set_id # The ID of the filter set to apply. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. # Typically, this is the value of @@ -849,9 +1423,6 @@ module Google # returned from the previous call to the # accounts.filterSets.losingBids.list # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -869,645 +1440,18 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_filter_set_losing_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_account_filter_set_losing_bids(account_id, filter_set_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/losingBids', options) command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse::Representation command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse command.params['accountId'] = account_id unless account_id.nil? command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.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 all metrics that are measured in terms of number of impressions. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListImpressionMetricsResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.impressionMetrics.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_impression_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/impressionMetrics', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.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 all metrics that are measured in terms of number of bids. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListBidMetricsResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.bidMetrics.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidMetrics', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # List all errors that occurred in bid responses, with the number of bid - # responses affected for each reason. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListBidResponseErrorsResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.bidResponseErrors.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_response_errors(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponseErrors', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # List all reasons for which bid responses were considered to have no - # applicable bids, with the number of bid responses affected for each reason. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListBidResponsesWithoutBidsResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.bidResponsesWithoutBids.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_bid_responses_without_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponsesWithoutBids', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # List all reasons that caused a bid request not to be sent for an - # impression, with the number of bid requests not sent for each reason. - # @param [Fixnum] account_id - # Account ID of the buyer. - # @param [Fixnum] filter_set_id - # The ID of the filter set to apply. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListFilteredBidRequestsResponse.nextPageToken - # returned from the previous call to the - # accounts.filterSets.filteredBidRequests.list - # method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_filter_set_filtered_bid_requests(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBidRequests', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['filterSetId'] = filter_set_id unless filter_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.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 a client buyer with a given client account ID. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [Fixnum] client_account_id - # Numerical account ID of the client buyer to retrieve. (required) - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::Client] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_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 all the clients for the current sponsor buyer. - # @param [Fixnum] account_id - # Unique numerical account ID of the sponsor buyer to list the clients for. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListClientsResponse.nextPageToken - # returned from the previous call to the - # accounts.clients.list method. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer clients than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates an existing client buyer. - # @param [Fixnum] account_id - # Unique numerical account ID for the buyer of which the client buyer - # is a customer; the sponsor buyer to update a client for. (required) - # @param [Fixnum] client_account_id - # Unique numerical account ID of the client to update. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_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::Adexchangebuyer2V2beta1::Client] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation - command.request_object = client_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_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 - - # Creates a new client buyer. - # @param [Fixnum] account_id - # Unique numerical account ID for the buyer of which the client buyer - # is a customer; the sponsor buyer to create a client for. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_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::Adexchangebuyer2V2beta1::Client] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::Client] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation - command.request_object = client_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client - command.params['accountId'] = account_id unless account_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 - - # Retrieves an existing client user invitation. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [Fixnum] client_account_id - # Numerical account ID of the client buyer that the user invitation - # to be retrieved is associated with. (required) - # @param [Fixnum] invitation_id - # Numerical identifier of the user invitation to retrieve. (required) - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_id.nil? - command.params['invitationId'] = invitation_id unless invitation_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 all the client users invitations for a client - # with a given account ID. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [String] client_account_id - # Numerical account ID of the client buyer to list invitations for. - # (required) - # You must either specify a string representation of a - # numerical account identifier or the `-` character - # to list all the invitations for all the clients - # of a given sponsor buyer. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer clients than requested. - # If unspecified, server will pick an appropriate default. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListClientUserInvitationsResponse.nextPageToken - # returned from the previous call to the - # clients.invitations.list - # method. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_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 - - # Creates and sends out an email invitation to access - # an Ad Exchange client buyer account. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [Fixnum] client_account_id - # Numerical account ID of the client buyer that the user - # should be associated with. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_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::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation - command.request_object = client_user_invitation_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_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 all the known client users for a specified - # sponsor buyer account ID. - # @param [Fixnum] account_id - # Numerical account ID of the sponsor buyer of the client to list users for. - # (required) - # @param [String] client_account_id - # The account ID of the client buyer to list users for. (required) - # You must specify either a string representation of a - # numerical account identifier or the `-` character - # to list all the client users for all the clients - # of a given sponsor buyer. - # @param [Fixnum] page_size - # Requested page size. The server may return fewer clients than requested. - # If unspecified, the server will pick an appropriate default. - # @param [String] page_token - # A token identifying a page of results the server should return. - # Typically, this is the value of - # ListClientUsersResponse.nextPageToken - # returned from the previous call to the - # accounts.clients.users.list method. - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_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 - - # Retrieves an existing client user. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [Fixnum] client_account_id - # Numerical account ID of the client buyer - # that the user to be retrieved is associated with. (required) - # @param [Fixnum] user_id - # Numerical identifier of the user to retrieve. (required) - # @param [String] quota_user - # Available 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::Adexchangebuyer2V2beta1::ClientUser] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options) - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_id.nil? - command.params['userId'] = user_id unless user_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 - - # Updates an existing client user. - # Only the user status can be changed on update. - # @param [Fixnum] account_id - # Numerical account ID of the client's sponsor buyer. (required) - # @param [Fixnum] client_account_id - # Numerical account ID of the client buyer that the user to be retrieved - # is associated with. (required) - # @param [Fixnum] user_id - # Numerical identifier of the user to retrieve. (required) - # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_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::Adexchangebuyer2V2beta1::ClientUser] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options) - command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation - command.request_object = client_user_object - command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation - command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser - command.params['accountId'] = account_id unless account_id.nil? - command.params['clientAccountId'] = client_account_id unless client_account_id.nil? - command.params['userId'] = user_id unless user_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 protected diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index ad6771207..1bd5fa366 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20170419' + REVISION = '20170530' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 957402f53..1e0a67839 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -2423,6 +2423,11 @@ module Google # @return [String] attr_accessor :kind + # + # Corresponds to the JSON property `languages` + # @return [Object] + attr_accessor :languages + # User's last login time. (Read-only) # Corresponds to the JSON property `lastLoginTime` # @return [DateTime] @@ -2542,6 +2547,7 @@ module Google @is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv) @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup) @kind = args[:kind] if args.key?(:kind) + @languages = args[:languages] if args.key?(:languages) @last_login_time = args[:last_login_time] if args.key?(:last_login_time) @locations = args[:locations] if args.key?(:locations) @name = args[:name] if args.key?(:name) @@ -2814,13 +2820,41 @@ module Google end end + # JSON template for a language entry. + class UserLanguage + include Google::Apis::Core::Hashable + + # Other language. User can provide own language name if there is no + # corresponding Google III language code. If this is set LanguageCode can't be + # set + # Corresponds to the JSON property `customLanguage` + # @return [String] + attr_accessor :custom_language + + # Language Code. Should be used for storing Google III LanguageCode string + # representation for language. Illegal values cause SchemaException. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_language = args[:custom_language] if args.key?(:custom_language) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + # JSON template for a location entry. class UserLocation include Google::Apis::Core::Hashable # Textual location. This is most useful for display purposes to concisely - # describe the location. E.g. "Mountain View, CA", "Near Seattle", "US-NYC-9TH - # 9A209A". + # describe the location. For example, "Mountain View, CA", "Near Seattle", "US- + # NYC-9TH 9A209A". # Corresponds to the JSON property `area` # @return [String] attr_accessor :area @@ -2845,9 +2879,9 @@ module Google # @return [String] attr_accessor :floor_name - # Floor Section. More specific location within the floor. E.g. if a floor is - # divided into sections "A", "B", and "C", this field would identify one of - # those values. + # Floor section. More specific location within the floor. For example, if a + # floor is divided into sections "A", "B", and "C", this field would identify + # one of those values. # Corresponds to the JSON property `floorSection` # @return [String] attr_accessor :floor_section @@ -2957,6 +2991,11 @@ module Google # @return [String] attr_accessor :domain + # The full-time equivalent percent within the organization (100000 = 100%). + # Corresponds to the JSON property `fullTimeEquivalent` + # @return [Fixnum] + attr_accessor :full_time_equivalent + # Location of the organization. This need not be fully qualified address. # Corresponds to the JSON property `location` # @return [String] @@ -3002,6 +3041,7 @@ module Google @department = args[:department] if args.key?(:department) @description = args[:description] if args.key?(:description) @domain = args[:domain] if args.key?(:domain) + @full_time_equivalent = args[:full_time_equivalent] if args.key?(:full_time_equivalent) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @primary = args[:primary] if args.key?(:primary) diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 3d89c8db2..ba3b4a173 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -316,6 +316,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UserLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UserLocation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -993,6 +999,7 @@ module Google property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv' property :is_mailbox_setup, as: 'isMailboxSetup' property :kind, as: 'kind' + property :languages, as: 'languages' property :last_login_time, as: 'lastLoginTime', type: DateTime property :locations, as: 'locations' @@ -1074,6 +1081,14 @@ module Google end end + class UserLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_language, as: 'customLanguage' + property :language_code, as: 'languageCode' + end + end + class UserLocation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1111,6 +1126,7 @@ module Google property :department, as: 'department' property :description, as: 'description' property :domain, as: 'domain' + property :full_time_equivalent, as: 'fullTimeEquivalent' property :location, as: 'location' property :name, as: 'name' property :primary, as: 'primary' diff --git a/generated/google/apis/admin_directory_v1/service.rb b/generated/google/apis/admin_directory_v1/service.rb index b90724a58..7b89b60f3 100644 --- a/generated/google/apis/admin_directory_v1/service.rb +++ b/generated/google/apis/admin_directory_v1/service.rb @@ -286,6 +286,8 @@ module Google # Maximum number of results to return. Default is 100 # @param [String] order_by # Column to use for sorting results + # @param [String] org_unit_path + # Full path of the organization unit or its Id # @param [String] page_token # Token to specify next page in the list # @param [String] projection @@ -317,13 +319,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, org_unit_path: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options) command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices command.params['customerId'] = customer_id unless customer_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? + command.query['orgUnitPath'] = org_unit_path unless org_unit_path.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['projection'] = projection unless projection.nil? command.query['query'] = query unless query.nil? diff --git a/generated/google/apis/admin_reports_v1.rb b/generated/google/apis/admin_reports_v1.rb index 7c1c39749..d7131e15a 100644 --- a/generated/google/apis/admin_reports_v1.rb +++ b/generated/google/apis/admin_reports_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/reports/ module AdminReportsV1 VERSION = 'ReportsV1' - REVISION = '20170320' + REVISION = '20170622' # View audit reports for your G Suite domain AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 0270dc60a..2eb3418b8 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20170607' + REVISION = '20170711' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 9c909db8e..aaa795ab3 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 = '20170607' + REVISION = '20170711' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb index af4f8b48b..4a856a370 100644 --- a/generated/google/apis/analyticsreporting_v4.rb +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ module AnalyticsreportingV4 VERSION = 'V4' - REVISION = '20170531' + REVISION = '20170705' # View your Google Analytics data AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb index 70e0ccf87..98003c938 100644 --- a/generated/google/apis/analyticsreporting_v4/classes.rb +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -22,19 +22,141 @@ module Google module Apis module AnalyticsreportingV4 - # The headers for each of the pivot sections defined in the request. - class PivotHeader + # A segment sequence definition. + class SegmentSequenceStep include Google::Apis::Core::Hashable - # A single pivot section header. - # Corresponds to the JSON property `pivotHeaderEntries` - # @return [Array] - attr_accessor :pivot_header_entries + # A sequence is specified with a list of Or grouped filters which are + # combined with `AND` operator. + # Corresponds to the JSON property `orFiltersForSegment` + # @return [Array] + attr_accessor :or_filters_for_segment - # The total number of groups for this pivot. - # Corresponds to the JSON property `totalPivotGroupsCount` - # @return [Fixnum] - attr_accessor :total_pivot_groups_count + # Specifies if the step immediately precedes or can be any time before the + # next step. + # Corresponds to the JSON property `matchType` + # @return [String] + attr_accessor :match_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment) + @match_type = args[:match_type] if args.key?(:match_type) + end + end + + # [Metrics](https://support.google.com/analytics/answer/1033861) + # are the quantitative measurements. For example, the metric `ga:users` + # indicates the total number of users for the requested time period. + class Metric + include Google::Apis::Core::Hashable + + # Specifies how the metric expression should be formatted, for example + # `INTEGER`. + # Corresponds to the JSON property `formattingType` + # @return [String] + attr_accessor :formatting_type + + # An alias for the metric expression is an alternate name for the + # expression. The alias can be used for filtering and sorting. This field + # is optional and is useful if the expression is not a single metric but + # a complex expression which cannot be used in filtering and sorting. + # The alias is also used in the response column header. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + # A metric expression in the request. An expression is constructed from one + # or more metrics and numbers. Accepted operators include: Plus (+), Minus + # (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, + # Positive cardinal numbers (0-9), can include decimals and is limited to + # 1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the + # metric expression is just a single metric name like `ga:users`. + # Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics + # will result in unexpected results. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @formatting_type = args[:formatting_type] if args.key?(:formatting_type) + @alias = args[:alias] if args.key?(:alias) + @expression = args[:expression] if args.key?(:expression) + end + end + + # The metric values in the pivot region. + class PivotValueRegion + include Google::Apis::Core::Hashable + + # The values of the metrics in each of the pivot regions. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values = args[:values] if args.key?(:values) + end + end + + # The data response corresponding to the request. + class Report + include Google::Apis::Core::Hashable + + # Page token to retrieve the next page of results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The data part of the report. + # Corresponds to the JSON property `data` + # @return [Google::Apis::AnalyticsreportingV4::ReportData] + attr_accessor :data + + # Column headers. + # Corresponds to the JSON property `columnHeader` + # @return [Google::Apis::AnalyticsreportingV4::ColumnHeader] + attr_accessor :column_header + + 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) + @data = args[:data] if args.key?(:data) + @column_header = args[:column_header] if args.key?(:column_header) + end + end + + # The headers for each of the pivot sections defined in the request. + class PivotHeader + include Google::Apis::Core::Hashable + + # The total number of groups for this pivot. + # Corresponds to the JSON property `totalPivotGroupsCount` + # @return [Fixnum] + attr_accessor :total_pivot_groups_count + + # A single pivot section header. + # Corresponds to the JSON property `pivotHeaderEntries` + # @return [Array] + attr_accessor :pivot_header_entries def initialize(**args) update!(**args) @@ -42,8 +164,8 @@ module Google # Update properties of this object def update!(**args) - @pivot_header_entries = args[:pivot_header_entries] if args.key?(:pivot_header_entries) @total_pivot_groups_count = args[:total_pivot_groups_count] if args.key?(:total_pivot_groups_count) + @pivot_header_entries = args[:pivot_header_entries] if args.key?(:pivot_header_entries) end end @@ -74,54 +196,63 @@ module Google end end - # MetricFilter specifies the filter on a metric. - class MetricFilter - include Google::Apis::Core::Hashable - - # The metric that will be filtered on. A metricFilter must contain a metric - # name. A metric name can be an alias earlier defined as a metric or it can - # also be a metric expression. - # Corresponds to the JSON property `metricName` - # @return [String] - attr_accessor :metric_name - - # The value to compare against. - # Corresponds to the JSON property `comparisonValue` - # @return [String] - attr_accessor :comparison_value - - # Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the - # comparisonValue, the default is `EQUAL`. If the operator is - # `IS_MISSING`, checks if the metric is missing and would ignore the - # comparisonValue. - # Corresponds to the JSON property `operator` - # @return [String] - attr_accessor :operator - - # Logical `NOT` operator. If this boolean is set to true, then the matching - # metric values will be excluded in the report. The default is false. - # Corresponds to the JSON property `not` - # @return [Boolean] - attr_accessor :not - alias_method :not?, :not - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric_name = args[:metric_name] if args.key?(:metric_name) - @comparison_value = args[:comparison_value] if args.key?(:comparison_value) - @operator = args[:operator] if args.key?(:operator) - @not = args[:not] if args.key?(:not) - end - end - # The main request class which specifies the Reporting API request. class ReportRequest include Google::Apis::Core::Hashable + # The desired report + # [sample](https://support.google.com/analytics/answer/2637192) size. + # If the the `samplingLevel` field is unspecified the `DEFAULT` sampling + # level is used. Every [ReportRequest](#ReportRequest) within a + # `batchGet` method must contain the same `samplingLevel` definition. See + # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) + # for details. + # Corresponds to the JSON property `samplingLevel` + # @return [String] + attr_accessor :sampling_level + + # The dimensions requested. + # Requests can have a total of 7 dimensions. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # A continuation token to get the next page of the results. Adding this to + # the request will return the rows after the pageToken. The pageToken should + # be the value returned in the nextPageToken parameter in the response to + # the GetReports request. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Date ranges in the request. The request can have a maximum of 2 date + # ranges. The response will contain a set of metric values for each + # combination of the dimensions for each date range in the request. So, if + # there are two date ranges, there will be two set of metric values, one for + # the original date range and one for the second date range. + # The `reportRequest.dateRanges` field should not be specified for cohorts + # or Lifetime value requests. + # If a date range is not provided, the default date range is (startDate: + # current date - 7 days, endDate: current date - 1 day). Every + # [ReportRequest](#ReportRequest) within a `batchGet` method must + # contain the same `dateRanges` definition. + # Corresponds to the JSON property `dateRanges` + # @return [Array] + attr_accessor :date_ranges + + # The pivot definitions. Requests can have a maximum of 2 pivots. + # Corresponds to the JSON property `pivots` + # @return [Array] + attr_accessor :pivots + + # If set to false, the response does not include rows if all the retrieved + # metrics are equal to zero. The default is false which will exclude these + # rows. + # Corresponds to the JSON property `includeEmptyRows` + # @return [Boolean] + attr_accessor :include_empty_rows + alias_method :include_empty_rows?, :include_empty_rows + # The metric filter clauses. They are logically combined with the `AND` # operator. Metric filters look at only the first date range and not the # comparing date range. Note that filtering on metrics occurs after the @@ -224,65 +355,18 @@ module Google # @return [Array] attr_accessor :segments - # The desired report - # [sample](https://support.google.com/analytics/answer/2637192) size. - # If the the `samplingLevel` field is unspecified the `DEFAULT` sampling - # level is used. Every [ReportRequest](#ReportRequest) within a - # `batchGet` method must contain the same `samplingLevel` definition. See - # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) - # for details. - # Corresponds to the JSON property `samplingLevel` - # @return [String] - attr_accessor :sampling_level - - # The dimensions requested. - # Requests can have a total of 7 dimensions. - # Corresponds to the JSON property `dimensions` - # @return [Array] - attr_accessor :dimensions - - # Date ranges in the request. The request can have a maximum of 2 date - # ranges. The response will contain a set of metric values for each - # combination of the dimensions for each date range in the request. So, if - # there are two date ranges, there will be two set of metric values, one for - # the original date range and one for the second date range. - # The `reportRequest.dateRanges` field should not be specified for cohorts - # or Lifetime value requests. - # If a date range is not provided, the default date range is (startDate: - # current date - 7 days, endDate: current date - 1 day). Every - # [ReportRequest](#ReportRequest) within a `batchGet` method must - # contain the same `dateRanges` definition. - # Corresponds to the JSON property `dateRanges` - # @return [Array] - attr_accessor :date_ranges - - # A continuation token to get the next page of the results. Adding this to - # the request will return the rows after the pageToken. The pageToken should - # be the value returned in the nextPageToken parameter in the response to - # the GetReports request. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # The pivot definitions. Requests can have a maximum of 2 pivots. - # Corresponds to the JSON property `pivots` - # @return [Array] - attr_accessor :pivots - - # If set to false, the response does not include rows if all the retrieved - # metrics are equal to zero. The default is false which will exclude these - # rows. - # Corresponds to the JSON property `includeEmptyRows` - # @return [Boolean] - attr_accessor :include_empty_rows - alias_method :include_empty_rows?, :include_empty_rows - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @sampling_level = args[:sampling_level] if args.key?(:sampling_level) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @page_token = args[:page_token] if args.key?(:page_token) + @date_ranges = args[:date_ranges] if args.key?(:date_ranges) + @pivots = args[:pivots] if args.key?(:pivots) + @include_empty_rows = args[:include_empty_rows] if args.key?(:include_empty_rows) @metric_filter_clauses = args[:metric_filter_clauses] if args.key?(:metric_filter_clauses) @page_size = args[:page_size] if args.key?(:page_size) @hide_totals = args[:hide_totals] if args.key?(:hide_totals) @@ -294,12 +378,50 @@ module Google @dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses) @order_bys = args[:order_bys] if args.key?(:order_bys) @segments = args[:segments] if args.key?(:segments) - @sampling_level = args[:sampling_level] if args.key?(:sampling_level) - @dimensions = args[:dimensions] if args.key?(:dimensions) - @date_ranges = args[:date_ranges] if args.key?(:date_ranges) - @page_token = args[:page_token] if args.key?(:page_token) - @pivots = args[:pivots] if args.key?(:pivots) - @include_empty_rows = args[:include_empty_rows] if args.key?(:include_empty_rows) + end + end + + # MetricFilter specifies the filter on a metric. + class MetricFilter + include Google::Apis::Core::Hashable + + # The metric that will be filtered on. A metricFilter must contain a metric + # name. A metric name can be an alias earlier defined as a metric or it can + # also be a metric expression. + # Corresponds to the JSON property `metricName` + # @return [String] + attr_accessor :metric_name + + # The value to compare against. + # Corresponds to the JSON property `comparisonValue` + # @return [String] + attr_accessor :comparison_value + + # Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the + # comparisonValue, the default is `EQUAL`. If the operator is + # `IS_MISSING`, checks if the metric is missing and would ignore the + # comparisonValue. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # Logical `NOT` operator. If this boolean is set to true, then the matching + # metric values will be excluded in the report. The default is false. + # Corresponds to the JSON property `not` + # @return [Boolean] + attr_accessor :not + alias_method :not?, :not + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric_name = args[:metric_name] if args.key?(:metric_name) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) + @operator = args[:operator] if args.key?(:operator) + @not = args[:not] if args.key?(:not) end end @@ -381,6 +503,12 @@ module Google class DynamicSegment include Google::Apis::Core::Hashable + # SegmentDefinition defines the segment to be a set of SegmentFilters which + # are combined together with a logical `AND` operation. + # Corresponds to the JSON property `userSegment` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] + attr_accessor :user_segment + # SegmentDefinition defines the segment to be a set of SegmentFilters which # are combined together with a logical `AND` operation. # Corresponds to the JSON property `sessionSegment` @@ -392,21 +520,15 @@ module Google # @return [String] attr_accessor :name - # SegmentDefinition defines the segment to be a set of SegmentFilters which - # are combined together with a logical `AND` operation. - # Corresponds to the JSON property `userSegment` - # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] - attr_accessor :user_segment - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @user_segment = args[:user_segment] if args.key?(:user_segment) @session_segment = args[:session_segment] if args.key?(:session_segment) @name = args[:name] if args.key?(:name) - @user_segment = args[:user_segment] if args.key?(:user_segment) end end @@ -414,24 +536,24 @@ module Google class ColumnHeader include Google::Apis::Core::Hashable - # The dimension names in the response. - # Corresponds to the JSON property `dimensions` - # @return [Array] - attr_accessor :dimensions - # The headers for the metrics. # Corresponds to the JSON property `metricHeader` # @return [Google::Apis::AnalyticsreportingV4::MetricHeader] attr_accessor :metric_header + # The dimension names in the response. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @dimensions = args[:dimensions] if args.key?(:dimensions) @metric_header = args[:metric_header] if args.key?(:metric_header) + @dimensions = args[:dimensions] if args.key?(:dimensions) end end @@ -468,44 +590,6 @@ module Google end end - # Defines a cohort. A cohort is a group of users who share a common - # characteristic. For example, all users with the same acquisition date - # belong to the same cohort. - class Cohort - include Google::Apis::Core::Hashable - - # A unique name for the cohort. If not defined name will be auto-generated - # with values cohort_[1234...]. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A contiguous set of days: startDate, startDate + 1 day, ..., endDate. - # The start and end dates are specified in - # [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`. - # Corresponds to the JSON property `dateRange` - # @return [Google::Apis::AnalyticsreportingV4::DateRange] - attr_accessor :date_range - - # Type of the cohort. The only supported type as of now is - # `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated - # as `FIRST_VISIT_DATE` type cohort. - # 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) - @name = args[:name] if args.key?(:name) - @date_range = args[:date_range] if args.key?(:date_range) - @type = args[:type] if args.key?(:type) - end - end - # A row in the report. class ReportRow include Google::Apis::Core::Hashable @@ -536,26 +620,64 @@ module Google class MetricFilterClause include Google::Apis::Core::Hashable - # The operator for combining multiple metric filters. If unspecified, it is - # treated as an `OR`. - # Corresponds to the JSON property `operator` - # @return [String] - attr_accessor :operator - # The repeated set of filters. They are logically combined based on the # operator specified. # Corresponds to the JSON property `filters` # @return [Array] attr_accessor :filters + # The operator for combining multiple metric filters. If unspecified, it is + # treated as an `OR`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @operator = args[:operator] if args.key?(:operator) @filters = args[:filters] if args.key?(:filters) + @operator = args[:operator] if args.key?(:operator) + end + end + + # Defines a cohort. A cohort is a group of users who share a common + # characteristic. For example, all users with the same acquisition date + # belong to the same cohort. + class Cohort + include Google::Apis::Core::Hashable + + # A contiguous set of days: startDate, startDate + 1 day, ..., endDate. + # The start and end dates are specified in + # [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::AnalyticsreportingV4::DateRange] + attr_accessor :date_range + + # A unique name for the cohort. If not defined name will be auto-generated + # with values cohort_[1234...]. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Type of the cohort. The only supported type as of now is + # `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated + # as `FIRST_VISIT_DATE` type cohort. + # 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) + @date_range = args[:date_range] if args.key?(:date_range) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -609,26 +731,26 @@ module Google class DimensionFilterClause include Google::Apis::Core::Hashable - # The operator for combining multiple dimension filters. If unspecified, it - # is treated as an `OR`. - # Corresponds to the JSON property `operator` - # @return [String] - attr_accessor :operator - # The repeated set of filters. They are logically combined based on the # operator specified. # Corresponds to the JSON property `filters` # @return [Array] attr_accessor :filters + # The operator for combining multiple dimension filters. If unspecified, it + # is treated as an `OR`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @operator = args[:operator] if args.key?(:operator) @filters = args[:filters] if args.key?(:filters) + @operator = args[:operator] if args.key?(:operator) end end @@ -658,11 +780,6 @@ module Google class SequenceSegment include Google::Apis::Core::Hashable - # The list of steps in the sequence. - # Corresponds to the JSON property `segmentSequenceSteps` - # @return [Array] - attr_accessor :segment_sequence_steps - # If set, first step condition must match the first hit of the visitor (in # the date range). # Corresponds to the JSON property `firstStepShouldMatchFirstHit` @@ -670,14 +787,19 @@ module Google attr_accessor :first_step_should_match_first_hit alias_method :first_step_should_match_first_hit?, :first_step_should_match_first_hit + # The list of steps in the sequence. + # Corresponds to the JSON property `segmentSequenceSteps` + # @return [Array] + attr_accessor :segment_sequence_steps + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @segment_sequence_steps = args[:segment_sequence_steps] if args.key?(:segment_sequence_steps) @first_step_should_match_first_hit = args[:first_step_should_match_first_hit] if args.key?(:first_step_should_match_first_hit) + @segment_sequence_steps = args[:segment_sequence_steps] if args.key?(:segment_sequence_steps) end end @@ -685,6 +807,12 @@ module Google class SegmentMetricFilter include Google::Apis::Core::Hashable + # Specifies is the operation to perform to compare the metric. The default + # is `EQUAL`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + # The metric that will be filtered on. A `metricFilter` must contain a # metric name. # Corresponds to the JSON property `metricName` @@ -710,23 +838,17 @@ module Google # @return [String] attr_accessor :comparison_value - # Specifies is the operation to perform to compare the metric. The default - # is `EQUAL`. - # Corresponds to the JSON property `operator` - # @return [String] - attr_accessor :operator - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @operator = args[:operator] if args.key?(:operator) @metric_name = args[:metric_name] if args.key?(:metric_name) @scope = args[:scope] if args.key?(:scope) @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) @comparison_value = args[:comparison_value] if args.key?(:comparison_value) - @operator = args[:operator] if args.key?(:operator) end end @@ -772,6 +894,11 @@ module Google class CohortGroup include Google::Apis::Core::Hashable + # The definition for the cohort. + # Corresponds to the JSON property `cohorts` + # @return [Array] + attr_accessor :cohorts + # Enable Life Time Value (LTV). LTV measures lifetime value for users # acquired through different channels. # Please see: @@ -804,19 +931,14 @@ module Google attr_accessor :lifetime_value alias_method :lifetime_value?, :lifetime_value - # The definition for the cohort. - # Corresponds to the JSON property `cohorts` - # @return [Array] - attr_accessor :cohorts - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @lifetime_value = args[:lifetime_value] if args.key?(:lifetime_value) @cohorts = args[:cohorts] if args.key?(:cohorts) + @lifetime_value = args[:lifetime_value] if args.key?(:lifetime_value) end end @@ -847,6 +969,12 @@ module Google class Pivot include Google::Apis::Core::Hashable + # Specifies the maximum number of groups to return. + # The default value is 10, also the maximum value is 1,000. + # Corresponds to the JSON property `maxGroupCount` + # @return [Fixnum] + attr_accessor :max_group_count + # If k metrics were requested, then the response will contain some # data-dependent multiple of k columns in the report. E.g., if you pivoted # on the dimension `ga:browser` then you'd get k columns for "Firefox", k @@ -869,13 +997,6 @@ module Google # @return [Array] attr_accessor :metrics - # A list of dimensions to show as pivot columns. A Pivot can have a maximum - # of 4 dimensions. Pivot dimensions are part of the restriction on the - # total number of dimensions allowed in the request. - # Corresponds to the JSON property `dimensions` - # @return [Array] - attr_accessor :dimensions - # DimensionFilterClauses are logically combined with an `AND` operator: only # data that is included by all these DimensionFilterClauses contributes to # the values in this pivot region. Dimension filters can be used to restrict @@ -887,11 +1008,12 @@ module Google # @return [Array] attr_accessor :dimension_filter_clauses - # Specifies the maximum number of groups to return. - # The default value is 10, also the maximum value is 1,000. - # Corresponds to the JSON property `maxGroupCount` - # @return [Fixnum] - attr_accessor :max_group_count + # A list of dimensions to show as pivot columns. A Pivot can have a maximum + # of 4 dimensions. Pivot dimensions are part of the restriction on the + # total number of dimensions allowed in the request. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions def initialize(**args) update!(**args) @@ -899,11 +1021,11 @@ module Google # Update properties of this object def update!(**args) + @max_group_count = args[:max_group_count] if args.key?(:max_group_count) @start_group = args[:start_group] if args.key?(:start_group) @metrics = args[:metrics] if args.key?(:metrics) - @dimensions = args[:dimensions] if args.key?(:dimensions) @dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses) - @max_group_count = args[:max_group_count] if args.key?(:max_group_count) + @dimensions = args[:dimensions] if args.key?(:dimensions) end end @@ -912,16 +1034,16 @@ module Google class PivotHeaderEntry include Google::Apis::Core::Hashable - # The name of the dimensions in the pivot response. - # Corresponds to the JSON property `dimensionNames` - # @return [Array] - attr_accessor :dimension_names - # Header for the metrics. # Corresponds to the JSON property `metric` # @return [Google::Apis::AnalyticsreportingV4::MetricHeaderEntry] attr_accessor :metric + # The name of the dimensions in the pivot response. + # Corresponds to the JSON property `dimensionNames` + # @return [Array] + attr_accessor :dimension_names + # The values for the dimensions in the pivot. # Corresponds to the JSON property `dimensionValues` # @return [Array] @@ -933,8 +1055,8 @@ module Google # Update properties of this object def update!(**args) - @dimension_names = args[:dimension_names] if args.key?(:dimension_names) @metric = args[:metric] if args.key?(:metric) + @dimension_names = args[:dimension_names] if args.key?(:dimension_names) @dimension_values = args[:dimension_values] if args.key?(:dimension_values) end end @@ -946,6 +1068,13 @@ module Google class SegmentFilter include Google::Apis::Core::Hashable + # Sequence conditions consist of one or more steps, where each step is defined + # by one or more dimension/metric conditions. Multiple steps can be combined + # with special sequence operators. + # Corresponds to the JSON property `sequenceSegment` + # @return [Google::Apis::AnalyticsreportingV4::SequenceSegment] + attr_accessor :sequence_segment + # If true, match the complement of simple or sequence segment. # For example, to match all visits not from "New York", we can define the # segment as follows: @@ -975,22 +1104,15 @@ module Google # @return [Google::Apis::AnalyticsreportingV4::SimpleSegment] attr_accessor :simple_segment - # Sequence conditions consist of one or more steps, where each step is defined - # by one or more dimension/metric conditions. Multiple steps can be combined - # with special sequence operators. - # Corresponds to the JSON property `sequenceSegment` - # @return [Google::Apis::AnalyticsreportingV4::SequenceSegment] - attr_accessor :sequence_segment - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @sequence_segment = args[:sequence_segment] if args.key?(:sequence_segment) @not = args[:not] if args.key?(:not) @simple_segment = args[:simple_segment] if args.key?(:simple_segment) - @sequence_segment = args[:sequence_segment] if args.key?(:sequence_segment) end end @@ -1084,16 +1206,6 @@ module Google # @return [Array] attr_accessor :samples_read_counts - # Total number of matching rows for this query. - # Corresponds to the JSON property `rowCount` - # @return [Fixnum] - attr_accessor :row_count - - # There's one ReportRow for every unique combination of dimensions. - # Corresponds to the JSON property `rows` - # @return [Array] - attr_accessor :rows - # Indicates if response to this request is golden or not. Data is # golden when the exact same request will not produce any new results if # asked at a later point in time. @@ -1102,6 +1214,16 @@ module Google attr_accessor :is_data_golden alias_method :is_data_golden?, :is_data_golden + # There's one ReportRow for every unique combination of dimensions. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # Total number of matching rows for this query. + # Corresponds to the JSON property `rowCount` + # @return [Fixnum] + attr_accessor :row_count + # The last time the data in the report was refreshed. All the hits received # before this timestamp are included in the calculation of the report. # Corresponds to the JSON property `dataLastRefreshed` @@ -1125,9 +1247,9 @@ module Google @minimums = args[:minimums] if args.key?(:minimums) @totals = args[:totals] if args.key?(:totals) @samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts) - @row_count = args[:row_count] if args.key?(:row_count) - @rows = args[:rows] if args.key?(:rows) @is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden) + @rows = args[:rows] if args.key?(:rows) + @row_count = args[:row_count] if args.key?(:row_count) @data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed) @maximums = args[:maximums] if args.key?(:maximums) end @@ -1137,22 +1259,21 @@ module Google class DimensionFilter include Google::Apis::Core::Hashable - # The dimension to filter on. A DimensionFilter must contain a dimension. - # Corresponds to the JSON property `dimensionName` - # @return [String] - attr_accessor :dimension_name + # Should the match be case sensitive? Default is false. + # Corresponds to the JSON property `caseSensitive` + # @return [Boolean] + attr_accessor :case_sensitive + alias_method :case_sensitive?, :case_sensitive # How to match the dimension to the expression. The default is REGEXP. # Corresponds to the JSON property `operator` # @return [String] attr_accessor :operator - # Logical `NOT` operator. If this boolean is set to true, then the matching - # dimension values will be excluded in the report. The default is false. - # Corresponds to the JSON property `not` - # @return [Boolean] - attr_accessor :not - alias_method :not?, :not + # The dimension to filter on. A DimensionFilter must contain a dimension. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name # Strings or regular expression to match against. Only the first value of # the list is used for comparison unless the operator is `IN_LIST`. @@ -1162,11 +1283,12 @@ module Google # @return [Array] attr_accessor :expressions - # Should the match be case sensitive? Default is false. - # Corresponds to the JSON property `caseSensitive` + # Logical `NOT` operator. If this boolean is set to true, then the matching + # dimension values will be excluded in the report. The default is false. + # Corresponds to the JSON property `not` # @return [Boolean] - attr_accessor :case_sensitive - alias_method :case_sensitive?, :case_sensitive + attr_accessor :not + alias_method :not?, :not def initialize(**args) update!(**args) @@ -1174,11 +1296,11 @@ module Google # Update properties of this object def update!(**args) - @dimension_name = args[:dimension_name] if args.key?(:dimension_name) - @operator = args[:operator] if args.key?(:operator) - @not = args[:not] if args.key?(:not) - @expressions = args[:expressions] if args.key?(:expressions) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @operator = args[:operator] if args.key?(:operator) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @expressions = args[:expressions] if args.key?(:expressions) + @not = args[:not] if args.key?(:not) end end @@ -1186,6 +1308,11 @@ module Google class SegmentDimensionFilter include Google::Apis::Core::Hashable + # Maximum comparison values for `BETWEEN` match type. + # Corresponds to the JSON property `maxComparisonValue` + # @return [String] + attr_accessor :max_comparison_value + # Name of the dimension for which the filter is being applied. # Corresponds to the JSON property `dimensionName` # @return [String] @@ -1212,23 +1339,18 @@ module Google # @return [String] attr_accessor :min_comparison_value - # Maximum comparison values for `BETWEEN` match type. - # Corresponds to the JSON property `maxComparisonValue` - # @return [String] - attr_accessor :max_comparison_value - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) @dimension_name = args[:dimension_name] if args.key?(:dimension_name) @operator = args[:operator] if args.key?(:operator) @expressions = args[:expressions] if args.key?(:expressions) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) @min_comparison_value = args[:min_comparison_value] if args.key?(:min_comparison_value) - @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) end end @@ -1236,10 +1358,10 @@ module Google class OrderBy include Google::Apis::Core::Hashable - # The sorting order for the field. - # Corresponds to the JSON property `sortOrder` + # The order type. The default orderType is `VALUE`. + # Corresponds to the JSON property `orderType` # @return [String] - attr_accessor :sort_order + attr_accessor :order_type # The field which to sort by. The default sort order is ascending. Example: # `ga:browser`. @@ -1249,10 +1371,10 @@ module Google # @return [String] attr_accessor :field_name - # The order type. The default orderType is `VALUE`. - # Corresponds to the JSON property `orderType` + # The sorting order for the field. + # Corresponds to the JSON property `sortOrder` # @return [String] - attr_accessor :order_type + attr_accessor :sort_order def initialize(**args) update!(**args) @@ -1260,9 +1382,9 @@ module Google # Update properties of this object def update!(**args) - @sort_order = args[:sort_order] if args.key?(:sort_order) - @field_name = args[:field_name] if args.key?(:field_name) @order_type = args[:order_type] if args.key?(:order_type) + @field_name = args[:field_name] if args.key?(:field_name) + @sort_order = args[:sort_order] if args.key?(:sort_order) end end @@ -1293,128 +1415,6 @@ module Google @segment_id = args[:segment_id] if args.key?(:segment_id) end end - - # A segment sequence definition. - class SegmentSequenceStep - include Google::Apis::Core::Hashable - - # A sequence is specified with a list of Or grouped filters which are - # combined with `AND` operator. - # Corresponds to the JSON property `orFiltersForSegment` - # @return [Array] - attr_accessor :or_filters_for_segment - - # Specifies if the step immediately precedes or can be any time before the - # next step. - # Corresponds to the JSON property `matchType` - # @return [String] - attr_accessor :match_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment) - @match_type = args[:match_type] if args.key?(:match_type) - end - end - - # [Metrics](https://support.google.com/analytics/answer/1033861) - # are the quantitative measurements. For example, the metric `ga:users` - # indicates the total number of users for the requested time period. - class Metric - include Google::Apis::Core::Hashable - - # An alias for the metric expression is an alternate name for the - # expression. The alias can be used for filtering and sorting. This field - # is optional and is useful if the expression is not a single metric but - # a complex expression which cannot be used in filtering and sorting. - # The alias is also used in the response column header. - # Corresponds to the JSON property `alias` - # @return [String] - attr_accessor :alias - - # A metric expression in the request. An expression is constructed from one - # or more metrics and numbers. Accepted operators include: Plus (+), Minus - # (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, - # Positive cardinal numbers (0-9), can include decimals and is limited to - # 1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the - # metric expression is just a single metric name like `ga:users`. - # Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics - # will result in unexpected results. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - # Specifies how the metric expression should be formatted, for example - # `INTEGER`. - # Corresponds to the JSON property `formattingType` - # @return [String] - attr_accessor :formatting_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alias = args[:alias] if args.key?(:alias) - @expression = args[:expression] if args.key?(:expression) - @formatting_type = args[:formatting_type] if args.key?(:formatting_type) - end - end - - # The metric values in the pivot region. - class PivotValueRegion - include Google::Apis::Core::Hashable - - # The values of the metrics in each of the pivot regions. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @values = args[:values] if args.key?(:values) - end - end - - # The data response corresponding to the request. - class Report - include Google::Apis::Core::Hashable - - # Column headers. - # Corresponds to the JSON property `columnHeader` - # @return [Google::Apis::AnalyticsreportingV4::ColumnHeader] - attr_accessor :column_header - - # The data part of the report. - # Corresponds to the JSON property `data` - # @return [Google::Apis::AnalyticsreportingV4::ReportData] - attr_accessor :data - - # Page token to retrieve the next page of results in the list. - # 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) - @column_header = args[:column_header] if args.key?(:column_header) - @data = args[:data] if args.key?(:data) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end end end end diff --git a/generated/google/apis/analyticsreporting_v4/representations.rb b/generated/google/apis/analyticsreporting_v4/representations.rb index 113b065b1..36d02e572 100644 --- a/generated/google/apis/analyticsreporting_v4/representations.rb +++ b/generated/google/apis/analyticsreporting_v4/representations.rb @@ -22,6 +22,30 @@ module Google module Apis module AnalyticsreportingV4 + class SegmentSequenceStep + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotValueRegion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Report + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PivotHeader class Representation < Google::Apis::Core::JsonRepresentation; end @@ -34,13 +58,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MetricFilter + class ReportRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReportRequest + class MetricFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -76,12 +100,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Cohort - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ReportRow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Cohort + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrFiltersForSegment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -209,35 +233,47 @@ module Google end class SegmentSequenceStep - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation - include Google::Apis::Core::JsonObjectSupport + property :match_type, as: 'matchType' + end end class Metric - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formatting_type, as: 'formattingType' + property :alias, as: 'alias' + property :expression, as: 'expression' + end end class PivotValueRegion - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values' + end end class Report - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation - include Google::Apis::Core::JsonObjectSupport + property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation + + end end class PivotHeader # @private class Representation < Google::Apis::Core::JsonRepresentation + property :total_pivot_groups_count, as: 'totalPivotGroupsCount' collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation - property :total_pivot_groups_count, as: 'totalPivotGroupsCount' end end @@ -249,19 +285,18 @@ module Google end end - class MetricFilter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric_name, as: 'metricName' - property :comparison_value, as: 'comparisonValue' - property :operator, as: 'operator' - property :not, as: 'not' - end - end - class ReportRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sampling_level, as: 'samplingLevel' + collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation + + property :page_token, as: 'pageToken' + collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation + + collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation + + property :include_empty_rows, as: 'includeEmptyRows' collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation property :page_size, as: 'pageSize' @@ -279,15 +314,16 @@ module Google collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation - property :sampling_level, as: 'samplingLevel' - collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation + end + end - collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation - - property :page_token, as: 'pageToken' - collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation - - property :include_empty_rows, as: 'includeEmptyRows' + class MetricFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric_name, as: 'metricName' + property :comparison_value, as: 'comparisonValue' + property :operator, as: 'operator' + property :not, as: 'not' end end @@ -310,20 +346,20 @@ module Google class DynamicSegment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation + property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation property :name, as: 'name' - property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation - end end class ColumnHeader # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :dimensions, as: 'dimensions' property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation + collection :dimensions, as: 'dimensions' end end @@ -338,16 +374,6 @@ module Google end end - class Cohort - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation - - property :type, as: 'type' - end - end - class ReportRow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -360,9 +386,19 @@ module Google class MetricFilterClause # @private class Representation < Google::Apis::Core::JsonRepresentation - property :operator, as: 'operator' collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation + property :operator, as: 'operator' + end + end + + class Cohort + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation + + property :name, as: 'name' + property :type, as: 'type' end end @@ -387,9 +423,9 @@ module Google class DimensionFilterClause # @private class Representation < Google::Apis::Core::JsonRepresentation - property :operator, as: 'operator' collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation + property :operator, as: 'operator' end end @@ -404,20 +440,20 @@ module Google class SequenceSegment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit' collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation - property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit' end end class SegmentMetricFilter # @private class Representation < Google::Apis::Core::JsonRepresentation + property :operator, as: 'operator' property :metric_name, as: 'metricName' property :scope, as: 'scope' property :max_comparison_value, as: 'maxComparisonValue' property :comparison_value, as: 'comparisonValue' - property :operator, as: 'operator' end end @@ -433,9 +469,9 @@ module Google class CohortGroup # @private class Representation < Google::Apis::Core::JsonRepresentation - property :lifetime_value, as: 'lifetimeValue' collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation + property :lifetime_value, as: 'lifetimeValue' end end @@ -450,23 +486,23 @@ module Google class Pivot # @private class Representation < Google::Apis::Core::JsonRepresentation + property :max_group_count, as: 'maxGroupCount' property :start_group, as: 'startGroup' collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation - collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation - collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation - property :max_group_count, as: 'maxGroupCount' + collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation + end end class PivotHeaderEntry # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :dimension_names, as: 'dimensionNames' property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation + collection :dimension_names, as: 'dimensionNames' collection :dimension_values, as: 'dimensionValues' end end @@ -474,11 +510,11 @@ module Google class SegmentFilter # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation + property :not, as: 'not' property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation - property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation - end end @@ -507,10 +543,10 @@ module Google collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation collection :samples_read_counts, as: 'samplesReadCounts' - property :row_count, as: 'rowCount' + property :is_data_golden, as: 'isDataGolden' collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation - property :is_data_golden, as: 'isDataGolden' + property :row_count, as: 'rowCount' property :data_last_refreshed, as: 'dataLastRefreshed' collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation @@ -520,32 +556,32 @@ module Google class DimensionFilter # @private class Representation < Google::Apis::Core::JsonRepresentation - property :dimension_name, as: 'dimensionName' - property :operator, as: 'operator' - property :not, as: 'not' - collection :expressions, as: 'expressions' property :case_sensitive, as: 'caseSensitive' + property :operator, as: 'operator' + property :dimension_name, as: 'dimensionName' + collection :expressions, as: 'expressions' + property :not, as: 'not' end end class SegmentDimensionFilter # @private class Representation < Google::Apis::Core::JsonRepresentation + property :max_comparison_value, as: 'maxComparisonValue' property :dimension_name, as: 'dimensionName' property :operator, as: 'operator' collection :expressions, as: 'expressions' property :case_sensitive, as: 'caseSensitive' property :min_comparison_value, as: 'minComparisonValue' - property :max_comparison_value, as: 'maxComparisonValue' end end class OrderBy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :sort_order, as: 'sortOrder' - property :field_name, as: 'fieldName' property :order_type, as: 'orderType' + property :field_name, as: 'fieldName' + property :sort_order, as: 'sortOrder' end end @@ -557,42 +593,6 @@ module Google property :segment_id, as: 'segmentId' end end - - class SegmentSequenceStep - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation - - property :match_type, as: 'matchType' - end - end - - class Metric - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :alias, as: 'alias' - property :expression, as: 'expression' - property :formatting_type, as: 'formattingType' - end - end - - class PivotValueRegion - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :values, as: 'values' - end - end - - class Report - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation - - property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation - - property :next_page_token, as: 'nextPageToken' - end - end end end end diff --git a/generated/google/apis/analyticsreporting_v4/service.rb b/generated/google/apis/analyticsreporting_v4/service.rb index d3db79b0b..4034192d6 100644 --- a/generated/google/apis/analyticsreporting_v4/service.rb +++ b/generated/google/apis/analyticsreporting_v4/service.rb @@ -32,16 +32,16 @@ module Google # # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ class AnalyticsReportingService < Google::Apis::Core::BaseService - # @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 - # @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://analyticsreporting.googleapis.com/', '') @batch_path = 'batch' @@ -49,11 +49,11 @@ module Google # Returns the Analytics data. # @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -66,22 +66,22 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def batch_get_reports(get_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/reports:batchGet', options) command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation command.request_object = get_reports_request_object command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse - command.query['quotaUser'] = quota_user unless quota_user.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['quotaUser'] = quota_user unless quota_user.nil? command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? end end end diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 2b52380da..13b9b91ee 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20170607' + REVISION = '20170706' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index a879effe6..0c3d634a9 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -26,16 +26,16 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1 VERSION = 'V1' - REVISION = '20170601' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170626' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' # View your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + + # View and manage your 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_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb index e71a457df..568e1fa61 100644 --- a/generated/google/apis/appengine_v1/classes.rb +++ b/generated/google/apis/appengine_v1/classes.rb @@ -22,124 +22,6 @@ module Google module Apis module AppengineV1 - # Metadata for the given google.longrunning.Operation. - class OperationMetadataV1Alpha - include Google::Apis::Core::Hashable - - # Time that this operation completed.@OutputOnly - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Durable messages that persist on every operation poll. @OutputOnly - # Corresponds to the JSON property `warning` - # @return [Array] - attr_accessor :warning - - # Time that this operation was created.@OutputOnly - # Corresponds to the JSON property `insertTime` - # @return [String] - attr_accessor :insert_time - - # User who requested this operation.@OutputOnly - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # Name of the resource that this operation is acting on. Example: apps/myapp/ - # services/default.@OutputOnly - # Corresponds to the JSON property `target` - # @return [String] - attr_accessor :target - - # Ephemeral message that may change every time the operation is polled. @ - # OutputOnly - # Corresponds to the JSON property `ephemeralMessage` - # @return [String] - attr_accessor :ephemeral_message - - # API method that initiated this operation. Example: google.appengine.v1alpha. - # Versions.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) - @end_time = args[:end_time] if args.key?(:end_time) - @warning = args[:warning] if args.key?(:warning) - @insert_time = args[:insert_time] if args.key?(:insert_time) - @user = args[:user] if args.key?(:user) - @target = args[:target] if args.key?(:target) - @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message) - @method_prop = args[:method_prop] if args.key?(:method_prop) - end - end - - # Rules to match an HTTP request and dispatch that request to a service. - class UrlDispatchRule - include Google::Apis::Core::Hashable - - # Domain name to match against. The wildcard "*" is supported if specified - # before a period: "*.".Defaults to matching all domains: "*". - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # Resource ID of a service in this application that should serve the matched - # request. The service must already exist. Example: default. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - # Pathname within the host. Must start with a "/". A single "*" 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @domain = args[:domain] if args.key?(:domain) - @service = args[:service] if args.key?(:service) - @path = args[:path] if args.key?(:path) - end - end - - # Response message for Versions.ListVersions. - class ListVersionsResponse - include Google::Apis::Core::Hashable - - # The versions belonging to the requested 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 - # Uses Google Cloud Endpoints to handle requests. class ApiEndpointHandler include Google::Apis::Core::Hashable @@ -164,32 +46,6 @@ module Google class AutomaticScaling include Google::Apis::Core::Hashable - # Target scaling by request utilization. Only applicable for VM runtimes. - # Corresponds to the JSON property `requestUtilization` - # @return [Google::Apis::AppengineV1::RequestUtilization] - attr_accessor :request_utilization - - # Maximum number of idle instances that should be maintained for this version. - # Corresponds to the JSON property `maxIdleInstances` - # @return [Fixnum] - attr_accessor :max_idle_instances - - # Minimum number of idle instances that should be maintained for this version. - # Only applicable for the default version of a service. - # Corresponds to the JSON property `minIdleInstances` - # @return [Fixnum] - attr_accessor :min_idle_instances - - # Maximum number of instances that should be started to handle requests. - # Corresponds to the JSON property `maxTotalInstances` - # @return [Fixnum] - attr_accessor :max_total_instances - - # Minimum number of instances that should be maintained for this version. - # Corresponds to the JSON property `minTotalInstances` - # @return [Fixnum] - attr_accessor :min_total_instances - # Target scaling by network usage. Only applicable for VM runtimes. # Corresponds to the JSON property `networkUtilization` # @return [Google::Apis::AppengineV1::NetworkUtilization] @@ -230,17 +86,38 @@ module Google # @return [String] attr_accessor :min_pending_latency + # Maximum number of idle instances that should be maintained for this version. + # Corresponds to the JSON property `maxIdleInstances` + # @return [Fixnum] + attr_accessor :max_idle_instances + + # Target scaling by request utilization. Only applicable for VM runtimes. + # Corresponds to the JSON property `requestUtilization` + # @return [Google::Apis::AppengineV1::RequestUtilization] + attr_accessor :request_utilization + + # Minimum number of idle instances that should be maintained for this version. + # Only applicable for the default version of a service. + # Corresponds to the JSON property `minIdleInstances` + # @return [Fixnum] + attr_accessor :min_idle_instances + + # Maximum number of instances that should be started to handle requests. + # Corresponds to the JSON property `maxTotalInstances` + # @return [Fixnum] + attr_accessor :max_total_instances + + # Minimum number of instances that should be maintained for this version. + # Corresponds to the JSON property `minTotalInstances` + # @return [Fixnum] + attr_accessor :min_total_instances + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @request_utilization = args[:request_utilization] if args.key?(:request_utilization) - @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) - @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) - @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) - @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) @network_utilization = args[:network_utilization] if args.key?(:network_utilization) @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests) @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period) @@ -248,6 +125,11 @@ module Google @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization) @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency) + @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) + @request_utilization = args[:request_utilization] if args.key?(:request_utilization) + @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) + @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) + @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) end end @@ -283,24 +165,24 @@ module Google class Library include Google::Apis::Core::Hashable - # Version of the library to select, or "latest". - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - # Name of the library. Example: "django". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # 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) - @version = args[:version] if args.key?(:version) @name = args[:name] if args.key?(:name) + @version = args[:version] if args.key?(:version) end end @@ -377,37 +259,6 @@ module Google end end - # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The - # Endpoints API Service provides tooling for serving Open API and gRPC endpoints - # via an NGINX proxy.The fields here refer to the name and configuration id of a - # "service" resource in the Service Management API (https://cloud.google.com/ - # service-management/overview). - class EndpointsApiService - include Google::Apis::Core::Hashable - - # Endpoints service name which is the name of the "service" resource in the - # Service Management API. For example "myapi.endpoints.myproject.cloud.goog" - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Endpoints service configuration id as specified by the Service Management API. - # For example "2016-09-19r1" - # Corresponds to the JSON property `configId` - # @return [String] - attr_accessor :config_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @config_id = args[:config_id] if args.key?(:config_id) - end - end - # URL pattern and description of how the URL should be handled. App Engine can # handle URLs by executing application code or by serving static files uploaded # with the version, such as images, CSS, or JavaScript. @@ -478,36 +329,25 @@ module Google end end - # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/ - # endpoints/) configuration for API handlers. - class ApiConfigHandler + # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The + # Endpoints API Service provides tooling for serving Open API and gRPC endpoints + # via an NGINX proxy.The fields here refer to the name and configuration id of a + # "service" resource in the Service Management API (https://cloud.google.com/ + # service-management/overview). + class EndpointsApiService include Google::Apis::Core::Hashable - # Level of login required to access this resource. Defaults to optional. - # Corresponds to the JSON property `login` + # Endpoints service configuration id as specified by the Service Management API. + # For example "2016-09-19r1" + # Corresponds to the JSON property `configId` # @return [String] - attr_accessor :login + attr_accessor :config_id - # URL to serve the endpoint at. - # Corresponds to the JSON property `url` + # Endpoints service name which is the name of the "service" resource in the + # Service Management API. For example "myapi.endpoints.myproject.cloud.goog" + # Corresponds to the JSON property `name` # @return [String] - attr_accessor :url - - # Security (HTTPS) enforcement for this URL. - # Corresponds to the JSON property `securityLevel` - # @return [String] - attr_accessor :security_level - - # Action to take when users access resources that require authentication. - # Defaults to redirect. - # Corresponds to the JSON property `authFailAction` - # @return [String] - attr_accessor :auth_fail_action - - # Path to the script from the application root directory. - # Corresponds to the JSON property `script` - # @return [String] - attr_accessor :script + attr_accessor :name def initialize(**args) update!(**args) @@ -515,11 +355,8 @@ module Google # Update properties of this object def update!(**args) - @login = args[:login] if args.key?(:login) - @url = args[:url] if args.key?(:url) - @security_level = args[:security_level] if args.key?(:security_level) - @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action) - @script = args[:script] if args.key?(:script) + @config_id = args[:config_id] if args.key?(:config_id) + @name = args[:name] if args.key?(:name) end end @@ -528,6 +365,24 @@ module Google class Operation include Google::Apis::Core::Hashable + # 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 + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the name should + # have the format of operations/some/unique/name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # 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: @@ -581,23 +436,50 @@ module Google 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 + def initialize(**args) + update!(**args) + end - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the name should - # have the format of operations/some/unique/name. - # Corresponds to the JSON property `name` + # Update properties of this object + def update!(**args) + @response = args[:response] if args.key?(:response) + @name = args[:name] if args.key?(:name) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + end + end + + # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/ + # endpoints/) configuration for API handlers. + class ApiConfigHandler + include Google::Apis::Core::Hashable + + # URL to serve the endpoint at. + # Corresponds to the JSON property `url` # @return [String] - attr_accessor :name + attr_accessor :url + + # Security (HTTPS) enforcement for this URL. + # Corresponds to the JSON property `securityLevel` + # @return [String] + attr_accessor :security_level + + # Action to take when users access resources that require authentication. + # Defaults to redirect. + # Corresponds to the JSON property `authFailAction` + # @return [String] + attr_accessor :auth_fail_action + + # Path to the script from the application root directory. + # Corresponds to the JSON property `script` + # @return [String] + attr_accessor :script + + # Level of login required to access this resource. Defaults to optional. + # Corresponds to the JSON property `login` + # @return [String] + attr_accessor :login def initialize(**args) update!(**args) @@ -605,11 +487,11 @@ module Google # Update properties of this object def update!(**args) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @done = args[:done] if args.key?(:done) - @response = args[:response] if args.key?(:response) - @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + @security_level = args[:security_level] if args.key?(:security_level) + @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action) + @script = args[:script] if args.key?(:script) + @login = args[:login] if args.key?(:login) end end @@ -619,11 +501,6 @@ module Google class StaticFilesHandler include Google::Apis::Core::Hashable - # HTTP headers to use for all responses from these URLs. - # Corresponds to the JSON property `httpHeaders` - # @return [Hash] - attr_accessor :http_headers - # Whether files should also be uploaded as code data. 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 the application. If enabled, uploads are charged @@ -633,6 +510,11 @@ module Google attr_accessor :application_readable alias_method :application_readable?, :application_readable + # HTTP headers to use for all responses from these URLs. + # Corresponds to the JSON property `httpHeaders` + # @return [Hash] + attr_accessor :http_headers + # Regular expression that matches the file paths for all files that should be # referenced by this handler. # Corresponds to the JSON property `uploadPathRegex` @@ -670,8 +552,8 @@ module Google # Update properties of this object def update!(**args) - @http_headers = args[:http_headers] if args.key?(:http_headers) @application_readable = args[:application_readable] if args.key?(:application_readable) + @http_headers = args[:http_headers] if args.key?(:http_headers) @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex) @path = args[:path] if args.key?(:path) @mime_type = args[:mime_type] if args.key?(:mime_type) @@ -680,10 +562,49 @@ module Google 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 + + # Maximum number of instances to create for this version. + # Corresponds to the JSON property `maxInstances` + # @return [Fixnum] + attr_accessor :max_instances + + # Duration of time after the last request that an instance must wait before the + # instance is shut down. + # Corresponds to the JSON property `idleTimeout` + # @return [String] + attr_accessor :idle_timeout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_instances = args[:max_instances] if args.key?(:max_instances) + @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout) + end + end + # Target scaling by disk usage. Only applicable for VM runtimes. class DiskUtilization include Google::Apis::Core::Hashable + # Target ops read per seconds. + # Corresponds to the JSON property `targetReadOpsPerSecond` + # @return [Fixnum] + attr_accessor :target_read_ops_per_second + + # Target bytes read per second. + # Corresponds to the JSON property `targetReadBytesPerSecond` + # @return [Fixnum] + attr_accessor :target_read_bytes_per_second + # Target ops written per second. # Corresponds to the JSON property `targetWriteOpsPerSecond` # @return [Fixnum] @@ -694,55 +615,16 @@ module Google # @return [Fixnum] attr_accessor :target_write_bytes_per_second - # Target bytes read per second. - # Corresponds to the JSON property `targetReadBytesPerSecond` - # @return [Fixnum] - attr_accessor :target_read_bytes_per_second - - # Target ops read per seconds. - # Corresponds to the JSON property `targetReadOpsPerSecond` - # @return [Fixnum] - attr_accessor :target_read_ops_per_second - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second) + @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second) @target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second) @target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second) - @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second) - @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second) - 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 - - # Duration of time after the last request that an instance must wait before the - # instance is shut down. - # Corresponds to the JSON property `idleTimeout` - # @return [String] - attr_accessor :idle_timeout - - # Maximum number of instances 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 @@ -771,48 +653,6 @@ module Google end end - # Identity-Aware Proxy - class IdentityAwareProxy - include Google::Apis::Core::Hashable - - # Whether the serving infrastructure will authenticate and authorize all - # incoming requests.If true, the oauth2_client_id and oauth2_client_secret - # fields must be non-empty. - # Corresponds to the JSON property `enabled` - # @return [Boolean] - attr_accessor :enabled - alias_method :enabled?, :enabled - - # OAuth2 client secret to use for the authentication flow.For security reasons, - # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the - # value is returned in the oauth2_client_secret_sha256 field.@InputOnly - # Corresponds to the JSON property `oauth2ClientSecret` - # @return [String] - attr_accessor :oauth2_client_secret - - # OAuth2 client ID to use for the authentication flow. - # Corresponds to the JSON property `oauth2ClientId` - # @return [String] - attr_accessor :oauth2_client_id - - # Hex-encoded SHA-256 hash of the client secret.@OutputOnly - # Corresponds to the JSON property `oauth2ClientSecretSha256` - # @return [String] - attr_accessor :oauth2_client_secret_sha256 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @enabled = args[:enabled] if args.key?(:enabled) - @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret) - @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) - @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256) - 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: @@ -880,6 +720,48 @@ module Google end end + # Identity-Aware Proxy + class IdentityAwareProxy + include Google::Apis::Core::Hashable + + # Whether the serving infrastructure will authenticate and authorize all + # incoming requests.If true, the oauth2_client_id and oauth2_client_secret + # fields must be non-empty. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # OAuth2 client secret to use for the authentication flow.For security reasons, + # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the + # value is returned in the oauth2_client_secret_sha256 field.@InputOnly + # Corresponds to the JSON property `oauth2ClientSecret` + # @return [String] + attr_accessor :oauth2_client_secret + + # OAuth2 client ID to use for the authentication flow. + # Corresponds to the JSON property `oauth2ClientId` + # @return [String] + attr_accessor :oauth2_client_id + + # Hex-encoded SHA-256 hash of the client secret.@OutputOnly + # Corresponds to the JSON property `oauth2ClientSecretSha256` + # @return [String] + attr_accessor :oauth2_client_secret_sha256 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret) + @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) + @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256) + 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 @@ -906,26 +788,26 @@ module Google class LocationMetadata include Google::Apis::Core::Hashable - # App Engine Standard Environment is available in the given location.@OutputOnly - # Corresponds to the JSON property `standardEnvironmentAvailable` - # @return [Boolean] - attr_accessor :standard_environment_available - alias_method :standard_environment_available?, :standard_environment_available - # App Engine Flexible Environment is available in the given location.@OutputOnly # Corresponds to the JSON property `flexibleEnvironmentAvailable` # @return [Boolean] attr_accessor :flexible_environment_available alias_method :flexible_environment_available?, :flexible_environment_available + # App Engine Standard Environment is available in the given location.@OutputOnly + # Corresponds to the JSON property `standardEnvironmentAvailable` + # @return [Boolean] + attr_accessor :standard_environment_available + alias_method :standard_environment_available?, :standard_environment_available + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available) @flexible_environment_available = args[:flexible_environment_available] if args.key?(:flexible_environment_available) + @standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available) end end @@ -938,6 +820,12 @@ module Google class Service include Google::Apis::Core::Hashable + # Traffic routing configuration for versions within a single service. Traffic + # splits define how traffic directed to the service is assigned to versions. + # Corresponds to the JSON property `split` + # @return [Google::Apis::AppengineV1::TrafficSplit] + attr_accessor :split + # Relative name of the service within the application. Example: default.@ # OutputOnly # Corresponds to the JSON property `id` @@ -950,21 +838,15 @@ module Google # @return [String] attr_accessor :name - # Traffic routing configuration for versions within a single service. Traffic - # splits define how traffic directed to the service is assigned to versions. - # Corresponds to the JSON property `split` - # @return [Google::Apis::AppengineV1::TrafficSplit] - attr_accessor :split - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @split = args[:split] if args.key?(:split) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) - @split = args[:split] if args.key?(:split) end end @@ -972,24 +854,24 @@ module Google 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 + # 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) - @operations = args[:operations] if args.key?(:operations) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) end end @@ -997,11 +879,6 @@ module Google class OperationMetadata include Google::Apis::Core::Hashable - # Timestamp that this operation was created.@OutputOnly - # Corresponds to the JSON property `insertTime` - # @return [String] - attr_accessor :insert_time - # User who requested this operation.@OutputOnly # Corresponds to the JSON property `user` # @return [String] @@ -1030,18 +907,23 @@ module Google # @return [String] attr_accessor :operation_type + # Timestamp that this operation was created.@OutputOnly + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @insert_time = args[:insert_time] if args.key?(:insert_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_time = args[:end_time] if args.key?(:end_time) @operation_type = args[:operation_type] if args.key?(:operation_type) + @insert_time = args[:insert_time] if args.key?(:insert_time) end end @@ -1049,6 +931,17 @@ module Google class OperationMetadataV1 include Google::Apis::Core::Hashable + # Name of the resource that this operation is acting on. Example: apps/myapp/ + # services/default.@OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # User who requested this operation.@OutputOnly + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + # Ephemeral message that may change every time the operation is polled. @ # OutputOnly # Corresponds to the JSON property `ephemeralMessage` @@ -1066,26 +959,15 @@ module Google # @return [String] attr_accessor :end_time - # Durable messages that persist on every operation poll. @OutputOnly - # Corresponds to the JSON property `warning` - # @return [Array] - attr_accessor :warning - # Time that this operation was created.@OutputOnly # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # User who requested this operation.@OutputOnly - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # Name of the resource that this operation is acting on. Example: apps/myapp/ - # services/default.@OutputOnly - # Corresponds to the JSON property `target` - # @return [String] - attr_accessor :target + # Durable messages that persist on every operation poll. @OutputOnly + # Corresponds to the JSON property `warning` + # @return [Array] + attr_accessor :warning def initialize(**args) update!(**args) @@ -1093,13 +975,13 @@ module Google # Update properties of this object def update!(**args) + @target = args[:target] if args.key?(:target) + @user = args[:user] if args.key?(:user) @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message) @method_prop = args[:method_prop] if args.key?(:method_prop) @end_time = args[:end_time] if args.key?(:end_time) - @warning = args[:warning] if args.key?(:warning) @insert_time = args[:insert_time] if args.key?(:insert_time) - @user = args[:user] if args.key?(:user) - @target = args[:target] if args.key?(:target) + @warning = args[:warning] if args.key?(:warning) end end @@ -1107,16 +989,16 @@ module Google class ErrorHandler include Google::Apis::Core::Hashable - # Error condition this handler applies to. - # Corresponds to the JSON property `errorCode` - # @return [String] - attr_accessor :error_code - # MIME type of file. Defaults to text/html. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type + # 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] @@ -1128,8 +1010,8 @@ module Google # Update properties of this object def update!(**args) - @error_code = args[:error_code] if args.key?(:error_code) @mime_type = args[:mime_type] if args.key?(:mime_type) + @error_code = args[:error_code] if args.key?(:error_code) @static_file = args[:static_file] if args.key?(:static_file) end end @@ -1138,17 +1020,6 @@ module Google class Network include Google::Apis::Core::Hashable - # List of ports, or port pairs, to forward from the virtual machine to the - # application container. - # Corresponds to the JSON property `forwardedPorts` - # @return [Array] - attr_accessor :forwarded_ports - - # Tag to apply to the VM instance during creation. - # Corresponds to the JSON property `instanceTag` - # @return [String] - attr_accessor :instance_tag - # Google Cloud Platform sub-network where the virtual machines are created. # Specify the short name, not the resource path.If a subnetwork name is # specified, a network name will also be required unless it is for the default @@ -1167,6 +1038,17 @@ module Google # @return [String] attr_accessor :subnetwork_name + # Tag to apply to the VM instance during creation. + # Corresponds to the JSON property `instanceTag` + # @return [String] + attr_accessor :instance_tag + + # List of ports, or port pairs, to forward from the virtual machine to the + # application container. + # Corresponds to the JSON property `forwardedPorts` + # @return [Array] + attr_accessor :forwarded_ports + # Google Cloud Platform network where the virtual machines are created. Specify # the short name, not the resource path.Defaults to default. # Corresponds to the JSON property `name` @@ -1179,9 +1061,9 @@ module Google # 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) @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name) + @instance_tag = args[:instance_tag] if args.key?(:instance_tag) + @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports) @name = args[:name] if args.key?(:name) end end @@ -1191,53 +1073,17 @@ module Google class Application include Google::Apis::Core::Hashable - # Full path to the Application resource in the API. Example: apps/myapp.@ - # OutputOnly - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Identifier of the Application resource. This identifier is equivalent to the - # project ID of the Google Cloud Platform project where you want to deploy your - # application. Example: myapp. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Cookie expiration policy for this application. - # Corresponds to the JSON property `defaultCookieExpiration` - # @return [String] - attr_accessor :default_cookie_expiration - - # Location from which this application will be run. Application instances will - # run out of data centers in the chosen location, which is also where all of the - # application's end user content is stored.Defaults to us-central.Options are:us- - # central - Central USeurope-west - Western Europeus-east1 - Eastern US - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Serving status of this application. - # Corresponds to the JSON property `servingStatus` - # @return [String] - attr_accessor :serving_status - - # Hostname used to reach this application, as resolved by App Engine.@OutputOnly - # Corresponds to the JSON property `defaultHostname` - # @return [String] - attr_accessor :default_hostname - - # Identity-Aware Proxy - # Corresponds to the JSON property `iap` - # @return [Google::Apis::AppengineV1::IdentityAwareProxy] - attr_accessor :iap - # Google Apps authentication domain that controls which users can access this # application.Defaults to open access for any Google Account. # Corresponds to the JSON property `authDomain` # @return [String] attr_accessor :auth_domain + # Identity-Aware Proxy + # Corresponds to the JSON property `iap` + # @return [Google::Apis::AppengineV1::IdentityAwareProxy] + attr_accessor :iap + # Google Cloud Storage bucket that can be used for storing files associated with # this application. This bucket is associated with the application and can be # used by the gcloud deployment commands.@OutputOnly @@ -1264,24 +1110,60 @@ module Google # @return [String] attr_accessor :gcr_domain + # Full path to the Application resource in the API. Example: apps/myapp.@ + # OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Cookie expiration policy for this application. + # Corresponds to the JSON property `defaultCookieExpiration` + # @return [String] + attr_accessor :default_cookie_expiration + + # Identifier of the Application resource. This identifier is equivalent to the + # project ID of the Google Cloud Platform project where you want to deploy your + # application. Example: myapp. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Location from which this application will be run. Application instances will + # run out of data centers in the chosen location, which is also where all of the + # application's end user content is stored.Defaults to us-central.Options are:us- + # central - Central USeurope-west - Western Europeus-east1 - Eastern US + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Serving status of this application. + # Corresponds to the JSON property `servingStatus` + # @return [String] + attr_accessor :serving_status + + # Hostname used to reach this application, as resolved by App Engine.@OutputOnly + # Corresponds to the JSON property `defaultHostname` + # @return [String] + attr_accessor :default_hostname + 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) - @default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration) - @location_id = args[:location_id] if args.key?(:location_id) - @serving_status = args[:serving_status] if args.key?(:serving_status) - @default_hostname = args[:default_hostname] if args.key?(:default_hostname) - @iap = args[:iap] if args.key?(:iap) @auth_domain = args[:auth_domain] if args.key?(:auth_domain) + @iap = args[:iap] if args.key?(:iap) @code_bucket = args[:code_bucket] if args.key?(:code_bucket) @default_bucket = args[:default_bucket] if args.key?(:default_bucket) @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules) @gcr_domain = args[:gcr_domain] if args.key?(:gcr_domain) + @name = args[:name] if args.key?(:name) + @default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration) + @id = args[:id] if args.key?(:id) + @location_id = args[:location_id] if args.key?(:location_id) + @serving_status = args[:serving_status] if args.key?(:serving_status) + @default_hostname = args[:default_hostname] if args.key?(:default_hostname) end end @@ -1290,29 +1172,6 @@ module Google class Instance include Google::Apis::Core::Hashable - # Virtual machine ID of this instance. Only applicable for instances in App - # Engine flexible environment.@OutputOnly - # Corresponds to the JSON property `vmId` - # @return [String] - attr_accessor :vm_id - - # Average queries per second (QPS) over the last minute.@OutputOnly - # Corresponds to the JSON property `qps` - # @return [Float] - attr_accessor :qps - - # Zone where the virtual machine is located. Only applicable for instances in - # App Engine flexible environment.@OutputOnly - # Corresponds to the JSON property `vmZoneName` - # @return [String] - attr_accessor :vm_zone_name - - # Full path to the Instance resource in the API. Example: apps/myapp/services/ - # default/versions/v1/instances/instance-1.@OutputOnly - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # Average latency (ms) over the last minute.@OutputOnly # Corresponds to the JSON property `averageLatency` # @return [Fixnum] @@ -1335,6 +1194,12 @@ module Google # @return [String] attr_accessor :id + # Status of the virtual machine where this instance lives. Only applicable for + # instances in App Engine flexible environment.@OutputOnly + # Corresponds to the JSON property `vmStatus` + # @return [String] + attr_accessor :vm_status + # Number of errors since this instance was started.@OutputOnly # Corresponds to the JSON property `errors` # @return [Fixnum] @@ -1345,12 +1210,6 @@ module Google # @return [String] attr_accessor :availability - # Status of the virtual machine where this instance lives. Only applicable for - # instances in App Engine flexible environment.@OutputOnly - # Corresponds to the JSON property `vmStatus` - # @return [String] - attr_accessor :vm_status - # Time that this instance was started.@OutputOnly # Corresponds to the JSON property `startTime` # @return [String] @@ -1379,28 +1238,51 @@ module Google # @return [String] attr_accessor :vm_name + # Virtual machine ID of this instance. Only applicable for instances in App + # Engine flexible environment.@OutputOnly + # Corresponds to the JSON property `vmId` + # @return [String] + attr_accessor :vm_id + + # Average queries per second (QPS) over the last minute.@OutputOnly + # Corresponds to the JSON property `qps` + # @return [Float] + attr_accessor :qps + + # Zone where the virtual machine is located. Only applicable for instances in + # App Engine flexible environment.@OutputOnly + # Corresponds to the JSON property `vmZoneName` + # @return [String] + attr_accessor :vm_zone_name + + # Full path to the Instance resource in the API. Example: apps/myapp/services/ + # default/versions/v1/instances/instance-1.@OutputOnly + # 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) - @vm_id = args[:vm_id] if args.key?(:vm_id) - @qps = args[:qps] if args.key?(:qps) - @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name) - @name = args[:name] if args.key?(:name) @average_latency = args[:average_latency] if args.key?(:average_latency) @vm_ip = args[:vm_ip] if args.key?(:vm_ip) @memory_usage = args[:memory_usage] if args.key?(:memory_usage) @id = args[:id] if args.key?(:id) + @vm_status = args[:vm_status] if args.key?(:vm_status) @errors = args[:errors] if args.key?(:errors) @availability = args[:availability] if args.key?(:availability) - @vm_status = args[:vm_status] if args.key?(:vm_status) @start_time = args[:start_time] if args.key?(:start_time) @vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled) @requests = args[:requests] if args.key?(:requests) @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) @vm_name = args[:vm_name] if args.key?(:vm_name) + @vm_id = args[:vm_id] if args.key?(:vm_id) + @qps = args[:qps] if args.key?(:qps) + @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name) + @name = args[:name] if args.key?(:name) end end @@ -1409,22 +1291,6 @@ module Google class LivenessCheck include Google::Apis::Core::Hashable - # Interval between health checks. - # Corresponds to the JSON property `checkInterval` - # @return [String] - attr_accessor :check_interval - - # Time before the check is considered failed. - # Corresponds to the JSON property `timeout` - # @return [String] - attr_accessor :timeout - - # Number of consecutive failed checks required before considering the VM - # unhealthy. - # Corresponds to the JSON property `failureThreshold` - # @return [Fixnum] - attr_accessor :failure_threshold - # The initial delay before starting to execute the checks. # Corresponds to the JSON property `initialDelay` # @return [String] @@ -1447,19 +1313,35 @@ module Google # @return [String] attr_accessor :host + # Interval between health checks. + # Corresponds to the JSON property `checkInterval` + # @return [String] + attr_accessor :check_interval + + # Number of consecutive failed checks required before considering the VM + # unhealthy. + # Corresponds to the JSON property `failureThreshold` + # @return [Fixnum] + attr_accessor :failure_threshold + + # Time before the 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) - @check_interval = args[:check_interval] if args.key?(:check_interval) - @timeout = args[:timeout] if args.key?(:timeout) - @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold) @initial_delay = args[:initial_delay] if args.key?(:initial_delay) @path = args[:path] if args.key?(:path) @success_threshold = args[:success_threshold] if args.key?(:success_threshold) @host = args[:host] if args.key?(:host) + @check_interval = args[:check_interval] if args.key?(:check_interval) + @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold) + @timeout = args[:timeout] if args.key?(:timeout) end end @@ -1467,16 +1349,6 @@ module Google class NetworkUtilization include Google::Apis::Core::Hashable - # Target packets sent per second. - # Corresponds to the JSON property `targetSentPacketsPerSecond` - # @return [Fixnum] - attr_accessor :target_sent_packets_per_second - - # Target bytes received per second. - # Corresponds to the JSON property `targetReceivedBytesPerSecond` - # @return [Fixnum] - attr_accessor :target_received_bytes_per_second - # Target packets received per second. # Corresponds to the JSON property `targetReceivedPacketsPerSecond` # @return [Fixnum] @@ -1487,16 +1359,26 @@ module Google # @return [Fixnum] attr_accessor :target_sent_bytes_per_second + # Target bytes received per second. + # Corresponds to the JSON property `targetReceivedBytesPerSecond` + # @return [Fixnum] + attr_accessor :target_received_bytes_per_second + + # Target packets sent per second. + # Corresponds to the JSON property `targetSentPacketsPerSecond` + # @return [Fixnum] + attr_accessor :target_sent_packets_per_second + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second) - @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second) @target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second) @target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second) + @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second) + @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second) end end @@ -1504,6 +1386,17 @@ module Google class Location include Google::Apis::Core::Hashable + # The canonical id for this location. For example: "us-east1". + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + # Cross-service attributes for the location. For example # `"cloud.googleapis.com/region": "us-east1"` # Corresponds to the JSON property `labels` @@ -1516,27 +1409,16 @@ module Google # @return [String] attr_accessor :name - # The canonical id for this location. For example: "us-east1". - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) @location_id = args[:location_id] if args.key?(:location_id) @metadata = args[:metadata] if args.key?(:metadata) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) end end @@ -1546,6 +1428,11 @@ module Google class HealthCheck include Google::Apis::Core::Hashable + # Time before the health check is considered failed. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + # Number of consecutive failed health checks required before removing traffic. # Corresponds to the JSON property `unhealthyThreshold` # @return [Fixnum] @@ -1580,24 +1467,19 @@ module Google # @return [String] attr_accessor :check_interval - # 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) + @timeout = args[:timeout] if args.key?(:timeout) @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check) @host = args[:host] if args.key?(:host) @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold) @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) @check_interval = args[:check_interval] if args.key?(:check_interval) - @timeout = args[:timeout] if args.key?(:timeout) end end @@ -1611,17 +1493,17 @@ module Google # @return [String] attr_accessor :path + # Number of consecutive successful checks required before receiving traffic. + # Corresponds to the JSON property `successThreshold` + # @return [Fixnum] + attr_accessor :success_threshold + # Host header to send when performing a HTTP Readiness check. Example: "myapp. # appspot.com" # Corresponds to the JSON property `host` # @return [String] attr_accessor :host - # Number of consecutive successful checks required before receiving traffic. - # Corresponds to the JSON property `successThreshold` - # @return [Fixnum] - attr_accessor :success_threshold - # Interval between health checks. # Corresponds to the JSON property `checkInterval` # @return [String] @@ -1644,8 +1526,8 @@ module Google # Update properties of this object def update!(**args) @path = args[:path] if args.key?(:path) - @host = args[:host] if args.key?(:host) @success_threshold = args[:success_threshold] if args.key?(:success_threshold) + @host = args[:host] if args.key?(:host) @check_interval = args[:check_interval] if args.key?(:check_interval) @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold) @timeout = args[:timeout] if args.key?(:timeout) @@ -1679,6 +1561,12 @@ module Google class OperationMetadataV1Beta5 include Google::Apis::Core::Hashable + # API method name that initiated this 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 created.@OutputOnly # Corresponds to the JSON property `insertTime` # @return [String] @@ -1689,22 +1577,16 @@ module Google # @return [String] attr_accessor :end_time - # User who requested this operation.@OutputOnly - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - # Name of the resource that this operation is acting on. Example: apps/myapp/ # services/default.@OutputOnly # Corresponds to the JSON property `target` # @return [String] attr_accessor :target - # API method name that initiated this operation. Example: google.appengine. - # v1beta5.Version.CreateVersion.@OutputOnly - # Corresponds to the JSON property `method` + # User who requested this operation.@OutputOnly + # Corresponds to the JSON property `user` # @return [String] - attr_accessor :method_prop + attr_accessor :user def initialize(**args) update!(**args) @@ -1712,11 +1594,11 @@ module Google # 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) - @method_prop = args[:method_prop] if args.key?(:method_prop) + @user = args[:user] if args.key?(:user) end end @@ -1725,76 +1607,10 @@ module Google class Version include Google::Apis::Core::Hashable - # 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::AppengineV1::ManualScaling] - attr_accessor :manual_scaling - - # 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 - - # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/ - # endpoints/) configuration for API handlers. - # Corresponds to the JSON property `apiConfig` - # @return [Google::Apis::AppengineV1::ApiConfigHandler] - attr_accessor :api_config - - # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The - # Endpoints API Service provides tooling for serving Open API and gRPC endpoints - # via an NGINX proxy.The fields here refer to the name and configuration id of a - # "service" resource in the Service Management API (https://cloud.google.com/ - # service-management/overview). - # Corresponds to the JSON property `endpointsApiService` - # @return [Google::Apis::AppengineV1::EndpointsApiService] - attr_accessor :endpoints_api_service - - # Serving URL for this version. Example: "https://myversion-dot-myservice-dot- - # myapp.appspot.com"@OutputOnly - # Corresponds to the JSON property `versionUrl` - # @return [String] - attr_accessor :version_url - - # Whether to deploy this version in a container on a virtual machine. - # Corresponds to the JSON property `vm` - # @return [Boolean] - attr_accessor :vm - alias_method :vm?, :vm - - # Instance class that is used to run this version. Valid values are: - # AutomaticScaling: F1, F2, F4, F4_1G - # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for - # AutomaticScaling and B1 for ManualScaling or BasicScaling. - # Corresponds to the JSON property `instanceClass` - # @return [String] - attr_accessor :instance_class - - # Current serving status of this version. Only the versions with a SERVING - # status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an - # invalid value. Defaults to SERVING. - # Corresponds to the JSON property `servingStatus` - # @return [String] - attr_accessor :serving_status - - # The version of the API in the given runtime environment. Please see the app. - # yaml reference for valid values at https://cloud.google.com/appengine/docs/ - # standard//config/appref - # Corresponds to the JSON property `runtimeApiVersion` - # @return [String] - attr_accessor :runtime_api_version - - # Code and application artifacts used to deploy a version to App Engine. - # Corresponds to the JSON property `deployment` - # @return [Google::Apis::AppengineV1::Deployment] - attr_accessor :deployment - - # Time that this version was created.@OutputOnly - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time + # Machine resources for a version. + # Corresponds to the JSON property `resources` + # @return [Google::Apis::AppengineV1::Resources] + attr_accessor :resources # Before an application can receive email or XMPP messages, the application must # be configured to enable the service. @@ -1802,11 +1618,6 @@ module Google # @return [Array] attr_accessor :inbound_services - # Machine resources for a version. - # Corresponds to the JSON property `resources` - # @return [Google::Apis::AppengineV1::Resources] - attr_accessor :resources - # Custom static error pages. Limited to 10KB per page.Only returned in GET # requests if view=FULL is set. # Corresponds to the JSON property `errorHandlers` @@ -1925,25 +1736,85 @@ module Google # @return [Google::Apis::AppengineV1::ReadinessCheck] attr_accessor :readiness_check + # 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::AppengineV1::ManualScaling] + attr_accessor :manual_scaling + + # 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 + + # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/ + # endpoints/) configuration for API handlers. + # Corresponds to the JSON property `apiConfig` + # @return [Google::Apis::AppengineV1::ApiConfigHandler] + attr_accessor :api_config + + # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The + # Endpoints API Service provides tooling for serving Open API and gRPC endpoints + # via an NGINX proxy.The fields here refer to the name and configuration id of a + # "service" resource in the Service Management API (https://cloud.google.com/ + # service-management/overview). + # Corresponds to the JSON property `endpointsApiService` + # @return [Google::Apis::AppengineV1::EndpointsApiService] + attr_accessor :endpoints_api_service + + # Whether to deploy this version in a container on a virtual machine. + # Corresponds to the JSON property `vm` + # @return [Boolean] + attr_accessor :vm + alias_method :vm?, :vm + + # Serving URL for this version. Example: "https://myversion-dot-myservice-dot- + # myapp.appspot.com"@OutputOnly + # Corresponds to the JSON property `versionUrl` + # @return [String] + attr_accessor :version_url + + # Instance class that is used to run this version. Valid values are: + # AutomaticScaling: F1, F2, F4, F4_1G + # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for + # AutomaticScaling and B1 for ManualScaling or BasicScaling. + # Corresponds to the JSON property `instanceClass` + # @return [String] + attr_accessor :instance_class + + # Current serving status of this version. Only the versions with a SERVING + # status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an + # invalid value. Defaults to SERVING. + # Corresponds to the JSON property `servingStatus` + # @return [String] + attr_accessor :serving_status + + # The version of the API in the given runtime environment. Please see the app. + # yaml reference for valid values at https://cloud.google.com/appengine/docs/ + # standard//config/appref + # Corresponds to the JSON property `runtimeApiVersion` + # @return [String] + attr_accessor :runtime_api_version + + # Code and application artifacts used to deploy a version to App Engine. + # Corresponds to the JSON property `deployment` + # @return [Google::Apis::AppengineV1::Deployment] + attr_accessor :deployment + + # Time that this version was created.@OutputOnly + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) - @name = args[:name] if args.key?(:name) - @api_config = args[:api_config] if args.key?(:api_config) - @endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service) - @version_url = args[:version_url] if args.key?(:version_url) - @vm = args[:vm] if args.key?(:vm) - @instance_class = args[:instance_class] if args.key?(:instance_class) - @serving_status = args[:serving_status] if args.key?(:serving_status) - @runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version) - @deployment = args[:deployment] if args.key?(:deployment) - @create_time = args[:create_time] if args.key?(:create_time) - @inbound_services = args[:inbound_services] if args.key?(:inbound_services) @resources = args[:resources] if args.key?(:resources) + @inbound_services = args[:inbound_services] if args.key?(:inbound_services) @error_handlers = args[:error_handlers] if args.key?(:error_handlers) @default_expiration = args[:default_expiration] if args.key?(:default_expiration) @libraries = args[:libraries] if args.key?(:libraries) @@ -1963,6 +1834,17 @@ module Google @health_check = args[:health_check] if args.key?(:health_check) @threadsafe = args[:threadsafe] if args.key?(:threadsafe) @readiness_check = args[:readiness_check] if args.key?(:readiness_check) + @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) + @name = args[:name] if args.key?(:name) + @api_config = args[:api_config] if args.key?(:api_config) + @endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service) + @vm = args[:vm] if args.key?(:vm) + @version_url = args[:version_url] if args.key?(:version_url) + @instance_class = args[:instance_class] if args.key?(:instance_class) + @serving_status = args[:serving_status] if args.key?(:serving_status) + @runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version) + @deployment = args[:deployment] if args.key?(:deployment) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -2003,6 +1885,12 @@ module Google class FileInfo include Google::Apis::Core::Hashable + # 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 hash of the file, in hex. # Corresponds to the JSON property `sha1Sum` # @return [String] @@ -2013,21 +1901,15 @@ module Google # @return [String] attr_accessor :mime_type - # 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 - 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) - @source_url = args[:source_url] if args.key?(:source_url) end end @@ -2035,23 +1917,6 @@ module Google class OperationMetadataExperimental include Google::Apis::Core::Hashable - # User who requested this operation.@OutputOnly - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # Name of the resource that this operation is acting on. Example: apps/myapp/ - # customDomains/example.com.@OutputOnly - # Corresponds to the JSON property `target` - # @return [String] - attr_accessor :target - - # API method that initiated this operation. Example: google.appengine. - # experimental.CustomDomains.CreateCustomDomain.@OutputOnly - # Corresponds to the JSON property `method` - # @return [String] - attr_accessor :method_prop - # Time that this operation was created.@OutputOnly # Corresponds to the JSON property `insertTime` # @return [String] @@ -2062,17 +1927,34 @@ module Google # @return [String] attr_accessor :end_time + # Name of the resource that this operation is acting on. Example: apps/myapp/ + # customDomains/example.com.@OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # User who requested this operation.@OutputOnly + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + + # API method that initiated this operation. Example: google.appengine. + # experimental.CustomDomains.CreateCustomDomain.@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) - @user = args[:user] if args.key?(:user) - @target = args[:target] if args.key?(:target) - @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) + @target = args[:target] if args.key?(:target) + @user = args[:user] if args.key?(:user) + @method_prop = args[:method_prop] if args.key?(:method_prop) end end @@ -2081,13 +1963,6 @@ module Google class TrafficSplit include Google::Apis::Core::Hashable - # Mechanism used to determine which version a request is sent 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 version IDs within the service to fractional (0.000, 1] # allocations of traffic for that version. Each version can be specified only # once, but some versions in the service may not have any traffic allocation. @@ -2099,14 +1974,21 @@ module Google # @return [Hash] attr_accessor :allocations + # Mechanism used to determine which version a request is sent 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 + 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) + @shard_by = args[:shard_by] if args.key?(:shard_by) end end @@ -2172,24 +2054,61 @@ module Google 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 + # The services belonging to the requested application. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @services = args[:services] if args.key?(:services) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @services = args[:services] if args.key?(:services) + end + end + + # Machine resources for a version. + class Resources + include Google::Apis::Core::Hashable + + # Memory (GB) needed. + # Corresponds to the JSON property `memoryGb` + # @return [Float] + attr_accessor :memory_gb + + # Number of CPU cores needed. + # Corresponds to the JSON property `cpu` + # @return [Float] + attr_accessor :cpu + + # User specified volumes. + # Corresponds to the JSON property `volumes` + # @return [Array] + attr_accessor :volumes + + # Disk size (GB) needed. + # Corresponds to the JSON property `diskGb` + # @return [Float] + attr_accessor :disk_gb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @memory_gb = args[:memory_gb] if args.key?(:memory_gb) + @cpu = args[:cpu] if args.key?(:cpu) + @volumes = args[:volumes] if args.key?(:volumes) + @disk_gb = args[:disk_gb] if args.key?(:disk_gb) end end @@ -2197,13 +2116,6 @@ module Google class Deployment include Google::Apis::Core::Hashable - # Manifest of the files stored in Google Cloud Storage that are included as part - # of this version. All files must be readable using the credentials supplied - # with this call. - # Corresponds to the JSON property `files` - # @return [Hash] - attr_accessor :files - # The zip file information for a zip deployment. # Corresponds to the JSON property `zip` # @return [Google::Apis::AppengineV1::ZipInfo] @@ -2216,52 +2128,22 @@ module Google # @return [Google::Apis::AppengineV1::ContainerInfo] attr_accessor :container + # Manifest of the files stored in Google Cloud Storage that are included as part + # of this version. All files must be readable using the credentials supplied + # with this call. + # Corresponds to the JSON property `files` + # @return [Hash] + attr_accessor :files + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @files = args[:files] if args.key?(:files) @zip = args[:zip] if args.key?(:zip) @container = args[:container] if args.key?(:container) - end - end - - # Machine resources for a version. - class Resources - include Google::Apis::Core::Hashable - - # User specified volumes. - # Corresponds to the JSON property `volumes` - # @return [Array] - attr_accessor :volumes - - # Disk size (GB) needed. - # Corresponds to the JSON property `diskGb` - # @return [Float] - attr_accessor :disk_gb - - # Number of CPU cores needed. - # Corresponds to the JSON property `cpu` - # @return [Float] - attr_accessor :cpu - - # Memory (GB) needed. - # 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) - @volumes = args[:volumes] if args.key?(:volumes) - @disk_gb = args[:disk_gb] if args.key?(:disk_gb) - @cpu = args[:cpu] if args.key?(:cpu) - @memory_gb = args[:memory_gb] if args.key?(:memory_gb) + @files = args[:files] if args.key?(:files) end end @@ -2269,11 +2151,6 @@ module Google class Volume include Google::Apis::Core::Hashable - # Underlying volume type, e.g. 'tmpfs'. - # Corresponds to the JSON property `volumeType` - # @return [String] - attr_accessor :volume_type - # Volume size in gigabytes. # Corresponds to the JSON property `sizeGb` # @return [Float] @@ -2284,15 +2161,20 @@ module Google # @return [String] attr_accessor :name + # Underlying volume type, e.g. 'tmpfs'. + # Corresponds to the JSON property `volumeType` + # @return [String] + attr_accessor :volume_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @volume_type = args[:volume_type] if args.key?(:volume_type) @size_gb = args[:size_gb] if args.key?(:size_gb) @name = args[:name] if args.key?(:name) + @volume_type = args[:volume_type] if args.key?(:volume_type) end end @@ -2320,6 +2202,124 @@ module Google @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end + + # Metadata for the given google.longrunning.Operation. + class OperationMetadataV1Alpha + include Google::Apis::Core::Hashable + + # Durable messages that persist on every operation poll. @OutputOnly + # Corresponds to the JSON property `warning` + # @return [Array] + attr_accessor :warning + + # Time that this operation was created.@OutputOnly + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # Name of the resource that this operation is acting on. Example: apps/myapp/ + # services/default.@OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # User who requested this operation.@OutputOnly + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + + # Ephemeral message that may change every time the operation is polled. @ + # OutputOnly + # Corresponds to the JSON property `ephemeralMessage` + # @return [String] + attr_accessor :ephemeral_message + + # API method that initiated this operation. Example: google.appengine.v1alpha. + # Versions.CreateVersion.@OutputOnly + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # Time that this operation completed.@OutputOnly + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warning = args[:warning] if args.key?(:warning) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @target = args[:target] if args.key?(:target) + @user = args[:user] if args.key?(:user) + @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @end_time = args[:end_time] if args.key?(:end_time) + end + end + + # Rules to match an HTTP request and dispatch that request to a service. + class UrlDispatchRule + include Google::Apis::Core::Hashable + + # Pathname within the host. Must start with a "/". A single "*" 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 + + # Resource ID of a service in this application that should serve the matched + # request. The service must already exist. Example: default. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # Domain name to match against. The wildcard "*" is supported if specified + # before a period: "*.".Defaults to matching all domains: "*". + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] if args.key?(:path) + @service = args[:service] if args.key?(:service) + @domain = args[:domain] if args.key?(:domain) + end + end + + # Response message for Versions.ListVersions. + class ListVersionsResponse + include Google::Apis::Core::Hashable + + # Continuation token for fetching the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The versions belonging to the requested service. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + 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) + @versions = args[:versions] if args.key?(:versions) + end + end end end end diff --git a/generated/google/apis/appengine_v1/representations.rb b/generated/google/apis/appengine_v1/representations.rb index eced6143f..707a956a7 100644 --- a/generated/google/apis/appengine_v1/representations.rb +++ b/generated/google/apis/appengine_v1/representations.rb @@ -22,24 +22,6 @@ module Google module Apis module AppengineV1 - class OperationMetadataV1Alpha - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlDispatchRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListVersionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ApiEndpointHandler class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,19 +64,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class EndpointsApiService - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class UrlMap class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ApiConfigHandler + class EndpointsApiService class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -106,13 +82,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class StaticFilesHandler + class ApiConfigHandler class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DiskUtilization + class StaticFilesHandler class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -124,19 +100,25 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DiskUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CpuUtilization class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class IdentityAwareProxy + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Status + class IdentityAwareProxy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -292,13 +274,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Deployment + class Resources class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Resources + class Deployment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -317,34 +299,21 @@ module Google end class OperationMetadataV1Alpha - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - collection :warning, as: 'warning' - property :insert_time, as: 'insertTime' - property :user, as: 'user' - property :target, as: 'target' - property :ephemeral_message, as: 'ephemeralMessage' - property :method_prop, as: 'method' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class UrlDispatchRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :domain, as: 'domain' - property :service, as: 'service' - property :path, as: 'path' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListVersionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class ApiEndpointHandler @@ -357,12 +326,6 @@ module Google class AutomaticScaling # @private class Representation < Google::Apis::Core::JsonRepresentation - property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation - - property :max_idle_instances, as: 'maxIdleInstances' - property :min_idle_instances, as: 'minIdleInstances' - property :max_total_instances, as: 'maxTotalInstances' - property :min_total_instances, as: 'minTotalInstances' property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation property :max_concurrent_requests, as: 'maxConcurrentRequests' @@ -373,6 +336,12 @@ module Google property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation property :min_pending_latency, as: 'minPendingLatency' + property :max_idle_instances, as: 'maxIdleInstances' + property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation + + property :min_idle_instances, as: 'minIdleInstances' + property :max_total_instances, as: 'maxTotalInstances' + property :min_total_instances, as: 'minTotalInstances' end end @@ -387,8 +356,8 @@ module Google class Library # @private class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' property :name, as: 'name' + property :version, as: 'version' end end @@ -416,14 +385,6 @@ module Google end end - class EndpointsApiService - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :config_id, as: 'configId' - end - end - class UrlMap # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -441,34 +402,42 @@ module Google end end - class ApiConfigHandler + class EndpointsApiService # @private class Representation < Google::Apis::Core::JsonRepresentation - property :login, as: 'login' - property :url, as: 'url' - property :security_level, as: 'securityLevel' - property :auth_fail_action, as: 'authFailAction' - property :script, as: 'script' + property :config_id, as: 'configId' + property :name, as: 'name' end end class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :response, as: 'response' + property :name, as: 'name' property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation hash :metadata, as: 'metadata' property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' + end + end + + class ApiConfigHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :security_level, as: 'securityLevel' + property :auth_fail_action, as: 'authFailAction' + property :script, as: 'script' + property :login, as: 'login' end end class StaticFilesHandler # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :http_headers, as: 'httpHeaders' property :application_readable, as: 'applicationReadable' + hash :http_headers, as: 'httpHeaders' property :upload_path_regex, as: 'uploadPathRegex' property :path, as: 'path' property :mime_type, as: 'mimeType' @@ -477,21 +446,21 @@ module Google end end - class DiskUtilization - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond' - property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond' - property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond' - property :target_read_ops_per_second, as: 'targetReadOpsPerSecond' - end - end - class BasicScaling # @private class Representation < Google::Apis::Core::JsonRepresentation - property :idle_timeout, as: 'idleTimeout' property :max_instances, as: 'maxInstances' + property :idle_timeout, as: 'idleTimeout' + end + end + + class DiskUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :target_read_ops_per_second, as: 'targetReadOpsPerSecond' + property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond' + property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond' + property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond' end end @@ -503,6 +472,15 @@ module Google end end + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :code, as: 'code' + property :message, as: 'message' + end + end + class IdentityAwareProxy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -513,15 +491,6 @@ module Google end end - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' - end - end - class ManualScaling # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -532,60 +501,60 @@ module Google class LocationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :standard_environment_available, as: 'standardEnvironmentAvailable' property :flexible_environment_available, as: 'flexibleEnvironmentAvailable' + property :standard_environment_available, as: 'standardEnvironmentAvailable' end end class Service # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :name, as: 'name' property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation + property :id, as: 'id' + property :name, as: 'name' end end class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::AppengineV1::Operation, decorator: Google::Apis::AppengineV1::Operation::Representation - property :next_page_token, as: 'nextPageToken' end end class OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :insert_time, as: 'insertTime' property :user, as: 'user' property :target, as: 'target' property :method_prop, as: 'method' property :end_time, as: 'endTime' property :operation_type, as: 'operationType' + property :insert_time, as: 'insertTime' end end class OperationMetadataV1 # @private class Representation < Google::Apis::Core::JsonRepresentation + property :target, as: 'target' + property :user, as: 'user' property :ephemeral_message, as: 'ephemeralMessage' property :method_prop, as: 'method' property :end_time, as: 'endTime' - collection :warning, as: 'warning' property :insert_time, as: 'insertTime' - property :user, as: 'user' - property :target, as: 'target' + collection :warning, as: 'warning' end end class ErrorHandler # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error_code, as: 'errorCode' property :mime_type, as: 'mimeType' + property :error_code, as: 'errorCode' property :static_file, as: 'staticFile' end end @@ -593,9 +562,9 @@ module Google class Network # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :forwarded_ports, as: 'forwardedPorts' - property :instance_tag, as: 'instanceTag' property :subnetwork_name, as: 'subnetworkName' + property :instance_tag, as: 'instanceTag' + collection :forwarded_ports, as: 'forwardedPorts' property :name, as: 'name' end end @@ -603,88 +572,88 @@ module Google class Application # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :id, as: 'id' - property :default_cookie_expiration, as: 'defaultCookieExpiration' - property :location_id, as: 'locationId' - property :serving_status, as: 'servingStatus' - property :default_hostname, as: 'defaultHostname' + property :auth_domain, as: 'authDomain' property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation - property :auth_domain, as: 'authDomain' property :code_bucket, as: 'codeBucket' property :default_bucket, as: 'defaultBucket' collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation property :gcr_domain, as: 'gcrDomain' + property :name, as: 'name' + property :default_cookie_expiration, as: 'defaultCookieExpiration' + property :id, as: 'id' + property :location_id, as: 'locationId' + property :serving_status, as: 'servingStatus' + property :default_hostname, as: 'defaultHostname' end end class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation - property :vm_id, as: 'vmId' - property :qps, as: 'qps' - property :vm_zone_name, as: 'vmZoneName' - property :name, as: 'name' property :average_latency, as: 'averageLatency' property :vm_ip, as: 'vmIp' property :memory_usage, :numeric_string => true, as: 'memoryUsage' property :id, as: 'id' + property :vm_status, as: 'vmStatus' property :errors, as: 'errors' property :availability, as: 'availability' - property :vm_status, as: 'vmStatus' property :start_time, as: 'startTime' property :vm_debug_enabled, as: 'vmDebugEnabled' property :requests, as: 'requests' property :app_engine_release, as: 'appEngineRelease' property :vm_name, as: 'vmName' + property :vm_id, as: 'vmId' + property :qps, as: 'qps' + property :vm_zone_name, as: 'vmZoneName' + property :name, as: 'name' end end class LivenessCheck # @private class Representation < Google::Apis::Core::JsonRepresentation - property :check_interval, as: 'checkInterval' - property :timeout, as: 'timeout' - property :failure_threshold, as: 'failureThreshold' property :initial_delay, as: 'initialDelay' property :path, as: 'path' property :success_threshold, as: 'successThreshold' property :host, as: 'host' + property :check_interval, as: 'checkInterval' + property :failure_threshold, as: 'failureThreshold' + property :timeout, as: 'timeout' end end class NetworkUtilization # @private class Representation < Google::Apis::Core::JsonRepresentation - property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond' - property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond' property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond' property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond' + property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond' + property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond' end end class Location # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :name, as: 'name' property :location_id, as: 'locationId' hash :metadata, as: 'metadata' + hash :labels, as: 'labels' + property :name, as: 'name' end end class HealthCheck # @private class Representation < Google::Apis::Core::JsonRepresentation + property :timeout, as: 'timeout' property :unhealthy_threshold, as: 'unhealthyThreshold' property :disable_health_check, as: 'disableHealthCheck' property :host, as: 'host' property :restart_threshold, as: 'restartThreshold' property :healthy_threshold, as: 'healthyThreshold' property :check_interval, as: 'checkInterval' - property :timeout, as: 'timeout' end end @@ -692,8 +661,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :path, as: 'path' - property :host, as: 'host' property :success_threshold, as: 'successThreshold' + property :host, as: 'host' property :check_interval, as: 'checkInterval' property :failure_threshold, as: 'failureThreshold' property :timeout, as: 'timeout' @@ -710,35 +679,20 @@ module Google 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' - property :method_prop, as: 'method' + property :user, as: 'user' end end class Version # @private class Representation < Google::Apis::Core::JsonRepresentation - property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation - - property :name, as: 'name' - property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1::ApiConfigHandler, decorator: Google::Apis::AppengineV1::ApiConfigHandler::Representation - - property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation - - property :version_url, as: 'versionUrl' - property :vm, as: 'vm' - property :instance_class, as: 'instanceClass' - property :serving_status, as: 'servingStatus' - property :runtime_api_version, as: 'runtimeApiVersion' - property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation - - property :create_time, as: 'createTime' - collection :inbound_services, as: 'inboundServices' property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation + collection :inbound_services, as: 'inboundServices' collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation property :default_expiration, as: 'defaultExpiration' @@ -767,6 +721,21 @@ module Google property :threadsafe, as: 'threadsafe' property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation + property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation + + property :name, as: 'name' + property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1::ApiConfigHandler, decorator: Google::Apis::AppengineV1::ApiConfigHandler::Representation + + property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation + + property :vm, as: 'vm' + property :version_url, as: 'versionUrl' + property :instance_class, as: 'instanceClass' + property :serving_status, as: 'servingStatus' + property :runtime_api_version, as: 'runtimeApiVersion' + property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation + + property :create_time, as: 'createTime' end end @@ -786,28 +755,28 @@ module Google class FileInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :source_url, as: 'sourceUrl' property :sha1_sum, as: 'sha1Sum' property :mime_type, as: 'mimeType' - property :source_url, as: 'sourceUrl' end end class OperationMetadataExperimental # @private class Representation < Google::Apis::Core::JsonRepresentation - property :user, as: 'user' - property :target, as: 'target' - property :method_prop, as: 'method' property :insert_time, as: 'insertTime' property :end_time, as: 'endTime' + property :target, as: 'target' + property :user, as: 'user' + property :method_prop, as: 'method' end end class TrafficSplit # @private class Representation < Google::Apis::Core::JsonRepresentation - property :shard_by, as: 'shardBy' hash :allocations, as: 'allocations' + property :shard_by, as: 'shardBy' end end @@ -827,20 +796,8 @@ module Google class ListServicesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :services, as: 'services', class: Google::Apis::AppengineV1::Service, decorator: Google::Apis::AppengineV1::Service::Representation - property :next_page_token, as: 'nextPageToken' - end - end - - class Deployment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation - - property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation - - property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation + collection :services, as: 'services', class: Google::Apis::AppengineV1::Service, decorator: Google::Apis::AppengineV1::Service::Representation end end @@ -848,20 +805,32 @@ module Google class Resources # @private class Representation < Google::Apis::Core::JsonRepresentation + property :memory_gb, as: 'memoryGb' + property :cpu, as: 'cpu' collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation property :disk_gb, as: 'diskGb' - property :cpu, as: 'cpu' - property :memory_gb, as: 'memoryGb' + end + end + + class Deployment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation + + property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation + + hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation + end end class Volume # @private class Representation < Google::Apis::Core::JsonRepresentation - property :volume_type, as: 'volumeType' property :size_gb, as: 'sizeGb' property :name, as: 'name' + property :volume_type, as: 'volumeType' end end @@ -873,6 +842,37 @@ module Google property :next_page_token, as: 'nextPageToken' end end + + class OperationMetadataV1Alpha + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warning, as: 'warning' + property :insert_time, as: 'insertTime' + property :target, as: 'target' + property :user, as: 'user' + property :ephemeral_message, as: 'ephemeralMessage' + property :method_prop, as: 'method' + property :end_time, as: 'endTime' + end + end + + class UrlDispatchRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + property :service, as: 'service' + property :domain, as: 'domain' + end + end + + class ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation + + end + end end end end diff --git a/generated/google/apis/appengine_v1/service.rb b/generated/google/apis/appengine_v1/service.rb index 175ee2f8f..b27bbbe8c 100644 --- a/generated/google/apis/appengine_v1/service.rb +++ b/generated/google/apis/appengine_v1/service.rb @@ -48,9 +48,13 @@ module Google @batch_path = 'batch' end - # Gets information about an application. + # Recreates the required App Engine features for the specified App Engine + # application, for example a Cloud Storage bucket or App Engine service account. + # Use this method if you receive an error message about a missing feature, for + # example, Error retrieving the App Engine service account. # @param [String] apps_id - # Part of `name`. Name of the Application resource to get. Example: apps/myapp. + # Part of `name`. Name of the application to repair. Example: apps/myapp + # @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -60,18 +64,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object + # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AppengineV1::Application] + # @return [Google::Apis::AppengineV1::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(apps_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}', options) - command.response_representation = Google::Apis::AppengineV1::Application::Representation - command.response_class = Google::Apis::AppengineV1::Application + def repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options) + command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation + command.request_object = repair_application_request_object + command.response_representation = Google::Apis::AppengineV1::Operation::Representation + command.response_class = Google::Apis::AppengineV1::Operation command.params['appsId'] = apps_id unless apps_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -119,6 +125,36 @@ module Google execute_or_queue_command(command, &block) end + # Gets information about an application. + # @param [String] apps_id + # Part of `name`. Name of the Application resource to get. Example: apps/myapp. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AppengineV1::Application] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::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, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}', options) + command.response_representation = Google::Apis::AppengineV1::Application::Representation + command.response_class = Google::Apis::AppengineV1::Application + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates an App Engine application for a Google Cloud Platform project. # Required fields: # id - The ID of the target Cloud Platform project. @@ -155,88 +191,6 @@ module Google execute_or_queue_command(command, &block) end - # Recreates the required App Engine features for the specified App Engine - # application, for example a Cloud Storage bucket or App Engine service account. - # Use this method if you receive an error message about a missing feature, for - # example, Error retrieving the App Engine service account. - # @param [String] apps_id - # Part of `name`. Name of the application to repair. Example: apps/myapp - # @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_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::AppengineV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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 repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options) - command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation - command.request_object = repair_application_request_object - command.response_representation = Google::Apis::AppengineV1::Operation::Representation - command.response_class = Google::Apis::AppengineV1::Operation - command.params['appsId'] = apps_id unless apps_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 - # allows API services to override the binding to use different resource name - # schemes, such as users/*/operations. To override the binding, API services can - # add a binding such as "/v1/`name=users/*`/operations" to their service - # configuration. For backwards compatibility, the default name includes the - # operations collection id, however overriding users must ensure the name - # binding is the parent resource, without the operations collection id. - # @param [String] apps_id - # Part of `name`. The name of the operation's parent resource. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] filter - # The standard list filter. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::AppengineV1::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options) - command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation - command.response_class = Google::Apis::AppengineV1::ListOperationsResponse - command.params['appsId'] = apps_id unless apps_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # 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 @@ -271,15 +225,22 @@ module Google execute_or_queue_command(command, &block) end - # Lists information about the supported locations for this service. + # 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 + # allows API services to override the binding to use different resource name + # schemes, such as users/*/operations. To override the binding, API services can + # add a binding such as "/v1/`name=users/*`/operations" to their service + # configuration. For backwards compatibility, the default name includes the + # operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] apps_id - # Part of `name`. The resource that owns the locations collection, if applicable. - # @param [String] page_token - # The standard list page token. + # Part of `name`. The name of the operation's parent resource. # @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] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -289,22 +250,22 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppengineV1::ListLocationsResponse] parsed result object + # @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AppengineV1::ListLocationsResponse] + # @return [Google::Apis::AppengineV1::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_locations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options) - command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation - command.response_class = Google::Apis::AppengineV1::ListLocationsResponse + def list_app_operations(apps_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options) + command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::AppengineV1::ListOperationsResponse command.params['appsId'] = apps_id unless apps_id.nil? - command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -343,6 +304,45 @@ module Google execute_or_queue_command(command, &block) end + # Lists information about the supported locations for this service. + # @param [String] apps_id + # Part of `name`. The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [String] page_token + # The standard list page token. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AppengineV1::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_locations(apps_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options) + command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation + command.response_class = Google::Apis::AppengineV1::ListLocationsResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['filter'] = filter unless filter.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 + # Deletes the specified service and all enclosed versions. # @param [String] apps_id # Part of `name`. Name of the resource requested. Example: apps/myapp/services/ @@ -377,76 +377,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists all the services in the application. - # @param [String] apps_id - # Part of `parent`. Name of the parent Application resource. Example: apps/myapp. - # @param [String] page_token - # Continuation token for fetching the next page of results. - # @param [Fixnum] page_size - # Maximum results to return per page. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppengineV1::ListServicesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}/services', options) - command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation - command.response_class = Google::Apis::AppengineV1::ListServicesResponse - command.params['appsId'] = apps_id unless apps_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the current configuration of the specified service. - # @param [String] apps_id - # Part of `name`. Name of the resource requested. 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::AppengineV1::Service] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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, 'v1/apps/{appsId}/services/{servicesId}', options) - command.response_representation = Google::Apis::AppengineV1::Service::Representation - command.response_class = Google::Apis::AppengineV1::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 - # Updates the configuration of the specified service. # @param [String] apps_id # Part of `name`. Name of the resource to update. Example: apps/myapp/services/ @@ -501,6 +431,113 @@ module Google execute_or_queue_command(command, &block) end + # Gets the current configuration of the specified service. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. 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::AppengineV1::Service] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::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, 'v1/apps/{appsId}/services/{servicesId}', options) + command.response_representation = Google::Apis::AppengineV1::Service::Representation + command.response_class = Google::Apis::AppengineV1::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 `parent`. Name of the parent Application resource. Example: apps/myapp. + # @param [String] page_token + # Continuation token for fetching the next page of results. + # @param [Fixnum] page_size + # Maximum results to return per page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1::ListServicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::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_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}/services', options) + command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation + command.response_class = Google::Apis::AppengineV1::ListServicesResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deploys code and resource files to a new version. + # @param [String] apps_id + # Part of `parent`. Name of the parent resource to create this version under. + # Example: apps/myapp/services/default. + # @param [String] services_id + # Part of `parent`. See documentation of `appsId`. + # @param [Google::Apis::AppengineV1::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::AppengineV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::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, 'v1/apps/{appsId}/services/{servicesId}/versions', options) + command.request_representation = Google::Apis::AppengineV1::Version::Representation + command.request_object = version_object + command.response_representation = Google::Apis::AppengineV1::Operation::Representation + command.response_class = Google::Apis::AppengineV1::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 resource. # @param [String] apps_id # Part of `name`. Name of the resource requested. Example: apps/myapp/services/ @@ -538,90 +575,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists the versions of a service. - # @param [String] apps_id - # Part of `parent`. Name of the parent Service resource. Example: apps/myapp/ - # services/default. - # @param [String] services_id - # Part of `parent`. See documentation of `appsId`. - # @param [String] page_token - # Continuation token for fetching the next page of results. - # @param [Fixnum] page_size - # Maximum results to return per page. - # @param [String] view - # Controls the set of fields returned in the List 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::AppengineV1::ListVersionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options) - command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation - command.response_class = Google::Apis::AppengineV1::ListVersionsResponse - command.params['appsId'] = apps_id unless apps_id.nil? - command.params['servicesId'] = services_id unless services_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.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 - - # Gets the specified Version resource. By default, only a BASIC_VIEW will be - # returned. Specify the FULL_VIEW parameter to get the full resource. - # @param [String] apps_id - # Part of `name`. Name of the resource requested. 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::AppengineV1::Version] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::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, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options) - command.response_representation = Google::Apis::AppengineV1::Version::Representation - command.response_class = Google::Apis::AppengineV1::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 - # Updates the specified Version resource. You can specify the following fields # depending on the App Engine environment and type of scaling that the version # resource uses: @@ -682,13 +635,17 @@ module Google execute_or_queue_command(command, &block) end - # Deploys code and resource files to a new version. + # Gets the specified Version resource. By default, only a BASIC_VIEW will be + # returned. Specify the FULL_VIEW parameter to get the full resource. # @param [String] apps_id - # Part of `parent`. Name of the parent resource to create this version under. - # Example: apps/myapp/services/default. + # Part of `name`. Name of the resource requested. Example: apps/myapp/services/ + # default/versions/v1. # @param [String] services_id - # Part of `parent`. See documentation of `appsId`. - # @param [Google::Apis::AppengineV1::Version] version_object + # 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 @@ -698,22 +655,65 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object + # @yieldparam result [Google::Apis::AppengineV1::Version] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AppengineV1::Operation] + # @return [Google::Apis::AppengineV1::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 create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options) - command.request_representation = Google::Apis::AppengineV1::Version::Representation - command.request_object = version_object - command.response_representation = Google::Apis::AppengineV1::Operation::Representation - command.response_class = Google::Apis::AppengineV1::Operation + 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, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options) + command.response_representation = Google::Apis::AppengineV1::Version::Representation + command.response_class = Google::Apis::AppengineV1::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 `parent`. Name of the parent Service resource. Example: apps/myapp/ + # services/default. + # @param [String] services_id + # Part of `parent`. See documentation of `appsId`. + # @param [String] page_token + # Continuation token for fetching the next page of results. + # @param [Fixnum] page_size + # Maximum results to return per page. + # @param [String] view + # Controls the set of fields returned in the List 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::AppengineV1::ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::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, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options) + command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation + command.response_class = Google::Apis::AppengineV1::ListVersionsResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.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) @@ -759,6 +759,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets instance information. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. Example: apps/myapp/services/ + # default/versions/v1/instances/instance-1. + # @param [String] services_id + # Part of `name`. See documentation of `appsId`. + # @param [String] versions_id + # Part of `name`. See documentation of `appsId`. + # @param [String] instances_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::AppengineV1::Instance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1::Instance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options) + command.response_representation = Google::Apis::AppengineV1::Instance::Representation + command.response_class = Google::Apis::AppengineV1::Instance + 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.params['instancesId'] = instances_id unless instances_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists the instances of a version.Tip: To aggregate details about instances # over time, see the Stackdriver Monitoring API (https://cloud.google.com/ # monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). @@ -804,46 +844,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets instance information. - # @param [String] apps_id - # Part of `name`. Name of the resource requested. Example: apps/myapp/services/ - # default/versions/v1/instances/instance-1. - # @param [String] services_id - # Part of `name`. See documentation of `appsId`. - # @param [String] versions_id - # Part of `name`. See documentation of `appsId`. - # @param [String] instances_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::AppengineV1::Instance] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppengineV1::Instance] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options) - command.response_representation = Google::Apis::AppengineV1::Instance::Representation - command.response_class = Google::Apis::AppengineV1::Instance - 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.params['instancesId'] = instances_id unless instances_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 - # Enables debugging on a VM instance. This allows you to use the SSH command to # connect to the virtual machine where the instance lives. While in "debug mode", # the instance continues to serve live traffic. You should delete the instance diff --git a/generated/google/apis/appsactivity_v1.rb b/generated/google/apis/appsactivity_v1.rb index 5f74a9572..1b1ba3fae 100644 --- a/generated/google/apis/appsactivity_v1.rb +++ b/generated/google/apis/appsactivity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/activity/ module AppsactivityV1 VERSION = 'V1' - REVISION = '20170215' + REVISION = '20170619' # View the activity history of your Google apps AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 427a2fd35..956682a20 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 = '20170601' + REVISION = '20170710' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 8e520ebdf..f50c2919a 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20170604' + REVISION = '20170622' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 595d1c792..3cf1abfce 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -2903,6 +2903,11 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :table_reference + # [Experimental] The time-based partitioning for this table. + # Corresponds to the JSON property `timePartitioning` + # @return [Google::Apis::BigqueryV2::TimePartitioning] + attr_accessor :time_partitioning + # The type of table. Possible values are: TABLE, VIEW. # Corresponds to the JSON property `type` # @return [String] @@ -2924,6 +2929,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @table_reference = args[:table_reference] if args.key?(:table_reference) + @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning) @type = args[:type] if args.key?(:type) @view = args[:view] if args.key?(:view) end diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 08f1c8b9c..88a434c89 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -1040,6 +1040,8 @@ module Google hash :labels, as: 'labels' property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation + property :type, as: 'type' property :view, as: 'view', class: Google::Apis::BigqueryV2::TableList::Table::View, decorator: Google::Apis::BigqueryV2::TableList::Table::View::Representation diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 289521492..7c135298e 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 = '20170528' + REVISION = '20170613' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index 5868d26f0..23c314495 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,10 +25,7 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20170612' - - # View the email addresses of people in your classes - AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails' + REVISION = '20170710' # Manage your course work and view your grades in Google Classroom AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me' @@ -60,17 +57,20 @@ module Google # View your course work and grades in Google Classroom AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly' - # Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer - AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students' - # View your Google Classroom guardians AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly' # View course work and grades for students in the Google Classroom classes you teach or administer AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly' + # Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer + AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students' + # View your course work and grades in Google Classroom AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly' + + # View the email addresses of people in your classes + AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails' end end end diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index 8dc3d0ec4..1d21165ee 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -22,136 +22,6 @@ module Google module Apis module ClassroomV1 - # Represents a whole calendar date, e.g. date of birth. The time of day and - # time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day may be 0 to - # represent a year and month where the day is not significant, e.g. credit card - # expiration date. The year may be 0 to represent a month and day independent - # of year, e.g. anniversary date. Related types are google.type.TimeOfDay - # and `google.protobuf.Timestamp`. - class Date - include Google::Apis::Core::Hashable - - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year/month where the day is not significant. - # Corresponds to the JSON property `day` - # @return [Fixnum] - attr_accessor :day - - # Month of year. Must be from 1 to 12. - # Corresponds to the JSON property `month` - # @return [Fixnum] - attr_accessor :month - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @year = args[:year] if args.key?(:year) - @day = args[:day] if args.key?(:day) - @month = args[:month] if args.key?(:month) - end - end - - # Student work for a multiple-choice question. - class MultipleChoiceSubmission - include Google::Apis::Core::Hashable - - # Student's select choice. - # Corresponds to the JSON property `answer` - # @return [String] - attr_accessor :answer - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @answer = args[:answer] if args.key?(:answer) - end - end - - # A material attached to a course as part of a material set. - class CourseMaterial - include Google::Apis::Core::Hashable - - # Representation of a Google Drive file. - # Corresponds to the JSON property `driveFile` - # @return [Google::Apis::ClassroomV1::DriveFile] - attr_accessor :drive_file - - # YouTube video item. - # Corresponds to the JSON property `youTubeVideo` - # @return [Google::Apis::ClassroomV1::YouTubeVideo] - attr_accessor :you_tube_video - - # Google Forms item. - # Corresponds to the JSON property `form` - # @return [Google::Apis::ClassroomV1::Form] - attr_accessor :form - - # URL item. - # Corresponds to the JSON property `link` - # @return [Google::Apis::ClassroomV1::Link] - attr_accessor :link - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @drive_file = args[:drive_file] if args.key?(:drive_file) - @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) - @form = args[:form] if args.key?(:form) - @link = args[:link] if args.key?(:link) - end - end - - # Details of the user's name. - class Name - include Google::Apis::Core::Hashable - - # The user's first name. - # Read-only. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # The user's last name. - # Read-only. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # The user's full name formed by concatenating the first and last name - # values. - # Read-only. - # Corresponds to the JSON property `fullName` - # @return [String] - attr_accessor :full_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @given_name = args[:given_name] 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 - # Additional details for assignments. class Assignment include Google::Apis::Core::Hashable @@ -175,24 +45,24 @@ module Google class SharedDriveFile include Google::Apis::Core::Hashable - # Representation of a Google Drive file. - # Corresponds to the JSON property `driveFile` - # @return [Google::Apis::ClassroomV1::DriveFile] - attr_accessor :drive_file - # Mechanism by which students access the Drive item. # Corresponds to the JSON property `shareMode` # @return [String] attr_accessor :share_mode + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @drive_file = args[:drive_file] if args.key?(:drive_file) @share_mode = args[:share_mode] if args.key?(:share_mode) + @drive_file = args[:drive_file] if args.key?(:drive_file) end end @@ -238,13 +108,6 @@ module Google class Course include Google::Apis::Core::Hashable - # The Calendar ID for a calendar that all course members can see, to which - # Classroom adds events for course work and announcements in the course. - # Read-only. - # Corresponds to the JSON property `calendarId` - # @return [String] - attr_accessor :calendar_id - # Time of the most recent update to this course. # Specifying this field in a course update mask results in an error. # Read-only. @@ -252,6 +115,13 @@ module Google # @return [String] attr_accessor :update_time + # The Calendar ID for a calendar that all course members can see, to which + # Classroom adds events for course work and announcements in the course. + # Read-only. + # Corresponds to the JSON property `calendarId` + # @return [String] + attr_accessor :calendar_id + # Absolute link to this course in the Classroom web UI. # Read-only. # Corresponds to the JSON property `alternateLink` @@ -384,8 +254,8 @@ module Google # Update properties of this object def update!(**args) - @calendar_id = args[:calendar_id] if args.key?(:calendar_id) @update_time = args[:update_time] if args.key?(:update_time) + @calendar_id = args[:calendar_id] if args.key?(:calendar_id) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled) @owner_id = args[:owner_id] if args.key?(:owner_id) @@ -409,12 +279,6 @@ module Google class DriveFile include Google::Apis::Core::Hashable - # URL of a thumbnail image of the Drive item. - # Read-only. - # Corresponds to the JSON property `thumbnailUrl` - # @return [String] - attr_accessor :thumbnail_url - # Drive API resource ID. # Corresponds to the JSON property `id` # @return [String] @@ -432,16 +296,35 @@ module Google # @return [String] attr_accessor :alternate_link + # URL of a thumbnail image of the Drive item. + # Read-only. + # Corresponds to the JSON property `thumbnailUrl` + # @return [String] + attr_accessor :thumbnail_url + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) @id = args[:id] if args.key?(:id) @title = args[:title] if args.key?(:title) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) + end + end + + # Request to return a student submission. + class ReturnStudentSubmissionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) end end @@ -464,23 +347,16 @@ module Google end end - # Request to return a student submission. - class ReturnStudentSubmissionRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Teacher of a course. class Teacher include Google::Apis::Core::Hashable + # Identifier of the course. + # Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + # Global information for a user. # Corresponds to the JSON property `profile` # @return [Google::Apis::ClassroomV1::UserProfile] @@ -496,21 +372,15 @@ module Google # @return [String] attr_accessor :user_id - # Identifier of the course. - # Read-only. - # Corresponds to the JSON property `courseId` - # @return [String] - attr_accessor :course_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @course_id = args[:course_id] if args.key?(:course_id) @profile = args[:profile] if args.key?(:profile) @user_id = args[:user_id] if args.key?(:user_id) - @course_id = args[:course_id] if args.key?(:course_id) end end @@ -557,11 +427,6 @@ module Google class Material include Google::Apis::Core::Hashable - # YouTube video item. - # Corresponds to the JSON property `youtubeVideo` - # @return [Google::Apis::ClassroomV1::YouTubeVideo] - attr_accessor :youtube_video - # Drive file that is used as material for course work. # Corresponds to the JSON property `driveFile` # @return [Google::Apis::ClassroomV1::SharedDriveFile] @@ -577,16 +442,21 @@ module Google # @return [Google::Apis::ClassroomV1::Link] attr_accessor :link + # YouTube video item. + # Corresponds to the JSON property `youtubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :youtube_video + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @youtube_video = args[:youtube_video] if args.key?(:youtube_video) @drive_file = args[:drive_file] if args.key?(:drive_file) @form = args[:form] if args.key?(:form) @link = args[:link] if args.key?(:link) + @youtube_video = args[:youtube_video] if args.key?(:youtube_video) end end @@ -594,38 +464,6 @@ module Google class CourseWork include Google::Apis::Core::Hashable - # Identifier of the course. - # Read-only. - # Corresponds to the JSON property `courseId` - # @return [String] - attr_accessor :course_id - - # Classroom-assigned identifier of this course work, unique per course. - # Read-only. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Represents a time of day. The date and time zone are either not significant - # or are specified elsewhere. An API may choose to allow leap seconds. Related - # types are google.type.Date and `google.protobuf.Timestamp`. - # Corresponds to the JSON property `dueTime` - # @return [Google::Apis::ClassroomV1::TimeOfDay] - attr_accessor :due_time - - # Title of this course work. - # The title must be a valid UTF-8 string containing between 1 and 3000 - # characters. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # Additional materials. - # CourseWork must have no more than 20 material items. - # Corresponds to the JSON property `materials` - # @return [Array] - attr_accessor :materials - # Whether this course work item is associated with the Developer Console # project making the request. # See google.classroom.Work.CreateCourseWork for more @@ -636,6 +474,12 @@ module Google attr_accessor :associated_with_developer alias_method :associated_with_developer?, :associated_with_developer + # Additional materials. + # CourseWork must have no more than 20 material items. + # Corresponds to the JSON property `materials` + # @return [Array] + attr_accessor :materials + # Timestamp of the most recent change to this course work. # Read-only. # Corresponds to the JSON property `updateTime` @@ -656,6 +500,11 @@ module Google # @return [Float] attr_accessor :max_points + # Additional details for assignments. + # Corresponds to the JSON property `assignment` + # @return [Google::Apis::ClassroomV1::Assignment] + attr_accessor :assignment + # Type of this course work. # The type is set when the course work is created and cannot be changed. # Corresponds to the JSON property `workType` @@ -667,10 +516,10 @@ module Google # @return [Google::Apis::ClassroomV1::MultipleChoiceQuestion] attr_accessor :multiple_choice_question - # Additional details for assignments. - # Corresponds to the JSON property `assignment` - # @return [Google::Apis::ClassroomV1::Assignment] - attr_accessor :assignment + # Optional timestamp when this course work is scheduled to be published. + # Corresponds to the JSON property `scheduledTime` + # @return [String] + attr_accessor :scheduled_time # Optional description of this course work. # If set, the description must be a valid UTF-8 string containing no more @@ -679,11 +528,6 @@ module Google # @return [String] attr_accessor :description - # Optional timestamp when this course work is scheduled to be published. - # Corresponds to the JSON property `scheduledTime` - # @return [String] - attr_accessor :scheduled_time - # Timestamp when this course work was created. # Read-only. # Corresponds to the JSON property `creationTime` @@ -713,30 +557,56 @@ module Google # @return [String] attr_accessor :state + # Identifier of the course. + # Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Classroom-assigned identifier of this course work, unique per course. + # Read-only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `dueTime` + # @return [Google::Apis::ClassroomV1::TimeOfDay] + attr_accessor :due_time + + # Title of this course work. + # The title must be a valid UTF-8 string containing between 1 and 3000 + # characters. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @course_id = args[:course_id] if args.key?(:course_id) - @id = args[:id] if args.key?(:id) - @due_time = args[:due_time] if args.key?(:due_time) - @title = args[:title] if args.key?(:title) - @materials = args[:materials] if args.key?(:materials) @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) + @materials = args[:materials] if args.key?(:materials) @update_time = args[:update_time] if args.key?(:update_time) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @max_points = args[:max_points] if args.key?(:max_points) + @assignment = args[:assignment] if args.key?(:assignment) @work_type = args[:work_type] if args.key?(:work_type) @multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question) - @assignment = args[:assignment] if args.key?(:assignment) - @description = args[:description] if args.key?(:description) @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time) + @description = args[:description] if args.key?(:description) @creation_time = args[:creation_time] if args.key?(:creation_time) @due_date = args[:due_date] if args.key?(:due_date) @submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode) @state = args[:state] if args.key?(:state) + @course_id = args[:course_id] if args.key?(:course_id) + @id = args[:id] if args.key?(:id) + @due_time = args[:due_time] if args.key?(:due_time) + @title = args[:title] if args.key?(:title) end end @@ -745,37 +615,63 @@ module Google class Guardian include Google::Apis::Core::Hashable - # Identifier for the student to whom the guardian relationship applies. - # Corresponds to the JSON property `studentId` - # @return [String] - attr_accessor :student_id - - # Identifier for the guardian. - # Corresponds to the JSON property `guardianId` - # @return [String] - attr_accessor :guardian_id - # The email address to which the initial guardian invitation was sent. # This field is only visible to domain administrators. # Corresponds to the JSON property `invitedEmailAddress` # @return [String] attr_accessor :invited_email_address + # Identifier for the guardian. + # Corresponds to the JSON property `guardianId` + # @return [String] + attr_accessor :guardian_id + # Global information for a user. # Corresponds to the JSON property `guardianProfile` # @return [Google::Apis::ClassroomV1::UserProfile] attr_accessor :guardian_profile + # Identifier for the student to whom the guardian relationship applies. + # Corresponds to the JSON property `studentId` + # @return [String] + attr_accessor :student_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @student_id = args[:student_id] if args.key?(:student_id) - @guardian_id = args[:guardian_id] if args.key?(:guardian_id) @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address) + @guardian_id = args[:guardian_id] if args.key?(:guardian_id) @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile) + @student_id = args[:student_id] if args.key?(:student_id) + end + end + + # Response when listing students. + class ListStudentsResponse + include Google::Apis::Core::Hashable + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Students who match the list request. + # Corresponds to the JSON property `students` + # @return [Array] + attr_accessor :students + + 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) + @students = args[:students] if args.key?(:students) end end @@ -812,7 +708,9 @@ module Google # @return [String] attr_accessor :id - # Whether or not the user is a verified teacher + # Represents whether a G Suite for Education user's domain administrator has + # explicitly verified them as being a teacher. If the user is not a member of + # a G Suite for Education domain, than this field will always be false. # Read-only # Corresponds to the JSON property `verifiedTeacher` # @return [Boolean] @@ -834,52 +732,20 @@ module Google end end - # Response when listing students. - class ListStudentsResponse - include Google::Apis::Core::Hashable - - # Students who match the list request. - # Corresponds to the JSON property `students` - # @return [Array] - attr_accessor :students - - # Token identifying the next page of results to return. If empty, no further - # results are available. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @students = args[:students] if args.key?(:students) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - # Student in a course. class Student include Google::Apis::Core::Hashable - # Identifier of the course. - # Read-only. - # Corresponds to the JSON property `courseId` - # @return [String] - attr_accessor :course_id - - # Global information for a user. - # Corresponds to the JSON property `profile` - # @return [Google::Apis::ClassroomV1::UserProfile] - attr_accessor :profile - # Representation of a Google Drive folder. # Corresponds to the JSON property `studentWorkFolder` # @return [Google::Apis::ClassroomV1::DriveFolder] attr_accessor :student_work_folder + # Global information for a user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::ClassroomV1::UserProfile] + attr_accessor :profile + # Identifier of the user. # When specified as a parameter of a request, this identifier can be one of # the following: @@ -890,16 +756,22 @@ module Google # @return [String] attr_accessor :user_id + # Identifier of the course. + # Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @course_id = args[:course_id] if args.key?(:course_id) - @profile = args[:profile] if args.key?(:profile) @student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder) + @profile = args[:profile] if args.key?(:profile) @user_id = args[:user_id] if args.key?(:user_id) + @course_id = args[:course_id] if args.key?(:course_id) end end @@ -907,16 +779,6 @@ module Google class Invitation include Google::Apis::Core::Hashable - # Identifier of the invited user. - # When specified as a parameter of a request, this identifier can be set to - # one of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # Corresponds to the JSON property `userId` - # @return [String] - attr_accessor :user_id - # Identifier of the course to invite the user to. # Corresponds to the JSON property `courseId` # @return [String] @@ -934,16 +796,26 @@ module Google # @return [String] attr_accessor :role + # Identifier of the invited user. + # When specified as a parameter of a request, this identifier can be set to + # one of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @user_id = args[:user_id] if args.key?(:user_id) @course_id = args[:course_id] if args.key?(:course_id) @id = args[:id] if args.key?(:id) @role = args[:role] if args.key?(:role) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -951,11 +823,6 @@ module Google class DriveFolder include Google::Apis::Core::Hashable - # Drive API resource ID. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - # Title of the Drive folder. # Read-only. # Corresponds to the JSON property `title` @@ -968,15 +835,20 @@ module Google # @return [String] attr_accessor :alternate_link + # Drive API resource ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) @title = args[:title] if args.key?(:title) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @id = args[:id] if args.key?(:id) end end @@ -999,6 +871,45 @@ module Google end end + # Request to turn in a student submission. + class TurnInStudentSubmissionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response when listing student submissions. + class ListStudentSubmissionsResponse + include Google::Apis::Core::Hashable + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Student work that matches the request. + # Corresponds to the JSON property `studentSubmissions` + # @return [Array] + attr_accessor :student_submissions + + 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) + @student_submissions = args[:student_submissions] if args.key?(:student_submissions) + end + end + # Student submission for course work. # StudentSubmission items are generated when a CourseWork item is created. # StudentSubmissions that have never been accessed (i.e. with `state` = NEW) @@ -1006,45 +917,6 @@ module Google class StudentSubmission include Google::Apis::Core::Hashable - # Whether this submission is late. - # Read-only. - # Corresponds to the JSON property `late` - # @return [Boolean] - attr_accessor :late - alias_method :late?, :late - - # Optional pending grade. If unset, no grade was set. - # This must be a non-negative integer value. - # This is only visible to and modifiable by course teachers. - # Corresponds to the JSON property `draftGrade` - # @return [Float] - attr_accessor :draft_grade - - # Type of course work this submission is for. - # Read-only. - # Corresponds to the JSON property `courseWorkType` - # @return [String] - attr_accessor :course_work_type - - # Creation time of this submission. - # This may be unset if the student has not accessed this item. - # Read-only. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # State of this submission. - # Read-only. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Identifier for the student that owns this submission. - # Read-only. - # Corresponds to the JSON property `userId` - # @return [String] - attr_accessor :user_id - # Identifier for the course work this corresponds to. # Read-only. # Corresponds to the JSON property `courseWorkId` @@ -1109,18 +981,51 @@ module Google # @return [String] attr_accessor :alternate_link + # Whether this submission is late. + # Read-only. + # Corresponds to the JSON property `late` + # @return [Boolean] + attr_accessor :late + alias_method :late?, :late + + # Optional pending grade. If unset, no grade was set. + # This must be a non-negative integer value. + # This is only visible to and modifiable by course teachers. + # Corresponds to the JSON property `draftGrade` + # @return [Float] + attr_accessor :draft_grade + + # Type of course work this submission is for. + # Read-only. + # Corresponds to the JSON property `courseWorkType` + # @return [String] + attr_accessor :course_work_type + + # Creation time of this submission. + # This may be unset if the student has not accessed this item. + # Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # State of this submission. + # Read-only. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Identifier for the student that owns this submission. + # Read-only. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @late = args[:late] if args.key?(:late) - @draft_grade = args[:draft_grade] if args.key?(:draft_grade) - @course_work_type = args[:course_work_type] if args.key?(:course_work_type) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @state = args[:state] if args.key?(:state) - @user_id = args[:user_id] if args.key?(:user_id) @course_work_id = args[:course_work_id] if args.key?(:course_work_id) @course_id = args[:course_id] if args.key?(:course_id) @id = args[:id] if args.key?(:id) @@ -1131,66 +1036,12 @@ module Google @short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission) @update_time = args[:update_time] if args.key?(:update_time) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) - end - end - - # Request to turn in a student submission. - class TurnInStudentSubmissionRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Response when listing student submissions. - class ListStudentSubmissionsResponse - include Google::Apis::Core::Hashable - - # Token identifying the next page of results to return. If empty, no further - # results are available. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Student work that matches the request. - # Corresponds to the JSON property `studentSubmissions` - # @return [Array] - attr_accessor :student_submissions - - 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) - @student_submissions = args[:student_submissions] if args.key?(:student_submissions) - end - end - - # Request to modify the attachments of a student submission. - class ModifyAttachmentsRequest - include Google::Apis::Core::Hashable - - # Attachments to add. - # A student submission may not have more than 20 attachments. - # Form attachments are not supported. - # Corresponds to the JSON property `addAttachments` - # @return [Array] - attr_accessor :add_attachments - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @add_attachments = args[:add_attachments] if args.key?(:add_attachments) + @late = args[:late] if args.key?(:late) + @draft_grade = args[:draft_grade] if args.key?(:draft_grade) + @course_work_type = args[:course_work_type] if args.key?(:course_work_type) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @state = args[:state] if args.key?(:state) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -1220,16 +1071,31 @@ module Google end end + # Request to modify the attachments of a student submission. + class ModifyAttachmentsRequest + include Google::Apis::Core::Hashable + + # Attachments to add. + # A student submission may not have more than 20 attachments. + # Form attachments are not supported. + # Corresponds to the JSON property `addAttachments` + # @return [Array] + attr_accessor :add_attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @add_attachments = args[:add_attachments] if args.key?(:add_attachments) + end + end + # YouTube video item. class YouTubeVideo include Google::Apis::Core::Hashable - # Title of the YouTube video. - # Read-only. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - # URL that can be used to view the YouTube video. # Read-only. # Corresponds to the JSON property `alternateLink` @@ -1247,16 +1113,22 @@ module Google # @return [String] attr_accessor :id + # Title of the YouTube video. + # Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @title = args[:title] if args.key?(:title) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) @id = args[:id] if args.key?(:id) + @title = args[:title] if args.key?(:title) end end @@ -1264,63 +1136,25 @@ module Google class ListInvitationsResponse include Google::Apis::Core::Hashable + # Invitations that match the list request. + # Corresponds to the JSON property `invitations` + # @return [Array] + attr_accessor :invitations + # Token identifying the next page of results to return. If empty, no further # results are available. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Invitations that match the list request. - # Corresponds to the JSON property `invitations` - # @return [Array] - attr_accessor :invitations - 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) @invitations = args[:invitations] if args.key?(:invitations) - end - end - - # Attachment added to student assignment work. - # When creating attachments, setting the `form` field is not supported. - class Attachment - include Google::Apis::Core::Hashable - - # Google Forms item. - # Corresponds to the JSON property `form` - # @return [Google::Apis::ClassroomV1::Form] - attr_accessor :form - - # URL item. - # Corresponds to the JSON property `link` - # @return [Google::Apis::ClassroomV1::Link] - attr_accessor :link - - # Representation of a Google Drive file. - # Corresponds to the JSON property `driveFile` - # @return [Google::Apis::ClassroomV1::DriveFile] - attr_accessor :drive_file - - # YouTube video item. - # Corresponds to the JSON property `youTubeVideo` - # @return [Google::Apis::ClassroomV1::YouTubeVideo] - attr_accessor :you_tube_video - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @form = args[:form] if args.key?(:form) - @link = args[:link] if args.key?(:link) - @drive_file = args[:drive_file] if args.key?(:drive_file) - @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1329,16 +1163,16 @@ module Google class GuardianInvitation include Google::Apis::Core::Hashable - # ID of the student (in standard format) - # Corresponds to the JSON property `studentId` - # @return [String] - attr_accessor :student_id - # The state that this invitation is in. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state + # ID of the student (in standard format) + # Corresponds to the JSON property `studentId` + # @return [String] + attr_accessor :student_id + # Email address that the invitation was sent to. # This field is only visible to domain administrators. # Corresponds to the JSON property `invitedEmailAddress` @@ -1363,38 +1197,76 @@ module Google # Update properties of this object def update!(**args) - @student_id = args[:student_id] if args.key?(:student_id) @state = args[:state] if args.key?(:state) + @student_id = args[:student_id] if args.key?(:student_id) @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address) @creation_time = args[:creation_time] if args.key?(:creation_time) @invitation_id = args[:invitation_id] if args.key?(:invitation_id) end end + # Attachment added to student assignment work. + # When creating attachments, setting the `form` field is not supported. + class Attachment + include Google::Apis::Core::Hashable + + # URL item. + # Corresponds to the JSON property `link` + # @return [Google::Apis::ClassroomV1::Link] + attr_accessor :link + + # YouTube video item. + # Corresponds to the JSON property `youTubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :you_tube_video + + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + + # Google Forms item. + # Corresponds to the JSON property `form` + # @return [Google::Apis::ClassroomV1::Form] + attr_accessor :form + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @link = args[:link] if args.key?(:link) + @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @form = args[:form] if args.key?(:form) + end + end + # A set of materials that appears on the "About" page of the course. # These materials might include a syllabus, schedule, or other background # information relating to the course as a whole. class CourseMaterialSet include Google::Apis::Core::Hashable - # Title for this set. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - # Materials attached to this set. # Corresponds to the JSON property `materials` # @return [Array] attr_accessor :materials + # Title for this set. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @title = args[:title] if args.key?(:title) @materials = args[:materials] if args.key?(:materials) + @title = args[:title] if args.key?(:title) end end @@ -1404,17 +1276,6 @@ module Google class TimeOfDay include Google::Apis::Core::Hashable - # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - # to allow the value "24:00:00" for scenarios like business closing time. - # Corresponds to the JSON property `hours` - # @return [Fixnum] - attr_accessor :hours - - # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - # Corresponds to the JSON property `nanos` - # @return [Fixnum] - attr_accessor :nanos - # Seconds of minutes of the time. Must normally be from 0 to 59. An API may # allow the value 60 if it allows leap-seconds. # Corresponds to the JSON property `seconds` @@ -1426,16 +1287,27 @@ module Google # @return [Fixnum] attr_accessor :minutes + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + # to allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @hours = args[:hours] if args.key?(:hours) - @nanos = args[:nanos] if args.key?(:nanos) @seconds = args[:seconds] if args.key?(:seconds) @minutes = args[:minutes] if args.key?(:minutes) + @hours = args[:hours] if args.key?(:hours) + @nanos = args[:nanos] if args.key?(:nanos) end end @@ -1443,25 +1315,25 @@ module Google class ListCoursesResponse include Google::Apis::Core::Hashable - # Courses that match the list request. - # Corresponds to the JSON property `courses` - # @return [Array] - attr_accessor :courses - # Token identifying the next page of results to return. If empty, no further # results are available. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token + # Courses that match the list request. + # Corresponds to the JSON property `courses` + # @return [Array] + attr_accessor :courses + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @courses = args[:courses] if args.key?(:courses) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @courses = args[:courses] if args.key?(:courses) end end @@ -1511,25 +1383,25 @@ module Google class ListTeachersResponse include Google::Apis::Core::Hashable + # Teachers who match the list request. + # Corresponds to the JSON property `teachers` + # @return [Array] + attr_accessor :teachers + # Token identifying the next page of results to return. If empty, no further # results are available. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Teachers who match the list request. - # Corresponds to the JSON property `teachers` - # @return [Array] - attr_accessor :teachers - 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) @teachers = args[:teachers] if args.key?(:teachers) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1537,12 +1409,6 @@ module Google class Link include Google::Apis::Core::Hashable - # Title of the target of the URL. - # Read-only. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - # URL of a thumbnail image of the target URL. # Read-only. # Corresponds to the JSON property `thumbnailUrl` @@ -1555,15 +1421,21 @@ module Google # @return [String] attr_accessor :url + # Title of the target of the URL. + # Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @title = args[:title] if args.key?(:title) @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) @url = args[:url] if args.key?(:url) + @title = args[:title] if args.key?(:title) end end @@ -1571,78 +1443,26 @@ module Google class ListGuardiansResponse include Google::Apis::Core::Hashable + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + # Guardians on this page of results that met the criteria specified in # the request. # Corresponds to the JSON property `guardians` # @return [Array] attr_accessor :guardians - # Token identifying the next page of results to return. If empty, no further - # results are available. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @guardians = args[:guardians] if args.key?(:guardians) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Response when listing course aliases. - class ListCourseAliasesResponse - include Google::Apis::Core::Hashable - - # The course aliases. - # Corresponds to the JSON property `aliases` - # @return [Array] - attr_accessor :aliases - - # Token identifying the next page of results to return. If empty, no further - # results are available. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @aliases = args[:aliases] if args.key?(:aliases) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Response when listing guardian invitations. - class ListGuardianInvitationsResponse - include Google::Apis::Core::Hashable - - # Token identifying the next page of results to return. If empty, no further - # results are available. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Guardian invitations that matched the list request. - # Corresponds to the JSON property `guardianInvitations` - # @return [Array] - attr_accessor :guardian_invitations - - 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) - @guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations) end end @@ -1680,6 +1500,188 @@ module Google @alias = args[:alias] if args.key?(:alias) end end + + # Response when listing course aliases. + class ListCourseAliasesResponse + include Google::Apis::Core::Hashable + + # The course aliases. + # Corresponds to the JSON property `aliases` + # @return [Array] + attr_accessor :aliases + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aliases = args[:aliases] if args.key?(:aliases) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response when listing guardian invitations. + class ListGuardianInvitationsResponse + include Google::Apis::Core::Hashable + + # Guardian invitations that matched the list request. + # Corresponds to the JSON property `guardianInvitations` + # @return [Array] + attr_accessor :guardian_invitations + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + end + end + + # Student work for a multiple-choice question. + class MultipleChoiceSubmission + include Google::Apis::Core::Hashable + + # Student's select choice. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answer = args[:answer] if args.key?(:answer) + end + end + + # A material attached to a course as part of a material set. + class CourseMaterial + include Google::Apis::Core::Hashable + + # YouTube video item. + # Corresponds to the JSON property `youTubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :you_tube_video + + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + + # Google Forms item. + # Corresponds to the JSON property `form` + # @return [Google::Apis::ClassroomV1::Form] + attr_accessor :form + + # URL item. + # Corresponds to the JSON property `link` + # @return [Google::Apis::ClassroomV1::Link] + attr_accessor :link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @form = args[:form] if args.key?(:form) + @link = args[:link] if args.key?(:link) + end + end + + # Details of the user's name. + class Name + include Google::Apis::Core::Hashable + + # The user's last name. + # Read-only. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The user's first name. + # Read-only. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # The user's full name formed by concatenating the first and last name + # values. + # Read-only. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) + @full_name = args[:full_name] if args.key?(:full_name) + end + end end end end diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb index 5a7e64832..06c2e4180 100644 --- a/generated/google/apis/classroom_v1/representations.rb +++ b/generated/google/apis/classroom_v1/representations.rb @@ -22,30 +22,6 @@ module Google module Apis module ClassroomV1 - class Date - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MultipleChoiceSubmission - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CourseMaterial - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Name - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Assignment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,13 +58,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GlobalPermission + class ReturnStudentSubmissionRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReturnStudentSubmissionRequest + class GlobalPermission class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -130,13 +106,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class UserProfile + class ListStudentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListStudentsResponse + class UserProfile class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -166,12 +142,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class StudentSubmission - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TurnInStudentSubmissionRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,7 +154,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ModifyAttachmentsRequest + class StudentSubmission class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -196,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ModifyAttachmentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class YouTubeVideo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -208,13 +184,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Attachment + class GuardianInvitation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GuardianInvitation + class Attachment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -262,6 +238,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CourseAlias + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListCourseAliasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -274,49 +256,28 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CourseAlias + class Date class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Date - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :year, as: 'year' - property :day, as: 'day' - property :month, as: 'month' - end - end - class MultipleChoiceSubmission - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :answer, as: 'answer' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CourseMaterial - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation - - property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation - - property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Name - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :given_name, as: 'givenName' - property :family_name, as: 'familyName' - property :full_name, as: 'fullName' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Assignment @@ -330,9 +291,9 @@ module Google class SharedDriveFile # @private class Representation < Google::Apis::Core::JsonRepresentation + property :share_mode, as: 'shareMode' property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation - property :share_mode, as: 'shareMode' end end @@ -352,8 +313,8 @@ module Google class Course # @private class Representation < Google::Apis::Core::JsonRepresentation - property :calendar_id, as: 'calendarId' property :update_time, as: 'updateTime' + property :calendar_id, as: 'calendarId' property :alternate_link, as: 'alternateLink' property :guardians_enabled, as: 'guardiansEnabled' property :owner_id, as: 'ownerId' @@ -378,10 +339,16 @@ module Google class DriveFile # @private class Representation < Google::Apis::Core::JsonRepresentation - property :thumbnail_url, as: 'thumbnailUrl' property :id, as: 'id' property :title, as: 'title' property :alternate_link, as: 'alternateLink' + property :thumbnail_url, as: 'thumbnailUrl' + end + end + + class ReturnStudentSubmissionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation end end @@ -392,19 +359,13 @@ module Google end end - class ReturnStudentSubmissionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class Teacher # @private class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation property :user_id, as: 'userId' - property :course_id, as: 'courseId' end end @@ -425,54 +386,63 @@ module Google class Material # @private class Representation < Google::Apis::Core::JsonRepresentation - property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation - property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + end end class CourseWork # @private class Representation < Google::Apis::Core::JsonRepresentation - property :course_id, as: 'courseId' - property :id, as: 'id' - property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation - - property :title, as: 'title' + property :associated_with_developer, as: 'associatedWithDeveloper' collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation - property :associated_with_developer, as: 'associatedWithDeveloper' property :update_time, as: 'updateTime' property :alternate_link, as: 'alternateLink' property :max_points, as: 'maxPoints' + property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation + property :work_type, as: 'workType' property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation - property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation - - property :description, as: 'description' property :scheduled_time, as: 'scheduledTime' + property :description, as: 'description' property :creation_time, as: 'creationTime' property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation property :submission_modification_mode, as: 'submissionModificationMode' property :state, as: 'state' + property :course_id, as: 'courseId' + property :id, as: 'id' + property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation + + property :title, as: 'title' end end class Guardian # @private class Representation < Google::Apis::Core::JsonRepresentation - property :student_id, as: 'studentId' - property :guardian_id, as: 'guardianId' property :invited_email_address, as: 'invitedEmailAddress' + property :guardian_id, as: 'guardianId' property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation + property :student_id, as: 'studentId' + end + end + + class ListStudentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation + end end @@ -490,43 +460,34 @@ module Google end end - class ListStudentsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - class Student # @private class Representation < Google::Apis::Core::JsonRepresentation - property :course_id, as: 'courseId' - property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation - property :student_work_folder, as: 'studentWorkFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation + property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation + property :user_id, as: 'userId' + property :course_id, as: 'courseId' end end class Invitation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :user_id, as: 'userId' property :course_id, as: 'courseId' property :id, as: 'id' property :role, as: 'role' + property :user_id, as: 'userId' end end class DriveFolder # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' property :title, as: 'title' property :alternate_link, as: 'alternateLink' + property :id, as: 'id' end end @@ -537,31 +498,6 @@ module Google end end - class StudentSubmission - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :late, as: 'late' - property :draft_grade, as: 'draftGrade' - property :course_work_type, as: 'courseWorkType' - property :creation_time, as: 'creationTime' - property :state, as: 'state' - property :user_id, as: 'userId' - property :course_work_id, as: 'courseWorkId' - property :course_id, as: 'courseId' - property :id, as: 'id' - property :assigned_grade, as: 'assignedGrade' - property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation - - property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation - - property :associated_with_developer, as: 'associatedWithDeveloper' - property :short_answer_submission, as: 'shortAnswerSubmission', class: Google::Apis::ClassroomV1::ShortAnswerSubmission, decorator: Google::Apis::ClassroomV1::ShortAnswerSubmission::Representation - - property :update_time, as: 'updateTime' - property :alternate_link, as: 'alternateLink' - end - end - class TurnInStudentSubmissionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -577,11 +513,28 @@ module Google end end - class ModifyAttachmentsRequest + class StudentSubmission # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation + property :course_work_id, as: 'courseWorkId' + property :course_id, as: 'courseId' + property :id, as: 'id' + property :assigned_grade, as: 'assignedGrade' + property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation + property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation + + property :associated_with_developer, as: 'associatedWithDeveloper' + property :short_answer_submission, as: 'shortAnswerSubmission', class: Google::Apis::ClassroomV1::ShortAnswerSubmission, decorator: Google::Apis::ClassroomV1::ShortAnswerSubmission::Representation + + property :update_time, as: 'updateTime' + property :alternate_link, as: 'alternateLink' + property :late, as: 'late' + property :draft_grade, as: 'draftGrade' + property :course_work_type, as: 'courseWorkType' + property :creation_time, as: 'creationTime' + property :state, as: 'state' + property :user_id, as: 'userId' end end @@ -594,75 +547,83 @@ module Google end end + class ModifyAttachmentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation + + end + end + class YouTubeVideo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' property :alternate_link, as: 'alternateLink' property :thumbnail_url, as: 'thumbnailUrl' property :id, as: 'id' + property :title, as: 'title' end end class ListInvitationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation - end - end - - class Attachment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation - - property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation - - property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation - - property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation - + property :next_page_token, as: 'nextPageToken' end end class GuardianInvitation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :student_id, as: 'studentId' property :state, as: 'state' + property :student_id, as: 'studentId' property :invited_email_address, as: 'invitedEmailAddress' property :creation_time, as: 'creationTime' property :invitation_id, as: 'invitationId' end end + class Attachment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + + property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + + property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation + + end + end + class CourseMaterialSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::CourseMaterial, decorator: Google::Apis::ClassroomV1::CourseMaterial::Representation + property :title, as: 'title' end end class TimeOfDay # @private class Representation < Google::Apis::Core::JsonRepresentation - property :hours, as: 'hours' - property :nanos, as: 'nanos' property :seconds, as: 'seconds' property :minutes, as: 'minutes' + property :hours, as: 'hours' + property :nanos, as: 'nanos' end end class ListCoursesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :courses, as: 'courses', class: Google::Apis::ClassroomV1::Course, decorator: Google::Apis::ClassroomV1::Course::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -679,27 +640,34 @@ module Google class ListTeachersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1::Teacher, decorator: Google::Apis::ClassroomV1::Teacher::Representation + property :next_page_token, as: 'nextPageToken' end end class Link # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' property :thumbnail_url, as: 'thumbnailUrl' property :url, as: 'url' + property :title, as: 'title' end end class ListGuardiansResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation - property :next_page_token, as: 'nextPageToken' + end + end + + class CourseAlias + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' end end @@ -715,16 +683,48 @@ module Google class ListGuardianInvitationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation + property :next_page_token, as: 'nextPageToken' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :year, as: 'year' + property :month, as: 'month' + end + end + + class MultipleChoiceSubmission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + end + end + + class CourseMaterial + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + + property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation + + property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + end end - class CourseAlias + class Name # @private class Representation < Google::Apis::Core::JsonRepresentation - property :alias, as: 'alias' + property :family_name, as: 'familyName' + property :given_name, as: 'givenName' + property :full_name, as: 'fullName' end end end diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb index a5814eafb..594e2380e 100644 --- a/generated/google/apis/classroom_v1/service.rb +++ b/generated/google/apis/classroom_v1/service.rb @@ -47,19 +47,31 @@ module Google @batch_path = 'batch' end - # Creates a course. - # The user specified in `ownerId` is the owner of the created course - # and added as a teacher. + # Returns a list of invitations that the requesting user is permitted to + # view, restricted to those that match the list request. + # *Note:* At least one of `user_id` or `course_id` must be supplied. Both + # fields can be supplied. # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to create - # courses or for access errors. - # * `NOT_FOUND` if the primary teacher is not a valid user. - # * `FAILED_PRECONDITION` if the course owner's account is disabled or for - # the following request errors: - # * UserGroupsMembershipLimitReached - # * `ALREADY_EXISTS` if an alias was specified in the `id` and - # already exists. - # @param [Google::Apis::ClassroomV1::Course] course_object + # * `PERMISSION_DENIED` for access errors. + # @param [String] page_token + # nextPageToken + # value returned from a previous + # list call, indicating + # that the subsequent page of results should be returned. + # The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] user_id + # Restricts returned invitations to those for a specific user. The identifier + # can be one of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. + # The server may return fewer than the specified number of results. + # @param [String] course_id + # Restricts returned invitations to those for a course with the specified + # identifier. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -69,20 +81,607 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::ListInvitationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::Course] + # @return [Google::Apis::ClassroomV1::ListInvitationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/courses', options) - command.request_representation = Google::Apis::ClassroomV1::Course::Representation - command.request_object = course_object - command.response_representation = Google::Apis::ClassroomV1::Course::Representation - command.response_class = Google::Apis::ClassroomV1::Course + def list_invitations(page_token: nil, user_id: nil, page_size: nil, course_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/invitations', options) + command.response_representation = Google::Apis::ClassroomV1::ListInvitationsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListInvitationsResponse + command.query['pageToken'] = page_token unless page_token.nil? + command.query['userId'] = user_id unless user_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['courseId'] = course_id unless course_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns an invitation. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to view the + # requested invitation or for access errors. + # * `NOT_FOUND` if no invitation exists with the requested ID. + # @param [String] id + # Identifier of the invitation to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Invitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/invitations/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.response_class = Google::Apis::ClassroomV1::Invitation + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an invitation. Only one invitation for a user and course may exist + # at a time. Delete and re-create an invitation to make changes. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to create + # invitations for this course or for access errors. + # * `NOT_FOUND` if the course or the user does not exist. + # * `FAILED_PRECONDITION` if the requested user's account is disabled or if + # the user already has this role or a role with greater permissions. + # * `ALREADY_EXISTS` if an invitation for the specified user and course + # already exists. + # @param [Google::Apis::ClassroomV1::Invitation] invitation_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Invitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_invitation(invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/invitations', options) + command.request_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.request_object = invitation_object + command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.response_class = Google::Apis::ClassroomV1::Invitation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Accepts an invitation, removing it and adding the invited user to the + # teachers or students (as appropriate) of the specified course. Only the + # invited user may accept an invitation. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to accept the + # requested invitation or for access errors. + # * `FAILED_PRECONDITION` for the following request errors: + # * CourseMemberLimitReached + # * CourseNotModifiable + # * CourseTeacherLimitReached + # * UserGroupsMembershipLimitReached + # * `NOT_FOUND` if no invitation exists with the requested ID. + # @param [String] id + # Identifier of the invitation to accept. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def accept_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/invitations/{id}:accept', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an invitation. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to delete the + # requested invitation or for access errors. + # * `NOT_FOUND` if no invitation exists with the requested ID. + # @param [String] id + # Identifier of the invitation to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/invitations/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a user profile. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to access + # this user profile, if no profile exists with the requested ID, or for + # access errors. + # @param [String] user_id + # Identifier of the profile to return. The identifier can be one of the + # following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::UserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::UserProfile] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation + command.response_class = Google::Apis::ClassroomV1::UserProfile + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Modifies a guardian invitation. + # Currently, the only valid modification is to change the `state` from + # `PENDING` to `COMPLETE`. This has the effect of withdrawing the invitation. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the current user does not have permission to + # manage guardians, if guardians are not enabled for the domain in question + # or for other access errors. + # * `FAILED_PRECONDITION` if the guardian link is not in the `PENDING` state. + # * `INVALID_ARGUMENT` if the format of the student ID provided + # cannot be recognized (it is not an email address, nor a `user_id` from + # this API), or if the passed `GuardianInvitation` has a `state` other than + # `COMPLETE`, or if it modifies fields other than `state`. + # * `NOT_FOUND` if the student ID provided is a valid student ID, but + # Classroom has no record of that student, or if the `id` field does not + # refer to a guardian invitation known to Classroom. + # @param [String] student_id + # The ID of the student whose guardian invitation is to be modified. + # @param [String] invitation_id + # The `id` field of the `GuardianInvitation` to be modified. + # @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object + # @param [String] update_mask + # Mask that identifies which fields on the course to update. + # This field is required to do an update. The update will fail if invalid + # fields are specified. The following fields are valid: + # * `state` + # When set in a query parameter, this field should be specified as + # `updateMask=,,...` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::GuardianInvitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_profile_guardian_invitation(student_id, invitation_id, guardian_invitation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options) + command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation + command.request_object = guardian_invitation_object + command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation + command.response_class = Google::Apis::ClassroomV1::GuardianInvitation + command.params['studentId'] = student_id unless student_id.nil? + command.params['invitationId'] = invitation_id unless invitation_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a specific guardian invitation. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to view + # guardian invitations for the student identified by the `student_id`, if + # guardians are not enabled for the domain in question, or for other + # access errors. + # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot + # be recognized (it is not an email address, nor a `student_id` from the + # API, nor the literal string `me`). + # * `NOT_FOUND` if Classroom cannot find any record of the given student or + # `invitation_id`. May also be returned if the student exists, but the + # requesting user does not have access to see that student. + # @param [String] student_id + # The ID of the student whose guardian invitation is being requested. + # @param [String] invitation_id + # The `id` field of the `GuardianInvitation` being requested. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::GuardianInvitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_profile_guardian_invitation(student_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options) + command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation + command.response_class = Google::Apis::ClassroomV1::GuardianInvitation + command.params['studentId'] = student_id unless student_id.nil? + command.params['invitationId'] = invitation_id unless invitation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of guardian invitations that the requesting user is + # permitted to view, filtered by the parameters provided. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if a `student_id` is specified, and the requesting + # user is not permitted to view guardian invitations for that student, if + # `"-"` is specified as the `student_id` and the user is not a domain + # administrator, if guardians are not enabled for the domain in question, + # or for other access errors. + # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot + # be recognized (it is not an email address, nor a `student_id` from the + # API, nor the literal string `me`). May also be returned if an invalid + # `page_token` or `state` is provided. + # * `NOT_FOUND` if a `student_id` is specified, and its format can be + # recognized, but Classroom has no record of that student. + # @param [String] student_id + # The ID of the student whose guardian invitations are to be returned. + # The identifier can be one of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # * the string literal `"-"`, indicating that results should be returned for + # all students that the requesting user is permitted to view guardian + # invitations. + # @param [String] page_token + # nextPageToken + # value returned from a previous + # list call, + # indicating that the subsequent page of results should be returned. + # The list request + # must be otherwise identical to the one that resulted in this token. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. + # The server may return fewer than the specified number of results. + # @param [Array, String] states + # If specified, only results with the specified `state` values will be + # returned. Otherwise, results with a `state` of `PENDING` will be returned. + # @param [String] invited_email_address + # If specified, only results with the specified `invited_email_address` + # will be returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListGuardianInvitationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListGuardianInvitationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_user_profile_guardian_invitations(student_id, page_token: nil, page_size: nil, states: nil, invited_email_address: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations', options) + command.response_representation = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse + command.params['studentId'] = student_id unless student_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['states'] = states unless states.nil? + command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a guardian invitation, and sends an email to the guardian asking + # them to confirm that they are the student's guardian. + # Once the guardian accepts the invitation, their `state` will change to + # `COMPLETED` and they will start receiving guardian notifications. A + # `Guardian` resource will also be created to represent the active guardian. + # The request object must have the `student_id` and + # `invited_email_address` fields set. Failing to set these fields, or + # setting any other fields in the request, will result in an error. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the current user does not have permission to + # manage guardians, if the guardian in question has already rejected + # too many requests for that student, if guardians are not enabled for the + # domain in question, or for other access errors. + # * `RESOURCE_EXHAUSTED` if the student or guardian has exceeded the guardian + # link limit. + # * `INVALID_ARGUMENT` if the guardian email address is not valid (for + # example, if it is too long), or if the format of the student ID provided + # cannot be recognized (it is not an email address, nor a `user_id` from + # this API). This error will also be returned if read-only fields are set, + # or if the `state` field is set to to a value other than `PENDING`. + # * `NOT_FOUND` if the student ID provided is a valid student ID, but + # Classroom has no record of that student. + # * `ALREADY_EXISTS` if there is already a pending guardian invitation for + # the student and `invited_email_address` provided, or if the provided + # `invited_email_address` matches the Google account of an existing + # `Guardian` for this user. + # @param [String] student_id + # ID of the student (in standard format) + # @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::GuardianInvitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_profile_guardian_invitation(student_id, guardian_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/userProfiles/{studentId}/guardianInvitations', options) + command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation + command.request_object = guardian_invitation_object + command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation + command.response_class = Google::Apis::ClassroomV1::GuardianInvitation + command.params['studentId'] = student_id unless student_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a specific guardian. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if no user that matches the provided `student_id` + # is visible to the requesting user, if the requesting user is not + # permitted to view guardian information for the student identified by the + # `student_id`, if guardians are not enabled for the domain in question, + # or for other access errors. + # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot + # be recognized (it is not an email address, nor a `student_id` from the + # API, nor the literal string `me`). + # * `NOT_FOUND` if the requesting user is permitted to view guardians for + # the requested `student_id`, but no `Guardian` record exists for that + # student that matches the provided `guardian_id`. + # @param [String] student_id + # The student whose guardian is being requested. One of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [String] guardian_id + # The `id` field from a `Guardian`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Guardian] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Guardian] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options) + command.response_representation = Google::Apis::ClassroomV1::Guardian::Representation + command.response_class = Google::Apis::ClassroomV1::Guardian + command.params['studentId'] = student_id unless student_id.nil? + command.params['guardianId'] = guardian_id unless guardian_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of guardians that the requesting user is permitted to + # view, restricted to those that match the request. + # To list guardians for any student that the requesting user may view + # guardians for, use the literal character `-` for the student ID. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if a `student_id` is specified, and the requesting + # user is not permitted to view guardian information for that student, if + # `"-"` is specified as the `student_id` and the user is not a domain + # administrator, if guardians are not enabled for the domain in question, + # if the `invited_email_address` filter is set by a user who is not a + # domain administrator, or for other access errors. + # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot + # be recognized (it is not an email address, nor a `student_id` from the + # API, nor the literal string `me`). May also be returned if an invalid + # `page_token` is provided. + # * `NOT_FOUND` if a `student_id` is specified, and its format can be + # recognized, but Classroom has no record of that student. + # @param [String] student_id + # Filter results by the student who the guardian is linked to. + # The identifier can be one of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # * the string literal `"-"`, indicating that results should be returned for + # all students that the requesting user has access to view. + # @param [String] page_token + # nextPageToken + # value returned from a previous + # list call, + # indicating that the subsequent page of results should be returned. + # The list request + # must be otherwise identical to the one that resulted in this token. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. + # The server may return fewer than the specified number of results. + # @param [String] invited_email_address + # Filter results by the email address that the original invitation was sent + # to, resulting in this guardian link. + # This filter can only be used by domain administrators. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListGuardiansResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListGuardiansResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_user_profile_guardians(student_id, page_token: nil, page_size: nil, invited_email_address: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians', options) + command.response_representation = Google::Apis::ClassroomV1::ListGuardiansResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListGuardiansResponse + command.params['studentId'] = student_id unless student_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a guardian. + # The guardian will no longer receive guardian notifications and the guardian + # will no longer be accessible via the API. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if no user that matches the provided `student_id` + # is visible to the requesting user, if the requesting user is not + # permitted to manage guardians for the student identified by the + # `student_id`, if guardians are not enabled for the domain in question, + # or for other access errors. + # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot + # be recognized (it is not an email address, nor a `student_id` from the + # API). + # * `NOT_FOUND` if the requesting user is permitted to modify guardians for + # the requested `student_id`, but no `Guardian` record exists for that + # student with the provided `guardian_id`. + # @param [String] student_id + # The student whose guardian is to be deleted. One of the following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [String] guardian_id + # The `id` field from a `Guardian`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['studentId'] = student_id unless student_id.nil? + command.params['guardianId'] = guardian_id unless guardian_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -280,15 +879,15 @@ module Google # Maximum number of items to return. Zero or unspecified indicates that the # server may assign a maximum. # The server may return fewer than the specified number of results. + # @param [Array, String] course_states + # Restricts returned courses to those in one of the specified states + # The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. # @param [String] teacher_id # Restricts returned courses to those having a teacher with the specified # identifier. The identifier can be one of the following: # * the numeric identifier for the user # * the email address of the user # * the string literal `"me"`, indicating the requesting user - # @param [Array, String] course_states - # Restricts returned courses to those in one of the specified states - # The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -306,36 +905,33 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_courses(student_id: nil, page_token: nil, page_size: nil, teacher_id: nil, course_states: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_courses(student_id: nil, page_token: nil, page_size: nil, course_states: nil, teacher_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/courses', options) command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse command.query['studentId'] = student_id unless student_id.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['teacherId'] = teacher_id unless teacher_id.nil? command.query['courseStates'] = course_states unless course_states.nil? + command.query['teacherId'] = teacher_id unless teacher_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns a student of a course. + # Creates a course. + # The user specified in `ownerId` is the owner of the created course + # and added as a teacher. # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to view - # students of this course or for access errors. - # * `NOT_FOUND` if no student of this course has the requested ID or if the - # course does not exist. - # @param [String] course_id - # Identifier of the course. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [String] user_id - # Identifier of the student to return. The identifier can be one of the - # following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user + # * `PERMISSION_DENIED` if the requesting user is not permitted to create + # courses or for access errors. + # * `NOT_FOUND` if the primary teacher is not a valid user. + # * `FAILED_PRECONDITION` if the course owner's account is disabled or for + # the following request errors: + # * UserGroupsMembershipLimitReached + # * `ALREADY_EXISTS` if an alias was specified in the `id` and + # already exists. + # @param [Google::Apis::ClassroomV1::Course] course_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -345,43 +941,130 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Student] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::Student] + # @return [Google::Apis::ClassroomV1::Course] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/students/{userId}', options) - command.response_representation = Google::Apis::ClassroomV1::Student::Representation - command.response_class = Google::Apis::ClassroomV1::Student - command.params['courseId'] = course_id unless course_id.nil? - command.params['userId'] = user_id unless user_id.nil? + def create_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses', options) + command.request_representation = Google::Apis::ClassroomV1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1::Course::Representation + command.response_class = Google::Apis::ClassroomV1::Course command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns a list of students of this course that the requester - # is permitted to view. + # Creates an alias for a course. # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to create the + # alias or for access errors. # * `NOT_FOUND` if the course does not exist. - # * `PERMISSION_DENIED` for access errors. + # * `ALREADY_EXISTS` if the alias already exists. + # * `FAILED_PRECONDITION` if the alias requested does not make sense for the + # requesting user or course (for example, if a user not in a domain + # attempts to access a domain-scoped alias). # @param [String] course_id - # Identifier of the course. + # Identifier of the course to alias. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [Google::Apis::ClassroomV1::CourseAlias] course_alias_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::CourseAlias] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseAlias] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/aliases', options) + command.request_representation = Google::Apis::ClassroomV1::CourseAlias::Representation + command.request_object = course_alias_object + command.response_representation = Google::Apis::ClassroomV1::CourseAlias::Representation + command.response_class = Google::Apis::ClassroomV1::CourseAlias + command.params['courseId'] = course_id unless course_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an alias of a course. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to remove the + # alias or for access errors. + # * `NOT_FOUND` if the alias does not exist. + # * `FAILED_PRECONDITION` if the alias requested does not make sense for the + # requesting user or course (for example, if a user not in a domain + # attempts to delete a domain-scoped alias). + # @param [String] course_id + # Identifier of the course whose alias should be deleted. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] alias_ + # Alias to delete. + # This may not be the Classroom-assigned identifier. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/aliases/{alias}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['alias'] = alias_ unless alias_.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of aliases for a course. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to access the + # course or for access errors. + # * `NOT_FOUND` if the course does not exist. + # @param [String] course_id + # The identifier of the course. # This identifier can be either the Classroom-assigned identifier or an # alias. # @param [String] page_token # nextPageToken # value returned from a previous - # list call, indicating that - # the subsequent page of results should be returned. - # The list request must be - # otherwise identical to the one that resulted in this token. + # list call, + # indicating that the subsequent page of results should be returned. + # The list request + # must be otherwise identical to the one that resulted in this token. # @param [Fixnum] page_size - # Maximum number of items to return. Zero means no maximum. + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. # The server may return fewer than the specified number of results. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -392,18 +1075,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListStudentsResponse] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::ListCourseAliasesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::ListStudentsResponse] + # @return [Google::Apis::ClassroomV1::ListCourseAliasesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_course_students(course_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/students', options) - command.response_representation = Google::Apis::ClassroomV1::ListStudentsResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListStudentsResponse + def list_course_aliases(course_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/aliases', options) + command.response_representation = Google::Apis::ClassroomV1::ListCourseAliasesResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCourseAliasesResponse command.params['courseId'] = course_id unless course_id.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? @@ -508,6 +1191,98 @@ module Google execute_or_queue_command(command, &block) end + # Returns a list of students of this course that the requester + # is permitted to view. + # This method returns the following error codes: + # * `NOT_FOUND` if the course does not exist. + # * `PERMISSION_DENIED` for access errors. + # @param [String] course_id + # Identifier of the course. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] page_token + # nextPageToken + # value returned from a previous + # list call, indicating that + # the subsequent page of results should be returned. + # The list request must be + # otherwise identical to the one that resulted in this token. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. + # The server may return fewer than the specified number of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListStudentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListStudentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_course_students(course_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/students', options) + command.response_representation = Google::Apis::ClassroomV1::ListStudentsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListStudentsResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['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 + + # Returns a student of a course. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to view + # students of this course or for access errors. + # * `NOT_FOUND` if no student of this course has the requested ID or if the + # course does not exist. + # @param [String] course_id + # Identifier of the course. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] user_id + # Identifier of the student to return. The identifier can be one of the + # following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Student] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Student] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/students/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Student::Representation + command.response_class = Google::Apis::ClassroomV1::Student + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a course work. # This request must be made by the Developer Console project of the # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to @@ -554,45 +1329,39 @@ module Google execute_or_queue_command(command, &block) end - # Updates one or more fields of a course work. - # See google.classroom.v1.CourseWork for details - # of which fields may be updated and who may change them. - # This request must be made by the Developer Console project of the - # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to - # create the corresponding course work item. + # Returns a list of course work that the requester is permitted to view. + # Course students may only view `PUBLISHED` course work. Course teachers + # and domain administrators may view all course work. # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting developer project did not create - # the corresponding course work, if the user is not permitted to make the - # requested modification to the student submission, or for - # access errors. + # * `PERMISSION_DENIED` if the requesting user is not permitted to access + # the requested course or for access errors. # * `INVALID_ARGUMENT` if the request is malformed. - # * `FAILED_PRECONDITION` if the requested course work has already been - # deleted. - # * `NOT_FOUND` if the requested course, course work, or student submission - # does not exist. + # * `NOT_FOUND` if the requested course does not exist. # @param [String] course_id # Identifier of the course. # This identifier can be either the Classroom-assigned identifier or an # alias. - # @param [String] id - # Identifier of the course work. - # @param [Google::Apis::ClassroomV1::CourseWork] course_work_object - # @param [String] update_mask - # Mask that identifies which fields on the course work to update. - # This field is required to do an update. The update fails if invalid - # fields are specified. If a field supports empty values, it can be cleared - # by specifying it in the update mask and not in the CourseWork object. If a - # field that does not support empty values is included in the update mask and - # not set in the CourseWork object, an `INVALID_ARGUMENT` error will be - # returned. - # The following fields may be specified by teachers: - # * `title` - # * `description` - # * `state` - # * `due_date` - # * `due_time` - # * `max_points` - # * `submission_modification_mode` + # @param [String] page_token + # nextPageToken + # value returned from a previous + # list call, + # indicating that the subsequent page of results should be returned. + # The list request + # must be otherwise identical to the one that resulted in this token. + # @param [String] order_by + # Optional sort ordering for results. A comma-separated list of fields with + # an optional sort direction keyword. Supported fields are `updateTime` + # and `dueDate`. Supported direction keywords are `asc` and `desc`. + # If not specified, `updateTime desc` is the default behavior. + # Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. + # The server may return fewer than the specified number of results. + # @param [Array, String] course_work_states + # Restriction on the work status to return. Only courseWork that matches + # is returned. If unspecified, items with a work status of `PUBLISHED` + # is returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -602,23 +1371,23 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::CourseWork] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::ListCourseWorkResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::CourseWork] + # @return [Google::Apis::ClassroomV1::ListCourseWorkResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_course_course_work(course_id, id, course_work_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{id}', options) - command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation - command.request_object = course_work_object - command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation - command.response_class = Google::Apis::ClassroomV1::CourseWork + def list_course_works(course_id, page_token: nil, order_by: nil, page_size: nil, course_work_states: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork', options) + command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCourseWorkResponse command.params['courseId'] = course_id unless course_id.nil? - command.params['id'] = id unless id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['courseWorkStates'] = course_work_states unless course_work_states.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -664,39 +1433,46 @@ module Google execute_or_queue_command(command, &block) end - # Returns a list of course work that the requester is permitted to view. - # Course students may only view `PUBLISHED` course work. Course teachers - # and domain administrators may view all course work. + # Updates one or more fields of a course work. + # See google.classroom.v1.CourseWork for details + # of which fields may be updated and who may change them. + # This request must be made by the Developer Console project of the + # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to + # create the corresponding course work item. # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to access - # the requested course or for access errors. + # * `PERMISSION_DENIED` if the requesting developer project did not create + # the corresponding course work, if the user is not permitted to make the + # requested modification to the student submission, or for + # access errors. # * `INVALID_ARGUMENT` if the request is malformed. - # * `NOT_FOUND` if the requested course does not exist. + # * `FAILED_PRECONDITION` if the requested course work has already been + # deleted. + # * `NOT_FOUND` if the requested course, course work, or student submission + # does not exist. # @param [String] course_id # Identifier of the course. # This identifier can be either the Classroom-assigned identifier or an # alias. - # @param [Fixnum] page_size - # Maximum number of items to return. Zero or unspecified indicates that the - # server may assign a maximum. - # The server may return fewer than the specified number of results. - # @param [Array, String] course_work_states - # Restriction on the work status to return. Only courseWork that matches - # is returned. If unspecified, items with a work status of `PUBLISHED` - # is returned. - # @param [String] order_by - # Optional sort ordering for results. A comma-separated list of fields with - # an optional sort direction keyword. Supported fields are `updateTime` - # and `dueDate`. Supported direction keywords are `asc` and `desc`. - # If not specified, `updateTime desc` is the default behavior. - # Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` - # @param [String] page_token - # nextPageToken - # value returned from a previous - # list call, - # indicating that the subsequent page of results should be returned. - # The list request - # must be otherwise identical to the one that resulted in this token. + # @param [String] id + # Identifier of the course work. + # @param [Google::Apis::ClassroomV1::CourseWork] course_work_object + # @param [String] update_mask + # Mask that identifies which fields on the course work to update. + # This field is required to do an update. The update fails if invalid + # fields are specified. If a field supports empty values, it can be cleared + # by specifying it in the update mask and not in the CourseWork object. If a + # field that does not support empty values is included in the update mask and + # not set in the CourseWork object, an `INVALID_ARGUMENT` error will be + # returned. + # The following fields may be specified by teachers: + # * `title` + # * `description` + # * `state` + # * `due_date` + # * `due_time` + # * `max_points` + # * `scheduled_time` + # * `submission_modification_mode` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -706,23 +1482,23 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListCourseWorkResponse] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::CourseWork] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::ListCourseWorkResponse] + # @return [Google::Apis::ClassroomV1::CourseWork] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_course_works(course_id, page_size: nil, course_work_states: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork', options) - command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListCourseWorkResponse + def patch_course_course_work(course_id, id, course_work_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation + command.request_object = course_work_object + command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWork command.params['courseId'] = course_id unless course_id.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['courseWorkStates'] = course_work_states unless course_work_states.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageToken'] = page_token unless page_token.nil? + command.params['id'] = id unless id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -777,6 +1553,112 @@ module Google execute_or_queue_command(command, &block) end + # Returns a student submission. + # * `PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course, course work, or student submission or for + # access errors. + # * `INVALID_ARGUMENT` if the request is malformed. + # * `NOT_FOUND` if the requested course, course work, or student submission + # does not exist. + # @param [String] course_id + # Identifier of the course. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::StudentSubmission] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_student_submission(course_id, course_work_id, id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.response_class = Google::Apis::ClassroomV1::StudentSubmission + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates one or more fields of a student submission. + # See google.classroom.v1.StudentSubmission for details + # of which fields may be updated and who may change them. + # This request must be made by the Developer Console project of the + # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to + # create the corresponding course work item. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting developer project did not create + # the corresponding course work, if the user is not permitted to make the + # requested modification to the student submission, or for + # access errors. + # * `INVALID_ARGUMENT` if the request is malformed. + # * `NOT_FOUND` if the requested course, course work, or student submission + # does not exist. + # @param [String] course_id + # Identifier of the course. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::StudentSubmission] student_submission_object + # @param [String] update_mask + # Mask that identifies which fields on the student submission to update. + # This field is required to do an update. The update fails if invalid + # fields are specified. + # The following fields may be specified by teachers: + # * `draft_grade` + # * `assigned_grade` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::StudentSubmission] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_student_submission(course_id, course_work_id, id, student_submission_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.request_object = student_submission_object + command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.response_class = Google::Apis::ClassroomV1::StudentSubmission + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns a student submission. # Returning a student submission transfers ownership of attached Drive # files to the student and may also update the submission state. @@ -964,13 +1846,6 @@ module Google # Identifer of the student work to request. # This may be set to the string literal `"-"` to request student work for # all course work in the specified course. - # @param [String] user_id - # Optional argument to restrict returned student work to those owned by the - # student with the specified identifier. The identifier can be one of the - # following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user # @param [String] late # Requested lateness value. If specified, returned student submissions are # restricted by the requested value. @@ -989,6 +1864,13 @@ module Google # Maximum number of items to return. Zero or unspecified indicates that the # server may assign a maximum. # The server may return fewer than the specified number of results. + # @param [String] user_id + # Optional argument to restrict returned student work to those owned by the + # student with the specified identifier. The identifier can be one of the + # following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1006,17 +1888,17 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_student_submissions(course_id, course_work_id, user_id: nil, late: nil, page_token: nil, states: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_student_submissions(course_id, course_work_id, late: nil, page_token: nil, states: nil, page_size: nil, user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions', options) command.response_representation = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse::Representation command.response_class = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse command.params['courseId'] = course_id unless course_id.nil? command.params['courseWorkId'] = course_work_id unless course_work_id.nil? - command.query['userId'] = user_id unless user_id.nil? command.query['late'] = late unless late.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['states'] = states unless states.nil? command.query['pageSize'] = page_size unless page_size.nil? + command.query['userId'] = user_id unless user_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1076,124 +1958,20 @@ module Google execute_or_queue_command(command, &block) end - # Updates one or more fields of a student submission. - # See google.classroom.v1.StudentSubmission for details - # of which fields may be updated and who may change them. - # This request must be made by the Developer Console project of the - # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to - # create the corresponding course work item. + # Deletes a teacher of a course. # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting developer project did not create - # the corresponding course work, if the user is not permitted to make the - # requested modification to the student submission, or for - # access errors. - # * `INVALID_ARGUMENT` if the request is malformed. - # * `NOT_FOUND` if the requested course, course work, or student submission - # does not exist. - # @param [String] course_id - # Identifier of the course. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [String] course_work_id - # Identifier of the course work. - # @param [String] id - # Identifier of the student submission. - # @param [Google::Apis::ClassroomV1::StudentSubmission] student_submission_object - # @param [String] update_mask - # Mask that identifies which fields on the student submission to update. - # This field is required to do an update. The update fails if invalid - # fields are specified. - # The following fields may be specified by teachers: - # * `draft_grade` - # * `assigned_grade` - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::StudentSubmission] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_student_submission(course_id, course_work_id, id, student_submission_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) - command.request_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation - command.request_object = student_submission_object - command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation - command.response_class = Google::Apis::ClassroomV1::StudentSubmission - command.params['courseId'] = course_id unless course_id.nil? - command.params['courseWorkId'] = course_work_id unless course_work_id.nil? - command.params['id'] = id unless id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a student submission. - # * `PERMISSION_DENIED` if the requesting user is not permitted to access the - # requested course, course work, or student submission or for - # access errors. - # * `INVALID_ARGUMENT` if the request is malformed. - # * `NOT_FOUND` if the requested course, course work, or student submission - # does not exist. - # @param [String] course_id - # Identifier of the course. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [String] course_work_id - # Identifier of the course work. - # @param [String] id - # Identifier of the student submission. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::StudentSubmission] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_student_submission(course_id, course_work_id, id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) - command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation - command.response_class = Google::Apis::ClassroomV1::StudentSubmission - command.params['courseId'] = course_id unless course_id.nil? - command.params['courseWorkId'] = course_work_id unless course_work_id.nil? - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a teacher of a course. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to view + # * `PERMISSION_DENIED` if the requesting user is not permitted to delete # teachers of this course or for access errors. # * `NOT_FOUND` if no teacher of this course has the requested ID or if the # course does not exist. + # * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher + # of this course. # @param [String] course_id # Identifier of the course. # This identifier can be either the Classroom-assigned identifier or an # alias. # @param [String] user_id - # Identifier of the teacher to return. The identifier can be one of the + # Identifier of the teacher to delete. The identifier can be one of the # following: # * the numeric identifier for the user # * the email address of the user @@ -1207,18 +1985,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Teacher] parsed result object + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ClassroomV1::Teacher] + # @return [Google::Apis::ClassroomV1::Empty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/teachers/{userId}', options) - command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation - command.response_class = Google::Apis::ClassroomV1::Teacher + def delete_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/teachers/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty command.params['courseId'] = course_id unless course_id.nil? command.params['userId'] = user_id unless user_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1274,6 +2052,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns a teacher of a course. + # This method returns the following error codes: + # * `PERMISSION_DENIED` if the requesting user is not permitted to view + # teachers of this course or for access errors. + # * `NOT_FOUND` if no teacher of this course has the requested ID or if the + # course does not exist. + # @param [String] course_id + # Identifier of the course. + # This identifier can be either the Classroom-assigned identifier or an + # alias. + # @param [String] user_id + # Identifier of the teacher to return. The identifier can be one of the + # following: + # * the numeric identifier for the user + # * the email address of the user + # * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Teacher] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Teacher] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/teachers/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation + command.response_class = Google::Apis::ClassroomV1::Teacher + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a teacher of a course. # This method returns the following error codes: # * `PERMISSION_DENIED` if the requesting user is not permitted to create @@ -1320,827 +2142,6 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - - # Deletes a teacher of a course. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to delete - # teachers of this course or for access errors. - # * `NOT_FOUND` if no teacher of this course has the requested ID or if the - # course does not exist. - # * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher - # of this course. - # @param [String] course_id - # Identifier of the course. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [String] user_id - # Identifier of the teacher to delete. The identifier can be one of the - # following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/courses/{courseId}/teachers/{userId}', options) - command.response_representation = Google::Apis::ClassroomV1::Empty::Representation - command.response_class = Google::Apis::ClassroomV1::Empty - command.params['courseId'] = course_id unless course_id.nil? - command.params['userId'] = user_id unless user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes an alias of a course. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to remove the - # alias or for access errors. - # * `NOT_FOUND` if the alias does not exist. - # * `FAILED_PRECONDITION` if the alias requested does not make sense for the - # requesting user or course (for example, if a user not in a domain - # attempts to delete a domain-scoped alias). - # @param [String] course_id - # Identifier of the course whose alias should be deleted. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [String] alias_ - # Alias to delete. - # This may not be the Classroom-assigned identifier. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/courses/{courseId}/aliases/{alias}', options) - command.response_representation = Google::Apis::ClassroomV1::Empty::Representation - command.response_class = Google::Apis::ClassroomV1::Empty - command.params['courseId'] = course_id unless course_id.nil? - command.params['alias'] = alias_ unless alias_.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a list of aliases for a course. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to access the - # course or for access errors. - # * `NOT_FOUND` if the course does not exist. - # @param [String] course_id - # The identifier of the course. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [Fixnum] page_size - # Maximum number of items to return. Zero or unspecified indicates that the - # server may assign a maximum. - # The server may return fewer than the specified number of results. - # @param [String] page_token - # nextPageToken - # value returned from a previous - # list call, - # indicating that the subsequent page of results should be returned. - # The list request - # must be otherwise identical to the one that resulted in this token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListCourseAliasesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::ListCourseAliasesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_course_aliases(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/courses/{courseId}/aliases', options) - command.response_representation = Google::Apis::ClassroomV1::ListCourseAliasesResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListCourseAliasesResponse - command.params['courseId'] = course_id unless course_id.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates an alias for a course. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to create the - # alias or for access errors. - # * `NOT_FOUND` if the course does not exist. - # * `ALREADY_EXISTS` if the alias already exists. - # * `FAILED_PRECONDITION` if the alias requested does not make sense for the - # requesting user or course (for example, if a user not in a domain - # attempts to access a domain-scoped alias). - # @param [String] course_id - # Identifier of the course to alias. - # This identifier can be either the Classroom-assigned identifier or an - # alias. - # @param [Google::Apis::ClassroomV1::CourseAlias] course_alias_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::CourseAlias] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::CourseAlias] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/courses/{courseId}/aliases', options) - command.request_representation = Google::Apis::ClassroomV1::CourseAlias::Representation - command.request_object = course_alias_object - command.response_representation = Google::Apis::ClassroomV1::CourseAlias::Representation - command.response_class = Google::Apis::ClassroomV1::CourseAlias - command.params['courseId'] = course_id unless course_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a user profile. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to access - # this user profile, if no profile exists with the requested ID, or for - # access errors. - # @param [String] user_id - # Identifier of the profile to return. The identifier can be one of the - # following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::UserProfile] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::UserProfile] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/userProfiles/{userId}', options) - command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation - command.response_class = Google::Apis::ClassroomV1::UserProfile - command.params['userId'] = user_id unless user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a list of guardian invitations that the requesting user is - # permitted to view, filtered by the parameters provided. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if a `student_id` is specified, and the requesting - # user is not permitted to view guardian invitations for that student, if - # `"-"` is specified as the `student_id` and the user is not a domain - # administrator, if guardians are not enabled for the domain in question, - # or for other access errors. - # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - # be recognized (it is not an email address, nor a `student_id` from the - # API, nor the literal string `me`). May also be returned if an invalid - # `page_token` or `state` is provided. - # * `NOT_FOUND` if a `student_id` is specified, and its format can be - # recognized, but Classroom has no record of that student. - # @param [String] student_id - # The ID of the student whose guardian invitations are to be returned. - # The identifier can be one of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # * the string literal `"-"`, indicating that results should be returned for - # all students that the requesting user is permitted to view guardian - # invitations. - # @param [String] page_token - # nextPageToken - # value returned from a previous - # list call, - # indicating that the subsequent page of results should be returned. - # The list request - # must be otherwise identical to the one that resulted in this token. - # @param [String] invited_email_address - # If specified, only results with the specified `invited_email_address` - # will be returned. - # @param [Array, String] states - # If specified, only results with the specified `state` values will be - # returned. Otherwise, results with a `state` of `PENDING` will be returned. - # @param [Fixnum] page_size - # Maximum number of items to return. Zero or unspecified indicates that the - # server may assign a maximum. - # The server may return fewer than the specified number of results. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListGuardianInvitationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::ListGuardianInvitationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_user_profile_guardian_invitations(student_id, page_token: nil, invited_email_address: nil, states: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations', options) - command.response_representation = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse - command.params['studentId'] = student_id unless student_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil? - command.query['states'] = states unless states.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 - - # Returns a specific guardian invitation. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to view - # guardian invitations for the student identified by the `student_id`, if - # guardians are not enabled for the domain in question, or for other - # access errors. - # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - # be recognized (it is not an email address, nor a `student_id` from the - # API, nor the literal string `me`). - # * `NOT_FOUND` if Classroom cannot find any record of the given student or - # `invitation_id`. May also be returned if the student exists, but the - # requesting user does not have access to see that student. - # @param [String] student_id - # The ID of the student whose guardian invitation is being requested. - # @param [String] invitation_id - # The `id` field of the `GuardianInvitation` being requested. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::GuardianInvitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user_profile_guardian_invitation(student_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options) - command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation - command.response_class = Google::Apis::ClassroomV1::GuardianInvitation - command.params['studentId'] = student_id unless student_id.nil? - command.params['invitationId'] = invitation_id unless invitation_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 - - # Modifies a guardian invitation. - # Currently, the only valid modification is to change the `state` from - # `PENDING` to `COMPLETE`. This has the effect of withdrawing the invitation. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the current user does not have permission to - # manage guardians, if guardians are not enabled for the domain in question - # or for other access errors. - # * `FAILED_PRECONDITION` if the guardian link is not in the `PENDING` state. - # * `INVALID_ARGUMENT` if the format of the student ID provided - # cannot be recognized (it is not an email address, nor a `user_id` from - # this API), or if the passed `GuardianInvitation` has a `state` other than - # `COMPLETE`, or if it modifies fields other than `state`. - # * `NOT_FOUND` if the student ID provided is a valid student ID, but - # Classroom has no record of that student, or if the `id` field does not - # refer to a guardian invitation known to Classroom. - # @param [String] student_id - # The ID of the student whose guardian invitation is to be modified. - # @param [String] invitation_id - # The `id` field of the `GuardianInvitation` to be modified. - # @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object - # @param [String] update_mask - # Mask that identifies which fields on the course to update. - # This field is required to do an update. The update will fail if invalid - # fields are specified. The following fields are valid: - # * `state` - # When set in a query parameter, this field should be specified as - # `updateMask=,,...` - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::GuardianInvitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_profile_guardian_invitation(student_id, invitation_id, guardian_invitation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options) - command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation - command.request_object = guardian_invitation_object - command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation - command.response_class = Google::Apis::ClassroomV1::GuardianInvitation - command.params['studentId'] = student_id unless student_id.nil? - command.params['invitationId'] = invitation_id unless invitation_id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a guardian invitation, and sends an email to the guardian asking - # them to confirm that they are the student's guardian. - # Once the guardian accepts the invitation, their `state` will change to - # `COMPLETED` and they will start receiving guardian notifications. A - # `Guardian` resource will also be created to represent the active guardian. - # The request object must have the `student_id` and - # `invited_email_address` fields set. Failing to set these fields, or - # setting any other fields in the request, will result in an error. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the current user does not have permission to - # manage guardians, if the guardian in question has already rejected - # too many requests for that student, if guardians are not enabled for the - # domain in question, or for other access errors. - # * `RESOURCE_EXHAUSTED` if the student or guardian has exceeded the guardian - # link limit. - # * `INVALID_ARGUMENT` if the guardian email address is not valid (for - # example, if it is too long), or if the format of the student ID provided - # cannot be recognized (it is not an email address, nor a `user_id` from - # this API). This error will also be returned if read-only fields are set, - # or if the `state` field is set to to a value other than `PENDING`. - # * `NOT_FOUND` if the student ID provided is a valid student ID, but - # Classroom has no record of that student. - # * `ALREADY_EXISTS` if there is already a pending guardian invitation for - # the student and `invited_email_address` provided, or if the provided - # `invited_email_address` matches the Google account of an existing - # `Guardian` for this user. - # @param [String] student_id - # ID of the student (in standard format) - # @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::GuardianInvitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_profile_guardian_invitation(student_id, guardian_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/userProfiles/{studentId}/guardianInvitations', options) - command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation - command.request_object = guardian_invitation_object - command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation - command.response_class = Google::Apis::ClassroomV1::GuardianInvitation - command.params['studentId'] = student_id unless student_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a guardian. - # The guardian will no longer receive guardian notifications and the guardian - # will no longer be accessible via the API. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if no user that matches the provided `student_id` - # is visible to the requesting user, if the requesting user is not - # permitted to manage guardians for the student identified by the - # `student_id`, if guardians are not enabled for the domain in question, - # or for other access errors. - # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - # be recognized (it is not an email address, nor a `student_id` from the - # API). - # * `NOT_FOUND` if the requesting user is permitted to modify guardians for - # the requested `student_id`, but no `Guardian` record exists for that - # student with the provided `guardian_id`. - # @param [String] student_id - # The student whose guardian is to be deleted. One of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # @param [String] guardian_id - # The `id` field from a `Guardian`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options) - command.response_representation = Google::Apis::ClassroomV1::Empty::Representation - command.response_class = Google::Apis::ClassroomV1::Empty - command.params['studentId'] = student_id unless student_id.nil? - command.params['guardianId'] = guardian_id unless guardian_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a list of guardians that the requesting user is permitted to - # view, restricted to those that match the request. - # To list guardians for any student that the requesting user may view - # guardians for, use the literal character `-` for the student ID. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if a `student_id` is specified, and the requesting - # user is not permitted to view guardian information for that student, if - # `"-"` is specified as the `student_id` and the user is not a domain - # administrator, if guardians are not enabled for the domain in question, - # if the `invited_email_address` filter is set by a user who is not a - # domain administrator, or for other access errors. - # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - # be recognized (it is not an email address, nor a `student_id` from the - # API, nor the literal string `me`). May also be returned if an invalid - # `page_token` is provided. - # * `NOT_FOUND` if a `student_id` is specified, and its format can be - # recognized, but Classroom has no record of that student. - # @param [String] student_id - # Filter results by the student who the guardian is linked to. - # The identifier can be one of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # * the string literal `"-"`, indicating that results should be returned for - # all students that the requesting user has access to view. - # @param [String] invited_email_address - # Filter results by the email address that the original invitation was sent - # to, resulting in this guardian link. - # This filter can only be used by domain administrators. - # @param [Fixnum] page_size - # Maximum number of items to return. Zero or unspecified indicates that the - # server may assign a maximum. - # The server may return fewer than the specified number of results. - # @param [String] page_token - # nextPageToken - # value returned from a previous - # list call, - # indicating that the subsequent page of results should be returned. - # The list request - # must be otherwise identical to the one that resulted in this token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListGuardiansResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::ListGuardiansResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_user_profile_guardians(student_id, invited_email_address: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians', options) - command.response_representation = Google::Apis::ClassroomV1::ListGuardiansResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListGuardiansResponse - command.params['studentId'] = student_id unless student_id.nil? - command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.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 - - # Returns a specific guardian. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if no user that matches the provided `student_id` - # is visible to the requesting user, if the requesting user is not - # permitted to view guardian information for the student identified by the - # `student_id`, if guardians are not enabled for the domain in question, - # or for other access errors. - # * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - # be recognized (it is not an email address, nor a `student_id` from the - # API, nor the literal string `me`). - # * `NOT_FOUND` if the requesting user is permitted to view guardians for - # the requested `student_id`, but no `Guardian` record exists for that - # student that matches the provided `guardian_id`. - # @param [String] student_id - # The student whose guardian is being requested. One of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # @param [String] guardian_id - # The `id` field from a `Guardian`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Guardian] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Guardian] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options) - command.response_representation = Google::Apis::ClassroomV1::Guardian::Representation - command.response_class = Google::Apis::ClassroomV1::Guardian - command.params['studentId'] = student_id unless student_id.nil? - command.params['guardianId'] = guardian_id unless guardian_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns an invitation. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to view the - # requested invitation or for access errors. - # * `NOT_FOUND` if no invitation exists with the requested ID. - # @param [String] id - # Identifier of the invitation to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Invitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_invitation(id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/invitations/{id}', options) - command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation - command.response_class = Google::Apis::ClassroomV1::Invitation - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a list of invitations that the requesting user is permitted to - # view, restricted to those that match the list request. - # *Note:* At least one of `user_id` or `course_id` must be supplied. Both - # fields can be supplied. - # This method returns the following error codes: - # * `PERMISSION_DENIED` for access errors. - # @param [String] user_id - # Restricts returned invitations to those for a specific user. The identifier - # can be one of the following: - # * the numeric identifier for the user - # * the email address of the user - # * the string literal `"me"`, indicating the requesting user - # @param [String] page_token - # nextPageToken - # value returned from a previous - # list call, indicating - # that the subsequent page of results should be returned. - # The list request must be - # otherwise identical to the one that resulted in this token. - # @param [Fixnum] page_size - # Maximum number of items to return. Zero means no maximum. - # The server may return fewer than the specified number of results. - # @param [String] course_id - # Restricts returned invitations to those for a course with the specified - # identifier. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::ListInvitationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::ListInvitationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_invitations(user_id: nil, page_token: nil, page_size: nil, course_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/invitations', options) - command.response_representation = Google::Apis::ClassroomV1::ListInvitationsResponse::Representation - command.response_class = Google::Apis::ClassroomV1::ListInvitationsResponse - command.query['userId'] = user_id unless user_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['courseId'] = course_id unless course_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates an invitation. Only one invitation for a user and course may exist - # at a time. Delete and re-create an invitation to make changes. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to create - # invitations for this course or for access errors. - # * `NOT_FOUND` if the course or the user does not exist. - # * `FAILED_PRECONDITION` if the requested user's account is disabled or if - # the user already has this role or a role with greater permissions. - # * `ALREADY_EXISTS` if an invitation for the specified user and course - # already exists. - # @param [Google::Apis::ClassroomV1::Invitation] invitation_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Invitation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_invitation(invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/invitations', options) - command.request_representation = Google::Apis::ClassroomV1::Invitation::Representation - command.request_object = invitation_object - command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation - command.response_class = Google::Apis::ClassroomV1::Invitation - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Accepts an invitation, removing it and adding the invited user to the - # teachers or students (as appropriate) of the specified course. Only the - # invited user may accept an invitation. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to accept the - # requested invitation or for access errors. - # * `FAILED_PRECONDITION` for the following request errors: - # * CourseMemberLimitReached - # * CourseNotModifiable - # * CourseTeacherLimitReached - # * UserGroupsMembershipLimitReached - # * `NOT_FOUND` if no invitation exists with the requested ID. - # @param [String] id - # Identifier of the invitation to accept. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def accept_invitation(id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/invitations/{id}:accept', options) - command.response_representation = Google::Apis::ClassroomV1::Empty::Representation - command.response_class = Google::Apis::ClassroomV1::Empty - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes an invitation. - # This method returns the following error codes: - # * `PERMISSION_DENIED` if the requesting user is not permitted to delete the - # requested invitation or for access errors. - # * `NOT_FOUND` if no invitation exists with the requested ID. - # @param [String] id - # Identifier of the invitation to delete. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClassroomV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_invitation(id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/invitations/{id}', options) - command.response_representation = Google::Apis::ClassroomV1::Empty::Representation - command.response_class = Google::Apis::ClassroomV1::Empty - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end protected diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 46144869a..aeaf439e2 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20170614' + REVISION = '20170712' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index a3d4315d0..f94136562 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -22,185 +22,6 @@ module Google module Apis module CloudbuildV1 - # 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 - - # 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 - - # 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 - - # 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 - - # RepoSource describes the location of the source in a Google Cloud Source - # Repository. - # Corresponds to the JSON property `repoSource` - # @return [Google::Apis::CloudbuildV1::RepoSource] - attr_accessor :repo_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) - @repo_source = args[:repo_source] if args.key?(:repo_source) - end - end - - # Optional arguments to enable specific features of builds. - class BuildOptions - include Google::Apis::Core::Hashable - - # Requested hash for SourceProvenance. - # Corresponds to the JSON property `sourceProvenanceHash` - # @return [Array] - attr_accessor :source_provenance_hash - - # Requested verifiability options. - # Corresponds to the JSON property `requestedVerifyOption` - # @return [String] - attr_accessor :requested_verify_option - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash) - @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option) - 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 generation for the object. If the generation is - # omitted, the latest generation will be used. - # Corresponds to the JSON property `generation` - # @return [Fixnum] - attr_accessor :generation - - # 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) - @generation = args[:generation] if args.key?(:generation) - @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 - - # List of build step digests, in order corresponding to build step indices. - # Corresponds to the JSON property `buildStepImages` - # @return [Array] - attr_accessor :build_step_images - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @images = args[:images] if args.key?(:images) - @build_step_images = args[:build_step_images] if args.key?(:build_step_images) - end - end - # Metadata for build operations. class BuildOperationMetadata include Google::Apis::Core::Hashable @@ -237,12 +58,6 @@ module Google class SourceProvenance include Google::Apis::Core::Hashable - # RepoSource describes the location of the source in a Google Cloud Source - # Repository. - # Corresponds to the JSON property `resolvedRepoSource` - # @return [Google::Apis::CloudbuildV1::RepoSource] - attr_accessor :resolved_repo_source - # StorageSource describes the location of the source in an archive file in # Google Cloud Storage. # Corresponds to the JSON property `resolvedStorageSource` @@ -261,15 +76,21 @@ module Google # @return [Hash] attr_accessor :file_hashes + # RepoSource describes the location of the source in a Google Cloud Source + # Repository. + # Corresponds to the JSON property `resolvedRepoSource` + # @return [Google::Apis::CloudbuildV1::RepoSource] + attr_accessor :resolved_repo_source + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source) @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source) @file_hashes = args[:file_hashes] if args.key?(:file_hashes) + @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source) end end @@ -286,19 +107,30 @@ module Google end end + # Response containing existing BuildTriggers. + class ListBuildTriggersResponse + include Google::Apis::Core::Hashable + + # BuildTriggers for the project, sorted by create_time descending. + # Corresponds to the JSON property `triggers` + # @return [Array] + attr_accessor :triggers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @triggers = args[:triggers] if args.key?(:triggers) + 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 - # 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 @@ -369,36 +201,25 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @done = args[:done] if args.key?(:done) @response = args[:response] if args.key?(:response) @name = args[:name] if args.key?(:name) @error = args[:error] if args.key?(:error) @metadata = args[:metadata] if args.key?(:metadata) - end - end - - # Response containing existing BuildTriggers. - class ListBuildTriggersResponse - include Google::Apis::Core::Hashable - - # BuildTriggers for the project, sorted by create_time descending. - # Corresponds to the JSON property `triggers` - # @return [Array] - attr_accessor :triggers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @triggers = args[:triggers] if args.key?(:triggers) + @done = args[:done] if args.key?(:done) end end @@ -428,22 +249,94 @@ module Google end end + # Container message for hash values. + class HashProp + include Google::Apis::Core::Hashable + + # The hash value. + # Corresponds to the JSON property `value` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :value + + # The type of hash that was performed. + # 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) + @value = args[:value] if args.key?(:value) + @type = args[:type] if args.key?(:type) + end + end + + # RepoSource describes the location of the source in a Google Cloud Source + # Repository. + class RepoSource + include Google::Apis::Core::Hashable + + # Explicit commit SHA to build. + # Corresponds to the JSON property `commitSha` + # @return [String] + attr_accessor :commit_sha + + # Name of the tag to build. + # Corresponds to the JSON property `tagName` + # @return [String] + attr_accessor :tag_name + + # Name of the branch to build. + # Corresponds to the JSON property `branchName` + # @return [String] + attr_accessor :branch_name + + # Name of the repo. If omitted, the name "default" is assumed. + # Corresponds to the JSON property `repoName` + # @return [String] + attr_accessor :repo_name + + # ID of the project that owns the repo. If omitted, the project ID requesting + # the build is assumed. + # 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) + @commit_sha = args[:commit_sha] if args.key?(:commit_sha) + @tag_name = args[:tag_name] if args.key?(:tag_name) + @branch_name = args[:branch_name] if args.key?(:branch_name) + @repo_name = args[:repo_name] if args.key?(:repo_name) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + # BuildStep describes a step to perform in the build pipeline. class BuildStep include Google::Apis::Core::Hashable - # Optional unique identifier for this build step, used in wait_for to - # reference this build step as a dependency. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - # 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 + # A list of environment variable definitions to be used when running a step. + # The elements are of the form "KEY=VALUE" for the environment variable "KEY" + # being given the value "VALUE". + # Corresponds to the JSON property `env` + # @return [Array] + attr_accessor :env + # The ID(s) of the step(s) that this build step depends on. # This build step will not start until all the build steps in wait_for # have completed successfully. If wait_for is empty, this build step will @@ -453,13 +346,6 @@ module Google # @return [Array] attr_accessor :wait_for - # A list of environment variable definitions to be used when running a step. - # The elements are of the form "KEY=VALUE" for the environment variable "KEY" - # being given the value "VALUE". - # Corresponds to the JSON property `env` - # @return [Array] - attr_accessor :env - # A list of arguments that will be presented to the step when it is started. # If the image used to run the step's container has an entrypoint, these args # will be used as arguments to that entrypoint. If the image does not define @@ -493,90 +379,32 @@ module Google # @return [String] attr_accessor :entrypoint + # Optional unique identifier for this build step, used in wait_for to + # reference this build step as a dependency. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of environment variables which are encrypted using a Cloud KMS + # crypto key. These values must be specified in the build's secrets. + # Corresponds to the JSON property `secretEnv` + # @return [Array] + attr_accessor :secret_env + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) @dir = args[:dir] if args.key?(:dir) - @wait_for = args[:wait_for] if args.key?(:wait_for) @env = args[:env] if args.key?(:env) + @wait_for = args[:wait_for] if args.key?(:wait_for) @args = args[:args] if args.key?(:args) @name = args[:name] if args.key?(:name) @entrypoint = args[:entrypoint] if args.key?(:entrypoint) - end - end - - # RepoSource describes the location of the source in a Google Cloud Source - # Repository. - class RepoSource - include Google::Apis::Core::Hashable - - # Name of the tag to build. - # Corresponds to the JSON property `tagName` - # @return [String] - attr_accessor :tag_name - - # Explicit commit SHA to build. - # Corresponds to the JSON property `commitSha` - # @return [String] - attr_accessor :commit_sha - - # ID of the project that owns the repo. If omitted, the project ID requesting - # the build is assumed. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # Name of the repo. If omitted, the name "default" is assumed. - # Corresponds to the JSON property `repoName` - # @return [String] - attr_accessor :repo_name - - # Name of the branch to build. - # Corresponds to the JSON property `branchName` - # @return [String] - attr_accessor :branch_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @tag_name = args[:tag_name] if args.key?(:tag_name) - @commit_sha = args[:commit_sha] if args.key?(:commit_sha) - @project_id = args[:project_id] if args.key?(:project_id) - @repo_name = args[:repo_name] if args.key?(:repo_name) - @branch_name = args[:branch_name] if args.key?(:branch_name) - end - end - - # Container message for hash values. - class HashProp - include Google::Apis::Core::Hashable - - # The hash value. - # Corresponds to the JSON property `value` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :value - - # The type of hash that was performed. - # 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) - @value = args[:value] if args.key?(:value) - @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) + @secret_env = args[:secret_env] if args.key?(:secret_env) end end @@ -600,6 +428,36 @@ module Google end end + # Secret pairs a set of secret environment variables containing encrypted + # values with the Cloud KMS key to use to decrypt the value. + class Secret + include Google::Apis::Core::Hashable + + # Map of environment variable name to its encrypted value. + # Secret environment variables must be unique across all of a build's + # secrets, and must be used by at least one build step. Values can be at most + # 1 KB in size. There can be at most ten secret values across all of a + # build's secrets. + # Corresponds to the JSON property `secretEnv` + # @return [Hash] + attr_accessor :secret_env + + # Cloud KMS key name to use to decrypt these envs. + # Corresponds to the JSON property `kmsKeyName` + # @return [String] + attr_accessor :kms_key_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @secret_env = args[:secret_env] if args.key?(:secret_env) + @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) + 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: @@ -642,11 +500,6 @@ module Google 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. @@ -654,21 +507,26 @@ module Google # @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. + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + 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) + @code = args[:code] if args.key?(:code) end end @@ -786,62 +644,10 @@ module Google class Build include Google::Apis::Core::Hashable - # Customer-readable message about the current status. - # @OutputOnly - # Corresponds to the JSON property `statusDetail` - # @return [String] - attr_accessor :status_detail - - # Status of the build. - # @OutputOnly - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # 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 - - # 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 - - # Results describes the artifacts created by the build pipeline. - # Corresponds to the JSON property `results` - # @return [Google::Apis::CloudbuildV1::Results] - attr_accessor :results - - # Describes the operations to be performed on the workspace. - # Corresponds to the JSON property `steps` - # @return [Array] - attr_accessor :steps - - # The ID of the BuildTrigger that triggered this build, if it was - # triggered automatically. - # @OutputOnly - # Corresponds to the JSON property `buildTriggerId` - # @return [String] - attr_accessor :build_trigger_id - - # Tags for annotation of a Build. These are not docker tags. - # Corresponds to the JSON property `tags` - # @return [Array] - attr_accessor :tags - - # Unique identifier of the build. - # @OutputOnly - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id + # Substitutions data for Build resource. + # Corresponds to the JSON property `substitutions` + # @return [Hash] + attr_accessor :substitutions # Time at which execution of the build was started. # @OutputOnly @@ -849,10 +655,11 @@ module Google # @return [String] attr_accessor :start_time - # Substitutions data for Build resource. - # Corresponds to the JSON property `substitutions` - # @return [Hash] - attr_accessor :substitutions + # Provenance of the source. Ways to find the original source, or verify that + # some source was used for this build. + # Corresponds to the JSON property `sourceProvenance` + # @return [Google::Apis::CloudbuildV1::SourceProvenance] + attr_accessor :source_provenance # Time at which the request to create the build was received. # @OutputOnly @@ -860,12 +667,6 @@ module Google # @return [String] attr_accessor :create_time - # Provenance of the source. Ways to find the original source, or verify that - # some source was used for this build. - # Corresponds to the JSON property `sourceProvenance` - # @return [Google::Apis::CloudbuildV1::SourceProvenance] - attr_accessor :source_provenance - # A list of images to be pushed upon the successful completion of all build # steps. # The images will be pushed using the builder service account's credentials. @@ -907,31 +708,279 @@ module Google # @return [Google::Apis::CloudbuildV1::BuildOptions] attr_accessor :options + # 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 + + # Status of the build. + # @OutputOnly + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Customer-readable message about the current status. + # @OutputOnly + # Corresponds to the JSON property `statusDetail` + # @return [String] + attr_accessor :status_detail + + # Secrets to decrypt using Cloud KMS. + # Corresponds to the JSON property `secrets` + # @return [Array] + attr_accessor :secrets + + # Results describes the artifacts created by the build pipeline. + # Corresponds to the JSON property `results` + # @return [Google::Apis::CloudbuildV1::Results] + attr_accessor :results + + # 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 + + # Describes the operations to be performed on the workspace. + # Corresponds to the JSON property `steps` + # @return [Array] + attr_accessor :steps + + # The ID of the BuildTrigger that triggered this build, if it was + # triggered automatically. + # @OutputOnly + # Corresponds to the JSON property `buildTriggerId` + # @return [String] + attr_accessor :build_trigger_id + + # Unique identifier of the build. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Tags for annotation of a Build. These are not docker tags. + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @status_detail = args[:status_detail] if args.key?(:status_detail) - @status = args[:status] if args.key?(:status) - @timeout = args[:timeout] if args.key?(:timeout) - @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket) - @results = args[:results] if args.key?(:results) - @steps = args[:steps] if args.key?(:steps) - @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id) - @tags = args[:tags] if args.key?(:tags) - @id = args[:id] if args.key?(:id) - @start_time = args[:start_time] if args.key?(:start_time) @substitutions = args[:substitutions] if args.key?(:substitutions) - @create_time = args[:create_time] if args.key?(:create_time) + @start_time = args[:start_time] if args.key?(:start_time) @source_provenance = args[:source_provenance] if args.key?(:source_provenance) + @create_time = args[:create_time] if args.key?(:create_time) @images = args[:images] if args.key?(:images) @project_id = args[:project_id] if args.key?(:project_id) @finish_time = args[:finish_time] if args.key?(:finish_time) @log_url = args[:log_url] if args.key?(:log_url) @source = args[:source] if args.key?(:source) @options = args[:options] if args.key?(:options) + @timeout = args[:timeout] if args.key?(:timeout) + @status = args[:status] if args.key?(:status) + @status_detail = args[:status_detail] if args.key?(:status_detail) + @secrets = args[:secrets] if args.key?(:secrets) + @results = args[:results] if args.key?(:results) + @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket) + @steps = args[:steps] if args.key?(:steps) + @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id) + @id = args[:id] if args.key?(:id) + @tags = args[:tags] if args.key?(:tags) + 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 + + # 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 + + # 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 + + # 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 + + # RepoSource describes the location of the source in a Google Cloud Source + # Repository. + # Corresponds to the JSON property `repoSource` + # @return [Google::Apis::CloudbuildV1::RepoSource] + attr_accessor :repo_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) + @repo_source = args[:repo_source] if args.key?(:repo_source) + end + end + + # Optional arguments to enable specific features of builds. + class BuildOptions + include Google::Apis::Core::Hashable + + # Requested hash for SourceProvenance. + # Corresponds to the JSON property `sourceProvenanceHash` + # @return [Array] + attr_accessor :source_provenance_hash + + # SubstitutionOption to allow unmatch substitutions. + # Corresponds to the JSON property `substitutionOption` + # @return [String] + attr_accessor :substitution_option + + # Requested verifiability options. + # Corresponds to the JSON property `requestedVerifyOption` + # @return [String] + attr_accessor :requested_verify_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash) + @substitution_option = args[:substitution_option] if args.key?(:substitution_option) + @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option) + 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 generation for the object. If the generation is + # omitted, the latest generation will be used. + # Corresponds to the JSON property `generation` + # @return [Fixnum] + attr_accessor :generation + + # 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) + @generation = args[:generation] if args.key?(:generation) + @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 + + # List of build step digests, in order corresponding to build step indices. + # Corresponds to the JSON property `buildStepImages` + # @return [Array] + attr_accessor :build_step_images + + # 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) + @build_step_images = args[:build_step_images] if args.key?(:build_step_images) + @images = args[:images] if args.key?(:images) end end end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 872356021..305129955 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -22,48 +22,6 @@ module Google module Apis module CloudbuildV1 - class CancelBuildRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListBuildsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Source - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BuildOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StorageSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Results - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BuildOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,13 +40,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Operation + class ListBuildTriggersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListBuildTriggersResponse + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -100,7 +58,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BuildStep + class HashProp class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -112,7 +70,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class HashProp + class BuildStep class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -124,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Secret + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -149,63 +113,45 @@ module Google end class CancelBuildRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class BuildOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :source_provenance_hash, as: 'sourceProvenanceHash' - property :requested_verify_option, as: 'requestedVerifyOption' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class StorageSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :generation, :numeric_string => true, as: 'generation' - property :bucket, as: 'bucket' - property :object, as: 'object' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport 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 + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :build_step_images, as: 'buildStepImages' - end + include Google::Apis::Core::JsonObjectSupport end class BuildOperationMetadata @@ -219,12 +165,12 @@ module Google class SourceProvenance # @private class Representation < Google::Apis::Core::JsonRepresentation - property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation - property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation + property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation + end end @@ -234,18 +180,6 @@ module Google end end - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation - - hash :metadata, as: 'metadata' - end - end - class ListBuildTriggersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -254,6 +188,18 @@ module Google end end + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :response, as: 'response' + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation + + hash :metadata, as: 'metadata' + property :done, as: 'done' + end + end + class BuiltImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -262,30 +208,6 @@ module Google end end - class BuildStep - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :dir, as: 'dir' - collection :wait_for, as: 'waitFor' - collection :env, as: 'env' - collection :args, as: 'args' - property :name, as: 'name' - property :entrypoint, as: 'entrypoint' - end - end - - class RepoSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :tag_name, as: 'tagName' - property :commit_sha, as: 'commitSha' - property :project_id, as: 'projectId' - property :repo_name, as: 'repoName' - property :branch_name, as: 'branchName' - end - end - class HashProp # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -294,6 +216,31 @@ module Google end end + class RepoSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :commit_sha, as: 'commitSha' + property :tag_name, as: 'tagName' + property :branch_name, as: 'branchName' + property :repo_name, as: 'repoName' + property :project_id, as: 'projectId' + end + end + + class BuildStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dir, as: 'dir' + collection :env, as: 'env' + collection :wait_for, as: 'waitFor' + collection :args, as: 'args' + property :name, as: 'name' + property :entrypoint, as: 'entrypoint' + property :id, as: 'id' + collection :secret_env, as: 'secretEnv' + end + end + class FileHashes # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -302,12 +249,20 @@ module Google end end + class Secret + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :secret_env, as: 'secretEnv' + property :kms_key_name, as: 'kmsKeyName' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' property :message, as: 'message' collection :details, as: 'details' + property :code, as: 'code' end end @@ -336,22 +291,11 @@ module Google class Build # @private class Representation < Google::Apis::Core::JsonRepresentation - property :status_detail, as: 'statusDetail' - property :status, as: 'status' - property :timeout, as: 'timeout' - property :logs_bucket, as: 'logsBucket' - property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation - - collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation - - property :build_trigger_id, as: 'buildTriggerId' - collection :tags, as: 'tags' - property :id, as: 'id' - property :start_time, as: 'startTime' hash :substitutions, as: 'substitutions' - property :create_time, as: 'createTime' + property :start_time, as: 'startTime' property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation + property :create_time, as: 'createTime' collection :images, as: 'images' property :project_id, as: 'projectId' property :finish_time, as: 'finishTime' @@ -360,6 +304,80 @@ module Google property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation + property :timeout, as: 'timeout' + property :status, as: 'status' + property :status_detail, as: 'statusDetail' + collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation + + property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation + + property :logs_bucket, as: 'logsBucket' + collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation + + property :build_trigger_id, as: 'buildTriggerId' + property :id, as: 'id' + collection :tags, as: 'tags' + end + end + + class CancelBuildRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + 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 Source + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation + + property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation + + end + end + + class BuildOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :source_provenance_hash, as: 'sourceProvenanceHash' + property :substitution_option, as: 'substitutionOption' + property :requested_verify_option, as: 'requestedVerifyOption' + end + end + + class StorageSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :generation, :numeric_string => true, as: 'generation' + property :bucket, as: 'bucket' + property :object, as: 'object' + end + end + + class Results + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :build_step_images, as: 'buildStepImages' + collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation + end end end diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 519bf7f2d..51b83ef55 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -47,18 +47,17 @@ module Google @batch_path = 'batch' 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. + # 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] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -71,14 +70,16 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) + def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: 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? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -87,17 +88,17 @@ module Google # successfully or unsuccessfully. # @param [String] project_id # ID of the project. + # @param [String] filter + # The raw filter text to constrain the results. # @param [String] page_token # Token to provide to skip to a particular spot in the list. # @param [Fixnum] page_size # Number of results to return in the list. - # @param [String] filter - # The raw filter text to constrain the 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -110,66 +111,31 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: 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['filter'] = filter unless filter.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['filter'] = filter unless filter.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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 - - # Cancels a requested build in progress. + # 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 [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -182,246 +148,29 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_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 + def get_project_build(project_id, id, fields: nil, quota_user: 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? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Deletes an BuildTrigger by its project ID and trigger ID. - # This API is experimental. + # 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 that owns the trigger. - # @param [String] trigger_id - # ID of the BuildTrigger to delete. + # ID of the project. + # @param [Google::Apis::CloudbuildV1::Build] build_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 [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::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options) - command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation - command.response_class = Google::Apis::CloudbuildV1::Empty - command.params['projectId'] = project_id unless project_id.nil? - command.params['triggerId'] = trigger_id unless trigger_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 information about a BuildTrigger. - # This API is experimental. - # @param [String] project_id - # ID of the project that owns the trigger. - # @param [String] trigger_id - # ID of the BuildTrigger to get. - # @param [String] quota_user - # Available 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::BuildTrigger] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::BuildTrigger] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options) - command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation - command.response_class = Google::Apis::CloudbuildV1::BuildTrigger - command.params['projectId'] = project_id unless project_id.nil? - command.params['triggerId'] = trigger_id unless trigger_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 existing BuildTrigger. - # This API is experimental. - # @param [String] project_id - # ID of the project for which to list BuildTriggers. - # @param [String] quota_user - # Available 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::ListBuildTriggersResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options) - command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation - command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse - 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 - - # Updates an BuildTrigger by its project ID and trigger ID. - # This API is experimental. - # @param [String] project_id - # ID of the project that owns the trigger. - # @param [String] trigger_id - # ID of the BuildTrigger to update. - # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::BuildTrigger] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::BuildTrigger] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options) - command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation - command.request_object = build_trigger_object - command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation - command.response_class = Google::Apis::CloudbuildV1::BuildTrigger - command.params['projectId'] = project_id unless project_id.nil? - command.params['triggerId'] = trigger_id unless trigger_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 - - # Creates a new BuildTrigger. - # This API is experimental. - # @param [String] project_id - # ID of the project for which to configure automatic builds. - # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::BuildTrigger] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::BuildTrigger] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options) - command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation - command.request_object = build_trigger_object - command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation - command.response_class = Google::Apis::CloudbuildV1::BuildTrigger - 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 operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] quota_user - # Available 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, filter: nil, page_token: nil, page_size: 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['filter'] = filter unless filter.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.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 # @@ -434,13 +183,185 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_operation(name, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) + def create_project_build(project_id, build_object = nil, fields: nil, quota_user: 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['name'] = name unless name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.params['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new BuildTrigger. + # This API is experimental. + # @param [String] project_id + # ID of the project for which to configure automatic builds. + # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::BuildTrigger] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options) + command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation + command.request_object = build_trigger_object + command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation + command.response_class = Google::Apis::CloudbuildV1::BuildTrigger + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an BuildTrigger by its project ID and trigger ID. + # This API is experimental. + # @param [String] project_id + # ID of the project that owns the trigger. + # @param [String] trigger_id + # ID of the BuildTrigger to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::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_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options) + command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation + command.response_class = Google::Apis::CloudbuildV1::Empty + command.params['projectId'] = project_id unless project_id.nil? + command.params['triggerId'] = trigger_id unless trigger_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an BuildTrigger by its project ID and trigger ID. + # This API is experimental. + # @param [String] project_id + # ID of the project that owns the trigger. + # @param [String] trigger_id + # ID of the BuildTrigger to update. + # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::BuildTrigger] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options) + command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation + command.request_object = build_trigger_object + command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation + command.response_class = Google::Apis::CloudbuildV1::BuildTrigger + command.params['projectId'] = project_id unless project_id.nil? + command.params['triggerId'] = trigger_id unless trigger_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 existing BuildTrigger. + # This API is experimental. + # @param [String] project_id + # ID of the project for which to list BuildTriggers. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::CloudbuildV1::ListBuildTriggersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options) + command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation + command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a BuildTrigger. + # This API is experimental. + # @param [String] project_id + # ID of the project that owns the trigger. + # @param [String] trigger_id + # ID of the BuildTrigger to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::BuildTrigger] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options) + command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation + command.response_class = Google::Apis::CloudbuildV1::BuildTrigger + command.params['projectId'] = project_id unless project_id.nil? + command.params['triggerId'] = trigger_id unless trigger_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 @@ -457,11 +378,11 @@ module Google # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -474,15 +395,94 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation command.response_class = Google::Apis::CloudbuildV1::Empty command.params['name'] = name unless name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::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, fields: nil, quota_user: 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['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 allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] page_token + # The standard list page token. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] filter + # The standard list filter. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::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_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: 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['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index 1e4845070..654b5f030 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -26,7 +26,7 @@ module Google # @see http://cloud.google.com/debugger module ClouddebuggerV2 VERSION = 'V2' - REVISION = '20170518' + REVISION = '20170621' # Manage cloud debugger AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' diff --git a/generated/google/apis/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index ff04f7523..f39fc1804 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -22,6 +22,389 @@ module Google module Apis module ClouddebuggerV2 + # A CloudWorkspaceId is a unique identifier for a cloud workspace. + # A cloud workspace is a place associated with a repo where modified files + # can be stored before they are committed. + class CloudWorkspaceId + include Google::Apis::Core::Hashable + + # A unique identifier for a cloud repo. + # Corresponds to the JSON property `repoId` + # @return [Google::Apis::ClouddebuggerV2::RepoId] + attr_accessor :repo_id + + # The unique name of the workspace within the repo. This is the name + # chosen by the client in the Source API's CreateWorkspace method. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repo_id = args[:repo_id] if args.key?(:repo_id) + @name = args[:name] if args.key?(:name) + end + end + + # Response for listing breakpoints. + class ListBreakpointsResponse + include Google::Apis::Core::Hashable + + # List of breakpoints matching the request. + # The fields `id` and `location` are guaranteed to be set on each breakpoint. + # The fields: `stack_frames`, `evaluated_expressions` and `variable_table` + # are cleared on each breakpoint regardless of it's status. + # Corresponds to the JSON property `breakpoints` + # @return [Array] + attr_accessor :breakpoints + + # A wait token that can be used in the next call to `list` (REST) or + # `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. + # Corresponds to the JSON property `nextWaitToken` + # @return [String] + attr_accessor :next_wait_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoints = args[:breakpoints] if args.key?(:breakpoints) + @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) + end + end + + # Represents the breakpoint specification, status and results. + class Breakpoint + include Google::Apis::Core::Hashable + + # E-mail address of the user that created this breakpoint + # Corresponds to the JSON property `userEmail` + # @return [String] + attr_accessor :user_email + + # Action that the agent should perform when the code at the + # breakpoint location is hit. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Indicates the severity of the log. Only relevant when action is `LOG`. + # Corresponds to the JSON property `logLevel` + # @return [String] + attr_accessor :log_level + + # Breakpoint identifier, unique in the scope of the debuggee. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Represents a location in the source code. + # Corresponds to the JSON property `location` + # @return [Google::Apis::ClouddebuggerV2::SourceLocation] + attr_accessor :location + + # Time this breakpoint was finalized as seen by the server in seconds + # resolution. + # Corresponds to the JSON property `finalTime` + # @return [String] + attr_accessor :final_time + + # The `variable_table` exists to aid with computation, memory and network + # traffic optimization. It enables storing a variable once and reference + # it from multiple variables, including variables stored in the + # `variable_table` itself. + # For example, the same `this` object, which may appear at many levels of + # the stack, can have all of its data stored once in this table. The + # stack frame variables then would hold only a reference to it. + # The variable `var_table_index` field is an index into this repeated field. + # The stored objects are nameless and get their name from the referencing + # variable. The effective variable is a merge of the referencing variable + # and the referenced variable. + # Corresponds to the JSON property `variableTable` + # @return [Array] + attr_accessor :variable_table + + # A set of custom breakpoint properties, populated by the agent, to be + # displayed to the user. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Only relevant when action is `LOG`. Defines the message to log when + # the breakpoint hits. The message may include parameter placeholders `$0`, + # `$1`, etc. These placeholders are replaced with the evaluated value + # of the appropriate expression. Expressions not referenced in + # `log_message_format` are not logged. + # Example: `Message received, id = $0, count = $1` with + # `expressions` = `[ message.id, message.count ]`. + # Corresponds to the JSON property `logMessageFormat` + # @return [String] + attr_accessor :log_message_format + + # Time this breakpoint was created by the server in seconds resolution. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # List of read-only expressions to evaluate at the breakpoint location. + # The expressions are composed using expressions in the programming language + # at the source location. If the breakpoint action is `LOG`, the evaluated + # expressions are included in log statements. + # Corresponds to the JSON property `expressions` + # @return [Array] + attr_accessor :expressions + + # Values of evaluated expressions at breakpoint time. + # The evaluated expressions appear in exactly the same order they + # are listed in the `expressions` field. + # The `name` field holds the original expression text, the `value` or + # `members` field holds the result of the evaluated expression. + # If the expression cannot be evaluated, the `status` inside the `Variable` + # will indicate an error and contain the error text. + # Corresponds to the JSON property `evaluatedExpressions` + # @return [Array] + attr_accessor :evaluated_expressions + + # When true, indicates that this is a final result and the + # breakpoint state will not change from here on. + # Corresponds to the JSON property `isFinalState` + # @return [Boolean] + attr_accessor :is_final_state + alias_method :is_final_state?, :is_final_state + + # The stack at breakpoint time. + # Corresponds to the JSON property `stackFrames` + # @return [Array] + attr_accessor :stack_frames + + # Condition that triggers the breakpoint. + # The condition is a compound boolean expression composed using expressions + # in a programming language at the source location. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # Represents a contextual status message. + # The message can indicate an error or informational status, and refer to + # specific parts of the containing object. + # For example, the `Breakpoint.status` field can indicate an error referring + # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ClouddebuggerV2::StatusMessage] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_email = args[:user_email] if args.key?(:user_email) + @action = args[:action] if args.key?(:action) + @log_level = args[:log_level] if args.key?(:log_level) + @id = args[:id] if args.key?(:id) + @location = args[:location] if args.key?(:location) + @final_time = args[:final_time] if args.key?(:final_time) + @variable_table = args[:variable_table] if args.key?(:variable_table) + @labels = args[:labels] if args.key?(:labels) + @log_message_format = args[:log_message_format] if args.key?(:log_message_format) + @create_time = args[:create_time] if args.key?(:create_time) + @expressions = args[:expressions] if args.key?(:expressions) + @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions) + @is_final_state = args[:is_final_state] if args.key?(:is_final_state) + @stack_frames = args[:stack_frames] if args.key?(:stack_frames) + @condition = args[:condition] if args.key?(:condition) + @status = args[:status] if args.key?(:status) + end + end + + # Request to update an active breakpoint. + class UpdateActiveBreakpointRequest + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) + end + end + + # Response for setting a breakpoint. + class SetBreakpointResponse + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) + end + end + + # A SourceContext is a reference to a tree of files. A SourceContext together + # with a path point to a unique revision of a single file or directory. + class SourceContext + include Google::Apis::Core::Hashable + + # A SourceContext referring to a Gerrit project. + # Corresponds to the JSON property `gerrit` + # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext] + attr_accessor :gerrit + + # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. + # Corresponds to the JSON property `cloudWorkspace` + # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext] + attr_accessor :cloud_workspace + + # A CloudRepoSourceContext denotes a particular revision in a cloud + # repo (a repo hosted by the Google Cloud Platform). + # Corresponds to the JSON property `cloudRepo` + # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext] + attr_accessor :cloud_repo + + # A GitSourceContext denotes a particular revision in a third party Git + # repository (e.g. GitHub). + # Corresponds to the JSON property `git` + # @return [Google::Apis::ClouddebuggerV2::GitSourceContext] + attr_accessor :git + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gerrit = args[:gerrit] if args.key?(:gerrit) + @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) + @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) + @git = args[:git] if args.key?(:git) + end + end + + # A CloudRepoSourceContext denotes a particular revision in a cloud + # repo (a repo hosted by the Google Cloud Platform). + class CloudRepoSourceContext + include Google::Apis::Core::Hashable + + # A unique identifier for a cloud repo. + # Corresponds to the JSON property `repoId` + # @return [Google::Apis::ClouddebuggerV2::RepoId] + attr_accessor :repo_id + + # An alias to a repo revision. + # Corresponds to the JSON property `aliasContext` + # @return [Google::Apis::ClouddebuggerV2::AliasContext] + attr_accessor :alias_context + + # A revision ID. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + # The name of an alias (branch, tag, etc.). + # Corresponds to the JSON property `aliasName` + # @return [String] + attr_accessor :alias_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repo_id = args[:repo_id] if args.key?(:repo_id) + @alias_context = args[:alias_context] if args.key?(:alias_context) + @revision_id = args[:revision_id] if args.key?(:revision_id) + @alias_name = args[:alias_name] if args.key?(:alias_name) + end + end + + # Response for registering a debuggee. + class RegisterDebuggeeResponse + include Google::Apis::Core::Hashable + + # Represents the application to debug. The application may include one or more + # replicated processes executing the same code. Each of these processes is + # attached with a debugger agent, carrying out the debugging commands. + # The agents attached to the same debuggee are identified by using exactly the + # same field values when registering. + # Corresponds to the JSON property `debuggee` + # @return [Google::Apis::ClouddebuggerV2::Debuggee] + attr_accessor :debuggee + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debuggee = args[:debuggee] if args.key?(:debuggee) + end + end + + # Request to register a debuggee. + class RegisterDebuggeeRequest + include Google::Apis::Core::Hashable + + # Represents the application to debug. The application may include one or more + # replicated processes executing the same code. Each of these processes is + # attached with a debugger agent, carrying out the debugging commands. + # The agents attached to the same debuggee are identified by using exactly the + # same field values when registering. + # Corresponds to the JSON property `debuggee` + # @return [Google::Apis::ClouddebuggerV2::Debuggee] + attr_accessor :debuggee + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debuggee = args[:debuggee] if args.key?(:debuggee) + end + end + + # Response for getting breakpoint information. + class GetBreakpointResponse + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) + end + end + # Represents a contextual status message. # The message can indicate an error or informational status, and refer to # specific parts of the containing object. @@ -30,17 +413,17 @@ module Google class StatusMessage include Google::Apis::Core::Hashable + # Represents a message with parameters. + # Corresponds to the JSON property `description` + # @return [Google::Apis::ClouddebuggerV2::FormatMessage] + attr_accessor :description + # Distinguishes errors from informational messages. # Corresponds to the JSON property `isError` # @return [Boolean] attr_accessor :is_error alias_method :is_error?, :is_error - # Represents a message with parameters. - # Corresponds to the JSON property `description` - # @return [Google::Apis::ClouddebuggerV2::FormatMessage] - attr_accessor :description - # Reference to which the message applies. # Corresponds to the JSON property `refersTo` # @return [String] @@ -52,8 +435,8 @@ module Google # Update properties of this object def update!(**args) - @is_error = args[:is_error] if args.key?(:is_error) @description = args[:description] if args.key?(:description) + @is_error = args[:is_error] if args.key?(:is_error) @refers_to = args[:refers_to] if args.key?(:refers_to) end end @@ -170,18 +553,6 @@ module Google class Variable include Google::Apis::Core::Hashable - # Reference to a variable in the shared variable table. More than - # one variable can reference the same variable in the table. The - # `var_table_index` field is an index into `variable_table` in Breakpoint. - # Corresponds to the JSON property `varTableIndex` - # @return [Fixnum] - attr_accessor :var_table_index - - # Simple value of the variable. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - # Members contained or pointed to by the variable. # Corresponds to the JSON property `members` # @return [Array] @@ -209,18 +580,30 @@ module Google # @return [String] attr_accessor :type + # Reference to a variable in the shared variable table. More than + # one variable can reference the same variable in the table. The + # `var_table_index` field is an index into `variable_table` in Breakpoint. + # Corresponds to the JSON property `varTableIndex` + # @return [Fixnum] + attr_accessor :var_table_index + + # Simple value of the variable. + # 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) - @var_table_index = args[:var_table_index] if args.key?(:var_table_index) - @value = args[:value] if args.key?(:value) @members = args[:members] if args.key?(:members) @status = args[:status] if args.key?(:status) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) + @var_table_index = args[:var_table_index] if args.key?(:var_table_index) + @value = args[:value] if args.key?(:value) end end @@ -267,25 +650,25 @@ module Google class RepoId include Google::Apis::Core::Hashable + # A server-assigned, globally unique identifier. + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + # Selects a repo using a Google Cloud Platform project ID # (e.g. winged-cargo-31) and a repo name within that project. # Corresponds to the JSON property `projectRepoId` # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId] attr_accessor :project_repo_id - # A server-assigned, globally unique identifier. - # Corresponds to the JSON property `uid` - # @return [String] - attr_accessor :uid - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id) @uid = args[:uid] if args.key?(:uid) + @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id) end end @@ -418,24 +801,24 @@ module Google class SourceLocation include Google::Apis::Core::Hashable - # Line inside the file. The first line in the file has the value `1`. - # Corresponds to the JSON property `line` - # @return [Fixnum] - attr_accessor :line - # Path to the source file within the source context of the target binary. # Corresponds to the JSON property `path` # @return [String] attr_accessor :path + # Line inside the file. The first line in the file has the value `1`. + # Corresponds to the JSON property `line` + # @return [Fixnum] + attr_accessor :line + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @line = args[:line] if args.key?(:line) @path = args[:path] if args.key?(:path) + @line = args[:line] if args.key?(:line) end end @@ -447,6 +830,29 @@ module Google class Debuggee include Google::Apis::Core::Hashable + # Human readable description of the debuggee. + # Including a human-readable project name, environment name and version + # information is recommended. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Debuggee uniquifier within the project. + # Any string that identifies the application within the project can be used. + # Including environment and version or build IDs is recommended. + # Corresponds to the JSON property `uniquifier` + # @return [String] + attr_accessor :uniquifier + + # References to the locations and revisions of the source code used in the + # deployed application. + # NOTE: This field is deprecated. Consumers should use + # `ext_source_contexts` if it is not empty. Debug agents should populate + # both this field and `ext_source_contexts`. + # Corresponds to the JSON property `sourceContexts` + # @return [Array] + attr_accessor :source_contexts + # References to the locations and revisions of the source code used in the # deployed application. # Contexts describing a remote repo related to the source code @@ -484,10 +890,12 @@ module Google # @return [String] attr_accessor :project - # Unique identifier for the debuggee generated by the controller service. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id + # If set to `true`, indicates that the agent should disable itself and + # detach from the debuggee. + # Corresponds to the JSON property `isDisabled` + # @return [Boolean] + attr_accessor :is_disabled + alias_method :is_disabled?, :is_disabled # Version ID of the agent release. The version ID is structured as # following: `domain/type/vmajor.minor` (for example @@ -496,35 +904,10 @@ module Google # @return [String] attr_accessor :agent_version - # If set to `true`, indicates that the agent should disable itself and - # detach from the debuggee. - # Corresponds to the JSON property `isDisabled` - # @return [Boolean] - attr_accessor :is_disabled - alias_method :is_disabled?, :is_disabled - - # Human readable description of the debuggee. - # Including a human-readable project name, environment name and version - # information is recommended. - # Corresponds to the JSON property `description` + # Unique identifier for the debuggee generated by the controller service. + # Corresponds to the JSON property `id` # @return [String] - attr_accessor :description - - # Debuggee uniquifier within the project. - # Any string that identifies the application within the project can be used. - # Including environment and version or build IDs is recommended. - # Corresponds to the JSON property `uniquifier` - # @return [String] - attr_accessor :uniquifier - - # References to the locations and revisions of the source code used in the - # deployed application. - # NOTE: This field is deprecated. Consumers should use - # `ext_source_contexts` if it is not empty. Debug agents should populate - # both this field and `ext_source_contexts`. - # Corresponds to the JSON property `sourceContexts` - # @return [Array] - attr_accessor :source_contexts + attr_accessor :id def initialize(**args) update!(**args) @@ -532,17 +915,17 @@ module Google # Update properties of this object def update!(**args) + @description = args[:description] if args.key?(:description) + @uniquifier = args[:uniquifier] if args.key?(:uniquifier) + @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) @is_inactive = args[:is_inactive] if args.key?(:is_inactive) @status = args[:status] if args.key?(:status) @project = args[:project] if args.key?(:project) - @id = args[:id] if args.key?(:id) - @agent_version = args[:agent_version] if args.key?(:agent_version) @is_disabled = args[:is_disabled] if args.key?(:is_disabled) - @description = args[:description] if args.key?(:description) - @uniquifier = args[:uniquifier] if args.key?(:uniquifier) - @source_contexts = args[:source_contexts] if args.key?(:source_contexts) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @id = args[:id] if args.key?(:id) end end @@ -551,24 +934,24 @@ module Google class ProjectRepoId include Google::Apis::Core::Hashable - # The ID of the project. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - # The name of the repo. Leave empty for the default repo. # Corresponds to the JSON property `repoName` # @return [String] attr_accessor :repo_name + # The ID of the project. + # 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) - @project_id = args[:project_id] if args.key?(:project_id) @repo_name = args[:repo_name] if args.key?(:repo_name) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -576,6 +959,13 @@ module Google class ListActiveBreakpointsResponse include Google::Apis::Core::Hashable + # The `wait_expired` field is set to true by the server when the + # request times out and the field `success_on_timeout` is set to true. + # Corresponds to the JSON property `waitExpired` + # @return [Boolean] + attr_accessor :wait_expired + alias_method :wait_expired?, :wait_expired + # A wait token that can be used in the next method call to block until # the list of breakpoints changes. # Corresponds to the JSON property `nextWaitToken` @@ -588,22 +978,15 @@ module Google # @return [Array] attr_accessor :breakpoints - # The `wait_expired` field is set to true by the server when the - # request times out and the field `success_on_timeout` is set to true. - # Corresponds to the JSON property `waitExpired` - # @return [Boolean] - attr_accessor :wait_expired - alias_method :wait_expired?, :wait_expired - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @wait_expired = args[:wait_expired] if args.key?(:wait_expired) @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) @breakpoints = args[:breakpoints] if args.key?(:breakpoints) - @wait_expired = args[:wait_expired] if args.key?(:wait_expired) end end @@ -653,6 +1036,26 @@ module Google class GerritSourceContext include Google::Apis::Core::Hashable + # A revision (commit) ID. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + # The URI of a running Gerrit instance. + # Corresponds to the JSON property `hostUri` + # @return [String] + attr_accessor :host_uri + + # The name of an alias (branch, tag, etc.). + # Corresponds to the JSON property `aliasName` + # @return [String] + attr_accessor :alias_name + + # An alias to a repo revision. + # Corresponds to the JSON property `aliasContext` + # @return [Google::Apis::ClouddebuggerV2::AliasContext] + attr_accessor :alias_context + # The full project name within the host. Projects may be nested, so # "project/subproject" is a valid project name. # The "repo name" is hostURI/project. @@ -660,420 +1063,17 @@ module Google # @return [String] attr_accessor :gerrit_project - # An alias to a repo revision. - # Corresponds to the JSON property `aliasContext` - # @return [Google::Apis::ClouddebuggerV2::AliasContext] - attr_accessor :alias_context - - # The URI of a running Gerrit instance. - # Corresponds to the JSON property `hostUri` - # @return [String] - attr_accessor :host_uri - - # A revision (commit) ID. - # Corresponds to the JSON property `revisionId` - # @return [String] - attr_accessor :revision_id - - # The name of an alias (branch, tag, etc.). - # Corresponds to the JSON property `aliasName` - # @return [String] - attr_accessor :alias_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project) - @alias_context = args[:alias_context] if args.key?(:alias_context) + @revision_id = args[:revision_id] if args.key?(:revision_id) @host_uri = args[:host_uri] if args.key?(:host_uri) - @revision_id = args[:revision_id] if args.key?(:revision_id) @alias_name = args[:alias_name] if args.key?(:alias_name) - end - end - - # A CloudWorkspaceId is a unique identifier for a cloud workspace. - # A cloud workspace is a place associated with a repo where modified files - # can be stored before they are committed. - class CloudWorkspaceId - include Google::Apis::Core::Hashable - - # The unique name of the workspace within the repo. This is the name - # chosen by the client in the Source API's CreateWorkspace method. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A unique identifier for a cloud repo. - # Corresponds to the JSON property `repoId` - # @return [Google::Apis::ClouddebuggerV2::RepoId] - attr_accessor :repo_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @repo_id = args[:repo_id] if args.key?(:repo_id) - end - end - - # Response for listing breakpoints. - class ListBreakpointsResponse - include Google::Apis::Core::Hashable - - # A wait token that can be used in the next call to `list` (REST) or - # `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. - # Corresponds to the JSON property `nextWaitToken` - # @return [String] - attr_accessor :next_wait_token - - # List of breakpoints matching the request. - # The fields `id` and `location` are guaranteed to be set on each breakpoint. - # The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - # are cleared on each breakpoint regardless of it's status. - # Corresponds to the JSON property `breakpoints` - # @return [Array] - attr_accessor :breakpoints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) - @breakpoints = args[:breakpoints] if args.key?(:breakpoints) - end - end - - # Represents the breakpoint specification, status and results. - class Breakpoint - include Google::Apis::Core::Hashable - - # E-mail address of the user that created this breakpoint - # Corresponds to the JSON property `userEmail` - # @return [String] - attr_accessor :user_email - - # Action that the agent should perform when the code at the - # breakpoint location is hit. - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Indicates the severity of the log. Only relevant when action is `LOG`. - # Corresponds to the JSON property `logLevel` - # @return [String] - attr_accessor :log_level - - # Breakpoint identifier, unique in the scope of the debuggee. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Represents a location in the source code. - # Corresponds to the JSON property `location` - # @return [Google::Apis::ClouddebuggerV2::SourceLocation] - attr_accessor :location - - # Time this breakpoint was finalized as seen by the server in seconds - # resolution. - # Corresponds to the JSON property `finalTime` - # @return [String] - attr_accessor :final_time - - # The `variable_table` exists to aid with computation, memory and network - # traffic optimization. It enables storing a variable once and reference - # it from multiple variables, including variables stored in the - # `variable_table` itself. - # For example, the same `this` object, which may appear at many levels of - # the stack, can have all of its data stored once in this table. The - # stack frame variables then would hold only a reference to it. - # The variable `var_table_index` field is an index into this repeated field. - # The stored objects are nameless and get their name from the referencing - # variable. The effective variable is a merge of the referencing variable - # and the referenced variable. - # Corresponds to the JSON property `variableTable` - # @return [Array] - attr_accessor :variable_table - - # Time this breakpoint was created by the server in seconds resolution. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Only relevant when action is `LOG`. Defines the message to log when - # the breakpoint hits. The message may include parameter placeholders `$0`, - # `$1`, etc. These placeholders are replaced with the evaluated value - # of the appropriate expression. Expressions not referenced in - # `log_message_format` are not logged. - # Example: `Message received, id = $0, count = $1` with - # `expressions` = `[ message.id, message.count ]`. - # Corresponds to the JSON property `logMessageFormat` - # @return [String] - attr_accessor :log_message_format - - # A set of custom breakpoint properties, populated by the agent, to be - # displayed to the user. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # List of read-only expressions to evaluate at the breakpoint location. - # The expressions are composed using expressions in the programming language - # at the source location. If the breakpoint action is `LOG`, the evaluated - # expressions are included in log statements. - # Corresponds to the JSON property `expressions` - # @return [Array] - attr_accessor :expressions - - # Values of evaluated expressions at breakpoint time. - # The evaluated expressions appear in exactly the same order they - # are listed in the `expressions` field. - # The `name` field holds the original expression text, the `value` or - # `members` field holds the result of the evaluated expression. - # If the expression cannot be evaluated, the `status` inside the `Variable` - # will indicate an error and contain the error text. - # Corresponds to the JSON property `evaluatedExpressions` - # @return [Array] - attr_accessor :evaluated_expressions - - # When true, indicates that this is a final result and the - # breakpoint state will not change from here on. - # Corresponds to the JSON property `isFinalState` - # @return [Boolean] - attr_accessor :is_final_state - alias_method :is_final_state?, :is_final_state - - # The stack at breakpoint time. - # Corresponds to the JSON property `stackFrames` - # @return [Array] - attr_accessor :stack_frames - - # Condition that triggers the breakpoint. - # The condition is a compound boolean expression composed using expressions - # in a programming language at the source location. - # Corresponds to the JSON property `condition` - # @return [String] - attr_accessor :condition - - # Represents a contextual status message. - # The message can indicate an error or informational status, and refer to - # specific parts of the containing object. - # For example, the `Breakpoint.status` field can indicate an error referring - # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. - # Corresponds to the JSON property `status` - # @return [Google::Apis::ClouddebuggerV2::StatusMessage] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @user_email = args[:user_email] if args.key?(:user_email) - @action = args[:action] if args.key?(:action) - @log_level = args[:log_level] if args.key?(:log_level) - @id = args[:id] if args.key?(:id) - @location = args[:location] if args.key?(:location) - @final_time = args[:final_time] if args.key?(:final_time) - @variable_table = args[:variable_table] if args.key?(:variable_table) - @create_time = args[:create_time] if args.key?(:create_time) - @log_message_format = args[:log_message_format] if args.key?(:log_message_format) - @labels = args[:labels] if args.key?(:labels) - @expressions = args[:expressions] if args.key?(:expressions) - @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions) - @is_final_state = args[:is_final_state] if args.key?(:is_final_state) - @stack_frames = args[:stack_frames] if args.key?(:stack_frames) - @condition = args[:condition] if args.key?(:condition) - @status = args[:status] if args.key?(:status) - end - end - - # Request to update an active breakpoint. - class UpdateActiveBreakpointRequest - include Google::Apis::Core::Hashable - - # Represents the breakpoint specification, status and results. - # Corresponds to the JSON property `breakpoint` - # @return [Google::Apis::ClouddebuggerV2::Breakpoint] - attr_accessor :breakpoint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @breakpoint = args[:breakpoint] if args.key?(:breakpoint) - end - end - - # Response for setting a breakpoint. - class SetBreakpointResponse - include Google::Apis::Core::Hashable - - # Represents the breakpoint specification, status and results. - # Corresponds to the JSON property `breakpoint` - # @return [Google::Apis::ClouddebuggerV2::Breakpoint] - attr_accessor :breakpoint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @breakpoint = args[:breakpoint] if args.key?(:breakpoint) - end - end - - # A SourceContext is a reference to a tree of files. A SourceContext together - # with a path point to a unique revision of a single file or directory. - class SourceContext - include Google::Apis::Core::Hashable - - # A SourceContext referring to a Gerrit project. - # Corresponds to the JSON property `gerrit` - # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext] - attr_accessor :gerrit - - # A CloudRepoSourceContext denotes a particular revision in a cloud - # repo (a repo hosted by the Google Cloud Platform). - # Corresponds to the JSON property `cloudRepo` - # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext] - attr_accessor :cloud_repo - - # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. - # Corresponds to the JSON property `cloudWorkspace` - # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext] - attr_accessor :cloud_workspace - - # A GitSourceContext denotes a particular revision in a third party Git - # repository (e.g. GitHub). - # Corresponds to the JSON property `git` - # @return [Google::Apis::ClouddebuggerV2::GitSourceContext] - attr_accessor :git - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @gerrit = args[:gerrit] if args.key?(:gerrit) - @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) - @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) - @git = args[:git] if args.key?(:git) - end - end - - # A CloudRepoSourceContext denotes a particular revision in a cloud - # repo (a repo hosted by the Google Cloud Platform). - class CloudRepoSourceContext - include Google::Apis::Core::Hashable - - # A revision ID. - # Corresponds to the JSON property `revisionId` - # @return [String] - attr_accessor :revision_id - - # The name of an alias (branch, tag, etc.). - # Corresponds to the JSON property `aliasName` - # @return [String] - attr_accessor :alias_name - - # A unique identifier for a cloud repo. - # Corresponds to the JSON property `repoId` - # @return [Google::Apis::ClouddebuggerV2::RepoId] - attr_accessor :repo_id - - # An alias to a repo revision. - # Corresponds to the JSON property `aliasContext` - # @return [Google::Apis::ClouddebuggerV2::AliasContext] - attr_accessor :alias_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @revision_id = args[:revision_id] if args.key?(:revision_id) - @alias_name = args[:alias_name] if args.key?(:alias_name) - @repo_id = args[:repo_id] if args.key?(:repo_id) @alias_context = args[:alias_context] if args.key?(:alias_context) - end - end - - # Response for registering a debuggee. - class RegisterDebuggeeResponse - include Google::Apis::Core::Hashable - - # Represents the application to debug. The application may include one or more - # replicated processes executing the same code. Each of these processes is - # attached with a debugger agent, carrying out the debugging commands. - # The agents attached to the same debuggee are identified by using exactly the - # same field values when registering. - # Corresponds to the JSON property `debuggee` - # @return [Google::Apis::ClouddebuggerV2::Debuggee] - attr_accessor :debuggee - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @debuggee = args[:debuggee] if args.key?(:debuggee) - end - end - - # Request to register a debuggee. - class RegisterDebuggeeRequest - include Google::Apis::Core::Hashable - - # Represents the application to debug. The application may include one or more - # replicated processes executing the same code. Each of these processes is - # attached with a debugger agent, carrying out the debugging commands. - # The agents attached to the same debuggee are identified by using exactly the - # same field values when registering. - # Corresponds to the JSON property `debuggee` - # @return [Google::Apis::ClouddebuggerV2::Debuggee] - attr_accessor :debuggee - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @debuggee = args[:debuggee] if args.key?(:debuggee) - end - end - - # Response for getting breakpoint information. - class GetBreakpointResponse - include Google::Apis::Core::Hashable - - # Represents the breakpoint specification, status and results. - # Corresponds to the JSON property `breakpoint` - # @return [Google::Apis::ClouddebuggerV2::Breakpoint] - attr_accessor :breakpoint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @breakpoint = args[:breakpoint] if args.key?(:breakpoint) + @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project) end end end diff --git a/generated/google/apis/clouddebugger_v2/representations.rb b/generated/google/apis/clouddebugger_v2/representations.rb index 2f2a7d2eb..65da8cbac 100644 --- a/generated/google/apis/clouddebugger_v2/representations.rb +++ b/generated/google/apis/clouddebugger_v2/representations.rb @@ -22,6 +22,66 @@ module Google module Apis module ClouddebuggerV2 + class CloudWorkspaceId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListBreakpointsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Breakpoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateActiveBreakpointRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetBreakpointResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudRepoSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterDebuggeeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegisterDebuggeeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetBreakpointResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StatusMessage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -125,71 +185,122 @@ module Google end class CloudWorkspaceId - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation - include Google::Apis::Core::JsonObjectSupport + property :name, as: 'name' + end end class ListBreakpointsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - include Google::Apis::Core::JsonObjectSupport + property :next_wait_token, as: 'nextWaitToken' + end end class Breakpoint - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :user_email, as: 'userEmail' + property :action, as: 'action' + property :log_level, as: 'logLevel' + property :id, as: 'id' + property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation - include Google::Apis::Core::JsonObjectSupport + property :final_time, as: 'finalTime' + collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + hash :labels, as: 'labels' + property :log_message_format, as: 'logMessageFormat' + property :create_time, as: 'createTime' + collection :expressions, as: 'expressions' + collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + property :is_final_state, as: 'isFinalState' + collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation + + property :condition, as: 'condition' + property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation + + end end class UpdateActiveBreakpointRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - include Google::Apis::Core::JsonObjectSupport + end end class SetBreakpointResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - include Google::Apis::Core::JsonObjectSupport + end end class SourceContext - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation - include Google::Apis::Core::JsonObjectSupport + property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation + + property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation + + property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation + + end end class CloudRepoSourceContext - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation - include Google::Apis::Core::JsonObjectSupport + property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation + + property :revision_id, as: 'revisionId' + property :alias_name, as: 'aliasName' + end end class RegisterDebuggeeResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation - include Google::Apis::Core::JsonObjectSupport + end end class RegisterDebuggeeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation - include Google::Apis::Core::JsonObjectSupport + end end class GetBreakpointResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - include Google::Apis::Core::JsonObjectSupport + end end class StatusMessage # @private class Representation < Google::Apis::Core::JsonRepresentation - property :is_error, as: 'isError' property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation + property :is_error, as: 'isError' property :refers_to, as: 'refersTo' end end @@ -205,14 +316,14 @@ module Google class Variable # @private class Representation < Google::Apis::Core::JsonRepresentation - property :var_table_index, as: 'varTableIndex' - property :value, as: 'value' collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation property :name, as: 'name' property :type, as: 'type' + property :var_table_index, as: 'varTableIndex' + property :value, as: 'value' end end @@ -232,9 +343,9 @@ module Google class RepoId # @private class Representation < Google::Apis::Core::JsonRepresentation + property :uid, as: 'uid' property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation - property :uid, as: 'uid' end end @@ -280,14 +391,18 @@ module Google class SourceLocation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :line, as: 'line' property :path, as: 'path' + property :line, as: 'line' end end class Debuggee # @private class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :uniquifier, as: 'uniquifier' + collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation + collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation hash :labels, as: 'labels' @@ -295,31 +410,27 @@ module Google property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation property :project, as: 'project' - property :id, as: 'id' - property :agent_version, as: 'agentVersion' property :is_disabled, as: 'isDisabled' - property :description, as: 'description' - property :uniquifier, as: 'uniquifier' - collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation - + property :agent_version, as: 'agentVersion' + property :id, as: 'id' end end class ProjectRepoId # @private class Representation < Google::Apis::Core::JsonRepresentation - property :project_id, as: 'projectId' property :repo_name, as: 'repoName' + property :project_id, as: 'projectId' end end class ListActiveBreakpointsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :wait_expired, as: 'waitExpired' property :next_wait_token, as: 'nextWaitToken' collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - property :wait_expired, as: 'waitExpired' end end @@ -341,123 +452,12 @@ module Google class GerritSourceContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :gerrit_project, as: 'gerritProject' - property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation - + property :revision_id, as: 'revisionId' property :host_uri, as: 'hostUri' - property :revision_id, as: 'revisionId' property :alias_name, as: 'aliasName' - end - end - - class CloudWorkspaceId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation - - end - end - - class ListBreakpointsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_wait_token, as: 'nextWaitToken' - collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - - end - end - - class Breakpoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :user_email, as: 'userEmail' - property :action, as: 'action' - property :log_level, as: 'logLevel' - property :id, as: 'id' - property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation - - property :final_time, as: 'finalTime' - collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation - - property :create_time, as: 'createTime' - property :log_message_format, as: 'logMessageFormat' - hash :labels, as: 'labels' - collection :expressions, as: 'expressions' - collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation - - property :is_final_state, as: 'isFinalState' - collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation - - property :condition, as: 'condition' - property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation - - end - end - - class UpdateActiveBreakpointRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - - end - end - - class SetBreakpointResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - - end - end - - class SourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation - - property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation - - property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation - - property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation - - end - end - - class CloudRepoSourceContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :revision_id, as: 'revisionId' - property :alias_name, as: 'aliasName' - property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation - property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation - end - end - - class RegisterDebuggeeResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation - - end - end - - class RegisterDebuggeeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation - - end - end - - class GetBreakpointResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation - + property :gerrit_project, as: 'gerritProject' end end end diff --git a/generated/google/apis/clouddebugger_v2/service.rb b/generated/google/apis/clouddebugger_v2/service.rb index 208e912de..07143484f 100644 --- a/generated/google/apis/clouddebugger_v2/service.rb +++ b/generated/google/apis/clouddebugger_v2/service.rb @@ -57,11 +57,11 @@ module Google # result includes only debuggees that are active. # @param [String] project # Project number of a Google Cloud project whose debuggees to list. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -74,141 +74,21 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/debugger/debuggees', options) command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse command.query['clientVersion'] = client_version unless client_version.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil? command.query['project'] = project unless project.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Sets the breakpoint to the debuggee. - # @param [String] debuggee_id - # ID of the debuggee where the breakpoint is to be set. - # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object - # @param [String] client_version - # The client version making the call. - # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). - # @param [String] quota_user - # Available 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::ClouddebuggerV2::SetBreakpointResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options) - command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation - command.request_object = breakpoint_object - command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation - command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse - command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? - command.query['clientVersion'] = client_version unless client_version.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes the breakpoint from the debuggee. - # @param [String] debuggee_id - # ID of the debuggee whose breakpoint to delete. - # @param [String] breakpoint_id - # ID of the breakpoint to delete. - # @param [String] client_version - # The client version making the call. - # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). - # @param [String] quota_user - # Available 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::ClouddebuggerV2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouddebuggerV2::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) - command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation - command.response_class = Google::Apis::ClouddebuggerV2::Empty - command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? - command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? - command.query['clientVersion'] = client_version unless client_version.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 breakpoint information. - # @param [String] debuggee_id - # ID of the debuggee whose breakpoint to get. - # @param [String] breakpoint_id - # ID of the breakpoint to get. - # @param [String] client_version - # The client version making the call. - # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). - # @param [String] quota_user - # Available 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::ClouddebuggerV2::GetBreakpointResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) - command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation - command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse - command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? - command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? - command.query['clientVersion'] = client_version unless client_version.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 all breakpoints for the debuggee. # @param [String] debuggee_id # ID of the debuggee whose breakpoints to list. - # @param [Boolean] include_all_users - # When set to `true`, the response includes the list of breakpoints set by - # any user. Otherwise, it includes only breakpoints set by the caller. - # @param [Boolean] include_inactive - # When set to `true`, the response includes active and inactive - # breakpoints. Otherwise, it includes only active breakpoints. - # @param [Boolean] strip_results - # This field is deprecated. The following fields are always stripped out of - # the result: `stack_frames`, `evaluated_expressions` and `variable_table`. # @param [String] wait_token # A wait token that, if specified, blocks the call until the breakpoints # list has changed, or a server selected timeout has expired. The value @@ -220,11 +100,20 @@ module Google # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # @param [String] action_value # Only breakpoints with the specified action will pass the filter. + # @param [Boolean] include_inactive + # When set to `true`, the response includes active and inactive + # breakpoints. Otherwise, it includes only active breakpoints. + # @param [Boolean] include_all_users + # When set to `true`, the response includes the list of breakpoints set by + # any user. Otherwise, it includes only breakpoints set by the caller. + # @param [Boolean] strip_results + # This field is deprecated. The following fields are always stripped out of + # the result: `stack_frames`, `evaluated_expressions` and `variable_table`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -237,19 +126,130 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, strip_results: nil, wait_token: nil, client_version: nil, action_value: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_debugger_debuggee_breakpoints(debuggee_id, wait_token: nil, client_version: nil, action_value: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options) command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? - command.query['includeAllUsers'] = include_all_users unless include_all_users.nil? - command.query['includeInactive'] = include_inactive unless include_inactive.nil? - command.query['stripResults'] = strip_results unless strip_results.nil? command.query['waitToken'] = wait_token unless wait_token.nil? command.query['clientVersion'] = client_version unless client_version.nil? command.query['action.value'] = action_value unless action_value.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['includeInactive'] = include_inactive unless include_inactive.nil? + command.query['includeAllUsers'] = include_all_users unless include_all_users.nil? + command.query['stripResults'] = strip_results unless strip_results.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets breakpoint information. + # @param [String] debuggee_id + # ID of the debuggee whose breakpoint to get. + # @param [String] breakpoint_id + # ID of the breakpoint to get. + # @param [String] client_version + # The client version making the call. + # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) + command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the breakpoint from the debuggee. + # @param [String] debuggee_id + # ID of the debuggee whose breakpoint to delete. + # @param [String] breakpoint_id + # ID of the breakpoint to delete. + # @param [String] client_version + # The client version making the call. + # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) + command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation + command.response_class = Google::Apis::ClouddebuggerV2::Empty + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the breakpoint to the debuggee. + # @param [String] debuggee_id + # ID of the debuggee where the breakpoint is to be set. + # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object + # @param [String] client_version + # The client version making the call. + # Following: `domain/type/version` (e.g., `google.com/intellij/v1`). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options) + command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation + command.request_object = breakpoint_object + command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -262,11 +262,11 @@ module Google # data loss. If the debuggee is disabled by the server, the response will # have `is_disabled` set to `true`. # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -279,57 +279,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/controller/debuggees/register', options) command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation command.request_object = register_debuggee_request_object command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates the breakpoint state or mutable fields. - # The entire Breakpoint message must be sent back to the controller - # service. - # Updates to active breakpoint fields are only allowed if the new value - # does not change the breakpoint specification. Updates to the `location`, - # `condition` and `expression` fields should not alter the breakpoint - # semantics. These may only make changes such as canonicalizing a value - # or snapping the location to the correct line of code. - # @param [String] debuggee_id - # Identifies the debuggee being debugged. - # @param [String] id - # Breakpoint identifier, unique in the scope of the debuggee. - # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object - # @param [String] quota_user - # Available 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::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options) - command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation - command.request_object = update_active_breakpoint_request_object - command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation - command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse - command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? - command.params['id'] = id unless id.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -356,11 +313,11 @@ module Google # A wait token that, if specified, blocks the method call until the list # of active breakpoints has changed, or a server selected timeout has # expired. The value should be set from the last returned response. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -373,15 +330,58 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options) command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil? command.query['waitToken'] = wait_token unless wait_token.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the breakpoint state or mutable fields. + # The entire Breakpoint message must be sent back to the controller + # service. + # Updates to active breakpoint fields are only allowed if the new value + # does not change the breakpoint specification. Updates to the `location`, + # `condition` and `expression` fields should not alter the breakpoint + # semantics. These may only make changes such as canonicalizing a value + # or snapping the location to the correct line of code. + # @param [String] debuggee_id + # Identifies the debuggee being debugged. + # @param [String] id + # Breakpoint identifier, unique in the scope of the debuggee. + # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options) + command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation + command.request_object = update_active_breakpoint_request_object + command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/clouderrorreporting_v1beta1.rb b/generated/google/apis/clouderrorreporting_v1beta1.rb index d058370be..c0de92bef 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/error-reporting/ module ClouderrorreportingV1beta1 VERSION = 'V1beta1' - REVISION = '20170602' + REVISION = '20170618' # 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/clouderrorreporting_v1beta1/classes.rb b/generated/google/apis/clouderrorreporting_v1beta1/classes.rb index 0fdbce1de..3279a0a75 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/classes.rb @@ -26,6 +26,13 @@ module Google class ListGroupStatsResponse include Google::Apis::Core::Hashable + # If non-empty, more results are available. + # Pass this token, along with the same query parameters as the first + # request, to view the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + # The timestamp specifies the start time to which the request was restricted. # The start time is set based on the requested time range. It may be adjusted # to a later time if a project has exceeded the storage quota and older data @@ -39,22 +46,15 @@ module Google # @return [Array] attr_accessor :error_group_stats - # If non-empty, more results are available. - # Pass this token, along with the same query parameters as the first - # request, to view 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin) @error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -63,26 +63,26 @@ module Google 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 + # 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 + 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) + @repository = args[:repository] if args.key?(:repository) end end @@ -103,6 +103,12 @@ module Google class ErrorEvent include Google::Apis::Core::Hashable + # Describes a running service that sends errors. + # Its version changes over time and multiple versions can run in parallel. + # Corresponds to the JSON property `serviceContext` + # @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext] + attr_accessor :service_context + # Time when the event occurred as provided in the error report. # If the report did not contain a timestamp, the time the error was received # by the Error Reporting system is used. @@ -123,22 +129,16 @@ module Google # @return [String] attr_accessor :message - # Describes a running service that sends errors. - # Its version changes over time and multiple versions can run in parallel. - # Corresponds to the JSON property `serviceContext` - # @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext] - attr_accessor :service_context - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @service_context = args[:service_context] if args.key?(:service_context) @event_time = args[:event_time] if args.key?(:event_time) @context = args[:context] if args.key?(:context) @message = args[:message] if args.key?(:message) - @service_context = args[:service_context] if args.key?(:service_context) end end @@ -146,6 +146,14 @@ module Google class ReportedErrorEvent include Google::Apis::Core::Hashable + # A description of the context in which an error occurred. + # This data should be provided by the application when reporting an error, + # unless the + # error report has been generated automatically from Google App Engine logs. + # Corresponds to the JSON property `context` + # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext] + attr_accessor :context + # [Required] The error message. # If no `context.reportLocation` is provided, the message must contain a # header (typically consisting of the exception type name and an error @@ -187,24 +195,16 @@ module Google # @return [String] attr_accessor :event_time - # A description of the context in which an error occurred. - # This data should be provided by the application when reporting an error, - # unless the - # error report has been generated automatically from Google App Engine logs. - # Corresponds to the JSON property `context` - # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext] - attr_accessor :context - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @context = args[:context] if args.key?(:context) @message = args[:message] if args.key?(:message) @service_context = args[:service_context] if args.key?(:service_context) @event_time = args[:event_time] if args.key?(:event_time) - @context = args[:context] if args.key?(:context) end end @@ -215,6 +215,28 @@ module Google class ErrorContext include Google::Apis::Core::Hashable + # Source code that was used to build the executable which has + # caused the given error message. + # Corresponds to the JSON property `sourceReferences` + # @return [Array] + attr_accessor :source_references + + # Indicates a location in the source code of the service for which errors are + # reported. `functionName` must be provided by the application when reporting + # an error, unless the error report contains a `message` with a supported + # exception stack trace. All fields are optional for the later case. + # Corresponds to the JSON property `reportLocation` + # @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation] + attr_accessor :report_location + + # HTTP request data that is related to a reported error. + # This data should be provided by the application when reporting an error, + # unless the + # error report has been generated automatically from Google App Engine logs. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext] + attr_accessor :http_request + # The user who caused or was affected by the crash. # This can be a user ID, an email address, or an arbitrary token that # uniquely identifies the user. @@ -227,38 +249,16 @@ module Google # @return [String] attr_accessor :user - # Indicates a location in the source code of the service for which errors are - # reported. `functionName` must be provided by the application when reporting - # an error, unless the error report contains a `message` with a supported - # exception stack trace. All fields are optional for the later case. - # Corresponds to the JSON property `reportLocation` - # @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation] - attr_accessor :report_location - - # Source code that was used to build the executable which has - # caused the given error message. - # Corresponds to the JSON property `sourceReferences` - # @return [Array] - attr_accessor :source_references - - # HTTP request data that is related to a reported error. - # This data should be provided by the application when reporting an error, - # unless the - # error report has been generated automatically from Google App Engine logs. - # Corresponds to the JSON property `httpRequest` - # @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext] - attr_accessor :http_request - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @user = args[:user] if args.key?(:user) - @report_location = args[:report_location] if args.key?(:report_location) @source_references = args[:source_references] if args.key?(:source_references) + @report_location = args[:report_location] if args.key?(:report_location) @http_request = args[:http_request] if args.key?(:http_request) + @user = args[:user] if args.key?(:user) end end @@ -287,6 +287,18 @@ module Google class ErrorGroupStats include Google::Apis::Core::Hashable + # Description of a group of similar error events. + # Corresponds to the JSON property `group` + # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] + attr_accessor :group + + # Approximate first occurrence that was ever seen for this group + # and which matches the given filter criteria, ignoring the + # time_range that was specified in the request. + # Corresponds to the JSON property `firstSeenTime` + # @return [String] + attr_accessor :first_seen_time + # Approximate total number of events in the given group that match # the filter criteria. # Corresponds to the JSON property `count` @@ -316,6 +328,12 @@ module Google # @return [String] attr_accessor :last_seen_time + # The total number of services with a non-zero error count for the given + # filter criteria. + # Corresponds to the JSON property `numAffectedServices` + # @return [Fixnum] + attr_accessor :num_affected_services + # Service contexts with a non-zero error count for the given filter # criteria. This list can be truncated if multiple services are affected. # Refer to `num_affected_services` for the total count. @@ -323,12 +341,6 @@ module Google # @return [Array] attr_accessor :affected_services - # The total number of services with a non-zero error count for the given - # filter criteria. - # Corresponds to the JSON property `numAffectedServices` - # @return [Fixnum] - attr_accessor :num_affected_services - # An error event which is returned by the Error Reporting system. # Corresponds to the JSON property `representative` # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent] @@ -343,33 +355,21 @@ module Google # @return [Array] attr_accessor :timed_counts - # Description of a group of similar error events. - # Corresponds to the JSON property `group` - # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] - attr_accessor :group - - # Approximate first occurrence that was ever seen for this group - # and which matches the given filter criteria, ignoring the - # time_range that was specified in the request. - # Corresponds to the JSON property `firstSeenTime` - # @return [String] - attr_accessor :first_seen_time - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @group = args[:group] if args.key?(:group) + @first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time) @count = args[:count] if args.key?(:count) @affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count) @last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time) - @affected_services = args[:affected_services] if args.key?(:affected_services) @num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services) + @affected_services = args[:affected_services] if args.key?(:affected_services) @representative = args[:representative] if args.key?(:representative) @timed_counts = args[:timed_counts] if args.key?(:timed_counts) - @group = args[:group] if args.key?(:group) - @first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time) end end @@ -377,6 +377,11 @@ module Google class ListEventsResponse include Google::Apis::Core::Hashable + # The timestamp specifies the start time to which the request was restricted. + # Corresponds to the JSON property `timeRangeBegin` + # @return [String] + attr_accessor :time_range_begin + # The error events which match the given request. # Corresponds to the JSON property `errorEvents` # @return [Array] @@ -389,20 +394,15 @@ module Google # @return [String] attr_accessor :next_page_token - # The timestamp specifies the start time to which the request was restricted. - # Corresponds to the JSON property `timeRangeBegin` - # @return [String] - attr_accessor :time_range_begin - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin) @error_events = args[:error_events] if args.key?(:error_events) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin) end end @@ -412,20 +412,20 @@ module Google class TimedCount include Google::Apis::Core::Hashable - # Approximate number of occurrences in the given time period. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count + # End of the time period to which `count` refers (excluded). + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time # Start of the time period to which `count` refers (included). # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # End of the time period to which `count` refers (excluded). - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time + # Approximate number of occurrences in the given time period. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count def initialize(**args) update!(**args) @@ -433,9 +433,9 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] if args.key?(:count) - @start_time = args[:start_time] if args.key?(:start_time) @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @count = args[:count] if args.key?(:count) end end @@ -449,17 +449,17 @@ module Google # @return [String] attr_accessor :name + # Associated tracking issues. + # Corresponds to the JSON property `trackingIssues` + # @return [Array] + attr_accessor :tracking_issues + # Group IDs are unique for a given project. If the same kind of error # occurs in different service contexts, it will receive the same group ID. # Corresponds to the JSON property `groupId` # @return [String] attr_accessor :group_id - # Associated tracking issues. - # Corresponds to the JSON property `trackingIssues` - # @return [Array] - attr_accessor :tracking_issues - def initialize(**args) update!(**args) end @@ -467,45 +467,8 @@ module Google # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) - @group_id = args[:group_id] if args.key?(:group_id) @tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues) - end - end - - # Indicates a location in the source code of the service for which errors are - # reported. `functionName` must be provided by the application when reporting - # an error, unless the error report contains a `message` with a supported - # exception stack trace. All fields are optional for the later case. - class SourceLocation - include Google::Apis::Core::Hashable - - # The source code filename, which can include a truncated relative - # path, or a full path from a production machine. - # Corresponds to the JSON property `filePath` - # @return [String] - attr_accessor :file_path - - # 1-based. 0 indicates that the line number is unknown. - # Corresponds to the JSON property `lineNumber` - # @return [Fixnum] - attr_accessor :line_number - - # Human-readable name of a function or method. - # The value can include optional context like the class or package name. - # For example, `my.package.MyClass.method` in case of Java. - # 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_path = args[:file_path] if args.key?(:file_path) - @line_number = args[:line_number] if args.key?(:line_number) - @function_name = args[:function_name] if args.key?(:function_name) + @group_id = args[:group_id] if args.key?(:group_id) end end @@ -552,6 +515,43 @@ module Google end end + # Indicates a location in the source code of the service for which errors are + # reported. `functionName` must be provided by the application when reporting + # an error, unless the error report contains a `message` with a supported + # exception stack trace. All fields are optional for the later case. + class SourceLocation + include Google::Apis::Core::Hashable + + # Human-readable name of a function or method. + # The value can include optional context like the class or package name. + # For example, `my.package.MyClass.method` in case of Java. + # Corresponds to the JSON property `functionName` + # @return [String] + attr_accessor :function_name + + # The source code filename, which can include a truncated relative + # path, or a full path from a production machine. + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + # 1-based. 0 indicates that the line number is unknown. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function_name = args[:function_name] if args.key?(:function_name) + @file_path = args[:file_path] if args.key?(:file_path) + @line_number = args[:line_number] if args.key?(:line_number) + end + end + # Response for reporting an individual error event. # Data may be added to this message in the future. class ReportErrorEventResponse @@ -573,6 +573,16 @@ module Google class HttpRequestContext include Google::Apis::Core::Hashable + # The URL of the request. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # The HTTP response status code for the request. + # Corresponds to the JSON property `responseStatusCode` + # @return [Fixnum] + attr_accessor :response_status_code + # The type of HTTP request, such as `GET`, `POST`, etc. # Corresponds to the JSON property `method` # @return [String] @@ -596,28 +606,18 @@ module Google # @return [String] attr_accessor :user_agent - # The URL of the request. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - # The HTTP response status code for the request. - # Corresponds to the JSON property `responseStatusCode` - # @return [Fixnum] - attr_accessor :response_status_code - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @url = args[:url] if args.key?(:url) + @response_status_code = args[:response_status_code] if args.key?(:response_status_code) @method_prop = args[:method_prop] if args.key?(:method_prop) @remote_ip = args[:remote_ip] if args.key?(:remote_ip) @referrer = args[:referrer] if args.key?(:referrer) @user_agent = args[:user_agent] if args.key?(:user_agent) - @url = args[:url] if args.key?(:url) - @response_status_code = args[:response_status_code] if args.key?(:response_status_code) end end end diff --git a/generated/google/apis/clouderrorreporting_v1beta1/representations.rb b/generated/google/apis/clouderrorreporting_v1beta1/representations.rb index c50fb945d..33347bafd 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/representations.rb @@ -88,13 +88,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SourceLocation + class ServiceContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ServiceContext + class SourceLocation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -115,18 +115,18 @@ module Google class ListGroupStatsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' property :time_range_begin, as: 'timeRangeBegin' collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation - property :next_page_token, as: 'nextPageToken' end end class SourceReference # @private class Representation < Google::Apis::Core::JsonRepresentation - property :repository, as: 'repository' property :revision_id, as: 'revisionId' + property :repository, as: 'repository' end end @@ -139,37 +139,37 @@ module Google class ErrorEvent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation + property :event_time, as: 'eventTime' property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation property :message, as: 'message' - property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation - end end class ReportedErrorEvent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation + property :message, as: 'message' property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation property :event_time, as: 'eventTime' - property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation - end end class ErrorContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :user, as: 'user' - property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation - collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation + property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation + property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation + property :user, as: 'user' end end @@ -183,38 +183,38 @@ module Google class ErrorGroupStats # @private class Representation < Google::Apis::Core::JsonRepresentation + property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation + + property :first_seen_time, as: 'firstSeenTime' property :count, :numeric_string => true, as: 'count' property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount' property :last_seen_time, as: 'lastSeenTime' + property :num_affected_services, as: 'numAffectedServices' collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation - property :num_affected_services, as: 'numAffectedServices' property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation - property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation - - property :first_seen_time, as: 'firstSeenTime' end end class ListEventsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :time_range_begin, as: 'timeRangeBegin' collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation property :next_page_token, as: 'nextPageToken' - property :time_range_begin, as: 'timeRangeBegin' end end class TimedCount # @private class Representation < Google::Apis::Core::JsonRepresentation - property :count, :numeric_string => true, as: 'count' - property :start_time, as: 'startTime' property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + property :count, :numeric_string => true, as: 'count' end end @@ -222,18 +222,9 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' - property :group_id, as: 'groupId' collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation - end - end - - class SourceLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file_path, as: 'filePath' - property :line_number, as: 'lineNumber' - property :function_name, as: 'functionName' + property :group_id, as: 'groupId' end end @@ -246,6 +237,15 @@ module Google end end + class SourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function_name, as: 'functionName' + property :file_path, as: 'filePath' + property :line_number, as: 'lineNumber' + end + end + class ReportErrorEventResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -255,12 +255,12 @@ module Google class HttpRequestContext # @private class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :response_status_code, as: 'responseStatusCode' property :method_prop, as: 'method' property :remote_ip, as: 'remoteIp' property :referrer, as: 'referrer' property :user_agent, as: 'userAgent' - property :url, as: 'url' - property :response_status_code, as: 'responseStatusCode' end end end diff --git a/generated/google/apis/clouderrorreporting_v1beta1/service.rb b/generated/google/apis/clouderrorreporting_v1beta1/service.rb index 7819e6025..de5c5a48b 100644 --- a/generated/google/apis/clouderrorreporting_v1beta1/service.rb +++ b/generated/google/apis/clouderrorreporting_v1beta1/service.rb @@ -82,6 +82,86 @@ module Google execute_or_queue_command(command, &block) end + # Lists the specified groups. + # @param [String] project_name + # [Required] The resource name of the Google Cloud Platform project. Written + # as projects/ plus the + # Google Cloud + # Platform project ID. + # Example: projects/my-project-123. + # @param [String] alignment + # [Optional] The alignment of the timed counts to be returned. + # Default is `ALIGNMENT_EQUAL_AT_END`. + # @param [Array, String] group_id + # [Optional] List all ErrorGroupStats with these IDs. + # @param [String] service_filter_service + # [Optional] The exact value to match against + # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ + # ServiceContext#FIELDS.service). + # @param [Fixnum] page_size + # [Optional] The maximum number of results to return per response. + # Default is 20. + # @param [String] order + # [Optional] The sort order in which the results are returned. + # Default is `COUNT_DESC`. + # @param [String] service_filter_version + # [Optional] The exact value to match against + # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ + # ServiceContext#FIELDS.version). + # @param [String] alignment_time + # [Optional] Time where the timed counts shall be aligned if rounded + # alignment is chosen. Default is 00:00 UTC. + # @param [String] service_filter_resource_type + # [Optional] The exact value to match against + # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ + # ServiceContext#FIELDS.resource_type). + # @param [String] timed_count_duration + # [Optional] The preferred duration for a single returned `TimedCount`. + # If not set, no timed counts are returned. + # @param [String] page_token + # [Optional] A `next_page_token` provided by a previous response. To view + # additional results, pass this token along with the identical query + # parameters as the first request. + # @param [String] time_range_period + # Restricts the query to the specified time range. + # @param [String] quota_user + # Available 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::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_group_stats(project_name, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options) + command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation + command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse + command.params['projectName'] = project_name unless project_name.nil? + command.query['alignment'] = alignment unless alignment.nil? + command.query['groupId'] = group_id unless group_id.nil? + command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['order'] = order unless order.nil? + command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil? + command.query['alignmentTime'] = alignment_time unless alignment_time.nil? + command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil? + command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['timeRange.period'] = time_range_period unless time_range_period.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Get the specified group. # @param [String] group_name # [Required] The group resource name. Written as @@ -153,86 +233,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists the specified groups. - # @param [String] project_name - # [Required] The resource name of the Google Cloud Platform project. Written - # as projects/ plus the - # Google Cloud - # Platform project ID. - # Example: projects/my-project-123. - # @param [String] alignment_time - # [Optional] Time where the timed counts shall be aligned if rounded - # alignment is chosen. Default is 00:00 UTC. - # @param [String] service_filter_resource_type - # [Optional] The exact value to match against - # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ - # ServiceContext#FIELDS.resource_type). - # @param [String] timed_count_duration - # [Optional] The preferred duration for a single returned `TimedCount`. - # If not set, no timed counts are returned. - # @param [String] page_token - # [Optional] A `next_page_token` provided by a previous response. To view - # additional results, pass this token along with the identical query - # parameters as the first request. - # @param [String] time_range_period - # Restricts the query to the specified time range. - # @param [String] alignment - # [Optional] The alignment of the timed counts to be returned. - # Default is `ALIGNMENT_EQUAL_AT_END`. - # @param [Array, String] group_id - # [Optional] List all ErrorGroupStats with these IDs. - # @param [String] service_filter_service - # [Optional] The exact value to match against - # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ - # ServiceContext#FIELDS.service). - # @param [Fixnum] page_size - # [Optional] The maximum number of results to return per response. - # Default is 20. - # @param [String] order - # [Optional] The sort order in which the results are returned. - # Default is `COUNT_DESC`. - # @param [String] service_filter_version - # [Optional] The exact value to match against - # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ - # ServiceContext#FIELDS.version). - # @param [String] quota_user - # Available 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::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_group_stats(project_name, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options) - command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation - command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse - command.params['projectName'] = project_name unless project_name.nil? - command.query['alignmentTime'] = alignment_time unless alignment_time.nil? - command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil? - command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['timeRange.period'] = time_range_period unless time_range_period.nil? - command.query['alignment'] = alignment unless alignment.nil? - command.query['groupId'] = group_id unless group_id.nil? - command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['order'] = order unless order.nil? - command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.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 the specified events. # @param [String] project_name # [Required] The resource name of the Google Cloud Platform project. Written @@ -240,14 +240,12 @@ module Google # [Google Cloud Platform project # ID](https://support.google.com/cloud/answer/6158840). # Example: `projects/my-project-123`. - # @param [String] group_id - # [Required] The group for which events shall be returned. - # @param [String] page_token - # [Optional] A `next_page_token` provided by a previous response. # @param [String] service_filter_service # [Optional] The exact value to match against # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ # ServiceContext#FIELDS.service). + # @param [String] page_token + # [Optional] A `next_page_token` provided by a previous response. # @param [Fixnum] page_size # [Optional] The maximum number of results to return per response. # @param [String] service_filter_version @@ -260,6 +258,8 @@ module Google # ServiceContext#FIELDS.resource_type). # @param [String] time_range_period # Restricts the query to the specified time range. + # @param [String] group_id + # [Required] The group for which events shall be returned. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -277,18 +277,18 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_events(project_name, group_id: nil, page_token: nil, service_filter_service: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_events(project_name, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, group_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options) command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse command.params['projectName'] = project_name unless project_name.nil? - command.query['groupId'] = group_id unless group_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil? + command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil? command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil? command.query['timeRange.period'] = time_range_period unless time_range_period.nil? + command.query['groupId'] = group_id unless group_id.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 18f2a5811..6df3199f9 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20170529' + REVISION = '20170711' end end end diff --git a/generated/google/apis/cloudfunctions_v1/service.rb b/generated/google/apis/cloudfunctions_v1/service.rb index 84236c488..156693057 100644 --- a/generated/google/apis/cloudfunctions_v1/service.rb +++ b/generated/google/apis/cloudfunctions_v1/service.rb @@ -33,16 +33,16 @@ module Google # # @see https://cloud.google.com/functions class CloudFunctionsService < Google::Apis::Core::BaseService - # @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 - # @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://cloudfunctions.googleapis.com/', '') @batch_path = 'batch' @@ -51,8 +51,8 @@ module Google protected def apply_command_defaults(command) - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? end end end diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index bd31b035e..3115228dd 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20170530' + REVISION = '20170621' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index e6ff96ddc..659bfc2a6 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -22,565 +22,40 @@ module Google module Apis module CloudkmsV1 - # Write a Cloud Audit log - class CloudAuditOptions - include Google::Apis::Core::Hashable - - # The log_name to populate in the Cloud Audit Record. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_name = args[:log_name] if args.key?(:log_name) - end - end - - # Associates `members` with a `role`. - class Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` or `joe@example.com`. - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" - # Corresponds to the JSON property `condition` - # @return [Google::Apis::CloudkmsV1::Expr] - attr_accessor :condition - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - @condition = args[:condition] if args.key?(:condition) - end - end - - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" - class Expr - include Google::Apis::Core::Hashable - - # An optional title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Textual representation of an expression in - # [Common Expression Language](http://go/api-expr) syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @title = args[:title] if args.key?(:title) - @location = args[:location] if args.key?(:location) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - end - end - - # Request message for KeyManagementService.Encrypt. - class EncryptRequest - include Google::Apis::Core::Hashable - - # Optional data that, if specified, must also be provided during decryption - # through DecryptRequest.additional_authenticated_data. Must be no - # larger than 64KiB. - # Corresponds to the JSON property `additionalAuthenticatedData` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :additional_authenticated_data - - # Required. The data to encrypt. Must be no larger than 64KiB. - # Corresponds to the JSON property `plaintext` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :plaintext - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) - @plaintext = args[:plaintext] if args.key?(:plaintext) - end - end - - # Response message for KeyManagementService.ListCryptoKeyVersions. - class ListCryptoKeyVersionsResponse - include Google::Apis::Core::Hashable - - # The list of CryptoKeyVersions. - # Corresponds to the JSON property `cryptoKeyVersions` - # @return [Array] - attr_accessor :crypto_key_versions - - # A token to retrieve next page of results. Pass this value in - # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of - # results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The total number of CryptoKeyVersions that matched the - # query. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @total_size = args[:total_size] if args.key?(:total_size) - end - end - - # Response message for `TestIamPermissions` method. - class TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Request message for KeyManagementService.DestroyCryptoKeyVersion. - class DestroyCryptoKeyVersionRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A CryptoKey represents a logical key that can be used for cryptographic - # operations. - # A CryptoKey is made up of one or more versions, which - # represent the actual key material used in cryptographic operations. - class CryptoKey - include Google::Apis::Core::Hashable - - # The immutable purpose of this CryptoKey. Currently, the only acceptable - # purpose is ENCRYPT_DECRYPT. - # Corresponds to the JSON property `purpose` - # @return [String] - attr_accessor :purpose - - # At next_rotation_time, the Key Management Service will automatically: - # 1. Create a new version of this CryptoKey. - # 2. Mark the new version as primary. - # Key rotations performed manually via - # CreateCryptoKeyVersion and - # UpdateCryptoKeyPrimaryVersion - # do not affect next_rotation_time. - # Corresponds to the JSON property `nextRotationTime` - # @return [String] - attr_accessor :next_rotation_time - - # Output only. The time at which this CryptoKey was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # next_rotation_time will be advanced by this period when the service - # automatically rotates a key. Must be at least one day. - # If rotation_period is set, next_rotation_time must also be set. - # Corresponds to the JSON property `rotationPeriod` - # @return [String] - attr_accessor :rotation_period - - # A CryptoKeyVersion represents an individual cryptographic key, and the - # associated key material. - # It can be used for cryptographic operations either directly, or via its - # parent CryptoKey, in which case the server will choose the appropriate - # version for the operation. - # Corresponds to the JSON property `primary` - # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] - attr_accessor :primary - - # Output only. The resource name for this CryptoKey in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - # 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) - @purpose = args[:purpose] if args.key?(:purpose) - @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time) - @create_time = args[:create_time] if args.key?(:create_time) - @rotation_period = args[:rotation_period] if args.key?(:rotation_period) - @primary = args[:primary] if args.key?(:primary) - @name = args[:name] if args.key?(:name) - end - end - - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries is the same as for members in a - # Binding (see google/iam/v1/policy.proto). - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @not_in = args[:not_in] if args.key?(:not_in) - @description = args[:description] if args.key?(:description) - @conditions = args[:conditions] if args.key?(:conditions) - @log_config = args[:log_config] if args.key?(:log_config) - @in = args[:in] if args.key?(:in) - @permissions = args[:permissions] if args.key?(:permissions) - @action = args[:action] if args.key?(:action) - end - end - - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::CloudkmsV1::CounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::CloudkmsV1::DataAccessOptions] - attr_accessor :data_access - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::CloudkmsV1::CloudAuditOptions] - attr_accessor :cloud_audit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @counter = args[:counter] if args.key?(:counter) - @data_access = args[:data_access] if args.key?(:data_access) - @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) - end - end - - # Request message for `SetIamPolicy` method. - class SetIamPolicyRequest - include Google::Apis::Core::Hashable - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::CloudkmsV1::Policy] - attr_accessor :policy - - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # paths: "bindings, etag" - # This field is only used by Cloud IAM. - # Corresponds to the JSON property `updateMask` - # @return [String] - attr_accessor :update_mask - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - @update_mask = args[:update_mask] if args.key?(:update_mask) - end - end - - # Request message for KeyManagementService.Decrypt. - class DecryptRequest - include Google::Apis::Core::Hashable - - # Required. The encrypted data originally returned in - # EncryptResponse.ciphertext. - # Corresponds to the JSON property `ciphertext` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :ciphertext - - # Optional data that must match the data originally supplied in - # EncryptRequest.additional_authenticated_data. - # Corresponds to the JSON property `additionalAuthenticatedData` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :additional_authenticated_data - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ciphertext = args[:ciphertext] if args.key?(:ciphertext) - @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) - end - end - - # A resource that represents Google Cloud Platform location. - class Location - include Google::Apis::Core::Hashable - - # The canonical id for this location. For example: `"us-east1"`. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` - # 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) - @location_id = args[:location_id] if args.key?(:location_id) - @metadata = args[:metadata] if args.key?(:metadata) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - end - end - - # Response message for KeyManagementService.ListCryptoKeys. - class ListCryptoKeysResponse - include Google::Apis::Core::Hashable - - # A token to retrieve next page of results. Pass this value in - # ListCryptoKeysRequest.page_token to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of CryptoKeys. - # Corresponds to the JSON property `cryptoKeys` - # @return [Array] - attr_accessor :crypto_keys - - # The total number of CryptoKeys that matched the query. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - 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) - @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys) - @total_size = args[:total_size] if args.key?(:total_size) - end - end - # A condition to be met. class Condition include Google::Apis::Core::Hashable - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - # Trusted attributes discharged by the service. # Corresponds to the JSON property `svc` # @return [String] attr_accessor :svc + # DEPRECATED. Use 'values' instead. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + # Trusted attributes supplied by any service that owns resources and uses # the IAM system for access control. # Corresponds to the JSON property `sys` # @return [String] attr_accessor :sys - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value + # The objects of the condition. This is mutually exclusive with 'value'. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values # Trusted attributes supplied by the IAM system. # Corresponds to the JSON property `iam` # @return [String] attr_accessor :iam - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values + # An operator to apply the subject with. + # Corresponds to the JSON property `op` + # @return [String] + attr_accessor :op def initialize(**args) update!(**args) @@ -588,12 +63,12 @@ module Google # Update properties of this object def update!(**args) - @op = args[:op] if args.key?(:op) @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) @value = args[:value] if args.key?(:value) - @iam = args[:iam] if args.key?(:iam) + @sys = args[:sys] if args.key?(:sys) @values = args[:values] if args.key?(:values) + @iam = args[:iam] if args.key?(:iam) + @op = args[:op] if args.key?(:op) end end @@ -601,24 +76,24 @@ module Google class CounterOptions include Google::Apis::Core::Hashable - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - # The field value to attribute. # Corresponds to the JSON property `field` # @return [String] attr_accessor :field + # The metric to update. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @metric = args[:metric] if args.key?(:metric) @field = args[:field] if args.key?(:field) + @metric = args[:metric] if args.key?(:metric) end end @@ -711,25 +186,25 @@ module Google class EncryptResponse include Google::Apis::Core::Hashable - # The resource name of the CryptoKeyVersion used in encryption. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The encrypted data. # Corresponds to the JSON property `ciphertext` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :ciphertext + # The resource name of the CryptoKeyVersion used in encryption. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) @ciphertext = args[:ciphertext] if args.key?(:ciphertext) + @name = args[:name] if args.key?(:name) end end @@ -759,6 +234,31 @@ module Google end end + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # 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) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of @@ -788,6 +288,22 @@ module Google class Policy include Google::Apis::Core::Hashable + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + # `etag` is used for optimistic concurrency control as a way to help # prevent simultaneous updates of a policy from overwriting each other. # It is strongly suggested that systems make use of the `etag` in the @@ -821,72 +337,18 @@ module Google # @return [Array] attr_accessor :rules - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # Specifies cloud audit logging configuration for this policy. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. - # `bindings` with no members will result in an error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) @version = args[:version] if args.key?(:version) @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) - end - end - - # The response message for Locations.ListLocations. - class ListLocationsResponse - 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 locations that matches the specified filter in the request. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - 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) - @locations = args[:locations] if args.key?(:locations) - end - end - - # Request message for KeyManagementService.RestoreCryptoKeyVersion. - class RestoreCryptoKeyVersionRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @iam_owned = args[:iam_owned] if args.key?(:iam_owned) + @rules = args[:rules] if args.key?(:rules) end end @@ -909,6 +371,19 @@ module Google end end + # Request message for KeyManagementService.RestoreCryptoKeyVersion. + class RestoreCryptoKeyVersionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Write a Data Access (Gin) log class DataAccessOptions include Google::Apis::Core::Hashable @@ -1004,6 +479,11 @@ module Google class AuditConfig include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + # Specifies a service that will be enabled for audit logging. # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. # `allServices` is a special value that covers all services. @@ -1017,20 +497,15 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @service = args[:service] if args.key?(:service) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) end end @@ -1042,6 +517,11 @@ module Google class CryptoKeyVersion include Google::Apis::Core::Hashable + # Output only. The time at which this CryptoKeyVersion was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + # The current state of the CryptoKeyVersion. # Corresponds to the JSON property `state` # @return [String] @@ -1067,10 +547,281 @@ module Google # @return [String] attr_accessor :destroy_time - # Output only. The time at which this CryptoKeyVersion was created. - # Corresponds to the JSON property `createTime` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @name = args[:name] if args.key?(:name) + @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) + @destroy_time = args[:destroy_time] if args.key?(:destroy_time) + end + end + + # Write a Cloud Audit log + class CloudAuditOptions + include Google::Apis::Core::Hashable + + # The log_name to populate in the Cloud Audit Record. + # Corresponds to the JSON property `logName` # @return [String] - attr_accessor :create_time + attr_accessor :log_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_name = args[:log_name] if args.key?(:log_name) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudkmsV1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` or `joe@example.com`. + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + end + end + + # Request message for KeyManagementService.Encrypt. + class EncryptRequest + include Google::Apis::Core::Hashable + + # Required. The data to encrypt. Must be no larger than 64KiB. + # Corresponds to the JSON property `plaintext` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :plaintext + + # Optional data that, if specified, must also be provided during decryption + # through DecryptRequest.additional_authenticated_data. Must be no + # larger than 64KiB. + # Corresponds to the JSON property `additionalAuthenticatedData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :additional_authenticated_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @plaintext = args[:plaintext] if args.key?(:plaintext) + @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) + end + end + + # Response message for KeyManagementService.ListCryptoKeyVersions. + class ListCryptoKeyVersionsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. Pass this value in + # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total number of CryptoKeyVersions that matched the + # query. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + # The list of CryptoKeyVersions. + # Corresponds to the JSON property `cryptoKeyVersions` + # @return [Array] + attr_accessor :crypto_key_versions + + 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) + @total_size = args[:total_size] if args.key?(:total_size) + @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Request message for KeyManagementService.DestroyCryptoKeyVersion. + class DestroyCryptoKeyVersionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A CryptoKey represents a logical key that can be used for cryptographic + # operations. + # A CryptoKey is made up of one or more versions, which + # represent the actual key material used in cryptographic operations. + class CryptoKey + include Google::Apis::Core::Hashable + + # Output only. The resource name for this CryptoKey in the format + # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The immutable purpose of this CryptoKey. Currently, the only acceptable + # purpose is ENCRYPT_DECRYPT. + # Corresponds to the JSON property `purpose` + # @return [String] + attr_accessor :purpose + + # At next_rotation_time, the Key Management Service will automatically: + # 1. Create a new version of this CryptoKey. + # 2. Mark the new version as primary. + # Key rotations performed manually via + # CreateCryptoKeyVersion and + # UpdateCryptoKeyPrimaryVersion + # do not affect next_rotation_time. + # Corresponds to the JSON property `nextRotationTime` + # @return [String] + attr_accessor :next_rotation_time + + # Output only. The time at which this CryptoKey was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # next_rotation_time will be advanced by this period when the service + # automatically rotates a key. Must be at least one day. + # If rotation_period is set, next_rotation_time must also be set. + # Corresponds to the JSON property `rotationPeriod` + # @return [String] + attr_accessor :rotation_period + + # A CryptoKeyVersion represents an individual cryptographic key, and the + # associated key material. + # It can be used for cryptographic operations either directly, or via its + # parent CryptoKey, in which case the server will choose the appropriate + # version for the operation. + # Corresponds to the JSON property `primary` + # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] + attr_accessor :primary def initialize(**args) update!(**args) @@ -1078,11 +829,277 @@ module Google # Update properties of this object def update!(**args) - @state = args[:state] if args.key?(:state) @name = args[:name] if args.key?(:name) - @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) - @destroy_time = args[:destroy_time] if args.key?(:destroy_time) + @purpose = args[:purpose] if args.key?(:purpose) + @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time) @create_time = args[:create_time] if args.key?(:create_time) + @rotation_period = args[:rotation_period] if args.key?(:rotation_period) + @primary = args[:primary] if args.key?(:primary) + end + end + + # A rule to be applied in a Policy. + class Rule + include Google::Apis::Core::Hashable + + # Human-readable description of the rule. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Additional restrictions that must be met + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries + # that match the LOG action. + # Corresponds to the JSON property `logConfig` + # @return [Array] + attr_accessor :log_config + + # If one or more 'in' clauses are specified, the rule matches if + # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + # Corresponds to the JSON property `in` + # @return [Array] + attr_accessor :in + + # A permission is a string of form '..' + # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, + # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Required + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # If one or more 'not_in' clauses are specified, the rule matches + # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. + # The format for in and not_in entries is the same as for members in a + # Binding (see google/iam/v1/policy.proto). + # Corresponds to the JSON property `notIn` + # @return [Array] + attr_accessor :not_in + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @conditions = args[:conditions] if args.key?(:conditions) + @log_config = args[:log_config] if args.key?(:log_config) + @in = args[:in] if args.key?(:in) + @permissions = args[:permissions] if args.key?(:permissions) + @action = args[:action] if args.key?(:action) + @not_in = args[:not_in] if args.key?(:not_in) + end + end + + # Specifies what kind of log the caller must write + # Increment a streamz counter with the specified metric and field names. + # Metric names should start with a '/', generally be lowercase-only, + # and end in "_count". Field names should not contain an initial slash. + # The actual exported metric names will have "/iam/policy" prepended. + # Field names correspond to IAM request parameters and field values are + # their respective values. + # At present the only supported field names are + # - "iam_principal", corresponding to IAMContext.principal; + # - "" (empty string), resulting in one aggretated counter with no field. + # Examples: + # counter ` metric: "/debug_access_count" field: "iam_principal" ` + # ==> increment counter /iam/policy/backend_debug_access_count + # `iam_principal=[value of IAMContext.principal]` + # At this time we do not support: + # * multiple field names (though this may be supported in the future) + # * decrementing the counter + # * incrementing it by anything other than 1 + class LogConfig + include Google::Apis::Core::Hashable + + # Options for counters + # Corresponds to the JSON property `counter` + # @return [Google::Apis::CloudkmsV1::CounterOptions] + attr_accessor :counter + + # Write a Data Access (Gin) log + # Corresponds to the JSON property `dataAccess` + # @return [Google::Apis::CloudkmsV1::DataAccessOptions] + attr_accessor :data_access + + # Write a Cloud Audit log + # Corresponds to the JSON property `cloudAudit` + # @return [Google::Apis::CloudkmsV1::CloudAuditOptions] + attr_accessor :cloud_audit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @counter = args[:counter] if args.key?(:counter) + @data_access = args[:data_access] if args.key?(:data_access) + @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudkmsV1::Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Request message for KeyManagementService.Decrypt. + class DecryptRequest + include Google::Apis::Core::Hashable + + # Optional data that must match the data originally supplied in + # EncryptRequest.additional_authenticated_data. + # Corresponds to the JSON property `additionalAuthenticatedData` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :additional_authenticated_data + + # Required. The encrypted data originally returned in + # EncryptResponse.ciphertext. + # Corresponds to the JSON property `ciphertext` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :ciphertext + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) + @ciphertext = args[:ciphertext] if args.key?(:ciphertext) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # Cross-service attributes for the location. For example + # `"cloud.googleapis.com/region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Resource name for the location, which may vary between implementations. + # For example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Response message for KeyManagementService.ListCryptoKeys. + class ListCryptoKeysResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. Pass this value in + # ListCryptoKeysRequest.page_token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total number of CryptoKeys that matched the query. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + # The list of CryptoKeys. + # Corresponds to the JSON property `cryptoKeys` + # @return [Array] + attr_accessor :crypto_keys + + 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) + @total_size = args[:total_size] if args.key?(:total_size) + @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys) end end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index 8cde0ef23..f90c8cca3 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -22,90 +22,6 @@ module Google module Apis module CloudkmsV1 - class CloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Expr - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EncryptRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListCryptoKeyVersionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DestroyCryptoKeyVersionRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CryptoKey - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DecryptRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Location - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListCryptoKeysResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Condition class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,19 +64,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Policy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RestoreCryptoKeyVersionRequest + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -172,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RestoreCryptoKeyVersionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -197,157 +113,106 @@ module Google end class CloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_name, as: 'logName' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class Expr - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - property :location, as: 'location' - property :description, as: 'description' - property :expression, as: 'expression' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class EncryptRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' - property :plaintext, :base64 => true, as: 'plaintext' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListCryptoKeyVersionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - property :total_size, as: 'totalSize' - end + include Google::Apis::Core::JsonObjectSupport end class TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class DestroyCryptoKeyVersionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CryptoKey - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :purpose, as: 'purpose' - property :next_rotation_time, as: 'nextRotationTime' - property :create_time, as: 'createTime' - property :rotation_period, as: 'rotationPeriod' - property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - end + include Google::Apis::Core::JsonObjectSupport end class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :not_in, as: 'notIn' - property :description, as: 'description' - collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation - - collection :in, as: 'in' - collection :permissions, as: 'permissions' - property :action, as: 'action' - end + include Google::Apis::Core::JsonObjectSupport end class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation - - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :update_mask, as: 'updateMask' - end + include Google::Apis::Core::JsonObjectSupport end class DecryptRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ciphertext, :base64 => true, as: 'ciphertext' - property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Location - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :location_id, as: 'locationId' - hash :metadata, as: 'metadata' - hash :labels, as: 'labels' - property :name, as: 'name' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListCryptoKeysResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :total_size, as: 'totalSize' - end + include Google::Apis::Core::JsonObjectSupport end class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation - property :op, as: 'op' property :svc, as: 'svc' - property :sys, as: 'sys' property :value, as: 'value' - property :iam, as: 'iam' + property :sys, as: 'sys' collection :values, as: 'values' + property :iam, as: 'iam' + property :op, as: 'op' end end class CounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' property :field, as: 'field' + property :metric, as: 'metric' end end @@ -376,8 +241,8 @@ module Google class EncryptResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' property :ciphertext, :base64 => true, as: 'ciphertext' + property :name, as: 'name' end end @@ -389,33 +254,27 @@ module Google end end + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation - property :version, as: 'version' collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation - end - end + property :etag, :base64 => true, as: 'etag' + property :iam_owned, as: 'iamOwned' + collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation - class ListLocationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation - - end - end - - class RestoreCryptoKeyVersionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation end end @@ -426,6 +285,12 @@ module Google end end + class RestoreCryptoKeyVersionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class DataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -445,21 +310,156 @@ module Google class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' property :service, as: 'service' collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation - collection :exempted_members, as: 'exemptedMembers' end end class CryptoKeyVersion # @private class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' property :state, as: 'state' property :name, as: 'name' property :destroy_event_time, as: 'destroyEventTime' property :destroy_time, as: 'destroyTime' + end + end + + class CloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_name, as: 'logName' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location' + property :title, as: 'title' + property :description, as: 'description' + property :expression, as: 'expression' + end + end + + class EncryptRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :plaintext, :base64 => true, as: 'plaintext' + property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' + end + end + + class ListCryptoKeyVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' + collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class DestroyCryptoKeyVersionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class CryptoKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :purpose, as: 'purpose' + property :next_rotation_time, as: 'nextRotationTime' property :create_time, as: 'createTime' + property :rotation_period, as: 'rotationPeriod' + property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + + end + end + + class Rule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation + + collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation + + collection :in, as: 'in' + collection :permissions, as: 'permissions' + property :action, as: 'action' + collection :not_in, as: 'notIn' + end + end + + class LogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation + + property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation + + property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation + + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class DecryptRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' + property :ciphertext, :base64 => true, as: 'ciphertext' + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :name, as: 'name' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + end + end + + class ListCryptoKeysResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' + collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation + end end end diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 14cb06f44..8840fcb7f 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -48,53 +48,14 @@ module Google @batch_path = 'batch' end - # Lists information about the supported locations for this service. - # @param [String] name - # The resource that owns the locations collection, if applicable. - # @param [String] filter - # The standard list filter. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::CloudkmsV1::ListLocationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::ListLocationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_locations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/locations', options) - command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation - command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.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 - # Get information about a location. # @param [String] name # Resource name for the location. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -107,115 +68,52 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location(name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::CloudkmsV1::Location::Representation command.response_class = Google::Apis::CloudkmsV1::Location command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.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 access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::CloudkmsV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation - command.response_class = Google::Apis::CloudkmsV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns metadata for a given KeyRing. + # Lists information about the supported locations for this service. # @param [String] name - # The name of the KeyRing to get. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # The resource that owns the locations collection, if applicable. + # @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::CloudkmsV1::KeyRing] parsed result object + # @yieldparam result [Google::Apis::CloudkmsV1::ListLocationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudkmsV1::KeyRing] + # @return [Google::Apis::CloudkmsV1::ListLocationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation - command.response_class = Google::Apis::CloudkmsV1::KeyRing + def list_project_locations(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/locations', options) + command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.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? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -223,19 +121,19 @@ module Google # @param [String] parent # Required. The resource name of the location associated with the # KeyRings, in the format `projects/*/locations/*`. + # @param [String] page_token + # Optional pagination token, returned earlier via + # ListKeyRingsResponse.next_page_token. # @param [Fixnum] page_size # Optional limit on the number of KeyRings to include in the # response. Further KeyRings can subsequently be obtained by # including the ListKeyRingsResponse.next_page_token in a subsequent # request. If unspecified, the server will pick an appropriate default. - # @param [String] page_token - # Optional pagination token, returned earlier via - # ListKeyRingsResponse.next_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -248,15 +146,50 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_rings(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/keyRings', options) command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse command.params['parent'] = parent unless parent.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['pageSize'] = page_size unless page_size.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_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::CloudkmsV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation + command.response_class = Google::Apis::CloudkmsV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -268,11 +201,11 @@ module Google # @param [String] key_ring_id # Required. It must be unique within a location and match the regular # expression `[a-zA-Z0-9_-]`1,63`` - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -285,7 +218,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/keyRings', options) command.request_representation = Google::Apis::CloudkmsV1::KeyRing::Representation command.request_object = key_ring_object @@ -293,227 +226,8 @@ module Google command.response_class = Google::Apis::CloudkmsV1::KeyRing command.params['parent'] = parent unless parent.nil? command.query['keyRingId'] = key_ring_id unless key_ring_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation - command.response_class = Google::Apis::CloudkmsV1::Policy - command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists CryptoKeys. - # @param [String] parent - # Required. The resource name of the KeyRing to list, in the format - # `projects/*/locations/*/keyRings/*`. - # @param [String] page_token - # Optional pagination token, returned earlier via - # ListCryptoKeysResponse.next_page_token. - # @param [Fixnum] page_size - # Optional limit on the number of CryptoKeys to include in the - # response. Further CryptoKeys can subsequently be obtained by - # including the ListCryptoKeysResponse.next_page_token in a subsequent - # request. If unspecified, the server will pick an appropriate default. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::CloudkmsV1::ListCryptoKeysResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options) - command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation - command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse - command.params['parent'] = parent unless parent.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 - - # Encrypts data, so that it can only be recovered by a call to Decrypt. - # @param [String] name - # Required. The resource name of the CryptoKey or CryptoKeyVersion - # to use for encryption. - # If a CryptoKey is specified, the server will use its - # primary version. - # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_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::CloudkmsV1::EncryptResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::EncryptResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:encrypt', options) - command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation - command.request_object = encrypt_request_object - command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation - command.response_class = Google::Apis::CloudkmsV1::EncryptResponse - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Create a new CryptoKey within a KeyRing. - # CryptoKey.purpose is required. - # @param [String] parent - # Required. The name of the KeyRing associated with the - # CryptoKeys. - # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object - # @param [String] crypto_key_id - # Required. It must be unique within a KeyRing and match the regular - # expression `[a-zA-Z0-9_-]`1,63`` - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::CloudkmsV1::CryptoKey] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::CryptoKey] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options) - command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.request_object = crypto_key_object - command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKey - command.params['parent'] = parent unless parent.nil? - command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation - command.response_class = Google::Apis::CloudkmsV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update the version of a CryptoKey that will be used in Encrypt - # @param [String] name - # The resource name of the CryptoKey to update. - # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_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::CloudkmsV1::CryptoKey] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::CryptoKey] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options) - command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation - command.request_object = update_crypto_key_primary_version_request_object - command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKey - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -523,11 +237,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -540,81 +254,43 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_key_ring_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation command.response_class = Google::Apis::CloudkmsV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Returns metadata for a given CryptoKey, as well as its - # primary CryptoKeyVersion. + # Returns metadata for a given KeyRing. # @param [String] name - # The name of the CryptoKey to get. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # The name of the KeyRing to get. # @param [String] quota_user # Available 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::CloudkmsV1::CryptoKey] parsed result object + # @yieldparam result [Google::Apis::CloudkmsV1::KeyRing] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudkmsV1::CryptoKey] + # @return [Google::Apis::CloudkmsV1::KeyRing] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_key_ring(name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKey + command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation + command.response_class = Google::Apis::CloudkmsV1::KeyRing command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update a CryptoKey. - # @param [String] name - # Output only. The resource name for this CryptoKey in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object - # @param [String] update_mask - # Required list of fields to be updated in this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::CryptoKey] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.request_object = crypto_key_object - command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKey - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -628,11 +304,11 @@ module Google # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -645,15 +321,339 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists CryptoKeys. + # @param [String] parent + # Required. The resource name of the KeyRing to list, in the format + # `projects/*/locations/*/keyRings/*`. + # @param [Fixnum] page_size + # Optional limit on the number of CryptoKeys to include in the + # response. Further CryptoKeys can subsequently be obtained by + # including the ListCryptoKeysResponse.next_page_token in a subsequent + # request. If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # Optional pagination token, returned earlier via + # ListCryptoKeysResponse.next_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::CloudkmsV1::ListCryptoKeysResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options) + command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse + command.params['parent'] = parent unless parent.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 + + # Encrypts data, so that it can only be recovered by a call to Decrypt. + # @param [String] name + # Required. The resource name of the CryptoKey or CryptoKeyVersion + # to use for encryption. + # If a CryptoKey is specified, the server will use its + # primary version. + # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_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::CloudkmsV1::EncryptResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::EncryptResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def encrypt_crypto_key(name, encrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:encrypt', options) + command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation + command.request_object = encrypt_request_object + command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::EncryptResponse + 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 + + # Create a new CryptoKey within a KeyRing. + # CryptoKey.purpose is required. + # @param [String] parent + # Required. The name of the KeyRing associated with the + # CryptoKeys. + # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object + # @param [String] crypto_key_id + # Required. It must be unique within a KeyRing and match the regular + # expression `[a-zA-Z0-9_-]`1,63`` + # @param [String] quota_user + # Available 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::CloudkmsV1::CryptoKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options) + command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.request_object = crypto_key_object + command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKey + command.params['parent'] = parent unless parent.nil? + command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_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::CloudkmsV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation + command.response_class = Google::Apis::CloudkmsV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Update the version of a CryptoKey that will be used in Encrypt + # @param [String] name + # The resource name of the CryptoKey to update. + # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_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::CloudkmsV1::CryptoKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options) + command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation + command.request_object = update_crypto_key_primary_version_request_object + command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKey + 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 + + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [String] quota_user + # Available 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::CloudkmsV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_key_ring_crypto_key_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation + command.response_class = Google::Apis::CloudkmsV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Update a CryptoKey. + # @param [String] name + # Output only. The resource name for this CryptoKey in the format + # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object + # @param [String] update_mask + # Required list of fields to be updated in this request. + # @param [String] quota_user + # Available 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::CloudkmsV1::CryptoKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.request_object = crypto_key_object + command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKey + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns metadata for a given CryptoKey, as well as its + # primary CryptoKeyVersion. + # @param [String] name + # The name of the CryptoKey to get. + # @param [String] quota_user + # Available 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::CloudkmsV1::CryptoKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKey + 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 + + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_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::CloudkmsV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -662,11 +662,11 @@ module Google # Required. The resource name of the CryptoKey to use for decryption. # The server will choose the appropriate version. # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -679,87 +679,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def decrypt_crypto_key(name, decrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:decrypt', options) command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation command.request_object = decrypt_request_object command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation command.response_class = Google::Apis::CloudkmsV1::DecryptResponse command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update a CryptoKeyVersion's metadata. - # state may be changed between - # ENABLED and - # DISABLED using this - # method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to - # move between other states. - # @param [String] name - # Output only. The resource name for this CryptoKeyVersion in the format - # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. - # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object - # @param [String] update_mask - # Required list of fields to be updated in this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation - command.request_object = crypto_key_version_object - command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns metadata for a given CryptoKeyVersion. - # @param [String] name - # The name of the CryptoKeyVersion to get. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation - command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -767,20 +695,20 @@ module Google # @param [String] parent # Required. The resource name of the CryptoKey to list, in the format # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # @param [String] page_token + # Optional pagination token, returned earlier via + # ListCryptoKeyVersionsResponse.next_page_token. # @param [Fixnum] page_size # Optional limit on the number of CryptoKeyVersions to # include in the response. Further CryptoKeyVersions can # subsequently be obtained by including the # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. # If unspecified, the server will pick an appropriate default. - # @param [String] page_token - # Optional pagination token, returned earlier via - # ListCryptoKeyVersionsResponse.next_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -793,15 +721,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options) command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse command.params['parent'] = parent unless parent.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['pageSize'] = page_size unless page_size.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -813,11 +741,11 @@ module Google # Required. The name of the CryptoKey associated with # the CryptoKeyVersions. # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -830,15 +758,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options) command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation command.request_object = crypto_key_version_object command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -855,11 +783,11 @@ module Google # @param [String] name # The resource name of the CryptoKeyVersion to destroy. # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -872,15 +800,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:destroy', options) command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation command.request_object = destroy_crypto_key_version_request_object command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -893,11 +821,11 @@ module Google # @param [String] name # The resource name of the CryptoKeyVersion to restore. # @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -910,15 +838,87 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:restore', options) command.request_representation = Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest::Representation command.request_object = restore_crypto_key_version_request_object command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns metadata for a given CryptoKeyVersion. + # @param [String] name + # The name of the CryptoKeyVersion to get. + # @param [String] quota_user + # Available 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::CloudkmsV1::CryptoKeyVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_key_ring_crypto_key_crypto_key_version(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion + 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 + + # Update a CryptoKeyVersion's metadata. + # state may be changed between + # ENABLED and + # DISABLED using this + # method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to + # move between other states. + # @param [String] name + # Output only. The resource name for this CryptoKeyVersion in the format + # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object + # @param [String] update_mask + # Required list of fields to be updated in this request. + # @param [String] quota_user + # Available 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::CloudkmsV1::CryptoKeyVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + command.request_object = crypto_key_version_object + command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 90e85e72b..5039bf887 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20170607' + REVISION = '20170705' # View your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index ba58fc943..6e1c6bfeb 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -22,1038 +22,6 @@ module Google module Apis module CloudresourcemanagerV1 - # The request sent to the GetEffectiveOrgPolicy method. - class GetEffectiveOrgPolicyRequest - include Google::Apis::Core::Hashable - - # The name of the `Constraint` to compute the effective `Policy`. - # Corresponds to the JSON property `constraint` - # @return [String] - attr_accessor :constraint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @constraint = args[:constraint] if args.key?(:constraint) - end - end - - # The request sent to the ListOrgPolicies method. - class ListOrgPoliciesRequest - include Google::Apis::Core::Hashable - - # Page token used to retrieve the next page. This is currently unsupported - # and will be ignored. The server may at any point start using this field. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # Size of the pages to be returned. This is currently unsupported and will - # be ignored. The server may at any point start using this field to limit - # page size. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @page_token = args[:page_token] if args.key?(:page_token) - @page_size = args[:page_size] if args.key?(:page_size) - end - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices" - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:foo@gmail.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE", - # `, - # ` - # "log_type": "ADMIN_READ", - # ` - # ] - # `, - # ` - # "service": "fooservice.googleapis.com" - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:bar@gmail.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and - # bar@gmail.com from DATA_WRITE logging. - class AuditConfig - include Google::Apis::Core::Hashable - - # The configuration for logging of each type of permission. - # Next ID: 4 - # Corresponds to the JSON property `auditLogConfigs` - # @return [Array] - attr_accessor :audit_log_configs - - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # 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) - @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @service = args[:service] if args.key?(:service) - 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 - - # 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 - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # 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` that 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. - # - 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::CloudresourcemanagerV1::Status] - attr_accessor :error - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @response = args[:response] if args.key?(:response) - @name = args[:name] if args.key?(:name) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - end - end - - # The response message for Liens.ListLiens. - class ListLiensResponse - include Google::Apis::Core::Hashable - - # Token to retrieve the next page of results, or empty if there are no more - # results in the list. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A list of Liens. - # Corresponds to the JSON property `liens` - # @return [Array] - attr_accessor :liens - - 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) - @liens = args[:liens] if args.key?(:liens) - end - end - - # A `Constraint` describes a way in which a resource's configuration can be - # restricted. For example, it controls which cloud services can be activated - # across an organization, or whether a Compute Engine instance can have - # serial port connections established. `Constraints` can be configured by the - # organization's policy adminstrator to fit the needs of the organzation by - # setting Policies for `Constraints` at different locations in the - # organization's resource hierarchy. Policies are inherited down the resource - # hierarchy from higher levels, but can also be overridden. For details about - # the inheritance rules please read about - # Policies. - # `Constraints` have a default behavior determined by the `constraint_default` - # field, which is the enforcement behavior that is used in the absence of a - # `Policy` being defined or inherited for the resource in question. - class Constraint - include Google::Apis::Core::Hashable - - # Version of the `Constraint`. Default version is 0; - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # A `Constraint` that allows or disallows a list of string values, which are - # configured by an Organization's policy administrator with a `Policy`. - # Corresponds to the JSON property `listConstraint` - # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint] - attr_accessor :list_constraint - - # The human readable name. - # Mutable. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Detailed description of what this `Constraint` controls as well as how and - # where it is enforced. - # Mutable. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # A `Constraint` that is either enforced or not. - # For example a constraint `constraints/compute.disableSerialPortAccess`. - # If it is enforced on a VM instance, serial port connections will not be - # opened to that instance. - # Corresponds to the JSON property `booleanConstraint` - # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint] - attr_accessor :boolean_constraint - - # The evaluation behavior of this constraint in the absense of 'Policy'. - # Corresponds to the JSON property `constraintDefault` - # @return [String] - attr_accessor :constraint_default - - # Immutable value, required to globally be unique. For example, - # `constraints/serviceuser.services` - # 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) - @version = args[:version] if args.key?(:version) - @list_constraint = args[:list_constraint] if args.key?(:list_constraint) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint) - @constraint_default = args[:constraint_default] if args.key?(:constraint_default) - @name = args[:name] if args.key?(:name) - 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` that 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. - # - 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @details = args[:details] if args.key?(:details) - @code = args[:code] if args.key?(:code) - @message = args[:message] if args.key?(:message) - end - end - - # Associates `members` with a `role`. - class Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` or `joe@example.com`. - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # The request sent to the GetOrgPolicy method. - class GetOrgPolicyRequest - include Google::Apis::Core::Hashable - - # Name of the `Constraint` to get the `Policy`. - # Corresponds to the JSON property `constraint` - # @return [String] - attr_accessor :constraint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @constraint = args[:constraint] if args.key?(:constraint) - end - end - - # Ignores policies set above this resource and restores the - # `constraint_default` enforcement behavior of the specific `Constraint` at - # this resource. - # Suppose that `constraint_default` is set to `ALLOW` for the - # `Constraint` `constraints/serviceuser.services`. Suppose that organization - # foo.com sets a `Policy` at their Organization resource node that restricts - # the allowed service activations to deny all service activations. They - # could then set a `Policy` with the `policy_type` `restore_default` on - # several experimental projects, restoring the `constraint_default` - # enforcement of the `Constraint` for only those projects, allowing those - # projects to have all services activated. - class RestoreDefault - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # The request sent to the ClearOrgPolicy method. - class ClearOrgPolicyRequest - include Google::Apis::Core::Hashable - - # The current version, for concurrency control. Not sending an `etag` - # will cause the `Policy` to be cleared blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # Name of the `Constraint` of the `Policy` to clear. - # Corresponds to the JSON property `constraint` - # @return [String] - attr_accessor :constraint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @constraint = args[:constraint] if args.key?(:constraint) - end - end - - # The request sent to the UndeleteProject - # method. - class UndeleteProjectRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A status object which is used as the `metadata` field for the Operation - # returned by CreateProject. It provides insight for when significant phases of - # Project creation have completed. - class ProjectCreationStatus - include Google::Apis::Core::Hashable - - # True if the project creation process is complete. - # Corresponds to the JSON property `ready` - # @return [Boolean] - attr_accessor :ready - alias_method :ready?, :ready - - # Creation time of the project creation workflow. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # True if the project can be retrieved using GetProject. No other operations - # on the project are guaranteed to work until the project creation is - # complete. - # Corresponds to the JSON property `gettable` - # @return [Boolean] - attr_accessor :gettable - alias_method :gettable?, :gettable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ready = args[:ready] if args.key?(:ready) - @create_time = args[:create_time] if args.key?(:create_time) - @gettable = args[:gettable] if args.key?(:gettable) - end - end - - # A `Constraint` that is either enforced or not. - # For example a constraint `constraints/compute.disableSerialPortAccess`. - # If it is enforced on a VM instance, serial port connections will not be - # opened to that instance. - class BooleanConstraint - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Response message for `TestIamPermissions` method. - class TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Request message for `GetIamPolicy` method. - class GetIamPolicyRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # The entity that owns an Organization. The lifetime of the Organization and - # all of its descendants are bound to the `OrganizationOwner`. If the - # `OrganizationOwner` is deleted, the Organization and all its descendants will - # be deleted. - class OrganizationOwner - include Google::Apis::Core::Hashable - - # The Google for Work customer id used in the Directory API. - # Corresponds to the JSON property `directoryCustomerId` - # @return [String] - attr_accessor :directory_customer_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id) - end - end - - # A page of the response received from the - # ListProjects - # method. - # A paginated response where more pages are available has - # `next_page_token` set. This token can be used in a subsequent request to - # retrieve the next request page. - class ListProjectsResponse - include Google::Apis::Core::Hashable - - # The list of Projects that matched the list filter. This list can - # be paginated. - # Corresponds to the JSON property `projects` - # @return [Array] - attr_accessor :projects - - # Pagination token. - # If the result set is too large to fit in a single response, this token - # is returned. It encodes the position of the current result cursor. - # Feeding this value into a new list request with the `page_token` parameter - # gives the next page of the results. - # When `next_page_token` is not filled in, there is no next page and - # the list returned is the last page in the result set. - # Pagination tokens have a limited lifetime. - # 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) - @projects = args[:projects] if args.key?(:projects) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A Project is a high-level Google Cloud Platform entity. It is a - # container for ACLs, APIs, App Engine Apps, VMs, and other - # Google Cloud Platform resources. - class Project - include Google::Apis::Core::Hashable - - # The number uniquely identifying the project. - # Example: 415104041262 - # Read-only. - # Corresponds to the JSON property `projectNumber` - # @return [Fixnum] - attr_accessor :project_number - - # A container to reference an id for any resource type. A `resource` in Google - # Cloud Platform is a generic term for something you (a developer) may want to - # interact with through one of our API's. Some examples are an App Engine app, - # a Compute Engine instance, a Cloud SQL database, and so on. - # Corresponds to the JSON property `parent` - # @return [Google::Apis::CloudresourcemanagerV1::ResourceId] - attr_accessor :parent - - # Creation time. - # Read-only. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The labels associated with this Project. - # Label keys must be between 1 and 63 characters long and must conform - # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. - # Label values must be between 0 and 63 characters long and must conform - # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. - # No more than 256 labels can be associated with a given resource. - # Clients should store labels in a representation such as JSON that does not - # depend on specific characters being disallowed. - # Example: "environment" : "dev" - # Read-write. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The user-assigned display name of the Project. - # It must be 4 to 30 characters. - # Allowed characters are: lowercase and uppercase letters, numbers, - # hyphen, single-quote, double-quote, space, and exclamation point. - # Example: My Project - # Read-write. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The unique, user-assigned ID of the Project. - # It must be 6 to 30 lowercase letters, digits, or hyphens. - # It must start with a letter. - # Trailing hyphens are prohibited. - # Example: tokyo-rain-123 - # Read-only after creation. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # The Project lifecycle state. - # Read-only. - # Corresponds to the JSON property `lifecycleState` - # @return [String] - attr_accessor :lifecycle_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @project_number = args[:project_number] if args.key?(:project_number) - @parent = args[:parent] if args.key?(:parent) - @create_time = args[:create_time] if args.key?(:create_time) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @project_id = args[:project_id] if args.key?(:project_id) - @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) - end - end - - # The response returned from the `SearchOrganizations` method. - class SearchOrganizationsResponse - include Google::Apis::Core::Hashable - - # A pagination token to be used to retrieve the next page of results. If the - # result is too large to fit within the page size specified in the request, - # this field will be set with a token that can be used to fetch the next page - # of results. If this field is empty, it indicates that this response - # contains the last page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of Organizations that matched the search query, possibly - # paginated. - # Corresponds to the JSON property `organizations` - # @return [Array] - attr_accessor :organizations - - 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) - @organizations = args[:organizations] if args.key?(:organizations) - end - end - - # The response returned from the ListOrgPolicies method. It will be empty - # if no `Policies` are set on the resource. - class ListOrgPoliciesResponse - include Google::Apis::Core::Hashable - - # The `Policies` that are set on the resource. It will be empty if no - # `Policies` are set. - # Corresponds to the JSON property `policies` - # @return [Array] - attr_accessor :policies - - # Page token used to retrieve the next page. This is currently not used, but - # the server may at any point start supplying a valid 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) - @policies = args[:policies] if args.key?(:policies) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A classification of the Folder Operation error. - class FolderOperationError - include Google::Apis::Core::Hashable - - # The type of operation error experienced. - # Corresponds to the JSON property `errorMessageId` - # @return [String] - attr_accessor :error_message_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error_message_id = args[:error_message_id] if args.key?(:error_message_id) - end - end - - # Defines a Cloud Organization `Policy` which is used to specify `Constraints` - # for configurations of Cloud Platform resources. - class OrgPolicy - include Google::Apis::Core::Hashable - - # Version of the `Policy`. Default version is 0; - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # Ignores policies set above this resource and restores the - # `constraint_default` enforcement behavior of the specific `Constraint` at - # this resource. - # Suppose that `constraint_default` is set to `ALLOW` for the - # `Constraint` `constraints/serviceuser.services`. Suppose that organization - # foo.com sets a `Policy` at their Organization resource node that restricts - # the allowed service activations to deny all service activations. They - # could then set a `Policy` with the `policy_type` `restore_default` on - # several experimental projects, restoring the `constraint_default` - # enforcement of the `Constraint` for only those projects, allowing those - # projects to have all services activated. - # Corresponds to the JSON property `restoreDefault` - # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault] - attr_accessor :restore_default - - # Used in `policy_type` to specify how `list_policy` behaves at this - # resource. - # A `ListPolicy` can define specific values that are allowed or denied by - # setting either the `allowed_values` or `denied_values` fields. It can also - # be used to allow or deny all values, by setting the `all_values` field. If - # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values` - # or `denied_values` must be set (attempting to set both or neither will - # result in a failed request). If `all_values` is set to either `ALLOW` or - # `DENY`, `allowed_values` and `denied_values` must be unset. - # Corresponds to the JSON property `listPolicy` - # @return [Google::Apis::CloudresourcemanagerV1::ListPolicy] - attr_accessor :list_policy - - # An opaque tag indicating the current version of the `Policy`, used for - # concurrency control. - # When the `Policy` is returned from either a `GetPolicy` or a - # `ListOrgPolicy` request, this `etag` indicates the version of the current - # `Policy` to use when executing a read-modify-write loop. - # When the `Policy` is returned from a `GetEffectivePolicy` request, the - # `etag` will be unset. - # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value - # that was returned from a `GetOrgPolicy` request as part of a - # read-modify-write loop for concurrency control. Not setting the `etag`in a - # `SetOrgPolicy` request will result in an unconditional write of the - # `Policy`. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # The name of the `Constraint` the `Policy` is configuring, for example, - # `constraints/serviceuser.services`. - # Immutable after creation. - # Corresponds to the JSON property `constraint` - # @return [String] - attr_accessor :constraint - - # Used in `policy_type` to specify how `boolean_policy` will behave at this - # resource. - # Corresponds to the JSON property `booleanPolicy` - # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy] - attr_accessor :boolean_policy - - # The time stamp the `Policy` was previously updated. This is set by the - # server, not specified by the caller, and represents the last time a call to - # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will - # be ignored. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @version = args[:version] if args.key?(:version) - @restore_default = args[:restore_default] if args.key?(:restore_default) - @list_policy = args[:list_policy] if args.key?(:list_policy) - @etag = args[:etag] if args.key?(:etag) - @constraint = args[:constraint] if args.key?(:constraint) - @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # Used in `policy_type` to specify how `boolean_policy` will behave at this - # resource. - class BooleanPolicy - include Google::Apis::Core::Hashable - - # If `true`, then the `Policy` is enforced. If `false`, then any - # configuration is acceptable. - # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` - # with `constraint_default` set to `ALLOW`. A `Policy` for that - # `Constraint` exhibits the following behavior: - # - If the `Policy` at this resource has enforced set to `false`, serial - # port connection attempts will be allowed. - # - If the `Policy` at this resource has enforced set to `true`, serial - # port connection attempts will be refused. - # - If the `Policy` at this resource is `RestoreDefault`, serial port - # connection attempts will be allowed. - # - If no `Policy` is set at this resource or anywhere higher in the - # resource hierarchy, serial port connection attempts will be allowed. - # - If no `Policy` is set at this resource, but one exists higher in the - # resource hierarchy, the behavior is as if the`Policy` were set at - # this resource. - # The following examples demonstrate the different possible layerings: - # Example 1 (nearest `Constraint` wins): - # `organizations/foo` has a `Policy` with: - # `enforced: false` - # `projects/bar` has no `Policy` set. - # The constraint at `projects/bar` and `organizations/foo` will not be - # enforced. - # Example 2 (enforcement gets replaced): - # `organizations/foo` has a `Policy` with: - # `enforced: false` - # `projects/bar` has a `Policy` with: - # `enforced: true` - # The constraint at `organizations/foo` is not enforced. - # The constraint at `projects/bar` is enforced. - # Example 3 (RestoreDefault): - # `organizations/foo` has a `Policy` with: - # `enforced: true` - # `projects/bar` has a `Policy` with: - # `RestoreDefault: ``` - # The constraint at `organizations/foo` is enforced. - # The constraint at `projects/bar` is not enforced, because - # `constraint_default` for the `Constraint` is `ALLOW`. - # Corresponds to the JSON property `enforced` - # @return [Boolean] - attr_accessor :enforced - alias_method :enforced?, :enforced - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @enforced = args[:enforced] if args.key?(:enforced) - end - end - - # A Lien represents an encumbrance on the actions that can be performed on a - # resource. - class Lien - include Google::Apis::Core::Hashable - - # A reference to the resource this Lien is attached to. The server will - # validate the parent against those for which Liens are supported. - # Example: `projects/1234` - # Corresponds to the JSON property `parent` - # @return [String] - attr_accessor :parent - - # The creation time of this Lien. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # A stable, user-visible/meaningful string identifying the origin of the - # Lien, intended to be inspected programmatically. Maximum length of 200 - # characters. - # Example: 'compute.googleapis.com' - # Corresponds to the JSON property `origin` - # @return [String] - attr_accessor :origin - - # A system-generated unique identifier for this Lien. - # Example: `liens/1234abcd` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Concise user-visible strings indicating why an action cannot be performed - # on a resource. Maximum lenth of 200 characters. - # Example: 'Holds production API key' - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - # The types of operations which should be blocked as a result of this Lien. - # Each value should correspond to an IAM permission. The server will - # validate the permissions against those for which Liens are supported. - # An empty list is meaningless and will be rejected. - # Example: ['resourcemanager.projects.delete'] - # Corresponds to the JSON property `restrictions` - # @return [Array] - attr_accessor :restrictions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @parent = args[:parent] if args.key?(:parent) - @create_time = args[:create_time] if args.key?(:create_time) - @origin = args[:origin] if args.key?(:origin) - @name = args[:name] if args.key?(:name) - @reason = args[:reason] if args.key?(:reason) - @restrictions = args[:restrictions] if args.key?(:restrictions) - end - end - # Identifying information for a single ancestor of a project. class Ancestor include Google::Apis::Core::Hashable @@ -1195,11 +163,11 @@ module Google class Organization include Google::Apis::Core::Hashable - # Timestamp when the Organization was created. Assigned by the server. + # The organization's current lifecycle state. Assigned by the server. # @OutputOnly - # Corresponds to the JSON property `creationTime` + # Corresponds to the JSON property `lifecycleState` # @return [String] - attr_accessor :creation_time + attr_accessor :lifecycle_state # The entity that owns an Organization. The lifetime of the Organization and # all of its descendants are bound to the `OrganizationOwner`. If the @@ -1209,12 +177,6 @@ module Google # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner] attr_accessor :owner - # The organization's current lifecycle state. Assigned by the server. - # @OutputOnly - # Corresponds to the JSON property `lifecycleState` - # @return [String] - attr_accessor :lifecycle_state - # Output Only. The resource name of the organization. This is the # organization's relative path in the API. Its format is # "organizations/[organization_id]". For example, "organizations/1234". @@ -1230,17 +192,23 @@ module Google # @return [String] attr_accessor :display_name + # Timestamp when the Organization was created. Assigned by the server. + # @OutputOnly + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @owner = args[:owner] if args.key?(:owner) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @owner = args[:owner] if args.key?(:owner) @name = args[:name] if args.key?(:name) @display_name = args[:display_name] if args.key?(:display_name) + @creation_time = args[:creation_time] if args.key?(:creation_time) end end @@ -1284,26 +252,6 @@ module Google class ListPolicy include Google::Apis::Core::Hashable - # The policy all_values state. - # Corresponds to the JSON property `allValues` - # @return [String] - attr_accessor :all_values - - # List of values allowed at this resource. Can only be set if no values - # are set for `denied_values` and `all_values` is set to - # `ALL_VALUES_UNSPECIFIED`. - # Corresponds to the JSON property `allowedValues` - # @return [Array] - attr_accessor :allowed_values - - # Optional. The Google Cloud Console will try to default to a configuration - # that matches the value specified in this `Policy`. If `suggested_value` - # is not set, it will inherit the value specified higher in the hierarchy, - # unless `inherit_from_parent` is `false`. - # Corresponds to the JSON property `suggestedValue` - # @return [String] - attr_accessor :suggested_value - # Determines the inheritance behavior for this `Policy`. # By default, a `ListPolicy` set at a resource supercedes any `Policy` set # anywhere up the resource hierarchy. However, if `inherit_from_parent` is @@ -1380,6 +328,14 @@ module Google attr_accessor :inherit_from_parent alias_method :inherit_from_parent?, :inherit_from_parent + # Optional. The Google Cloud Console will try to default to a configuration + # that matches the value specified in this `Policy`. If `suggested_value` + # is not set, it will inherit the value specified higher in the hierarchy, + # unless `inherit_from_parent` is `false`. + # Corresponds to the JSON property `suggestedValue` + # @return [String] + attr_accessor :suggested_value + # List of values denied at this resource. Can only be set if no values are # set for `allowed_values` and `all_values` is set to # `ALL_VALUES_UNSPECIFIED`. @@ -1387,17 +343,29 @@ module Google # @return [Array] attr_accessor :denied_values + # The policy all_values state. + # Corresponds to the JSON property `allValues` + # @return [String] + attr_accessor :all_values + + # List of values allowed at this resource. Can only be set if no values + # are set for `denied_values` and `all_values` is set to + # `ALL_VALUES_UNSPECIFIED`. + # Corresponds to the JSON property `allowedValues` + # @return [Array] + attr_accessor :allowed_values + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent) + @suggested_value = args[:suggested_value] if args.key?(:suggested_value) + @denied_values = args[:denied_values] if args.key?(:denied_values) @all_values = args[:all_values] if args.key?(:all_values) @allowed_values = args[:allowed_values] if args.key?(:allowed_values) - @suggested_value = args[:suggested_value] if args.key?(:suggested_value) - @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent) - @denied_values = args[:denied_values] if args.key?(:denied_values) end end @@ -1442,6 +410,11 @@ module Google class AuditLogConfig include Google::Apis::Core::Hashable + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + # Specifies the identities that do not cause logging for this type of # permission. # Follows the same format of Binding.members. @@ -1449,19 +422,14 @@ module Google # @return [Array] attr_accessor :exempted_members - # The log type that this config enables. - # Corresponds to the JSON property `logType` - # @return [String] - attr_accessor :log_type - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @log_type = args[:log_type] if args.key?(:log_type) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) end end @@ -1545,31 +513,23 @@ module Google end end - # Metadata describing a long running folder operation - class FolderOperation + # The request sent to the [ListAvailableOrgPolicyConstraints] + # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method. + class ListAvailableOrgPolicyConstraintsRequest include Google::Apis::Core::Hashable - # The type of this operation. - # Corresponds to the JSON property `operationType` + # Page token used to retrieve the next page. This is currently unsupported + # and will be ignored. The server may at any point start using this field. + # Corresponds to the JSON property `pageToken` # @return [String] - attr_accessor :operation_type + attr_accessor :page_token - # The display name of the folder. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The resource name of the folder's parent. - # Only applicable when the operation_type is MOVE. - # Corresponds to the JSON property `sourceParent` - # @return [String] - attr_accessor :source_parent - - # The resource name of the folder or organization we are either creating - # the folder under or moving the folder to. - # Corresponds to the JSON property `destinationParent` - # @return [String] - attr_accessor :destination_parent + # Size of the pages to be returned. This is currently unsupported and will + # be ignored. The server may at any point start using this field to limit + # page size. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size def initialize(**args) update!(**args) @@ -1577,10 +537,8 @@ module Google # Update properties of this object def update!(**args) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @display_name = args[:display_name] if args.key?(:display_name) - @source_parent = args[:source_parent] if args.key?(:source_parent) - @destination_parent = args[:destination_parent] if args.key?(:destination_parent) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -1613,20 +571,6 @@ module Google class Policy include Google::Apis::Core::Hashable - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - # Version of the `Policy`. The default version is 0. # Corresponds to the JSON property `version` # @return [Fixnum] @@ -1643,36 +587,58 @@ module Google # @return [Array] attr_accessor :bindings + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @etag = args[:etag] if args.key?(:etag) @version = args[:version] if args.key?(:version) @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) end end - # The request sent to the [ListAvailableOrgPolicyConstraints] - # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method. - class ListAvailableOrgPolicyConstraintsRequest + # Metadata describing a long running folder operation + class FolderOperation include Google::Apis::Core::Hashable - # Page token used to retrieve the next page. This is currently unsupported - # and will be ignored. The server may at any point start using this field. - # Corresponds to the JSON property `pageToken` + # The type of this operation. + # Corresponds to the JSON property `operationType` # @return [String] - attr_accessor :page_token + attr_accessor :operation_type - # Size of the pages to be returned. This is currently unsupported and will - # be ignored. The server may at any point start using this field to limit - # page size. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size + # The resource name of the folder's parent. + # Only applicable when the operation_type is MOVE. + # Corresponds to the JSON property `sourceParent` + # @return [String] + attr_accessor :source_parent + + # The display name of the folder. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the folder or organization we are either creating + # the folder under or moving the folder to. + # Corresponds to the JSON property `destinationParent` + # @return [String] + attr_accessor :destination_parent def initialize(**args) update!(**args) @@ -1680,8 +646,10 @@ module Google # Update properties of this object def update!(**args) - @page_token = args[:page_token] if args.key?(:page_token) - @page_size = args[:page_size] if args.key?(:page_size) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @source_parent = args[:source_parent] if args.key?(:source_parent) + @display_name = args[:display_name] if args.key?(:display_name) + @destination_parent = args[:destination_parent] if args.key?(:destination_parent) end end @@ -1714,6 +682,1038 @@ module Google @id = args[:id] if args.key?(:id) end end + + # The request sent to the GetEffectiveOrgPolicy method. + class GetEffectiveOrgPolicyRequest + include Google::Apis::Core::Hashable + + # The name of the `Constraint` to compute the effective `Policy`. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @constraint = args[:constraint] if args.key?(:constraint) + end + end + + # The request sent to the ListOrgPolicies method. + class ListOrgPoliciesRequest + include Google::Apis::Core::Hashable + + # Page token used to retrieve the next page. This is currently unsupported + # and will be ignored. The server may at any point start using this field. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Size of the pages to be returned. This is currently unsupported and will + # be ignored. The server may at any point start using this field to limit + # page size. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) + end + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # The configuration for logging of each type of permission. + # Next ID: 4 + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service = args[:service] if args.key?(:service) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + 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 + + # 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 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 + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # 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` that 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. + # - 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::CloudresourcemanagerV1::Status] + attr_accessor :error + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @response = args[:response] if args.key?(:response) + @name = args[:name] if args.key?(:name) + @error = args[:error] if args.key?(:error) + end + end + + # A `Constraint` describes a way in which a resource's configuration can be + # restricted. For example, it controls which cloud services can be activated + # across an organization, or whether a Compute Engine instance can have + # serial port connections established. `Constraints` can be configured by the + # organization's policy adminstrator to fit the needs of the organzation by + # setting Policies for `Constraints` at different locations in the + # organization's resource hierarchy. Policies are inherited down the resource + # hierarchy from higher levels, but can also be overridden. For details about + # the inheritance rules please read about + # Policies. + # `Constraints` have a default behavior determined by the `constraint_default` + # field, which is the enforcement behavior that is used in the absence of a + # `Policy` being defined or inherited for the resource in question. + class Constraint + include Google::Apis::Core::Hashable + + # A `Constraint` that allows or disallows a list of string values, which are + # configured by an Organization's policy administrator with a `Policy`. + # Corresponds to the JSON property `listConstraint` + # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint] + attr_accessor :list_constraint + + # Version of the `Constraint`. Default version is 0; + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # The human readable name. + # Mutable. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Detailed description of what this `Constraint` controls as well as how and + # where it is enforced. + # Mutable. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A `Constraint` that is either enforced or not. + # For example a constraint `constraints/compute.disableSerialPortAccess`. + # If it is enforced on a VM instance, serial port connections will not be + # opened to that instance. + # Corresponds to the JSON property `booleanConstraint` + # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint] + attr_accessor :boolean_constraint + + # The evaluation behavior of this constraint in the absense of 'Policy'. + # Corresponds to the JSON property `constraintDefault` + # @return [String] + attr_accessor :constraint_default + + # Immutable value, required to globally be unique. For example, + # `constraints/serviceuser.services` + # 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) + @list_constraint = args[:list_constraint] if args.key?(:list_constraint) + @version = args[:version] if args.key?(:version) + @display_name = args[:display_name] if args.key?(:display_name) + @description = args[:description] if args.key?(:description) + @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint) + @constraint_default = args[:constraint_default] if args.key?(:constraint_default) + @name = args[:name] if args.key?(:name) + end + end + + # The response message for Liens.ListLiens. + class ListLiensResponse + include Google::Apis::Core::Hashable + + # A list of Liens. + # Corresponds to the JSON property `liens` + # @return [Array] + attr_accessor :liens + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # 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) + @liens = args[:liens] if args.key?(:liens) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + 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` that 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. + # - 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 + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` or `joe@example.com`. + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + class RestoreDefault + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The request sent to the GetOrgPolicy method. + class GetOrgPolicyRequest + include Google::Apis::Core::Hashable + + # Name of the `Constraint` to get the `Policy`. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @constraint = args[:constraint] if args.key?(:constraint) + end + end + + # The request sent to the ClearOrgPolicy method. + class ClearOrgPolicyRequest + include Google::Apis::Core::Hashable + + # The current version, for concurrency control. Not sending an `etag` + # will cause the `Policy` to be cleared blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Name of the `Constraint` of the `Policy` to clear. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @constraint = args[:constraint] if args.key?(:constraint) + end + end + + # The request sent to the UndeleteProject + # method. + class UndeleteProjectRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A status object which is used as the `metadata` field for the Operation + # returned by CreateProject. It provides insight for when significant phases of + # Project creation have completed. + class ProjectCreationStatus + include Google::Apis::Core::Hashable + + # True if the project creation process is complete. + # Corresponds to the JSON property `ready` + # @return [Boolean] + attr_accessor :ready + alias_method :ready?, :ready + + # True if the project can be retrieved using GetProject. No other operations + # on the project are guaranteed to work until the project creation is + # complete. + # Corresponds to the JSON property `gettable` + # @return [Boolean] + attr_accessor :gettable + alias_method :gettable?, :gettable + + # Creation time of the project creation workflow. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ready = args[:ready] if args.key?(:ready) + @gettable = args[:gettable] if args.key?(:gettable) + @create_time = args[:create_time] if args.key?(:create_time) + end + end + + # A `Constraint` that is either enforced or not. + # For example a constraint `constraints/compute.disableSerialPortAccess`. + # If it is enforced on a VM instance, serial port connections will not be + # opened to that instance. + class BooleanConstraint + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The entity that owns an Organization. The lifetime of the Organization and + # all of its descendants are bound to the `OrganizationOwner`. If the + # `OrganizationOwner` is deleted, the Organization and all its descendants will + # be deleted. + class OrganizationOwner + include Google::Apis::Core::Hashable + + # The Google for Work customer id used in the Directory API. + # Corresponds to the JSON property `directoryCustomerId` + # @return [String] + attr_accessor :directory_customer_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id) + end + end + + # A page of the response received from the + # ListProjects + # method. + # A paginated response where more pages are available has + # `next_page_token` set. This token can be used in a subsequent request to + # retrieve the next request page. + class ListProjectsResponse + include Google::Apis::Core::Hashable + + # Pagination token. + # If the result set is too large to fit in a single response, this token + # is returned. It encodes the position of the current result cursor. + # Feeding this value into a new list request with the `page_token` parameter + # gives the next page of the results. + # When `next_page_token` is not filled in, there is no next page and + # the list returned is the last page in the result set. + # Pagination tokens have a limited lifetime. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of Projects that matched the list filter. This list can + # be paginated. + # Corresponds to the JSON property `projects` + # @return [Array] + attr_accessor :projects + + 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) + @projects = args[:projects] if args.key?(:projects) + end + end + + # A Project is a high-level Google Cloud Platform entity. It is a + # container for ACLs, APIs, App Engine Apps, VMs, and other + # Google Cloud Platform resources. + class Project + include Google::Apis::Core::Hashable + + # The user-assigned display name of the Project. + # It must be 4 to 30 characters. + # Allowed characters are: lowercase and uppercase letters, numbers, + # hyphen, single-quote, double-quote, space, and exclamation point. + # Example: My Project + # Read-write. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The unique, user-assigned ID of the Project. + # It must be 6 to 30 lowercase letters, digits, or hyphens. + # It must start with a letter. + # Trailing hyphens are prohibited. + # Example: tokyo-rain-123 + # Read-only after creation. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The Project lifecycle state. + # Read-only. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # The number uniquely identifying the project. + # Example: 415104041262 + # Read-only. + # Corresponds to the JSON property `projectNumber` + # @return [Fixnum] + attr_accessor :project_number + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an App Engine app, + # a Compute Engine instance, a Cloud SQL database, and so on. + # Corresponds to the JSON property `parent` + # @return [Google::Apis::CloudresourcemanagerV1::ResourceId] + attr_accessor :parent + + # The labels associated with this Project. + # Label keys must be between 1 and 63 characters long and must conform + # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + # Label values must be between 0 and 63 characters long and must conform + # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + # No more than 256 labels can be associated with a given resource. + # Clients should store labels in a representation such as JSON that does not + # depend on specific characters being disallowed. + # Example: "environment" : "dev" + # Read-write. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Creation time. + # Read-only. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @project_number = args[:project_number] if args.key?(:project_number) + @parent = args[:parent] if args.key?(:parent) + @labels = args[:labels] if args.key?(:labels) + @create_time = args[:create_time] if args.key?(:create_time) + end + end + + # The response returned from the ListOrgPolicies method. It will be empty + # if no `Policies` are set on the resource. + class ListOrgPoliciesResponse + include Google::Apis::Core::Hashable + + # The `Policies` that are set on the resource. It will be empty if no + # `Policies` are set. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + # Page token used to retrieve the next page. This is currently not used, but + # the server may at any point start supplying a valid 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) + @policies = args[:policies] if args.key?(:policies) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response returned from the `SearchOrganizations` method. + class SearchOrganizationsResponse + include Google::Apis::Core::Hashable + + # A pagination token to be used to retrieve the next page of results. If the + # result is too large to fit within the page size specified in the request, + # this field will be set with a token that can be used to fetch the next page + # of results. If this field is empty, it indicates that this response + # contains the last page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of Organizations that matched the search query, possibly + # paginated. + # Corresponds to the JSON property `organizations` + # @return [Array] + attr_accessor :organizations + + 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) + @organizations = args[:organizations] if args.key?(:organizations) + end + end + + # A classification of the Folder Operation error. + class FolderOperationError + include Google::Apis::Core::Hashable + + # The type of operation error experienced. + # Corresponds to the JSON property `errorMessageId` + # @return [String] + attr_accessor :error_message_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_message_id = args[:error_message_id] if args.key?(:error_message_id) + end + end + + # Defines a Cloud Organization `Policy` which is used to specify `Constraints` + # for configurations of Cloud Platform resources. + class OrgPolicy + include Google::Apis::Core::Hashable + + # The time stamp the `Policy` was previously updated. This is set by the + # server, not specified by the caller, and represents the last time a call to + # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will + # be ignored. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Version of the `Policy`. Default version is 0; + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + # Corresponds to the JSON property `restoreDefault` + # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault] + attr_accessor :restore_default + + # Used in `policy_type` to specify how `list_policy` behaves at this + # resource. + # A `ListPolicy` can define specific values that are allowed or denied by + # setting either the `allowed_values` or `denied_values` fields. It can also + # be used to allow or deny all values, by setting the `all_values` field. If + # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values` + # or `denied_values` must be set (attempting to set both or neither will + # result in a failed request). If `all_values` is set to either `ALLOW` or + # `DENY`, `allowed_values` and `denied_values` must be unset. + # Corresponds to the JSON property `listPolicy` + # @return [Google::Apis::CloudresourcemanagerV1::ListPolicy] + attr_accessor :list_policy + + # An opaque tag indicating the current version of the `Policy`, used for + # concurrency control. + # When the `Policy` is returned from either a `GetPolicy` or a + # `ListOrgPolicy` request, this `etag` indicates the version of the current + # `Policy` to use when executing a read-modify-write loop. + # When the `Policy` is returned from a `GetEffectivePolicy` request, the + # `etag` will be unset. + # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value + # that was returned from a `GetOrgPolicy` request as part of a + # read-modify-write loop for concurrency control. Not setting the `etag`in a + # `SetOrgPolicy` request will result in an unconditional write of the + # `Policy`. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # The name of the `Constraint` the `Policy` is configuring, for example, + # `constraints/serviceuser.services`. + # Immutable after creation. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + # Corresponds to the JSON property `booleanPolicy` + # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy] + attr_accessor :boolean_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_time = args[:update_time] if args.key?(:update_time) + @version = args[:version] if args.key?(:version) + @restore_default = args[:restore_default] if args.key?(:restore_default) + @list_policy = args[:list_policy] if args.key?(:list_policy) + @etag = args[:etag] if args.key?(:etag) + @constraint = args[:constraint] if args.key?(:constraint) + @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) + end + end + + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + class BooleanPolicy + include Google::Apis::Core::Hashable + + # If `true`, then the `Policy` is enforced. If `false`, then any + # configuration is acceptable. + # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` + # with `constraint_default` set to `ALLOW`. A `Policy` for that + # `Constraint` exhibits the following behavior: + # - If the `Policy` at this resource has enforced set to `false`, serial + # port connection attempts will be allowed. + # - If the `Policy` at this resource has enforced set to `true`, serial + # port connection attempts will be refused. + # - If the `Policy` at this resource is `RestoreDefault`, serial port + # connection attempts will be allowed. + # - If no `Policy` is set at this resource or anywhere higher in the + # resource hierarchy, serial port connection attempts will be allowed. + # - If no `Policy` is set at this resource, but one exists higher in the + # resource hierarchy, the behavior is as if the`Policy` were set at + # this resource. + # The following examples demonstrate the different possible layerings: + # Example 1 (nearest `Constraint` wins): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has no `Policy` set. + # The constraint at `projects/bar` and `organizations/foo` will not be + # enforced. + # Example 2 (enforcement gets replaced): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has a `Policy` with: + # `enforced: true` + # The constraint at `organizations/foo` is not enforced. + # The constraint at `projects/bar` is enforced. + # Example 3 (RestoreDefault): + # `organizations/foo` has a `Policy` with: + # `enforced: true` + # `projects/bar` has a `Policy` with: + # `RestoreDefault: ``` + # The constraint at `organizations/foo` is enforced. + # The constraint at `projects/bar` is not enforced, because + # `constraint_default` for the `Constraint` is `ALLOW`. + # Corresponds to the JSON property `enforced` + # @return [Boolean] + attr_accessor :enforced + alias_method :enforced?, :enforced + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforced = args[:enforced] if args.key?(:enforced) + end + end + + # A Lien represents an encumbrance on the actions that can be performed on a + # resource. + class Lien + include Google::Apis::Core::Hashable + + # A system-generated unique identifier for this Lien. + # Example: `liens/1234abcd` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Concise user-visible strings indicating why an action cannot be performed + # on a resource. Maximum lenth of 200 characters. + # Example: 'Holds production API key' + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # A stable, user-visible/meaningful string identifying the origin of the + # Lien, intended to be inspected programmatically. Maximum length of 200 + # characters. + # Example: 'compute.googleapis.com' + # Corresponds to the JSON property `origin` + # @return [String] + attr_accessor :origin + + # The types of operations which should be blocked as a result of this Lien. + # Each value should correspond to an IAM permission. The server will + # validate the permissions against those for which Liens are supported. + # An empty list is meaningless and will be rejected. + # Example: ['resourcemanager.projects.delete'] + # Corresponds to the JSON property `restrictions` + # @return [Array] + attr_accessor :restrictions + + # A reference to the resource this Lien is attached to. The server will + # validate the parent against those for which Liens are supported. + # Example: `projects/1234` + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The creation time of this Lien. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @reason = args[:reason] if args.key?(:reason) + @origin = args[:origin] if args.key?(:origin) + @restrictions = args[:restrictions] if args.key?(:restrictions) + @parent = args[:parent] if args.key?(:parent) + @create_time = args[:create_time] if args.key?(:create_time) + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb index f13a6553f..5d5e88c5d 100644 --- a/generated/google/apis/cloudresourcemanager_v1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb @@ -22,156 +22,6 @@ module Google module Apis module CloudresourcemanagerV1 - class GetEffectiveOrgPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOrgPoliciesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuditConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListLiensResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Constraint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GetOrgPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RestoreDefault - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ClearOrgPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UndeleteProjectRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ProjectCreationStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BooleanConstraint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrganizationOwner - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListProjectsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Project - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SearchOrganizationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOrgPoliciesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FolderOperationError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrgPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BooleanPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Lien - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Ancestor class Representation < Google::Apis::Core::JsonRepresentation; end @@ -250,7 +100,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class FolderOperation + class ListAvailableOrgPolicyConstraintsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -262,7 +112,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListAvailableOrgPolicyConstraintsRequest + class FolderOperation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -275,225 +125,153 @@ module Google end class GetEffectiveOrgPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :constraint, as: 'constraint' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListOrgPoliciesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuditConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :service, as: 'service' - end + include Google::Apis::Core::JsonObjectSupport end class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :metadata, as: 'metadata' - end - end - - class ListLiensResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Constraint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :display_name, as: 'displayName' - property :description, as: 'description' - property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation + include Google::Apis::Core::JsonObjectSupport + end - property :constraint_default, as: 'constraintDefault' - property :name, as: 'name' - end + class ListLiensResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class GetOrgPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :constraint, as: 'constraint' - end + include Google::Apis::Core::JsonObjectSupport end class RestoreDefault - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetOrgPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ClearOrgPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' - property :constraint, as: 'constraint' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class UndeleteProjectRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ProjectCreationStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ready, as: 'ready' - property :create_time, as: 'createTime' - property :gettable, as: 'gettable' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class BooleanConstraint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class GetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class OrganizationOwner - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :directory_customer_id, as: 'directoryCustomerId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListProjectsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class Project - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :project_number, :numeric_string => true, as: 'projectNumber' - property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :create_time, as: 'createTime' - hash :labels, as: 'labels' - property :name, as: 'name' - property :project_id, as: 'projectId' - property :lifecycle_state, as: 'lifecycleState' - end - end - - class SearchOrganizationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class ListOrgPoliciesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport + end + + class SearchOrganizationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class FolderOperationError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error_message_id, as: 'errorMessageId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class OrgPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation - - property :etag, :base64 => true, as: 'etag' - property :constraint, as: 'constraint' - property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation - - property :update_time, as: 'updateTime' - end + include Google::Apis::Core::JsonObjectSupport end class BooleanPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enforced, as: 'enforced' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Lien - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :parent, as: 'parent' - property :create_time, as: 'createTime' - property :origin, as: 'origin' - property :name, as: 'name' - property :reason, as: 'reason' - collection :restrictions, as: 'restrictions' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Ancestor @@ -537,12 +315,12 @@ module Google class Organization # @private class Representation < Google::Apis::Core::JsonRepresentation - property :creation_time, as: 'creationTime' + property :lifecycle_state, as: 'lifecycleState' property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation - property :lifecycle_state, as: 'lifecycleState' property :name, as: 'name' property :display_name, as: 'displayName' + property :creation_time, as: 'creationTime' end end @@ -558,11 +336,11 @@ module Google class ListPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :inherit_from_parent, as: 'inheritFromParent' + property :suggested_value, as: 'suggestedValue' + collection :denied_values, as: 'deniedValues' property :all_values, as: 'allValues' collection :allowed_values, as: 'allowedValues' - property :suggested_value, as: 'suggestedValue' - property :inherit_from_parent, as: 'inheritFromParent' - collection :denied_values, as: 'deniedValues' end end @@ -577,8 +355,8 @@ module Google class AuditLogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' property :log_type, as: 'logType' + collection :exempted_members, as: 'exemptedMembers' end end @@ -604,33 +382,33 @@ module Google end end - class FolderOperation + class ListAvailableOrgPolicyConstraintsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :operation_type, as: 'operationType' - property :display_name, as: 'displayName' - property :source_parent, as: 'sourceParent' - property :destination_parent, as: 'destinationParent' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' end end class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' property :version, as: 'version' collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation + property :etag, :base64 => true, as: 'etag' end end - class ListAvailableOrgPolicyConstraintsRequest + class FolderOperation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' + property :operation_type, as: 'operationType' + property :source_parent, as: 'sourceParent' + property :display_name, as: 'displayName' + property :destination_parent, as: 'destinationParent' end end @@ -641,6 +419,228 @@ module Google property :id, as: 'id' end end + + class GetEffectiveOrgPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :constraint, as: 'constraint' + end + end + + class ListOrgPoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service' + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation + + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + property :done, as: 'done' + hash :response, as: 'response' + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation + + end + end + + class Constraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation + + property :version, as: 'version' + property :display_name, as: 'displayName' + property :description, as: 'description' + property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation + + property :constraint_default, as: 'constraintDefault' + property :name, as: 'name' + end + end + + class ListLiensResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation + + property :next_page_token, as: 'nextPageToken' + 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 Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class RestoreDefault + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GetOrgPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :constraint, as: 'constraint' + end + end + + class ClearOrgPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, :base64 => true, as: 'etag' + property :constraint, as: 'constraint' + end + end + + class UndeleteProjectRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ProjectCreationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ready, as: 'ready' + property :gettable, as: 'gettable' + property :create_time, as: 'createTime' + end + end + + class BooleanConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class OrganizationOwner + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :directory_customer_id, as: 'directoryCustomerId' + end + end + + class ListProjectsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation + + end + end + + class Project + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :project_id, as: 'projectId' + property :lifecycle_state, as: 'lifecycleState' + property :project_number, :numeric_string => true, as: 'projectNumber' + property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation + + hash :labels, as: 'labels' + property :create_time, as: 'createTime' + end + end + + class ListOrgPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class SearchOrganizationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation + + end + end + + class FolderOperationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message_id, as: 'errorMessageId' + end + end + + class OrgPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_time, as: 'updateTime' + property :version, as: 'version' + property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation + + property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation + + property :etag, :base64 => true, as: 'etag' + property :constraint, as: 'constraint' + property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation + + end + end + + class BooleanPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enforced, as: 'enforced' + end + end + + class Lien + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :reason, as: 'reason' + property :origin, as: 'origin' + collection :restrictions, as: 'restrictions' + property :parent, as: 'parent' + property :create_time, as: 'createTime' + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index 2e7138b78..4d165767a 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -48,11 +48,10 @@ module Google @batch_path = 'batch' end - # Searches Organization resources that are visible to the user and satisfy - # the specified filter. This method returns Organizations in an unspecified - # order. New Organizations do not necessarily appear at the end of the - # results. - # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object + # Lists all the `Policies` set for a particular resource. + # @param [String] resource + # Name of the resource to list Policies for. + # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_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. @@ -62,20 +61,92 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] + # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/organizations:search', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation - command.request_object = search_organizations_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse + def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation + command.request_object = list_org_policies_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse + command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource. + # @param [String] resource + # Name of the resource to list `Constraints` for. + # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_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::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation + command.request_object = list_available_org_policy_constraints_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse + command.params['resource'] = resource unless resource.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 access control policy for an Organization resource. May be empty + # if no such policy or resource exists. The `resource` field should be the + # organization's resource name, e.g. "organizations/123". + # Authorization requires the Google IAM permission + # `resourcemanager.organizations.getIamPolicy` on the specified organization + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_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::CloudresourcemanagerV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Policy + command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -118,9 +189,13 @@ module Google execute_or_queue_command(command, &block) end - # Fetches an Organization resource identified by the specified resource name. - # @param [String] name - # The resource name of the Organization to fetch, e.g. "organizations/1234". + # Searches Organization resources that are visible to the user and satisfy + # the specified filter. This method returns Organizations in an unspecified + # order. New Organizations do not necessarily appear at the end of the + # results. + # Search will only return organizations on which the user has the permission + # `resourcemanager.organizations.get` + # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_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. @@ -130,19 +205,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::Organization] + # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization(name, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Organization - command.params['name'] = name unless name.nil? + def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/organizations:search', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation + command.request_object = search_organizations_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -183,9 +259,40 @@ module Google execute_or_queue_command(command, &block) end + # Fetches an Organization resource identified by the specified resource name. + # @param [String] name + # The resource name of the Organization to fetch, e.g. "organizations/1234". + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1::Organization] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Organization] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Organization + 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 + # Returns permissions that a caller has on the specified Organization. # The `resource` field should be the organization's resource name, # e.g. "organizations/123". + # There are no permissions required for making this API call. # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. @@ -291,6 +398,8 @@ module Google # Sets the access control policy on an Organization resource. Replaces any # existing policy. The `resource` field should be the organization's resource # name, e.g. "organizations/123". + # Authorization requires the Google IAM permission + # `resourcemanager.organizations.setIamPolicy` on the specified organization # @param [String] resource # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. @@ -324,10 +433,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists all the `Policies` set for a particular resource. - # @param [String] resource - # Name of the resource to list Policies for. - # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object + # 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. @@ -337,90 +447,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] + # @return [Google::Apis::CloudresourcemanagerV1::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 list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation - command.request_object = list_org_policies_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse - command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource. - # @param [String] resource - # Name of the resource to list `Constraints` for. - # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_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::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation - command.request_object = list_available_org_policy_constraints_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse - command.params['resource'] = resource unless resource.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 access control policy for an Organization resource. May be empty - # if no such policy or resource exists. The `resource` field should be the - # organization's resource name, e.g. "organizations/123". - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_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::CloudresourcemanagerV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation - command.request_object = get_iam_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Policy - command.params['resource'] = resource unless resource.nil? + 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::CloudresourcemanagerV1::Operation::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::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) @@ -463,13 +502,13 @@ module Google # Callers of this method will require permission on the `parent` resource. # For example, a Lien with a `parent` of `projects/1234` requires permission # `resourcemanager.projects.get`. + # @param [String] parent + # The name of the resource to list all attached Liens. + # For example, `projects/1234`. # @param [String] page_token # The `next_page_token` value returned from a previous List request, if any. # @param [Fixnum] page_size # The maximum number of items to return. This is a suggestion for the server. - # @param [String] parent - # The name of the resource to list all attached Liens. - # For example, `projects/1234`. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -487,13 +526,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_liens(page_token: nil, page_size: nil, parent: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_liens(parent: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/liens', options) command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse + command.query['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['parent'] = parent unless parent.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -533,73 +572,6 @@ module Google 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::CloudresourcemanagerV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::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::CloudresourcemanagerV1::Operation::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::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 - - # Gets the effective `Policy` on a resource. This is the result of merging - # `Policies` in the resource hierarchy. The returned `Policy` will not have - # an `etag`set because it is a computed `Policy` across multiple resources. - # @param [String] resource - # The name of the resource to start computing the effective `Policy`. - # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_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::CloudresourcemanagerV1::OrgPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation - command.request_object = get_effective_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy - command.params['resource'] = resource unless resource.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - # Clears a `Policy` from a resource. # @param [String] resource # Name of the resource for the `Policy` to clear. @@ -669,39 +641,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists all the `Policies` set for a particular resource. - # @param [String] resource - # Name of the resource to list Policies for. - # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_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::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation - command.request_object = list_org_policies_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse - command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource. # @param [String] resource # Name of the resource to list `Constraints` for. @@ -735,6 +674,39 @@ module Google execute_or_queue_command(command, &block) end + # Lists all the `Policies` set for a particular resource. + # @param [String] resource + # Name of the resource to list Policies for. + # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_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::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation + command.request_object = list_org_policies_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse + command.params['resource'] = resource unless resource.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 a `Policy` on a resource. # If no `Policy` is set on the resource, a `Policy` is returned with default # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The @@ -772,59 +744,12 @@ module Google execute_or_queue_command(command, &block) end - # Marks the Project identified by the specified - # `project_id` (for example, `my-project-123`) for deletion. - # This method will only affect the Project if the following criteria are met: - # + The Project does not have a billing account associated with it. - # + The Project has a lifecycle state of - # ACTIVE. - # This method changes the Project's lifecycle state from - # ACTIVE - # to DELETE_REQUESTED. - # The deletion starts at an unspecified time, - # at which point the Project is no longer accessible. - # Until the deletion completes, you can check the lifecycle state - # checked by retrieving the Project with GetProject, - # and the Project remains visible to ListProjects. - # However, you cannot update the project. - # After the deletion completes, the Project is not retrievable by - # the GetProject and - # ListProjects methods. - # The caller must have modify permissions for this Project. - # @param [String] project_id - # The Project ID (for example, `foo-bar-123`). - # Required. - # @param [String] quota_user - # Available 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::CloudresourcemanagerV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1::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(project_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/projects/{projectId}', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Empty - 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 - - # Clears a `Policy` from a resource. + # Gets the effective `Policy` on a resource. This is the result of merging + # `Policies` in the resource hierarchy. The returned `Policy` will not have + # an `etag`set because it is a computed `Policy` across multiple resources. # @param [String] resource - # Name of the resource for the `Policy` to clear. - # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object + # The name of the resource to start computing the effective `Policy`. + # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_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. @@ -834,20 +759,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::CloudresourcemanagerV1::Empty] + # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation - command.request_object = clear_org_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1::Empty + def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation + command.request_object = get_effective_org_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? @@ -883,6 +808,8 @@ module Google # can render services completely inoperable. It is important to understand # how the service account is being used before removing or updating its # roles. + # Authorization requires the Google IAM permission + # `resourcemanager.projects.setIamPolicy` on the project # @param [String] resource # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. @@ -951,6 +878,8 @@ module Google # Returns the IAM access control policy for the specified Project. # Permission is denied if the policy or the resource does not exist. + # Authorization requires the Google IAM permission + # `resourcemanager.projects.getIamPolicy` on the project # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. @@ -1134,6 +1063,11 @@ module Google # Lists Projects that are visible to the user and satisfy the # specified filter. This method returns Projects in an unspecified order. # New Projects do not necessarily appear at the end of the list. + # @param [Fixnum] page_size + # The maximum number of Projects to return in the response. + # The server can return fewer Projects than requested. + # If unspecified, server picks an appropriate default. + # Optional. # @param [String] filter # An expression for filtering the results of the request. Filter rules are # case insensitive. The fields eligible for filtering are: @@ -1151,16 +1085,19 @@ module Google # |labels.color:red|The project's label `color` has the value `red`.| # |labels.color:red labels.size:big|The project's label `color` has the # value `red` and its label `size` has the value `big`. + # If you specify a filter that has both `parent.type` and `parent.id`, then + # the `resourcemanager.projects.list` permission is checked on the parent. + # If the user has this permission, all projects under the parent will be + # returned after remaining filters have been applied. If the user lacks this + # permission, then all projects for which the user has the + # `resourcemanager.projects.get` permission will be returned after remaining + # filters have been applied. If no filter is specified, the call will return + # projects for which the user has `resourcemanager.projects.get` permissions. # Optional. # @param [String] page_token # A pagination token returned from a previous call to ListProjects # that indicates from where listing should continue. # Optional. - # @param [Fixnum] page_size - # The maximum number of Projects to return in the response. - # The server can return fewer Projects than requested. - # If unspecified, server picks an appropriate default. - # Optional. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -1178,13 +1115,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects', options) command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse + 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['pageSize'] = page_size unless page_size.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -1233,6 +1170,9 @@ module Google # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile # latency. 95th percentile latency is around 11 seconds. We recommend # polling at the 5th second with an exponential backoff. + # Authorization requires the Google IAM permission + # `resourcemanager.projects.create` on the specified parent for the new + # project. # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -1365,6 +1305,7 @@ module Google end # Returns permissions that a caller has on the specified Project. + # There are no permissions required for making this API call. # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. @@ -1397,6 +1338,88 @@ module Google command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end + + # Marks the Project identified by the specified + # `project_id` (for example, `my-project-123`) for deletion. + # This method will only affect the Project if the following criteria are met: + # + The Project does not have a billing account associated with it. + # + The Project has a lifecycle state of + # ACTIVE. + # This method changes the Project's lifecycle state from + # ACTIVE + # to DELETE_REQUESTED. + # The deletion starts at an unspecified time, + # at which point the Project is no longer accessible. + # Until the deletion completes, you can check the lifecycle state + # checked by retrieving the Project with GetProject, + # and the Project remains visible to ListProjects. + # However, you cannot update the project. + # After the deletion completes, the Project is not retrievable by + # the GetProject and + # ListProjects methods. + # The caller must have modify permissions for this Project. + # @param [String] project_id + # The Project ID (for example, `foo-bar-123`). + # Required. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::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(project_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{projectId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Empty + 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 + + # Clears a `Policy` from a resource. + # @param [String] resource + # Name of the resource for the `Policy` to clear. + # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_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::CloudresourcemanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::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 clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation + command.request_object = clear_org_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Empty + command.params['resource'] = resource unless resource.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 diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 403ea1144..83afef3d9 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,13 +26,13 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20170607' - - # View your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + REVISION = '20170705' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 1a3b5a02b..aa88683c8 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -22,286 +22,6 @@ module Google module Apis module CloudresourcemanagerV1beta1 - # The request sent to the - # GetAncestry - # method. - class GetAncestryRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A Project is a high-level Google Cloud Platform entity. It is a - # container for ACLs, APIs, App Engine Apps, VMs, and other - # Google Cloud Platform resources. - class Project - include Google::Apis::Core::Hashable - - # The number uniquely identifying the project. - # Example: 415104041262 - # Read-only. - # Corresponds to the JSON property `projectNumber` - # @return [Fixnum] - attr_accessor :project_number - - # A container to reference an id for any resource type. A `resource` in Google - # Cloud Platform is a generic term for something you (a developer) may want to - # interact with through one of our API's. Some examples are an App Engine app, - # a Compute Engine instance, a Cloud SQL database, and so on. - # Corresponds to the JSON property `parent` - # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId] - attr_accessor :parent - - # Creation time. - # Read-only. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The labels associated with this Project. - # Label keys must be between 1 and 63 characters long and must conform - # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. - # Label values must be between 0 and 63 characters long and must conform - # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. - # No more than 256 labels can be associated with a given resource. - # Clients should store labels in a representation such as JSON that does not - # depend on specific characters being disallowed. - # Example: "environment" : "dev" - # Read-write. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The user-assigned display name of the Project. - # It must be 4 to 30 characters. - # Allowed characters are: lowercase and uppercase letters, numbers, - # hyphen, single-quote, double-quote, space, and exclamation point. - # Example: My Project - # Read-write. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The unique, user-assigned ID of the Project. - # It must be 6 to 30 lowercase letters, digits, or hyphens. - # It must start with a letter. - # Trailing hyphens are prohibited. - # Example: tokyo-rain-123 - # Read-only after creation. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # The Project lifecycle state. - # Read-only. - # Corresponds to the JSON property `lifecycleState` - # @return [String] - attr_accessor :lifecycle_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @project_number = args[:project_number] if args.key?(:project_number) - @parent = args[:parent] if args.key?(:parent) - @create_time = args[:create_time] if args.key?(:create_time) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @project_id = args[:project_id] if args.key?(:project_id) - @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) - end - end - - # Request message for `TestIamPermissions` method. - class TestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Metadata describing a long running folder operation - class FolderOperation - include Google::Apis::Core::Hashable - - # The type of this operation. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # The display name of the folder. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The resource name of the folder's parent. - # Only applicable when the operation_type is MOVE. - # Corresponds to the JSON property `sourceParent` - # @return [String] - attr_accessor :source_parent - - # The resource name of the folder or organization we are either creating - # the folder under or moving the folder to. - # Corresponds to the JSON property `destinationParent` - # @return [String] - attr_accessor :destination_parent - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @display_name = args[:display_name] if args.key?(:display_name) - @source_parent = args[:source_parent] if args.key?(:source_parent) - @destination_parent = args[:destination_parent] if args.key?(:destination_parent) - end - end - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). - class Policy - include Google::Apis::Core::Hashable - - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # Specifies cloud audit logging configuration for this policy. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. - # `bindings` with no members will result in an error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @version = args[:version] if args.key?(:version) - @audit_configs = args[:audit_configs] if args.key?(:audit_configs) - @bindings = args[:bindings] if args.key?(:bindings) - end - end - - # A classification of the Folder Operation error. - class FolderOperationError - include Google::Apis::Core::Hashable - - # The type of operation error experienced. - # Corresponds to the JSON property `errorMessageId` - # @return [String] - attr_accessor :error_message_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error_message_id = args[:error_message_id] if args.key?(:error_message_id) - end - end - - # A container to reference an id for any resource type. A `resource` in Google - # Cloud Platform is a generic term for something you (a developer) may want to - # interact with through one of our API's. Some examples are an App Engine app, - # a Compute Engine instance, a Cloud SQL database, and so on. - class ResourceId - include Google::Apis::Core::Hashable - - # Required field representing the resource type this id is for. - # At present, the valid types are "project" and "organization". - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Required field for the type-specific id. This should correspond to the id - # used in the type-specific API's. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @id = args[:id] if args.key?(:id) - end - end - # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -398,6 +118,35 @@ module Google end end + # The response returned from the `ListOrganizations` method. + class ListOrganizationsResponse + include Google::Apis::Core::Hashable + + # A pagination token to be used to retrieve the next page of results. If the + # result is too large to fit within the page size specified in the request, + # this field will be set with a token that can be used to fetch the next page + # of results. If this field is empty, it indicates that this response + # contains the last page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of Organizations that matched the list query, possibly paginated. + # Corresponds to the JSON property `organizations` + # @return [Array] + attr_accessor :organizations + + 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) + @organizations = args[:organizations] if args.key?(:organizations) + end + end + # Request message for `SetIamPolicy` method. class SetIamPolicyRequest include Google::Apis::Core::Hashable @@ -452,35 +201,6 @@ module Google end end - # The response returned from the `ListOrganizations` method. - class ListOrganizationsResponse - include Google::Apis::Core::Hashable - - # A pagination token to be used to retrieve the next page of results. If the - # result is too large to fit within the page size specified in the request, - # this field will be set with a token that can be used to fetch the next page - # of results. If this field is empty, it indicates that this response - # contains the last page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of Organizations that matched the list query, possibly paginated. - # Corresponds to the JSON property `organizations` - # @return [Array] - attr_accessor :organizations - - 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) - @organizations = args[:organizations] if args.key?(:organizations) - end - end - # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -559,6 +279,12 @@ module Google class Organization include Google::Apis::Core::Hashable + # Timestamp when the Organization was created. Assigned by the server. + # @OutputOnly + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + # The entity that owns an Organization. The lifetime of the Organization and # all of its descendants are bound to the `OrganizationOwner`. If the # `OrganizationOwner` is deleted, the Organization and all its descendants will @@ -596,24 +322,18 @@ module Google # @return [String] attr_accessor :display_name - # Timestamp when the Organization was created. Assigned by the server. - # @OutputOnly - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @creation_time = args[:creation_time] if args.key?(:creation_time) @owner = args[:owner] if args.key?(:owner) @name = args[:name] if args.key?(:name) @organization_id = args[:organization_id] if args.key?(:organization_id) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @display_name = args[:display_name] if args.key?(:display_name) - @creation_time = args[:creation_time] if args.key?(:creation_time) end end @@ -623,10 +343,11 @@ module Google class ProjectCreationStatus include Google::Apis::Core::Hashable - # Creation time of the project creation workflow. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time + # True if the project creation process is complete. + # Corresponds to the JSON property `ready` + # @return [Boolean] + attr_accessor :ready + alias_method :ready?, :ready # True if the project can be retrieved using GetProject. No other operations # on the project are guaranteed to work until the project creation is @@ -636,11 +357,10 @@ module Google attr_accessor :gettable alias_method :gettable?, :gettable - # True if the project creation process is complete. - # Corresponds to the JSON property `ready` - # @return [Boolean] - attr_accessor :ready - alias_method :ready?, :ready + # Creation time of the project creation workflow. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time def initialize(**args) update!(**args) @@ -648,22 +368,9 @@ module Google # Update properties of this object def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @gettable = args[:gettable] if args.key?(:gettable) @ready = args[:ready] if args.key?(:ready) - end - end - - # Request message for `GetIamPolicy` method. - class GetIamPolicyRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) + @gettable = args[:gettable] if args.key?(:gettable) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -687,6 +394,19 @@ module Google end end + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Response from the GetAncestry method. class GetAncestryResponse include Google::Apis::Core::Hashable @@ -730,6 +450,44 @@ module Google end end + # A page of the response received from the + # ListProjects + # method. + # A paginated response where more pages are available has + # `next_page_token` set. This token can be used in a subsequent request to + # retrieve the next request page. + class ListProjectsResponse + include Google::Apis::Core::Hashable + + # The list of Projects that matched the list filter. This list can + # be paginated. + # Corresponds to the JSON property `projects` + # @return [Array] + attr_accessor :projects + + # Pagination token. + # If the result set is too large to fit in a single response, this token + # is returned. It encodes the position of the current result cursor. + # Feeding this value into a new list request with the `page_token` parameter + # gives the next page of the results. + # When `next_page_token` is not filled in, there is no next page and + # the list returned is the last page in the result set. + # Pagination tokens have a limited lifetime. + # 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) + @projects = args[:projects] if args.key?(:projects) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Provides the configuration for logging a type of permissions. # Example: # ` @@ -773,41 +531,283 @@ module Google end end - # A page of the response received from the - # ListProjects + # The request sent to the + # GetAncestry # method. - # A paginated response where more pages are available has - # `next_page_token` set. This token can be used in a subsequent request to - # retrieve the next request page. - class ListProjectsResponse + class GetAncestryRequest include Google::Apis::Core::Hashable - # The list of Projects that matched the list filter. This list can - # be paginated. - # Corresponds to the JSON property `projects` - # @return [Array] - attr_accessor :projects - - # Pagination token. - # If the result set is too large to fit in a single response, this token - # is returned. It encodes the position of the current result cursor. - # Feeding this value into a new list request with the `page_token` parameter - # gives the next page of the results. - # When `next_page_token` is not filled in, there is no next page and - # the list returned is the last page in the result set. - # Pagination tokens have a limited lifetime. - # 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) - @projects = args[:projects] if args.key?(:projects) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A Project is a high-level Google Cloud Platform entity. It is a + # container for ACLs, APIs, App Engine Apps, VMs, and other + # Google Cloud Platform resources. + class Project + include Google::Apis::Core::Hashable + + # The Project lifecycle state. + # Read-only. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # The number uniquely identifying the project. + # Example: 415104041262 + # Read-only. + # Corresponds to the JSON property `projectNumber` + # @return [Fixnum] + attr_accessor :project_number + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an App Engine app, + # a Compute Engine instance, a Cloud SQL database, and so on. + # Corresponds to the JSON property `parent` + # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId] + attr_accessor :parent + + # The labels associated with this Project. + # Label keys must be between 1 and 63 characters long and must conform + # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + # Label values must be between 0 and 63 characters long and must conform + # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + # No more than 256 labels can be associated with a given resource. + # Clients should store labels in a representation such as JSON that does not + # depend on specific characters being disallowed. + # Example: "environment" : "dev" + # Read-write. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Creation time. + # Read-only. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The user-assigned display name of the Project. + # It must be 4 to 30 characters. + # Allowed characters are: lowercase and uppercase letters, numbers, + # hyphen, single-quote, double-quote, space, and exclamation point. + # Example: My Project + # Read-write. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The unique, user-assigned ID of the Project. + # It must be 6 to 30 lowercase letters, digits, or hyphens. + # It must start with a letter. + # Trailing hyphens are prohibited. + # Example: tokyo-rain-123 + # Read-only after creation. + # 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) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @project_number = args[:project_number] if args.key?(:project_number) + @parent = args[:parent] if args.key?(:parent) + @labels = args[:labels] if args.key?(:labels) + @create_time = args[:create_time] if args.key?(:create_time) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # A classification of the Folder Operation error. + class FolderOperationError + include Google::Apis::Core::Hashable + + # The type of operation error experienced. + # Corresponds to the JSON property `errorMessageId` + # @return [String] + attr_accessor :error_message_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_message_id = args[:error_message_id] if args.key?(:error_message_id) + end + end + + # Metadata describing a long running folder operation + class FolderOperation + include Google::Apis::Core::Hashable + + # The type of this operation. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The resource name of the folder's parent. + # Only applicable when the operation_type is MOVE. + # Corresponds to the JSON property `sourceParent` + # @return [String] + attr_accessor :source_parent + + # The display name of the folder. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the folder or organization we are either creating + # the folder under or moving the folder to. + # Corresponds to the JSON property `destinationParent` + # @return [String] + attr_accessor :destination_parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @source_parent = args[:source_parent] if args.key?(:source_parent) + @display_name = args[:display_name] if args.key?(:display_name) + @destination_parent = args[:destination_parent] if args.key?(:destination_parent) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam). + class Policy + include Google::Apis::Core::Hashable + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + end + end + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an App Engine app, + # a Compute Engine instance, a Cloud SQL database, and so on. + class ResourceId + include Google::Apis::Core::Hashable + + # Required field representing the resource type this id is for. + # At present, the valid types are "project" and "organization". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required field for the type-specific id. This should correspond to the id + # used in the type-specific API's. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index b7923924e..062200c7b 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -22,48 +22,6 @@ module Google module Apis module CloudresourcemanagerV1beta1 - class GetAncestryRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Project - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FolderOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Policy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class FolderOperationError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourceId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,13 +34,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SetIamPolicyRequest + class ListOrganizationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOrganizationsResponse + class SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -118,13 +76,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GetIamPolicyRequest + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -142,80 +100,58 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AuditLogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListProjectsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetAncestryRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Project - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :project_number, :numeric_string => true, as: 'projectNumber' - property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :create_time, as: 'createTime' - hash :labels, as: 'labels' - property :name, as: 'name' - property :project_id, as: 'projectId' - property :lifecycle_state, as: 'lifecycleState' - end + include Google::Apis::Core::JsonObjectSupport end class TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class FolderOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation_type, as: 'operationType' - property :display_name, as: 'displayName' - property :source_parent, as: 'sourceParent' - property :destination_parent, as: 'destinationParent' - end - end - - class Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation - - collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class FolderOperationError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error_message_id, as: 'errorMessageId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FolderOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ResourceId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :id, as: 'id' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuditConfig @@ -235,15 +171,6 @@ module Google end end - class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation - - property :update_mask, as: 'updateMask' - end - end - class ListOrganizationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -253,6 +180,15 @@ module Google end end + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -276,28 +212,22 @@ module Google class Organization # @private class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time, as: 'creationTime' property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation property :name, as: 'name' property :organization_id, as: 'organizationId' property :lifecycle_state, as: 'lifecycleState' property :display_name, as: 'displayName' - property :creation_time, as: 'creationTime' end end class ProjectCreationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :gettable, as: 'gettable' property :ready, as: 'ready' - end - end - - class GetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation + property :gettable, as: 'gettable' + property :create_time, as: 'createTime' end end @@ -308,6 +238,12 @@ module Google end end + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GetAncestryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -323,14 +259,6 @@ module Google end end - class AuditLogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :log_type, as: 'logType' - end - end - class ListProjectsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -339,6 +267,78 @@ module Google property :next_page_token, as: 'nextPageToken' end end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class GetAncestryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Project + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lifecycle_state, as: 'lifecycleState' + property :project_number, :numeric_string => true, as: 'projectNumber' + property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation + + hash :labels, as: 'labels' + property :create_time, as: 'createTime' + property :name, as: 'name' + property :project_id, as: 'projectId' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class FolderOperationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message_id, as: 'errorMessageId' + end + end + + class FolderOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_type, as: 'operationType' + property :source_parent, as: 'sourceParent' + property :display_name, as: 'displayName' + property :destination_parent, as: 'destinationParent' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation + + end + end + + class ResourceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :id, as: 'id' + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index 621d675ad..2a4a3d5b1 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -48,186 +48,6 @@ module Google @batch_path = 'batch' end - # Returns permissions that a caller has on the specified Project. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Marks the Project identified by the specified - # `project_id` (for example, `my-project-123`) for deletion. - # This method will only affect the Project if the following criteria are met: - # + The Project does not have a billing account associated with it. - # + The Project has a lifecycle state of - # ACTIVE. - # This method changes the Project's lifecycle state from - # ACTIVE - # to DELETE_REQUESTED. - # The deletion starts at an unspecified time, at which point the project is - # no longer accessible. - # Until the deletion completes, you can check the lifecycle state - # checked by retrieving the Project with GetProject, - # and the Project remains visible to ListProjects. - # However, you cannot update the project. - # After the deletion completes, the Project is not retrievable by - # the GetProject and - # ListProjects methods. - # The caller must have modify permissions for this Project. - # @param [String] project_id - # The Project ID (for example, `foo-bar-123`). - # Required. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::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(project_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty - command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists Projects that are visible to the user and satisfy the - # specified filter. This method returns Projects in an unspecified order. - # New Projects do not necessarily appear at the end of the list. - # @param [String] filter - # An expression for filtering the results of the request. Filter rules are - # case insensitive. The fields eligible for filtering are: - # + `name` - # + `id` - # + labels.key where *key* is the name of a label - # Some examples of using labels as filters: - # |Filter|Description| - # |------|-----------| - # |name:how*|The project's name starts with "how".| - # |name:Howl|The project's name is `Howl` or `howl`.| - # |name:HOWL|Equivalent to above.| - # |NAME:howl|Equivalent to above.| - # |labels.color:*|The project has the label `color`.| - # |labels.color:red|The project's label `color` has the value `red`.| - # |labels.color:red labels.size:big|The project's label `color` has the - # value `red` and its label `size` has the value `big`. - # Optional. - # @param [String] page_token - # A pagination token returned from a previous call to ListProjects - # that indicates from where listing should continue. - # Optional. - # @param [Fixnum] page_size - # The maximum number of Projects to return in the response. - # The server can return fewer Projects than requested. - # If unspecified, server picks an appropriate default. - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/projects', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse - command.query['filter'] = filter unless filter.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 - - # Creates a Project resource. - # Initially, the Project resource is owned by its creator exclusively. - # The creator can later grant permission to others to read or update the - # Project. - # Several APIs are activated automatically for the Project, including - # Google Cloud Storage. - # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object - # @param [Boolean] use_legacy_stack - # A safety hatch to opt out of the new reliable project creation process. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Project] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/projects', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation - command.request_object = project_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project - command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Sets the IAM access control policy for the specified Project. Replaces # any existing policy. # The following constraints apply when using `setIamPolicy()`: @@ -260,11 +80,11 @@ module Google # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -277,15 +97,53 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Project resource. + # Initially, the Project resource is owned by its creator exclusively. + # The creator can later grant permission to others to read or update the + # Project. + # Several APIs are activated automatically for the Project, including + # Google Cloud Storage. + # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object + # @param [Boolean] use_legacy_stack + # A safety hatch to opt out of the new reliable project creation process. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1beta1::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Project] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation + command.request_object = project_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project + command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -295,11 +153,11 @@ module Google # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -312,15 +170,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -334,11 +192,11 @@ module Google # The project ID (for example, `foo-bar-123`). # Required. # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -351,15 +209,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation command.request_object = undelete_project_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -369,11 +227,11 @@ module Google # @param [String] project_id # The Project ID (for example, `my-project-123`). # Required. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -386,13 +244,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block) + def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options) command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -403,11 +261,11 @@ module Google # The Project ID (for example, `my-project-123`). # Required. # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -420,15 +278,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation command.request_object = get_ancestry_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -439,11 +297,11 @@ module Google # The project ID (for example, `my-project-123`). # Required. # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -456,221 +314,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.request_object = project_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Lists Organization resources that are visible to the user and satisfy - # the specified filter. This method returns Organizations in an unspecified - # order. New Organizations do not necessarily appear at the end of the list. - # @param [String] page_token - # A pagination token returned from a previous call to `ListOrganizations` - # that indicates from where listing should continue. - # This field is optional. - # @param [Fixnum] page_size - # The maximum number of Organizations to return in the response. - # This field is optional. - # @param [String] filter - # An optional query string used to filter the Organizations to return in - # the response. Filter rules are case-insensitive. - # Organizations may be filtered by `owner.directoryCustomerId` or by - # `domain`, where the domain is a Google for Work domain, for example: - # |Filter|Description| - # |------|-----------| - # |owner.directorycustomerid:123456789|Organizations with `owner. - # directory_customer_id` equal to `123456789`.| - # |domain:google.com|Organizations corresponding to the domain `google.com`.| - # This field is optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_organizations(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/organizations', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on an Organization resource. Replaces any - # existing policy. The `resource` field should be the organization's resource - # name, e.g. "organizations/123". - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for an Organization resource. May be empty - # if no such policy or resource exists. The `resource` field should be the - # organization's resource name, e.g. "organizations/123". - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation - command.request_object = get_iam_policy_request_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Fetches an Organization resource identified by the specified resource name. - # @param [String] name - # The resource name of the Organization to fetch, e.g. "organizations/1234". - # @param [String] organization_id - # The id of the Organization resource to fetch. - # This field is deprecated and will be removed in v1. Use name instead. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization - command.params['name'] = name unless name.nil? - command.query['organizationId'] = organization_id unless organization_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates an Organization resource identified by the specified resource name. - # @param [String] name - # Output Only. The resource name of the organization. This is the - # organization's relative path in the API. Its format is - # "organizations/[organization_id]". For example, "organizations/1234". - # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation - command.request_object = organization_object - command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation - command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified Organization. - # The `resource` field should be the organization's resource name, - # e.g. "organizations/123". + # Returns permissions that a caller has on the specified Project. # @param [String] resource # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -683,15 +348,358 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Marks the Project identified by the specified + # `project_id` (for example, `my-project-123`) for deletion. + # This method will only affect the Project if the following criteria are met: + # + The Project does not have a billing account associated with it. + # + The Project has a lifecycle state of + # ACTIVE. + # This method changes the Project's lifecycle state from + # ACTIVE + # to DELETE_REQUESTED. + # The deletion starts at an unspecified time, at which point the project is + # no longer accessible. + # Until the deletion completes, you can check the lifecycle state + # checked by retrieving the Project with GetProject, + # and the Project remains visible to ListProjects. + # However, you cannot update the project. + # After the deletion completes, the Project is not retrievable by + # the GetProject and + # ListProjects methods. + # The caller must have modify permissions for this Project. + # @param [String] project_id + # The Project ID (for example, `foo-bar-123`). + # Required. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::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(project_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty + command.params['projectId'] = project_id unless project_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists Projects that are visible to the user and satisfy the + # specified filter. This method returns Projects in an unspecified order. + # New Projects do not necessarily appear at the end of the list. + # @param [String] filter + # An expression for filtering the results of the request. Filter rules are + # case insensitive. The fields eligible for filtering are: + # + `name` + # + `id` + # + labels.key where *key* is the name of a label + # Some examples of using labels as filters: + # |Filter|Description| + # |------|-----------| + # |name:how*|The project's name starts with "how".| + # |name:Howl|The project's name is `Howl` or `howl`.| + # |name:HOWL|Equivalent to above.| + # |NAME:howl|Equivalent to above.| + # |labels.color:*|The project has the label `color`.| + # |labels.color:red|The project's label `color` has the value `red`.| + # |labels.color:red labels.size:big|The project's label `color` has the + # value `red` and its label `size` has the value `big`. + # If you specify a filter that has both `parent.type` and `parent.id`, then + # the `resourcemanager.projects.list` permission is checked on the parent. + # If the user has this permission, all projects under the parent will be + # returned after remaining filters have been applied. If the user lacks this + # permission, then all projects for which the user has the + # `resourcemanager.projects.get` permission will be returned after remaining + # filters have been applied. If no filter is specified, the call will return + # projects for which the user has `resourcemanager.projects.get` permissions. + # Optional. + # @param [String] page_token + # A pagination token returned from a previous call to ListProjects + # that indicates from where listing should continue. + # Optional. + # @param [Fixnum] page_size + # The maximum number of Projects to return in the response. + # The server can return fewer Projects than requested. + # If unspecified, server picks an appropriate default. + # Optional. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/projects', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.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 Organization resources that are visible to the user and satisfy + # the specified filter. This method returns Organizations in an unspecified + # order. New Organizations do not necessarily appear at the end of the list. + # @param [String] filter + # An optional query string used to filter the Organizations to return in + # the response. Filter rules are case-insensitive. + # Organizations may be filtered by `owner.directoryCustomerId` or by + # `domain`, where the domain is a Google for Work domain, for example: + # |Filter|Description| + # |------|-----------| + # |owner.directorycustomerid:123456789|Organizations with `owner. + # directory_customer_id` equal to `123456789`.| + # |domain:google.com|Organizations corresponding to the domain `google.com`.| + # This field is optional. + # @param [String] page_token + # A pagination token returned from a previous call to `ListOrganizations` + # that indicates from where listing should continue. + # This field is optional. + # @param [Fixnum] page_size + # The maximum number of Organizations to return in the response. + # This field is optional. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organizations(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/organizations', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on an Organization resource. Replaces any + # existing policy. The `resource` field should be the organization's resource + # name, e.g. "organizations/123". + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_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::CloudresourcemanagerV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for an Organization resource. May be empty + # if no such policy or resource exists. The `resource` field should be the + # organization's resource name, e.g. "organizations/123". + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_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::CloudresourcemanagerV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Fetches an Organization resource identified by the specified resource name. + # @param [String] name + # The resource name of the Organization to fetch, e.g. "organizations/1234". + # @param [String] organization_id + # The id of the Organization resource to fetch. + # This field is deprecated and will be removed in v1. Use name instead. + # @param [String] quota_user + # Available 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::CloudresourcemanagerV1beta1::Organization] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization + command.params['name'] = name unless name.nil? + command.query['organizationId'] = organization_id unless organization_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 + + # Updates an Organization resource identified by the specified resource name. + # @param [String] name + # Output Only. The resource name of the organization. This is the + # organization's relative path in the API. Its format is + # "organizations/[organization_id]". For example, "organizations/1234". + # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_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::CloudresourcemanagerV1beta1::Organization] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.request_object = organization_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization + command.params['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 + + # Returns permissions that a caller has on the specified Organization. + # The `resource` field should be the organization's resource name, + # e.g. "organizations/123". + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index d4a57f4f5..ebf30cf54 100644 --- a/generated/google/apis/cloudtrace_v1.rb +++ b/generated/google/apis/cloudtrace_v1.rb @@ -28,16 +28,16 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV1 VERSION = 'V1' - REVISION = '20170531' + REVISION = '20170711' + + # Read Trace data for a project or application + AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly' # Write Trace data for a project or application AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - - # Read Trace data for a project or application - AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly' end end end diff --git a/generated/google/apis/cloudtrace_v1/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb index 4eb5fba97..f7798eb86 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -22,6 +22,59 @@ module Google module Apis module CloudtraceV1 + # A trace describes how long it takes for an application to perform an + # operation. It consists of a set of spans, each of which represent a single + # timed event within the operation. + class Trace + include Google::Apis::Core::Hashable + + # Collection of spans in the trace. + # Corresponds to the JSON property `spans` + # @return [Array] + attr_accessor :spans + + # Project ID of the Cloud project where the trace data is stored. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Globally unique identifier for the trace. This identifier is a 128-bit + # numeric value formatted as a 32-byte hex string. + # Corresponds to the JSON property `traceId` + # @return [String] + attr_accessor :trace_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spans = args[:spans] if args.key?(:spans) + @project_id = args[:project_id] if args.key?(:project_id) + @trace_id = args[:trace_id] if args.key?(:trace_id) + end + end + + # List of new or updated traces. + class Traces + include Google::Apis::Core::Hashable + + # List of traces. + # Corresponds to the JSON property `traces` + # @return [Array] + attr_accessor :traces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @traces = args[:traces] if args.key?(:traces) + end + end + # A span represents a single timed event within a trace. Spans can be nested # and form a trace tree. Often, a trace contains a root span that describes the # end-to-end latency of an operation and, optionally, one or more subspans for @@ -30,6 +83,11 @@ module Google class TraceSpan include Google::Apis::Core::Hashable + # ID of the parent span, if any. Optional. + # Corresponds to the JSON property `parentSpanId` + # @return [Fixnum] + attr_accessor :parent_span_id + # End time of the span in nanoseconds from the UNIX epoch. # Corresponds to the JSON property `endTime` # @return [String] @@ -97,51 +155,19 @@ module Google # @return [Fixnum] attr_accessor :span_id - # ID of the parent span, if any. Optional. - # Corresponds to the JSON property `parentSpanId` - # @return [Fixnum] - attr_accessor :parent_span_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @span_id = args[:span_id] if args.key?(:span_id) - @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id) - end - end - - # The response message for the `ListTraces` method. - class ListTracesResponse - include Google::Apis::Core::Hashable - - # List of trace records returned. - # Corresponds to the JSON property `traces` - # @return [Array] - attr_accessor :traces - - # If defined, indicates that there are more traces that match the request - # and that this value should be passed to the next request to continue - # retrieving additional traces. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @traces = args[:traces] if args.key?(:traces) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -164,45 +190,18 @@ module Google end end - # A trace describes how long it takes for an application to perform an - # operation. It consists of a set of spans, each of which represent a single - # timed event within the operation. - class Trace + # The response message for the `ListTraces` method. + class ListTracesResponse include Google::Apis::Core::Hashable - # Project ID of the Cloud project where the trace data is stored. - # Corresponds to the JSON property `projectId` + # If defined, indicates that there are more traces that match the request + # and that this value should be passed to the next request to continue + # retrieving additional traces. + # Corresponds to the JSON property `nextPageToken` # @return [String] - attr_accessor :project_id + attr_accessor :next_page_token - # Collection of spans in the trace. - # Corresponds to the JSON property `spans` - # @return [Array] - attr_accessor :spans - - # Globally unique identifier for the trace. This identifier is a 128-bit - # numeric value formatted as a 32-byte hex string. - # Corresponds to the JSON property `traceId` - # @return [String] - attr_accessor :trace_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @project_id = args[:project_id] if args.key?(:project_id) - @spans = args[:spans] if args.key?(:spans) - @trace_id = args[:trace_id] if args.key?(:trace_id) - end - end - - # List of new or updated traces. - class Traces - include Google::Apis::Core::Hashable - - # List of traces. + # List of trace records returned. # Corresponds to the JSON property `traces` # @return [Array] attr_accessor :traces @@ -213,6 +212,7 @@ module Google # Update properties of this object def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @traces = args[:traces] if args.key?(:traces) end end diff --git a/generated/google/apis/cloudtrace_v1/representations.rb b/generated/google/apis/cloudtrace_v1/representations.rb index a99829244..c69881cdb 100644 --- a/generated/google/apis/cloudtrace_v1/representations.rb +++ b/generated/google/apis/cloudtrace_v1/representations.rb @@ -22,24 +22,6 @@ module Google module Apis module CloudtraceV1 - class TraceSpan - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListTracesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Trace class Representation < Google::Apis::Core::JsonRepresentation; end @@ -53,39 +35,29 @@ module Google end class TraceSpan - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - property :kind, as: 'kind' - hash :labels, as: 'labels' - property :name, as: 'name' - property :span_id, :numeric_string => true, as: 'spanId' - property :parent_span_id, :numeric_string => true, as: 'parentSpanId' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class ListTracesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation - - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTracesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Trace # @private class Representation < Google::Apis::Core::JsonRepresentation - property :project_id, as: 'projectId' collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation + property :project_id, as: 'projectId' property :trace_id, as: 'traceId' end end @@ -97,6 +69,34 @@ module Google end end + + class TraceSpan + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parent_span_id, :numeric_string => true, as: 'parentSpanId' + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + property :kind, as: 'kind' + hash :labels, as: 'labels' + property :name, as: 'name' + property :span_id, :numeric_string => true, as: 'spanId' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListTracesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation + + end + end end end end diff --git a/generated/google/apis/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb index f54a2f0d9..58bab2ae7 100644 --- a/generated/google/apis/cloudtrace_v1/service.rb +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -35,16 +35,16 @@ module Google # # @see https://cloud.google.com/trace class CloudTraceService < Google::Apis::Core::BaseService - # @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 - # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. attr_accessor :key + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + def initialize super('https://cloudtrace.googleapis.com/', '') @batch_path = 'batch' @@ -87,12 +87,42 @@ module Google execute_or_queue_command(command, &block) end + # Gets a single trace by its ID. + # @param [String] project_id + # ID of the Cloud project where the trace data is stored. + # @param [String] trace_id + # ID of the trace to return. + # @param [String] quota_user + # Available 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::CloudtraceV1::Trace] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV1::Trace] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options) + command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation + command.response_class = Google::Apis::CloudtraceV1::Trace + command.params['projectId'] = project_id unless project_id.nil? + command.params['traceId'] = trace_id unless trace_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Returns of a list of traces that match the specified filter conditions. # @param [String] project_id # ID of the Cloud project where the trace data is stored. - # @param [String] view - # Type of data returned for traces in the list. Optional. Default is - # `MINIMAL`. # @param [String] order_by # Field used to sort the returned traces. Optional. # Can be one of the following: @@ -136,16 +166,19 @@ module Google # @param [String] end_time # End of the time interval (inclusive) during which the trace data was # collected from the application. - # @param [String] page_token - # Token identifying the page of results to return. If provided, use the - # value of the `next_page_token` field from a previous request. Optional. # @param [String] start_time # Start of the time interval (inclusive) during which the trace data was # collected from the application. + # @param [String] page_token + # Token identifying the page of results to return. If provided, use the + # value of the `next_page_token` field from a previous request. Optional. # @param [Fixnum] page_size # Maximum number of traces to return. If not specified or <= 0, the # implementation selects a reasonable value. The implementation may # return fewer traces than the requested page size. Optional. + # @param [String] view + # Type of data returned for traces in the list. Optional. Default is + # `MINIMAL`. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -163,51 +196,18 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_traces(project_id, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options) command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse command.params['projectId'] = project_id unless project_id.nil? - command.query['view'] = view unless view.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['filter'] = filter unless filter.nil? command.query['endTime'] = end_time unless end_time.nil? - command.query['pageToken'] = page_token unless page_token.nil? command.query['startTime'] = start_time unless start_time.nil? + command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.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 a single trace by its ID. - # @param [String] project_id - # ID of the Cloud project where the trace data is stored. - # @param [String] trace_id - # ID of the trace to return. - # @param [String] quota_user - # Available 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::CloudtraceV1::Trace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudtraceV1::Trace] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options) - command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation - command.response_class = Google::Apis::CloudtraceV1::Trace - command.params['projectId'] = project_id unless project_id.nil? - command.params['traceId'] = trace_id unless trace_id.nil? + command.query['view'] = view unless view.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -216,8 +216,8 @@ module Google protected def apply_command_defaults(command) - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? end end end diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 5e7321611..5071c9712 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 = '20170531' + REVISION = '20170612' # 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 eb0df529b..0ef4c7eb0 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1356,6 +1356,35 @@ module Google class AutoscalingPolicyCustomMetricUtilization include Google::Apis::Core::Hashable + # A filter string, compatible with a Stackdriver Monitoring filter string for + # TimeSeries.list API call. This filter is used to select a specific TimeSeries + # for the purpose of autoscaling and to determine whether the metric is + # exporting per-instance or global data. + # For the filter to be valid for autoscaling purposes, the following rules apply: + # + # - You can only use the AND operator for joining selectors. + # - You can only use direct equality comparison operator (=) without any + # functions for each selector. + # - You can specify the metric in both the filter string and in the metric field. + # However, if specified in both places, the metric must be identical. + # - The monitored resource type determines what kind of values are expected for + # the metric. If it is a gce_instance, the autoscaler expects the metric to + # include a separate TimeSeries for each instance in a group. In such a case, + # you cannot filter on resource labels. + # If the resource type is any other value, the autoscaler expects this metric to + # contain values that apply to the entire autoscaled instance group and resource + # label filtering can be performed to point autoscaler at the correct TimeSeries + # to scale upon. This is / called a global metric for the purpose of autoscaling. + # If not specified, the type defaults to gce_instance. + # You should provide a filter that is selective enough to pick just one + # TimeSeries for the autoscaled group or for each of the instances (if you are + # using gce_instance resource type). If multiple TimeSeries are returned upon + # the query execution, the autoscaler will sum their respective values to obtain + # its scaling value. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot # have negative values and should be a utilization metric, which means that the # number of virtual machines handling requests should increase or decrease @@ -1365,6 +1394,21 @@ module Google # @return [String] attr_accessor :metric + # If scaling is based on a global metric value that represents the total amount + # of work to be done or resource usage, set this value to an amount assigned for + # a single instance of the scaled group. Autoscaler will keep the number of + # instances proportional to the value of this metric, the metric itself should + # not change value due to group resizing. + # A good metric to use with the target is for example pubsub.googleapis.com/ + # subscription/num_undelivered_messages or a custom metric exporting the total + # number of requests coming to your instances. + # A bad example would be a metric exporting an average or median latency, since + # this value can't include a chunk assignable to a single instance, it could be + # better used with utilization_target instead. + # Corresponds to the JSON property `singleInstanceAssignment` + # @return [Float] + attr_accessor :single_instance_assignment + # The target value of the metric that autoscaler should maintain. This must be a # positive value. # For example, a good metric to use as a utilization_target is compute. @@ -1387,7 +1431,9 @@ module Google # Update properties of this object def update!(**args) + @filter = args[:filter] if args.key?(:filter) @metric = args[:metric] if args.key?(:metric) + @single_instance_assignment = args[:single_instance_assignment] if args.key?(:single_instance_assignment) @utilization_target = args[:utilization_target] if args.key?(:utilization_target) @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) end @@ -1682,7 +1728,8 @@ module Google # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # health checking this BackendService. Currently at most one health check can be - # specified, and a health check is required. + # specified, and a health check is required for GCE backend services. A health + # check must not be specified for GAE app backend and Cloud Function backend. # For internal load balancing, a URL to a HealthCheck resource must be specified # instead. # Corresponds to the JSON property `healthChecks` @@ -3413,8 +3460,7 @@ module Google # @return [String] attr_accessor :description - # Textual representation of an expression in [Common Expression Language](http:// - # go/api-expr) syntax. + # Textual representation of an expression in Common Expression Language syntax. # The application context of the containing message determines which well-known # feature set of CEL is supported. # Corresponds to the JSON property `expression` @@ -3546,6 +3592,21 @@ module Google # @return [Array] attr_accessor :source_ranges + # If source service accounts are specified, the firewall will apply only to + # traffic originating from an instance with a service account in this list. + # Source service accounts cannot be used to control traffic to an instance's + # external IP address because service accounts are associated with an instance, + # not an IP address. sourceRanges can be set at the same time as + # sourceServiceAccounts. If both are set, the firewall will apply to traffic + # that has source IP address within sourceRanges OR the source IP belongs to an + # instance with service account listed in sourceServiceAccount. The connection + # does not need to match both properties for the firewall to apply. + # sourceServiceAccounts cannot be used at the same time as sourceTags or + # targetTags. + # Corresponds to the JSON property `sourceServiceAccounts` + # @return [Array] + attr_accessor :source_service_accounts + # If source tags are specified, the firewall will apply only to traffic with # source IP that belongs to a tag listed in source tags. Source tags cannot be # used to control traffic to an instance's external IP address. Because tags are @@ -3558,6 +3619,15 @@ module Google # @return [Array] attr_accessor :source_tags + # A list of service accounts indicating sets of instances located in the network + # that may make network connections as specified in allowed[]. + # targetServiceAccounts cannot be used at the same time as targetTags or + # sourceTags. If neither targetServiceAccounts nor targetTags are specified, the + # firewall rule applies to all instances on the specified network. + # Corresponds to the JSON property `targetServiceAccounts` + # @return [Array] + attr_accessor :target_service_accounts + # A list of instance tags indicating sets of instances located in the network # that may make network connections as specified in allowed[]. If no targetTags # are specified, the firewall rule applies to all instances on the specified @@ -3585,7 +3655,9 @@ module Google @priority = args[:priority] if args.key?(:priority) @self_link = args[:self_link] if args.key?(:self_link) @source_ranges = args[:source_ranges] if args.key?(:source_ranges) + @source_service_accounts = args[:source_service_accounts] if args.key?(:source_service_accounts) @source_tags = args[:source_tags] if args.key?(:source_tags) + @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts) @target_tags = args[:target_tags] if args.key?(:target_tags) end @@ -5206,8 +5278,9 @@ module Google # @return [Google::Apis::ComputeBeta::Metadata] attr_accessor :metadata - # Minimum cpu/platform to be used by this instance. We may schedule on the - # specified or later cpu/platform. + # Specifies a minimum CPU platform for the VM instance. Applicable values are + # the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" + # or minCpuPlatform: "Intel Sandy Bridge". # Corresponds to the JSON property `minCpuPlatform` # @return [String] attr_accessor :min_cpu_platform @@ -6633,7 +6706,10 @@ module Google attr_accessor :metadata # Minimum cpu/platform to be used by this instance. The instance may be - # scheduled on the specified or later cpu/platform. + # scheduled on the specified or newer cpu/platform. Applicable values are the + # friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or + # minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a + # Minimum CPU Platform. # Corresponds to the JSON property `minCpuPlatform` # @return [String] attr_accessor :min_cpu_platform diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 6e9512d80..64507ff87 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -2161,7 +2161,9 @@ module Google class AutoscalingPolicyCustomMetricUtilization # @private class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' property :metric, as: 'metric' + property :single_instance_assignment, as: 'singleInstanceAssignment' property :utilization_target, as: 'utilizationTarget' property :utilization_target_type, as: 'utilizationTargetType' end @@ -2672,7 +2674,9 @@ module Google property :priority, as: 'priority' property :self_link, as: 'selfLink' collection :source_ranges, as: 'sourceRanges' + collection :source_service_accounts, as: 'sourceServiceAccounts' collection :source_tags, as: 'sourceTags' + collection :target_service_accounts, as: 'targetServiceAccounts' collection :target_tags, as: 'targetTags' end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index a047358c4..0a93a58d8 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -337,11 +337,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -429,11 +431,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -562,11 +566,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -735,11 +741,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -828,11 +836,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -949,7 +959,8 @@ module Google end # Updates an autoscaler in the specified project using the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -961,11 +972,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1060,11 +1073,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1111,11 +1126,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1198,11 +1215,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1316,7 +1335,8 @@ module Google end # Updates the specified BackendBucket resource with the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1326,11 +1346,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1378,11 +1400,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1505,11 +1529,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1634,11 +1660,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1754,7 +1782,8 @@ module Google # Patches the specified BackendService resource with the data included in the # request. There are several restrictions and guidelines to keep in mind when # updating a backend service. Read Restrictions and Guidelines for more - # information. This method supports patch semantics. + # information. This method supports PATCH semantics and uses the JSON merge + # patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -1764,11 +1793,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1859,11 +1890,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2186,11 +2219,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2242,11 +2277,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2337,11 +2374,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] source_image # Optional. Source image to restore onto a disk. # @param [String] fields @@ -2472,11 +2511,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2527,11 +2568,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2622,11 +2665,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2708,11 +2753,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2825,7 +2872,8 @@ module Google end # Updates the specified firewall rule with the data included in the request. - # This method supports patch semantics. + # This method supports PATCH semantics and uses the JSON merge patch format and + # processing rules. # @param [String] project # Project ID for this request. # @param [String] firewall @@ -2835,11 +2883,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2929,11 +2979,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3057,11 +3109,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3149,11 +3203,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3283,11 +3339,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3338,11 +3396,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3433,11 +3493,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3520,11 +3582,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3728,11 +3792,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3815,11 +3881,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3985,11 +4053,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4303,11 +4373,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4390,11 +4462,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4507,7 +4581,8 @@ module Google end # Updates a HealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] health_check @@ -4517,11 +4592,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4610,11 +4687,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4660,11 +4739,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4747,11 +4828,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4865,7 +4948,8 @@ module Google end # Updates a HttpHealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] http_health_check @@ -4875,11 +4959,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4968,11 +5054,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5018,11 +5106,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5105,11 +5195,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5223,7 +5315,8 @@ module Google end # Updates a HttpsHealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] https_health_check @@ -5233,11 +5326,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5326,11 +5421,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5376,11 +5473,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5555,11 +5654,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5783,11 +5884,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5914,11 +6017,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5976,11 +6081,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6077,11 +6184,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6255,7 +6364,8 @@ module Google # request. This operation is marked as DONE when the group is patched even if # the instances in the group are still in the process of being patched. You must # separately verify the status of the individual instances with the - # listManagedInstances method. This method supports patch semantics. + # listManagedInstances method. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -6267,11 +6377,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6330,11 +6442,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6395,11 +6509,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6459,11 +6575,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6513,11 +6631,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6569,11 +6689,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6628,11 +6750,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6730,11 +6854,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6786,11 +6912,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6917,11 +7045,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7010,11 +7140,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7233,11 +7365,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7287,11 +7421,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7385,11 +7521,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7474,11 +7612,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7646,11 +7786,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7780,11 +7922,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7834,11 +7978,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7889,11 +8035,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7944,11 +8092,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8088,11 +8238,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8304,11 +8456,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8359,11 +8513,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8414,11 +8570,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8469,11 +8627,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8524,11 +8684,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8578,11 +8740,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8620,8 +8784,9 @@ module Google execute_or_queue_command(command, &block) end - # Changes the minimum cpu/platform that this instance should be started as. This - # is called on a stopped instance. + # Changes the minimum CPU platform that this instance should use. This method + # can only be called on a stopped instance. For more information, read + # Specifying a Minimum CPU Platform. # @param [String] project # Project ID for this request. # @param [String] zone @@ -8633,11 +8798,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8687,11 +8854,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8742,11 +8911,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8796,11 +8967,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8850,11 +9023,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8903,11 +9078,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8961,11 +9138,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9290,11 +9469,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9340,11 +9521,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9427,11 +9610,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9553,11 +9738,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9603,11 +9790,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9690,11 +9879,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9736,11 +9927,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9783,11 +9976,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9831,11 +10026,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10039,11 +10236,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10087,11 +10286,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10136,11 +10337,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10186,11 +10389,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10237,11 +10442,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10329,11 +10536,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10450,7 +10659,8 @@ module Google end # Updates an autoscaler in the specified project using the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] region @@ -10467,6 +10677,8 @@ module Google # the server can check if original operation with the same request ID was # received, and if so, will ignore the second request. This prevents clients # from accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10614,11 +10826,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10751,11 +10965,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10875,7 +11091,8 @@ module Google # Updates the specified regional BackendService resource with the data included # in the request. There are several restrictions and guidelines to keep in mind # when updating a backend service. Read Restrictions and Guidelines for more - # information. This method supports patch semantics. + # information. This method supports PATCH semantics and uses the JSON merge + # patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] region @@ -10887,11 +11104,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10988,11 +11207,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11159,11 +11380,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11302,11 +11525,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11356,11 +11581,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11418,11 +11645,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11517,11 +11746,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11693,7 +11924,8 @@ module Google # request. This operation is marked as DONE when the group is patched even if # the instances in the group are still in the process of being patched. You must # separately verify the status of the individual instances with the - # listmanagedinstances method. This method supports patch semantics. + # listmanagedinstances method. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] region @@ -11705,11 +11937,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11768,11 +12002,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11832,11 +12068,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11886,11 +12124,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11941,11 +12181,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11996,11 +12238,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12098,11 +12342,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12360,11 +12606,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12807,11 +13055,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12941,11 +13191,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13074,11 +13326,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13217,11 +13471,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13268,11 +13524,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13355,11 +13613,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13525,11 +13785,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13772,11 +14034,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13859,11 +14123,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14104,11 +14370,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14156,11 +14424,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14293,11 +14563,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14471,11 +14743,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14566,11 +14840,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14653,11 +14929,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14780,11 +15058,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14871,11 +15151,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14958,11 +15240,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15085,11 +15369,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15136,11 +15422,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15305,11 +15593,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15398,11 +15688,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15575,11 +15867,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15629,11 +15923,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15758,11 +16054,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15896,11 +16194,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16028,11 +16328,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16082,11 +16384,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16138,11 +16442,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16234,11 +16540,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16321,11 +16629,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16448,11 +16758,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16499,11 +16811,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16550,11 +16864,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16641,11 +16957,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16728,11 +17046,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16855,11 +17175,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16906,11 +17228,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17034,11 +17358,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17127,11 +17453,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17301,11 +17629,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17388,11 +17718,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17439,11 +17771,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17557,7 +17891,8 @@ module Google end # Patches the specified UrlMap resource with the data included in the request. - # This method supports patch semantics. + # This method supports PATCH semantics and uses the JSON merge patch format and + # processing rules. # @param [String] project # Project ID for this request. # @param [String] url_map @@ -17567,11 +17902,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17659,11 +17996,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17829,11 +18168,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17922,11 +18263,13 @@ module Google # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the # request if it has already been completed. - # For example, consider a situation where you make an initial request and then - # the request times out. If you make the request again with the same request ID, - # the server can check if original operation with the same request ID was - # received, and if so, will ignore the second request. This prevents clients - # from accidentally creating duplicate commitments. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index e90ef852b..e33ca3f7d 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 = '20170531' + REVISION = '20170612' # 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 daeaa9db6..1e389b40e 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -871,6 +871,18 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The status of the autoscaler configuration. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] Human-readable details about the current state of the autoscaler. + # Read the documentation for Commonly returned status messages for examples of + # status messages you might encounter. + # Corresponds to the JSON property `statusDetails` + # @return [Array] + attr_accessor :status_details + # URL of the managed instance group that this autoscaler will scale. # Corresponds to the JSON property `target` # @return [String] @@ -896,6 +908,8 @@ module Google @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) + @status_details = args[:status_details] if args.key?(:status_details) @target = args[:target] if args.key?(:target) @zone = args[:zone] if args.key?(:zone) end @@ -999,6 +1013,31 @@ module Google end end + # + class AutoscalerStatusDetails + include Google::Apis::Core::Hashable + + # The status message. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # The type of error returned. + # 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) + @message = args[:message] if args.key?(:message) + @type = args[:type] if args.key?(:type) + end + end + # class AutoscalersScopedList include Google::Apis::Core::Hashable @@ -1507,7 +1546,8 @@ module Google # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # health checking this BackendService. Currently at most one health check can be - # specified, and a health check is required. + # specified, and a health check is required for GCE backend services. A health + # check must not be specified for GAE app backend and Cloud Function backend. # For internal load balancing, a URL to a HealthCheck resource must be specified # instead. # Corresponds to the JSON property `healthChecks` @@ -1974,6 +2014,306 @@ module Google end end + # Represents a Commitment resource. Creating a Commitment resource means that + # you are purchasing a committed use contract with an explicit start and end + # time. You can create commitments based on vCPUs and memory usage and receive + # discounted rates. For full details, read Signing Up for Committed Use + # Discounts. + # Committed use discounts are subject to Google Cloud Platform's Service + # Specific Terms. By purchasing a committed use discount, you agree to these + # terms. Committed use discounts will not renew, so you must purchase a new + # commitment to continue receiving discounts. + class Commitment + 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] Commitment end time in RFC3339 text format. + # Corresponds to the JSON property `endTimestamp` + # @return [String] + attr_accessor :end_timestamp + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#commitment for commitments. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The plan for this commitment, which determines duration and discount rate. The + # currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 + # years). + # Corresponds to the JSON property `plan` + # @return [String] + attr_accessor :plan + + # [Output Only] URL of the region where this commitment may be used. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # List of commitment amounts for particular resources. Note that VCPU and MEMORY + # resource commitments must occur together. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Commitment start time in RFC3339 text format. + # Corresponds to the JSON property `startTimestamp` + # @return [String] + attr_accessor :start_timestamp + + # [Output Only] Status of the commitment with regards to eventual expiration ( + # each commitment has an end date defined). One of the following values: + # NOT_YET_ACTIVE, ACTIVE, EXPIRED. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] An optional, human-readable explanation of the status. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + 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) + @end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @plan = args[:plan] if args.key?(:plan) + @region = args[:region] if args.key?(:region) + @resources = args[:resources] if args.key?(:resources) + @self_link = args[:self_link] if args.key?(:self_link) + @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + end + end + + # + class CommitmentAggregatedList + 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 + + # Commitments by scope. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#commitmentAggregatedList for + # aggregated lists of commitments. + # 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 Commitment resources. + class CommitmentList + 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 + + # A list of Commitment resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#commitmentList for lists of + # commitments. + # 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 CommitmentsScopedList + include Google::Apis::Core::Hashable + + # [Output Only] List of commitments contained in this scope. + # Corresponds to the JSON property `commitments` + # @return [Array] + attr_accessor :commitments + + # [Output Only] Informational warning which replaces the list of commitments + # when the list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::CommitmentsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commitments = args[:commitments] if args.key?(:commitments) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning which replaces the list of commitments + # when the list 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 + # Message containing connection draining configuration. class ConnectionDraining include Google::Apis::Core::Hashable @@ -8278,6 +8618,36 @@ module Google end end + # Commitment for a particular resource (a Commitment is composed of one or more + # of these). + class ResourceCommitment + include Google::Apis::Core::Hashable + + # The amount of the resource purchased (in a type-dependent unit, such as bytes). + # For vCPUs, this can just be an integer. For memory, this must be provided in + # MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every + # vCPU. + # Corresponds to the JSON property `amount` + # @return [Fixnum] + attr_accessor :amount + + # Type of resource for which this commitment applies. Possible values are VCPU + # and MEMORY + # 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) + @amount = args[:amount] if args.key?(:amount) + @type = args[:type] if args.key?(:type) + end + end + # class ResourceGroupReference include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index b049db8dd..f24e6eed8 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -136,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AutoscalerStatusDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AutoscalersScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,6 +268,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Commitment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CommitmentAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CommitmentList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CommitmentsScopedList + 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 + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class ConnectionDraining class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1084,6 +1126,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourceCommitment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceGroupReference class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1847,6 +1895,9 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :status, as: 'status' + collection :status_details, as: 'statusDetails', class: Google::Apis::ComputeV1::AutoscalerStatusDetails, decorator: Google::Apis::ComputeV1::AutoscalerStatusDetails::Representation + property :target, as: 'target' property :zone, as: 'zone' end @@ -1876,6 +1927,14 @@ module Google end end + class AutoscalerStatusDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message, as: 'message' + property :type, as: 'type' + end + end + class AutoscalersScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2112,6 +2171,78 @@ module Google end end + class Commitment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :end_timestamp, as: 'endTimestamp' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :plan, as: 'plan' + property :region, as: 'region' + collection :resources, as: 'resources', class: Google::Apis::ComputeV1::ResourceCommitment, decorator: Google::Apis::ComputeV1::ResourceCommitment::Representation + + property :self_link, as: 'selfLink' + property :start_timestamp, as: 'startTimestamp' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + end + end + + class CommitmentAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::CommitmentsScopedList, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class CommitmentList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::Commitment, decorator: Google::Apis::ComputeV1::Commitment::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class CommitmentsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :commitments, as: 'commitments', class: Google::Apis::ComputeV1::Commitment, decorator: Google::Apis::ComputeV1::Commitment::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::CommitmentsScopedList::Warning, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::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 ConnectionDraining # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3659,6 +3790,14 @@ module Google end end + class ResourceCommitment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, :numeric_string => true, as: 'amount' + property :type, as: 'type' + end + end + class ResourceGroupReference # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 7004395c1..73370f9ef 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -810,7 +810,8 @@ module Google end # Updates an autoscaler in the specified project using the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1093,7 +1094,8 @@ module Google end # Updates the specified BackendBucket resource with the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] backend_bucket @@ -1491,7 +1493,8 @@ module Google # Patches the specified BackendService resource with the data included in the # request. There are several restrictions and guidelines to keep in mind when # updating a backend service. Read Restrictions and Guidelines for more - # information. This method supports patch semantics. + # information. This method supports PATCH semantics and uses the JSON merge + # patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -3645,7 +3648,8 @@ module Google end # Updates a HealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] health_check @@ -3922,7 +3926,8 @@ module Google end # Updates a HttpHealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] http_health_check @@ -4199,7 +4204,8 @@ module Google end # Updates a HttpsHealthCheck resource in the specified project using the data - # included in the request. This method supports patch semantics. + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] https_health_check @@ -8226,7 +8232,8 @@ module Google end # Updates an autoscaler in the specified project using the data included in the - # request. This method supports patch semantics. + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. # @param [String] project # Project ID for this request. # @param [String] region @@ -8567,7 +8574,8 @@ module Google # Updates the specified regional BackendService resource with the data included # in the request. There are several restrictions and guidelines to keep in mind # when updating a backend service. Read Restrictions and Guidelines for more - # information. This method supports patch semantics. + # information. This method supports PATCH semantics and uses the JSON merge + # patch format and processing rules. # @param [String] project # Project ID for this request. # @param [String] region @@ -8658,6 +8666,245 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of commitments. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # Sets a filter `expression` for filtering listed resources. 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, to filter for instances that do not have a name of example- + # instance, you would use name ne example-instance. + # You can filter on nested fields. For example, you could filter on instances + # that have set the scheduling.automaticRestart field to true. Use filtering on + # nested fields to take advantage of labels to organize and search for results + # based on label values. + # To filter on multiple expressions, provide 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 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. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. 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::CommitmentAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::CommitmentAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_commitment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/commitments', options) + command.response_representation = Google::Apis::ComputeV1::CommitmentAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::CommitmentAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified commitment resource. Get a list of available commitments + # by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] commitment + # Name of the commitment 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::Commitment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Commitment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_commitment(project, region, commitment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/commitments/{commitment}', options) + command.response_representation = Google::Apis::ComputeV1::Commitment::Representation + command.response_class = Google::Apis::ComputeV1::Commitment + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['commitment'] = commitment unless commitment.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 commitment 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 for this request. + # @param [Google::Apis::ComputeV1::Commitment] commitment_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_region_commitment(project, region, commitment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/commitments', options) + command.request_representation = Google::Apis::ComputeV1::Commitment::Representation + command.request_object = commitment_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 commitments contained within the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # Sets a filter `expression` for filtering listed resources. 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, to filter for instances that do not have a name of example- + # instance, you would use name ne example-instance. + # You can filter on nested fields. For example, you could filter on instances + # that have set the scheduling.automaticRestart field to true. Use filtering on + # nested fields to take advantage of labels to organize and search for results + # based on label values. + # To filter on multiple expressions, provide 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 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. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. 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::CommitmentList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::CommitmentList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_commitments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/commitments', options) + command.response_representation = Google::Apis::ComputeV1::CommitmentList::Representation + command.response_class = Google::Apis::ComputeV1::CommitmentList + 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['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Schedules a group action to remove the specified instances from the managed # instance group. Abandoning an instance does not delete the instance, but it # does remove the instance from any target pools that are applied by the managed @@ -13604,7 +13851,8 @@ module Google end # Patches the specified UrlMap resource with the data included in the request. - # This method supports patch semantics. + # This method supports PATCH semantics and uses the JSON merge patch format and + # processing rules. # @param [String] project # Project ID for this request. # @param [String] url_map diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 1bd721b94..57a6ad48a 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20170609' + REVISION = '20170627' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 7725fa02d..009693f36 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -22,12 +22,544 @@ module Google module Apis module ContainerV1 + # SetLocationsRequest sets the locations of the cluster. + class SetLocationsRequest + include Google::Apis::Core::Hashable + + # The desired list of Google Compute Engine + # [locations](/compute/docs/zones#available) in which the cluster's nodes + # should be located. Changing the locations a cluster is in will result + # in nodes being either created or removed from the cluster, depending on + # whether locations are being added or removed. + # This list must always include the cluster's primary zone. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + end + end + + # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed + # NodePool upgrade. This will be an no-op if the last upgrade successfully + # completed. + class RollbackNodePoolUpgradeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # SetNodePoolSizeRequest sets the size a node + # pool. + class SetNodePoolSizeRequest + include Google::Apis::Core::Hashable + + # The desired node count for the pool. + # Corresponds to the JSON property `nodeCount` + # @return [Fixnum] + attr_accessor :node_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_count = args[:node_count] if args.key?(:node_count) + end + end + + # UpdateClusterRequest updates the settings of a cluster. + class UpdateClusterRequest + include Google::Apis::Core::Hashable + + # ClusterUpdate describes an update to the cluster. Exactly one update can + # be applied to a cluster with each request, so at most one field can be + # provided. + # Corresponds to the JSON property `update` + # @return [Google::Apis::ContainerV1::ClusterUpdate] + attr_accessor :update + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update = args[:update] if args.key?(:update) + end + end + + # Configuration options for the NetworkPolicy feature. + # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ + class NetworkPolicy + include Google::Apis::Core::Hashable + + # Whether network policy is enabled on the cluster. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # The selected network policy provider. + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + @provider = args[:provider] if args.key?(:provider) + end + end + + # UpdateMasterRequest updates the master of the cluster. + class UpdateMasterRequest + include Google::Apis::Core::Hashable + + # The Kubernetes version to change the master to. The only valid value is the + # latest supported version. Use "-" to have the server automatically select + # the latest version. + # Corresponds to the JSON property `masterVersion` + # @return [String] + attr_accessor :master_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @master_version = args[:master_version] if args.key?(:master_version) + end + end + + # A Google Container Engine cluster. + class Cluster + include Google::Apis::Core::Hashable + + # [Output only] The current software version of the master endpoint. + # Corresponds to the JSON property `currentMasterVersion` + # @return [String] + attr_accessor :current_master_version + + # Parameters that describe the nodes in a cluster. + # Corresponds to the JSON property `nodeConfig` + # @return [Google::Apis::ContainerV1::NodeConfig] + attr_accessor :node_config + + # Configuration for the addons that can be automatically spun up in the + # cluster, enabling additional functionality. + # Corresponds to the JSON property `addonsConfig` + # @return [Google::Apis::ContainerV1::AddonsConfig] + attr_accessor :addons_config + + # [Output only] The current status of this cluster. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output only] The current version of the node software components. + # If they are currently at multiple versions because they're in the process + # of being upgraded, this reflects the minimum version of all nodes. + # Corresponds to the JSON property `currentNodeVersion` + # @return [String] + attr_accessor :current_node_version + + # The name of the Google Compute Engine + # [subnetwork](/compute/docs/subnetworks) to which the + # cluster is connected. + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + + # The name of this cluster. The name must be unique within this project + # and zone, and can be up to 40 characters with the following restrictions: + # * Lowercase letters, numbers, and hyphens only. + # * Must start with a letter. + # * Must end with a number or a letter. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The resource labels for the cluster to use to annotate any related + # Google Compute Engine resources. + # Corresponds to the JSON property `resourceLabels` + # @return [Hash] + attr_accessor :resource_labels + + # The initial Kubernetes version for this cluster. Valid versions are those + # found in validMasterVersions returned by getServerConfig. The version can + # be upgraded over time; such upgrades are reflected in + # currentMasterVersion and currentNodeVersion. + # Corresponds to the JSON property `initialClusterVersion` + # @return [String] + attr_accessor :initial_cluster_version + + # Configuration for controlling how IPs are allocated in the cluster. + # Corresponds to the JSON property `ipAllocationPolicy` + # @return [Google::Apis::ContainerV1::IpAllocationPolicy] + attr_accessor :ip_allocation_policy + + # Configuration for the legacy Attribute Based Access Control authorization + # mode. + # Corresponds to the JSON property `legacyAbac` + # @return [Google::Apis::ContainerV1::LegacyAbac] + attr_accessor :legacy_abac + + # [Output only] The IP address of this cluster's master endpoint. + # The endpoint can be accessed from the internet at + # `https://username:password@endpoint/`. + # See the `masterAuth` property of this resource for username and + # password information. + # Corresponds to the JSON property `endpoint` + # @return [String] + attr_accessor :endpoint + + # [Output only] The time the cluster was created, in + # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The IP address range of the container pods in this cluster, in + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`). Leave blank to have + # one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + # Corresponds to the JSON property `clusterIpv4Cidr` + # @return [String] + attr_accessor :cluster_ipv4_cidr + + # The number of nodes to create in this cluster. You must ensure that your + # Compute Engine resource quota + # is sufficient for this number of instances. You must also have available + # firewall and routes quota. + # For requests, this field should only be used in lieu of a + # "node_pool" object, since this configuration (along with the + # "node_config") will be used to create a "NodePool" object with an + # auto-generated name. Do not use this and a node_pool at the same time. + # Corresponds to the JSON property `initialNodeCount` + # @return [Fixnum] + attr_accessor :initial_node_count + + # The node pools associated with this cluster. + # This field should not be set if "node_config" or "initial_node_count" are + # specified. + # Corresponds to the JSON property `nodePools` + # @return [Array] + attr_accessor :node_pools + + # The list of Google Compute Engine + # [locations](/compute/docs/zones#available) in which the cluster's nodes + # should be located. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # [Output only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output only] The resource URLs of [instance + # groups](/compute/docs/instance-groups/) associated with this + # cluster. + # Corresponds to the JSON property `instanceGroupUrls` + # @return [Array] + attr_accessor :instance_group_urls + + # [Output only] The IP address range of the Kubernetes services in + # this cluster, in + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `1.2.3.4/29`). Service addresses are + # typically put in the last `/16` from the container CIDR. + # Corresponds to the JSON property `servicesIpv4Cidr` + # @return [String] + attr_accessor :services_ipv4_cidr + + # Configuration options for the NetworkPolicy feature. + # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ + # Corresponds to the JSON property `networkPolicy` + # @return [Google::Apis::ContainerV1::NetworkPolicy] + attr_accessor :network_policy + + # Kubernetes alpha features are enabled on this cluster. This includes alpha + # API groups (e.g. v1alpha1) and features that may not be production ready in + # the kubernetes version of the master and nodes. + # The cluster has no SLA for uptime and master/node upgrades are disabled. + # Alpha enabled clusters are automatically deleted thirty days after + # creation. + # Corresponds to the JSON property `enableKubernetesAlpha` + # @return [Boolean] + attr_accessor :enable_kubernetes_alpha + alias_method :enable_kubernetes_alpha?, :enable_kubernetes_alpha + + # An optional description of this cluster. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output only] The number of nodes currently in the cluster. + # Corresponds to the JSON property `currentNodeCount` + # @return [Fixnum] + attr_accessor :current_node_count + + # The monitoring service the cluster should use to write metrics. + # Currently available options: + # * `monitoring.googleapis.com` - the Google Cloud Monitoring service. + # * `none` - no metrics will be exported from the cluster. + # * if left as an empty string, `monitoring.googleapis.com` will be used. + # Corresponds to the JSON property `monitoringService` + # @return [String] + attr_accessor :monitoring_service + + # The name of the Google Compute Engine + # [network](/compute/docs/networks-and-firewalls#networks) to which the + # cluster is connected. If left unspecified, the `default` network + # will be used. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # The fingerprint of the set of labels for this cluster. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # [Output only] The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + # [Output only] The size of the address space on each node for hosting + # containers. This is provisioned from within the `container_ipv4_cidr` + # range. + # Corresponds to the JSON property `nodeIpv4CidrSize` + # @return [Fixnum] + attr_accessor :node_ipv4_cidr_size + + # The logging service the cluster should use to write logs. + # Currently available options: + # * `logging.googleapis.com` - the Google Cloud Logging service. + # * `none` - no logs will be exported from the cluster. + # * if left as an empty string,`logging.googleapis.com` will be used. + # Corresponds to the JSON property `loggingService` + # @return [String] + attr_accessor :logging_service + + # [Output only] The time the cluster will be automatically + # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # [Output only] Additional information about the current status of this + # cluster, if available. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # The authentication information for accessing the master endpoint. + # Authentication can be done using HTTP basic auth or using client + # certificates. + # Corresponds to the JSON property `masterAuth` + # @return [Google::Apis::ContainerV1::MasterAuth] + attr_accessor :master_auth + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_master_version = args[:current_master_version] if args.key?(:current_master_version) + @node_config = args[:node_config] if args.key?(:node_config) + @addons_config = args[:addons_config] if args.key?(:addons_config) + @status = args[:status] if args.key?(:status) + @current_node_version = args[:current_node_version] if args.key?(:current_node_version) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @name = args[:name] if args.key?(:name) + @resource_labels = args[:resource_labels] if args.key?(:resource_labels) + @initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version) + @ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy) + @legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac) + @endpoint = args[:endpoint] if args.key?(:endpoint) + @create_time = args[:create_time] if args.key?(:create_time) + @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) + @node_pools = args[:node_pools] if args.key?(:node_pools) + @locations = args[:locations] if args.key?(:locations) + @self_link = args[:self_link] if args.key?(:self_link) + @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) + @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) + @network_policy = args[:network_policy] if args.key?(:network_policy) + @enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha) + @description = args[:description] if args.key?(:description) + @current_node_count = args[:current_node_count] if args.key?(:current_node_count) + @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) + @network = args[:network] if args.key?(:network) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @zone = args[:zone] if args.key?(:zone) + @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) + @logging_service = args[:logging_service] if args.key?(:logging_service) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @status_message = args[:status_message] if args.key?(:status_message) + @master_auth = args[:master_auth] if args.key?(:master_auth) + end + end + + # CreateNodePoolRequest creates a node pool for a cluster. + class CreateNodePoolRequest + include Google::Apis::Core::Hashable + + # NodePool contains the name and configuration for a cluster's node pool. + # Node pools are a set of nodes (i.e. VM's), with a common configuration and + # specification, under the control of the cluster master. They may have a set + # of Kubernetes labels applied to them, which may be used to reference them + # during pod scheduling. They may also be resized up or down, to accommodate + # the workload. + # Corresponds to the JSON property `nodePool` + # @return [Google::Apis::ContainerV1::NodePool] + attr_accessor :node_pool + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_pool = args[:node_pool] if args.key?(:node_pool) + end + end + + # ListOperationsResponse is the result of ListOperationsRequest. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # A list of operations in the project in the specified zone. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + # If any zones are listed here, the list of operations returned + # may be missing the operations from those zones. + # Corresponds to the JSON property `missingZones` + # @return [Array] + attr_accessor :missing_zones + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operations = args[:operations] if args.key?(:operations) + @missing_zones = args[:missing_zones] if args.key?(:missing_zones) + end + end + + # SetMonitoringServiceRequest sets the monitoring service of a cluster. + class SetMonitoringServiceRequest + include Google::Apis::Core::Hashable + + # The monitoring service the cluster should use to write metrics. + # Currently available options: + # * "monitoring.googleapis.com" - the Google Cloud Monitoring service + # * "none" - no metrics will be exported from the cluster + # Corresponds to the JSON property `monitoringService` + # @return [String] + attr_accessor :monitoring_service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) + end + end + + # Container Engine service configuration. + class ServerConfig + include Google::Apis::Core::Hashable + + # List of valid master versions. + # Corresponds to the JSON property `validMasterVersions` + # @return [Array] + attr_accessor :valid_master_versions + + # Default image type. + # Corresponds to the JSON property `defaultImageType` + # @return [String] + attr_accessor :default_image_type + + # Version of Kubernetes the service deploys by default. + # Corresponds to the JSON property `defaultClusterVersion` + # @return [String] + attr_accessor :default_cluster_version + + # List of valid image types. + # Corresponds to the JSON property `validImageTypes` + # @return [Array] + attr_accessor :valid_image_types + + # List of valid node upgrade target versions. + # Corresponds to the JSON property `validNodeVersions` + # @return [Array] + attr_accessor :valid_node_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @valid_master_versions = args[:valid_master_versions] if args.key?(:valid_master_versions) + @default_image_type = args[:default_image_type] if args.key?(:default_image_type) + @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) + @valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types) + @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions) + end + end + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. class MasterAuth include Google::Apis::Core::Hashable + # [Output only] Base64-encoded public certificate used by clients to + # authenticate to the cluster endpoint. + # Corresponds to the JSON property `clientCertificate` + # @return [String] + attr_accessor :client_certificate + + # The username to use for HTTP basic authentication to the master endpoint. + # For clusters v1.6.0 and later, you can disable basic authentication by + # providing an empty username. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + # The password to use for HTTP basic authentication to the master endpoint. # Because the master endpoint is open to the Internet, you should create a # strong password. If a password is provided for cluster creation, username @@ -53,31 +585,18 @@ module Google # @return [String] attr_accessor :cluster_ca_certificate - # [Output only] Base64-encoded public certificate used by clients to - # authenticate to the cluster endpoint. - # Corresponds to the JSON property `clientCertificate` - # @return [String] - attr_accessor :client_certificate - - # The username to use for HTTP basic authentication to the master endpoint. - # For clusters v1.6.0 and later, you can disable basic authentication by - # providing an empty username. - # Corresponds to the JSON property `username` - # @return [String] - attr_accessor :username - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_certificate = args[:client_certificate] if args.key?(:client_certificate) + @username = args[:username] if args.key?(:username) @password = args[:password] if args.key?(:password) @client_certificate_config = args[:client_certificate_config] if args.key?(:client_certificate_config) @client_key = args[:client_key] if args.key?(:client_key) @cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate) - @client_certificate = args[:client_certificate] if args.key?(:client_certificate) - @username = args[:username] if args.key?(:username) end end @@ -85,6 +604,14 @@ module Google class NodeConfig include Google::Apis::Core::Hashable + # Whether the nodes are created as preemptible VM instances. See: + # https://cloud.google.com/compute/docs/instances/preemptible for more + # information about preemptible VM instances. + # Corresponds to the JSON property `preemptible` + # @return [Boolean] + attr_accessor :preemptible + alias_method :preemptible?, :preemptible + # The map of Kubernetes labels (key/value pairs) to be applied to each node. # These will added in addition to any default label(s) that # Kubernetes may apply to the node. @@ -171,20 +698,13 @@ module Google # @return [Array] attr_accessor :oauth_scopes - # Whether the nodes are created as preemptible VM instances. See: - # https://cloud.google.com/compute/docs/instances/preemptible for more - # information about preemptible VM instances. - # Corresponds to the JSON property `preemptible` - # @return [Boolean] - attr_accessor :preemptible - alias_method :preemptible?, :preemptible - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @preemptible = args[:preemptible] if args.key?(:preemptible) @labels = args[:labels] if args.key?(:labels) @local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count) @metadata = args[:metadata] if args.key?(:metadata) @@ -194,7 +714,6 @@ module Google @machine_type = args[:machine_type] if args.key?(:machine_type) @image_type = args[:image_type] if args.key?(:image_type) @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) - @preemptible = args[:preemptible] if args.key?(:preemptible) end end @@ -231,26 +750,26 @@ module Google class ListClustersResponse include Google::Apis::Core::Hashable - # If any zones are listed here, the list of clusters returned - # may be missing those zones. - # Corresponds to the JSON property `missingZones` - # @return [Array] - attr_accessor :missing_zones - # A list of clusters in the project in the specified zone, or # across all ones. # Corresponds to the JSON property `clusters` # @return [Array] attr_accessor :clusters + # If any zones are listed here, the list of clusters returned + # may be missing those zones. + # Corresponds to the JSON property `missingZones` + # @return [Array] + attr_accessor :missing_zones + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @missing_zones = args[:missing_zones] if args.key?(:missing_zones) @clusters = args[:clusters] if args.key?(:clusters) + @missing_zones = args[:missing_zones] if args.key?(:missing_zones) end end @@ -277,41 +796,6 @@ module Google end end - # NodePoolAutoscaling contains information required by cluster autoscaler to - # adjust the size of the node pool to the current cluster usage. - class NodePoolAutoscaling - include Google::Apis::Core::Hashable - - # Is autoscaling enabled for this node pool. - # Corresponds to the JSON property `enabled` - # @return [Boolean] - attr_accessor :enabled - alias_method :enabled?, :enabled - - # Maximum number of nodes in the NodePool. Must be >= min_node_count. There - # has to enough quota to scale up the cluster. - # Corresponds to the JSON property `maxNodeCount` - # @return [Fixnum] - attr_accessor :max_node_count - - # Minimum number of nodes in the NodePool. Must be >= 1 and <= - # max_node_count. - # Corresponds to the JSON property `minNodeCount` - # @return [Fixnum] - attr_accessor :min_node_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @enabled = args[:enabled] if args.key?(:enabled) - @max_node_count = args[:max_node_count] if args.key?(:max_node_count) - @min_node_count = args[:min_node_count] if args.key?(:min_node_count) - end - end - # Configuration for client certificates on the cluster. class ClientCertificateConfig include Google::Apis::Core::Hashable @@ -332,6 +816,41 @@ module Google end end + # NodePoolAutoscaling contains information required by cluster autoscaler to + # adjust the size of the node pool to the current cluster usage. + class NodePoolAutoscaling + include Google::Apis::Core::Hashable + + # Maximum number of nodes in the NodePool. Must be >= min_node_count. There + # has to enough quota to scale up the cluster. + # Corresponds to the JSON property `maxNodeCount` + # @return [Fixnum] + attr_accessor :max_node_count + + # Minimum number of nodes in the NodePool. Must be >= 1 and <= + # max_node_count. + # Corresponds to the JSON property `minNodeCount` + # @return [Fixnum] + attr_accessor :min_node_count + + # Is autoscaling enabled for this node pool. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_node_count = args[:max_node_count] if args.key?(:max_node_count) + @min_node_count = args[:min_node_count] if args.key?(:min_node_count) + @enabled = args[:enabled] if args.key?(:enabled) + end + end + # SetMasterAuthRequest updates the admin password of a cluster. class SetMasterAuthRequest include Google::Apis::Core::Hashable @@ -359,12 +878,56 @@ module Google end end + # SetNetworkPolicyRequest enables/disables network policy for a cluster. + class SetNetworkPolicyRequest + include Google::Apis::Core::Hashable + + # Configuration options for the NetworkPolicy feature. + # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ + # Corresponds to the JSON property `networkPolicy` + # @return [Google::Apis::ContainerV1::NetworkPolicy] + attr_accessor :network_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network_policy = args[:network_policy] if args.key?(:network_policy) + end + end + # ClusterUpdate describes an update to the cluster. Exactly one update can # be applied to a cluster with each request, so at most one field can be # provided. class ClusterUpdate include Google::Apis::Core::Hashable + # The desired list of Google Compute Engine + # [locations](/compute/docs/zones#available) in which the cluster's nodes + # should be located. Changing the locations a cluster is in will result + # in nodes being either created or removed from the cluster, depending on + # whether locations are being added or removed. + # This list must always include the cluster's primary zone. + # Corresponds to the JSON property `desiredLocations` + # @return [Array] + attr_accessor :desired_locations + + # NodePoolAutoscaling contains information required by cluster autoscaler to + # adjust the size of the node pool to the current cluster usage. + # Corresponds to the JSON property `desiredNodePoolAutoscaling` + # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] + attr_accessor :desired_node_pool_autoscaling + + # The monitoring service the cluster should use to write metrics. + # Currently available options: + # * "monitoring.googleapis.com" - the Google Cloud Monitoring service + # * "none" - no metrics will be exported from the cluster + # Corresponds to the JSON property `desiredMonitoringService` + # @return [String] + attr_accessor :desired_monitoring_service + # The desired image type for the node pool. # NOTE: Set the "desired_node_pool" field as well. # Corresponds to the JSON property `desiredImageType` @@ -399,29 +962,87 @@ module Google # @return [String] attr_accessor :desired_master_version - # NodePoolAutoscaling contains information required by cluster autoscaler to - # adjust the size of the node pool to the current cluster usage. - # Corresponds to the JSON property `desiredNodePoolAutoscaling` - # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] - attr_accessor :desired_node_pool_autoscaling + def initialize(**args) + update!(**args) + end - # The desired list of Google Compute Engine - # [locations](/compute/docs/zones#available) in which the cluster's nodes - # should be located. Changing the locations a cluster is in will result - # in nodes being either created or removed from the cluster, depending on - # whether locations are being added or removed. - # This list must always include the cluster's primary zone. - # Corresponds to the JSON property `desiredLocations` - # @return [Array] - attr_accessor :desired_locations + # Update properties of this object + def update!(**args) + @desired_locations = args[:desired_locations] if args.key?(:desired_locations) + @desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling) + @desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service) + @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) + @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) + @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) + @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) + @desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version) + end + end - # The monitoring service the cluster should use to write metrics. - # Currently available options: - # * "monitoring.googleapis.com" - the Google Cloud Monitoring service - # * "none" - no metrics will be exported from the cluster - # Corresponds to the JSON property `desiredMonitoringService` + # Configuration for controlling how IPs are allocated in the cluster. + class IpAllocationPolicy + include Google::Apis::Core::Hashable + + # Whether a new subnetwork will be created automatically for the cluster. + # This field is only applicable when `use_ip_aliases` is true. + # Corresponds to the JSON property `createSubnetwork` + # @return [Boolean] + attr_accessor :create_subnetwork + alias_method :create_subnetwork?, :create_subnetwork + + # Whether alias IPs will be used for pod IPs in the cluster. + # Corresponds to the JSON property `useIpAliases` + # @return [Boolean] + attr_accessor :use_ip_aliases + alias_method :use_ip_aliases?, :use_ip_aliases + + # A custom subnetwork name to be used if `create_subnetwork` is true. If + # this field is empty, then an automatic name will choosen for the new + # subnetwork. + # Corresponds to the JSON property `subnetworkName` # @return [String] - attr_accessor :desired_monitoring_service + attr_accessor :subnetwork_name + + # The IP address range for the cluster pod IPs. If this field is set, then + # `cluster.cluster_ipv4_cidr` must be left blank. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range will be chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific + # netmask. + # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `clusterIpv4Cidr` + # @return [String] + attr_accessor :cluster_ipv4_cidr + + # The IP address range of the instance IPs in this cluster. + # This is applicable only if `create_subnetwork` is true. + # Set to blank to have a range will be chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific + # netmask. + # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `nodeIpv4Cidr` + # @return [String] + attr_accessor :node_ipv4_cidr + + # The IP address range of the services IPs in this cluster. If blank, a range + # will be automatically chosen with the default size. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range will be chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific + # netmask. + # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `servicesIpv4Cidr` + # @return [String] + attr_accessor :services_ipv4_cidr def initialize(**args) update!(**args) @@ -429,14 +1050,34 @@ module Google # Update properties of this object def update!(**args) - @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) - @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) - @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) - @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) - @desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version) - @desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling) - @desired_locations = args[:desired_locations] if args.key?(:desired_locations) - @desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service) + @create_subnetwork = args[:create_subnetwork] if args.key?(:create_subnetwork) + @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases) + @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name) + @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @node_ipv4_cidr = args[:node_ipv4_cidr] if args.key?(:node_ipv4_cidr) + @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) + end + end + + # SetLoggingServiceRequest sets the logging service of a cluster. + class SetLoggingServiceRequest + include Google::Apis::Core::Hashable + + # The logging service the cluster should use to write metrics. + # Currently available options: + # * "logging.googleapis.com" - the Google Cloud Logging service + # * "none" - no metrics will be exported from the cluster + # Corresponds to the JSON property `loggingService` + # @return [String] + attr_accessor :logging_service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @logging_service = args[:logging_service] if args.key?(:logging_service) end end @@ -464,6 +1105,25 @@ module Google end end + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # SetNodePoolManagementRequest sets the node management properties of a node # pool. class SetNodePoolManagementRequest @@ -485,22 +1145,23 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. - class Empty + # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. + class SetNodePoolAutoscalingRequest include Google::Apis::Core::Hashable + # NodePoolAutoscaling contains information required by cluster autoscaler to + # adjust the size of the node pool to the current cluster usage. + # Corresponds to the JSON property `autoscaling` + # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] + attr_accessor :autoscaling + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @autoscaling = args[:autoscaling] if args.key?(:autoscaling) end end @@ -569,6 +1230,33 @@ module Google end end + # UpdateNodePoolRequests update a node pool's image and/or version. + class UpdateNodePoolRequest + include Google::Apis::Core::Hashable + + # The desired image type for the node pool. + # Corresponds to the JSON property `imageType` + # @return [String] + attr_accessor :image_type + + # The Kubernetes version to change the nodes to (typically an + # upgrade). Use `-` to upgrade to the latest version supported by + # the server. + # Corresponds to the JSON property `nodeVersion` + # @return [String] + attr_accessor :node_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_type = args[:image_type] if args.key?(:image_type) + @node_version = args[:node_version] if args.key?(:node_version) + end + end + # Configuration for the legacy Attribute Based Access Control authorization # mode. class LegacyAbac @@ -593,26 +1281,15 @@ module Google end end - # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container - # Engine cluster, which will in turn set them for Google Compute Engine - # resources used by that cluster - class SetLabelsRequest + # SetAddonsConfigRequest sets the addons associated with the cluster. + class SetAddonsConfigRequest include Google::Apis::Core::Hashable - # The labels to set for that cluster. - # Corresponds to the JSON property `resourceLabels` - # @return [Hash] - attr_accessor :resource_labels - - # The fingerprint of the previous set of labels for this resource, - # used to detect conflicts. The fingerprint is initially generated by - # Container Engine and changes after every request to modify or update - # labels. You must always provide an up-to-date fingerprint hash when - # updating or changing labels. Make a get() request to the - # resource to get the latest fingerprint. - # Corresponds to the JSON property `labelFingerprint` - # @return [String] - attr_accessor :label_fingerprint + # Configuration for the addons that can be automatically spun up in the + # cluster, enabling additional functionality. + # Corresponds to the JSON property `addonsConfig` + # @return [Google::Apis::ContainerV1::AddonsConfig] + attr_accessor :addons_config def initialize(**args) update!(**args) @@ -620,8 +1297,7 @@ module Google # Update properties of this object def update!(**args) - @resource_labels = args[:resource_labels] if args.key?(:resource_labels) - @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @addons_config = args[:addons_config] if args.key?(:addons_config) end end @@ -634,16 +1310,6 @@ module Google class NodePool include Google::Apis::Core::Hashable - # [Output only] The status of the nodes in this pool instance. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # Parameters that describe the nodes in a cluster. - # Corresponds to the JSON property `config` - # @return [Google::Apis::ContainerV1::NodeConfig] - attr_accessor :config - # The name of the node pool. # Corresponds to the JSON property `name` # @return [String] @@ -692,14 +1358,22 @@ module Google # @return [Array] attr_accessor :instance_group_urls + # [Output only] The status of the nodes in this pool instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Parameters that describe the nodes in a cluster. + # Corresponds to the JSON property `config` + # @return [Google::Apis::ContainerV1::NodeConfig] + attr_accessor :config + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @status = args[:status] if args.key?(:status) - @config = args[:config] if args.key?(:config) @name = args[:name] if args.key?(:name) @status_message = args[:status_message] if args.key?(:status_message) @autoscaling = args[:autoscaling] if args.key?(:autoscaling) @@ -708,6 +1382,40 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @version = args[:version] if args.key?(:version) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) + @status = args[:status] if args.key?(:status) + @config = args[:config] if args.key?(:config) + end + end + + # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container + # Engine cluster, which will in turn set them for Google Compute Engine + # resources used by that cluster + class SetLabelsRequest + include Google::Apis::Core::Hashable + + # The fingerprint of the previous set of labels for this resource, + # used to detect conflicts. The fingerprint is initially generated by + # Container Engine and changes after every request to modify or update + # labels. You must always provide an up-to-date fingerprint hash when + # updating or changing labels. Make a get() request to the + # resource to get the latest fingerprint. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # The labels to set for that cluster. + # Corresponds to the JSON property `resourceLabels` + # @return [Hash] + attr_accessor :resource_labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @resource_labels = args[:resource_labels] if args.key?(:resource_labels) end end @@ -716,14 +1424,6 @@ module Google class NodeManagement include Google::Apis::Core::Hashable - # A flag that specifies whether node auto-upgrade is enabled for the node - # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - # up to date with the latest release version of Kubernetes. - # Corresponds to the JSON property `autoUpgrade` - # @return [Boolean] - attr_accessor :auto_upgrade - alias_method :auto_upgrade?, :auto_upgrade - # A flag that specifies whether the node auto-repair is enabled for the node # pool. If enabled, the nodes in this node pool will be monitored and, if # they fail health checks too many times, an automatic repair action will be @@ -733,6 +1433,14 @@ module Google attr_accessor :auto_repair alias_method :auto_repair?, :auto_repair + # A flag that specifies whether node auto-upgrade is enabled for the node + # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + # up to date with the latest release version of Kubernetes. + # Corresponds to the JSON property `autoUpgrade` + # @return [Boolean] + attr_accessor :auto_upgrade + alias_method :auto_upgrade?, :auto_upgrade + # AutoUpgradeOptions defines the set of options for the user to control how # the Auto Upgrades will proceed. # Corresponds to the JSON property `upgradeOptions` @@ -745,8 +1453,8 @@ module Google # Update properties of this object def update!(**args) - @auto_upgrade = args[:auto_upgrade] if args.key?(:auto_upgrade) @auto_repair = args[:auto_repair] if args.key?(:auto_repair) + @auto_upgrade = args[:auto_upgrade] if args.key?(:auto_upgrade) @upgrade_options = args[:upgrade_options] if args.key?(:upgrade_options) end end @@ -790,21 +1498,28 @@ module Google class Operation include Google::Apis::Core::Hashable + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the operation + # is taking place. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + # The current status of the operation. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # The server-assigned ID for the operation. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # If an error has occurred, a textual description of the error. # Corresponds to the JSON property `statusMessage` # @return [String] attr_accessor :status_message + # The server-assigned ID for the operation. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -825,27 +1540,20 @@ module Google # @return [String] attr_accessor :operation_type - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the operation - # is taking place. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @zone = args[:zone] if args.key?(:zone) @status = args[:status] if args.key?(:status) - @name = args[:name] if args.key?(:name) @status_message = args[:status_message] if args.key?(:status_message) + @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @target_link = args[:target_link] if args.key?(:target_link) @detail = args[:detail] if args.key?(:detail) @operation_type = args[:operation_type] if args.key?(:operation_type) - @zone = args[:zone] if args.key?(:zone) end end @@ -877,418 +1585,6 @@ module Google @http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing) end end - - # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed - # NodePool upgrade. This will be an no-op if the last upgrade successfully - # completed. - class RollbackNodePoolUpgradeRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # SetNodePoolSizeRequest sets the size a node - # pool. - class SetNodePoolSizeRequest - include Google::Apis::Core::Hashable - - # The desired node count for the pool. - # Corresponds to the JSON property `nodeCount` - # @return [Fixnum] - attr_accessor :node_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @node_count = args[:node_count] if args.key?(:node_count) - end - end - - # UpdateClusterRequest updates the settings of a cluster. - class UpdateClusterRequest - include Google::Apis::Core::Hashable - - # ClusterUpdate describes an update to the cluster. Exactly one update can - # be applied to a cluster with each request, so at most one field can be - # provided. - # Corresponds to the JSON property `update` - # @return [Google::Apis::ContainerV1::ClusterUpdate] - attr_accessor :update - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @update = args[:update] if args.key?(:update) - end - end - - # A Google Container Engine cluster. - class Cluster - include Google::Apis::Core::Hashable - - # The name of the Google Compute Engine - # [network](/compute/docs/networks-and-firewalls#networks) to which the - # cluster is connected. If left unspecified, the `default` network - # will be used. - # Corresponds to the JSON property `network` - # @return [String] - attr_accessor :network - - # The fingerprint of the set of labels for this cluster. - # Corresponds to the JSON property `labelFingerprint` - # @return [String] - attr_accessor :label_fingerprint - - # [Output only] The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - # [Output only] The size of the address space on each node for hosting - # containers. This is provisioned from within the `container_ipv4_cidr` - # range. - # Corresponds to the JSON property `nodeIpv4CidrSize` - # @return [Fixnum] - attr_accessor :node_ipv4_cidr_size - - # [Output only] The time the cluster will be automatically - # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - # Corresponds to the JSON property `expireTime` - # @return [String] - attr_accessor :expire_time - - # The logging service the cluster should use to write logs. - # Currently available options: - # * `logging.googleapis.com` - the Google Cloud Logging service. - # * `none` - no logs will be exported from the cluster. - # * if left as an empty string,`logging.googleapis.com` will be used. - # Corresponds to the JSON property `loggingService` - # @return [String] - attr_accessor :logging_service - - # [Output only] Additional information about the current status of this - # cluster, if available. - # Corresponds to the JSON property `statusMessage` - # @return [String] - attr_accessor :status_message - - # The authentication information for accessing the master endpoint. - # Authentication can be done using HTTP basic auth or using client - # certificates. - # Corresponds to the JSON property `masterAuth` - # @return [Google::Apis::ContainerV1::MasterAuth] - attr_accessor :master_auth - - # [Output only] The current software version of the master endpoint. - # Corresponds to the JSON property `currentMasterVersion` - # @return [String] - attr_accessor :current_master_version - - # Parameters that describe the nodes in a cluster. - # Corresponds to the JSON property `nodeConfig` - # @return [Google::Apis::ContainerV1::NodeConfig] - attr_accessor :node_config - - # Configuration for the addons that can be automatically spun up in the - # cluster, enabling additional functionality. - # Corresponds to the JSON property `addonsConfig` - # @return [Google::Apis::ContainerV1::AddonsConfig] - attr_accessor :addons_config - - # [Output only] The current status of this cluster. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # [Output only] The current version of the node software components. - # If they are currently at multiple versions because they're in the process - # of being upgraded, this reflects the minimum version of all nodes. - # Corresponds to the JSON property `currentNodeVersion` - # @return [String] - attr_accessor :current_node_version - - # The name of the Google Compute Engine - # [subnetwork](/compute/docs/subnetworks) to which the - # cluster is connected. - # Corresponds to the JSON property `subnetwork` - # @return [String] - attr_accessor :subnetwork - - # The resource labels for the cluster to use to annotate any related - # Google Compute Engine resources. - # Corresponds to the JSON property `resourceLabels` - # @return [Hash] - attr_accessor :resource_labels - - # The name of this cluster. The name must be unique within this project - # and zone, and can be up to 40 characters with the following restrictions: - # * Lowercase letters, numbers, and hyphens only. - # * Must start with a letter. - # * Must end with a number or a letter. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The initial Kubernetes version for this cluster. Valid versions are those - # found in validMasterVersions returned by getServerConfig. The version can - # be upgraded over time; such upgrades are reflected in - # currentMasterVersion and currentNodeVersion. - # Corresponds to the JSON property `initialClusterVersion` - # @return [String] - attr_accessor :initial_cluster_version - - # [Output only] The IP address of this cluster's master endpoint. - # The endpoint can be accessed from the internet at - # `https://username:password@endpoint/`. - # See the `masterAuth` property of this resource for username and - # password information. - # Corresponds to the JSON property `endpoint` - # @return [String] - attr_accessor :endpoint - - # Configuration for the legacy Attribute Based Access Control authorization - # mode. - # Corresponds to the JSON property `legacyAbac` - # @return [Google::Apis::ContainerV1::LegacyAbac] - attr_accessor :legacy_abac - - # [Output only] The time the cluster was created, in - # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The IP address range of the container pods in this cluster, in - # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `10.96.0.0/14`). Leave blank to have - # one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - # Corresponds to the JSON property `clusterIpv4Cidr` - # @return [String] - attr_accessor :cluster_ipv4_cidr - - # The number of nodes to create in this cluster. You must ensure that your - # Compute Engine resource quota - # is sufficient for this number of instances. You must also have available - # firewall and routes quota. - # For requests, this field should only be used in lieu of a - # "node_pool" object, since this configuration (along with the - # "node_config") will be used to create a "NodePool" object with an - # auto-generated name. Do not use this and a node_pool at the same time. - # Corresponds to the JSON property `initialNodeCount` - # @return [Fixnum] - attr_accessor :initial_node_count - - # The node pools associated with this cluster. - # This field should not be set if "node_config" or "initial_node_count" are - # specified. - # Corresponds to the JSON property `nodePools` - # @return [Array] - attr_accessor :node_pools - - # The list of Google Compute Engine - # [locations](/compute/docs/zones#available) in which the cluster's nodes - # should be located. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # [Output only] Server-defined URL for the resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # [Output only] The resource URLs of [instance - # groups](/compute/docs/instance-groups/) associated with this - # cluster. - # Corresponds to the JSON property `instanceGroupUrls` - # @return [Array] - attr_accessor :instance_group_urls - - # [Output only] The IP address range of the Kubernetes services in - # this cluster, in - # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `1.2.3.4/29`). Service addresses are - # typically put in the last `/16` from the container CIDR. - # Corresponds to the JSON property `servicesIpv4Cidr` - # @return [String] - attr_accessor :services_ipv4_cidr - - # Kubernetes alpha features are enabled on this cluster. This includes alpha - # API groups (e.g. v1alpha1) and features that may not be production ready in - # the kubernetes version of the master and nodes. - # The cluster has no SLA for uptime and master/node upgrades are disabled. - # Alpha enabled clusters are automatically deleted thirty days after - # creation. - # Corresponds to the JSON property `enableKubernetesAlpha` - # @return [Boolean] - attr_accessor :enable_kubernetes_alpha - alias_method :enable_kubernetes_alpha?, :enable_kubernetes_alpha - - # An optional description of this cluster. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # [Output only] The number of nodes currently in the cluster. - # Corresponds to the JSON property `currentNodeCount` - # @return [Fixnum] - attr_accessor :current_node_count - - # The monitoring service the cluster should use to write metrics. - # Currently available options: - # * `monitoring.googleapis.com` - the Google Cloud Monitoring service. - # * `none` - no metrics will be exported from the cluster. - # * if left as an empty string, `monitoring.googleapis.com` will be used. - # Corresponds to the JSON property `monitoringService` - # @return [String] - attr_accessor :monitoring_service - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @network = args[:network] if args.key?(:network) - @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) - @zone = args[:zone] if args.key?(:zone) - @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) - @expire_time = args[:expire_time] if args.key?(:expire_time) - @logging_service = args[:logging_service] if args.key?(:logging_service) - @status_message = args[:status_message] if args.key?(:status_message) - @master_auth = args[:master_auth] if args.key?(:master_auth) - @current_master_version = args[:current_master_version] if args.key?(:current_master_version) - @node_config = args[:node_config] if args.key?(:node_config) - @addons_config = args[:addons_config] if args.key?(:addons_config) - @status = args[:status] if args.key?(:status) - @current_node_version = args[:current_node_version] if args.key?(:current_node_version) - @subnetwork = args[:subnetwork] if args.key?(:subnetwork) - @resource_labels = args[:resource_labels] if args.key?(:resource_labels) - @name = args[:name] if args.key?(:name) - @initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version) - @endpoint = args[:endpoint] if args.key?(:endpoint) - @legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac) - @create_time = args[:create_time] if args.key?(:create_time) - @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) - @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) - @node_pools = args[:node_pools] if args.key?(:node_pools) - @locations = args[:locations] if args.key?(:locations) - @self_link = args[:self_link] if args.key?(:self_link) - @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) - @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) - @enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha) - @description = args[:description] if args.key?(:description) - @current_node_count = args[:current_node_count] if args.key?(:current_node_count) - @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) - end - end - - # CreateNodePoolRequest creates a node pool for a cluster. - class CreateNodePoolRequest - include Google::Apis::Core::Hashable - - # NodePool contains the name and configuration for a cluster's node pool. - # Node pools are a set of nodes (i.e. VM's), with a common configuration and - # specification, under the control of the cluster master. They may have a set - # of Kubernetes labels applied to them, which may be used to reference them - # during pod scheduling. They may also be resized up or down, to accommodate - # the workload. - # Corresponds to the JSON property `nodePool` - # @return [Google::Apis::ContainerV1::NodePool] - attr_accessor :node_pool - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @node_pool = args[:node_pool] if args.key?(:node_pool) - end - end - - # ListOperationsResponse is the result of ListOperationsRequest. - class ListOperationsResponse - include Google::Apis::Core::Hashable - - # A list of operations in the project in the specified zone. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - # If any zones are listed here, the list of operations returned - # may be missing the operations from those zones. - # Corresponds to the JSON property `missingZones` - # @return [Array] - attr_accessor :missing_zones - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operations = args[:operations] if args.key?(:operations) - @missing_zones = args[:missing_zones] if args.key?(:missing_zones) - end - end - - # Container Engine service configuration. - class ServerConfig - include Google::Apis::Core::Hashable - - # List of valid master versions. - # Corresponds to the JSON property `validMasterVersions` - # @return [Array] - attr_accessor :valid_master_versions - - # Version of Kubernetes the service deploys by default. - # Corresponds to the JSON property `defaultClusterVersion` - # @return [String] - attr_accessor :default_cluster_version - - # Default image type. - # Corresponds to the JSON property `defaultImageType` - # @return [String] - attr_accessor :default_image_type - - # List of valid node upgrade target versions. - # Corresponds to the JSON property `validNodeVersions` - # @return [Array] - attr_accessor :valid_node_versions - - # List of valid image types. - # Corresponds to the JSON property `validImageTypes` - # @return [Array] - attr_accessor :valid_image_types - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @valid_master_versions = args[:valid_master_versions] if args.key?(:valid_master_versions) - @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) - @default_image_type = args[:default_image_type] if args.key?(:default_image_type) - @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions) - @valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types) - end - end end end end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 0a7a3b617..0195440b2 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -22,6 +22,72 @@ module Google module Apis module ContainerV1 + class SetLocationsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RollbackNodePoolUpgradeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetNodePoolSizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateClusterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateMasterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Cluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateNodePoolRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetMonitoringServiceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ServerConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MasterAuth class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,13 +118,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class NodePoolAutoscaling + class ClientCertificateConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClientCertificateConfig + class NodePoolAutoscaling class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -70,25 +136,49 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SetNetworkPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ClusterUpdate class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class IpAllocationPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetLoggingServiceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HorizontalPodAutoscaling class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetNodePoolManagementRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Empty + class SetNodePoolAutoscalingRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -118,13 +208,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateNodePoolRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LegacyAbac class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SetLabelsRequest + class SetAddonsConfigRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -136,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SetLabelsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeManagement class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,64 +268,147 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RollbackNodePoolUpgradeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + class SetLocationsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations' + end + end - include Google::Apis::Core::JsonObjectSupport + class RollbackNodePoolUpgradeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class SetNodePoolSizeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_count, as: 'nodeCount' + end end class UpdateClusterRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation - include Google::Apis::Core::JsonObjectSupport + end + end + + class NetworkPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + property :provider, as: 'provider' + end + end + + class UpdateMasterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :master_version, as: 'masterVersion' + end end class Cluster - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_master_version, as: 'currentMasterVersion' + property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation - include Google::Apis::Core::JsonObjectSupport + property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation + + property :status, as: 'status' + property :current_node_version, as: 'currentNodeVersion' + property :subnetwork, as: 'subnetwork' + property :name, as: 'name' + hash :resource_labels, as: 'resourceLabels' + property :initial_cluster_version, as: 'initialClusterVersion' + property :ip_allocation_policy, as: 'ipAllocationPolicy', class: Google::Apis::ContainerV1::IpAllocationPolicy, decorator: Google::Apis::ContainerV1::IpAllocationPolicy::Representation + + property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation + + property :endpoint, as: 'endpoint' + property :create_time, as: 'createTime' + property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + property :initial_node_count, as: 'initialNodeCount' + collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation + + collection :locations, as: 'locations' + property :self_link, as: 'selfLink' + collection :instance_group_urls, as: 'instanceGroupUrls' + property :services_ipv4_cidr, as: 'servicesIpv4Cidr' + property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation + + property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha' + property :description, as: 'description' + property :current_node_count, as: 'currentNodeCount' + property :monitoring_service, as: 'monitoringService' + property :network, as: 'network' + property :label_fingerprint, as: 'labelFingerprint' + property :zone, as: 'zone' + property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize' + property :logging_service, as: 'loggingService' + property :expire_time, as: 'expireTime' + property :status_message, as: 'statusMessage' + property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation + + end end class CreateNodePoolRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation - include Google::Apis::Core::JsonObjectSupport + collection :missing_zones, as: 'missingZones' + end + end + + class SetMonitoringServiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :monitoring_service, as: 'monitoringService' + end end class ServerConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :valid_master_versions, as: 'validMasterVersions' + property :default_image_type, as: 'defaultImageType' + property :default_cluster_version, as: 'defaultClusterVersion' + collection :valid_image_types, as: 'validImageTypes' + collection :valid_node_versions, as: 'validNodeVersions' + end end class MasterAuth # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_certificate, as: 'clientCertificate' + property :username, as: 'username' property :password, as: 'password' property :client_certificate_config, as: 'clientCertificateConfig', class: Google::Apis::ContainerV1::ClientCertificateConfig, decorator: Google::Apis::ContainerV1::ClientCertificateConfig::Representation property :client_key, as: 'clientKey' property :cluster_ca_certificate, as: 'clusterCaCertificate' - property :client_certificate, as: 'clientCertificate' - property :username, as: 'username' end end class NodeConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :preemptible, as: 'preemptible' hash :labels, as: 'labels' property :local_ssd_count, as: 'localSsdCount' hash :metadata, as: 'metadata' @@ -233,7 +418,6 @@ module Google property :machine_type, as: 'machineType' property :image_type, as: 'imageType' collection :oauth_scopes, as: 'oauthScopes' - property :preemptible, as: 'preemptible' end end @@ -248,9 +432,9 @@ module Google class ListClustersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :missing_zones, as: 'missingZones' collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation + collection :missing_zones, as: 'missingZones' end end @@ -261,15 +445,6 @@ module Google end end - class NodePoolAutoscaling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enabled, as: 'enabled' - property :max_node_count, as: 'maxNodeCount' - property :min_node_count, as: 'minNodeCount' - end - end - class ClientCertificateConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -277,6 +452,15 @@ module Google end end + class NodePoolAutoscaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_node_count, as: 'maxNodeCount' + property :min_node_count, as: 'minNodeCount' + property :enabled, as: 'enabled' + end + end + class SetMasterAuthRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -286,19 +470,46 @@ module Google end end + class SetNetworkPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation + + end + end + class ClusterUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :desired_locations, as: 'desiredLocations' + property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation + + property :desired_monitoring_service, as: 'desiredMonitoringService' property :desired_image_type, as: 'desiredImageType' property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_version, as: 'desiredNodeVersion' property :desired_master_version, as: 'desiredMasterVersion' - property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation + end + end - collection :desired_locations, as: 'desiredLocations' - property :desired_monitoring_service, as: 'desiredMonitoringService' + class IpAllocationPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_subnetwork, as: 'createSubnetwork' + property :use_ip_aliases, as: 'useIpAliases' + property :subnetwork_name, as: 'subnetworkName' + property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + property :node_ipv4_cidr, as: 'nodeIpv4Cidr' + property :services_ipv4_cidr, as: 'servicesIpv4Cidr' + end + end + + class SetLoggingServiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :logging_service, as: 'loggingService' end end @@ -309,6 +520,12 @@ module Google end end + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class SetNodePoolManagementRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -317,9 +534,11 @@ module Google end end - class Empty + class SetNodePoolAutoscalingRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation + end end @@ -351,6 +570,14 @@ module Google end end + class UpdateNodePoolRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_type, as: 'imageType' + property :node_version, as: 'nodeVersion' + end + end + class LegacyAbac # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -358,20 +585,17 @@ module Google end end - class SetLabelsRequest + class SetAddonsConfigRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :resource_labels, as: 'resourceLabels' - property :label_fingerprint, as: 'labelFingerprint' + property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation + end end class NodePool # @private class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status' - property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation - property :name, as: 'name' property :status_message, as: 'statusMessage' property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation @@ -382,14 +606,25 @@ module Google property :self_link, as: 'selfLink' property :version, as: 'version' collection :instance_group_urls, as: 'instanceGroupUrls' + property :status, as: 'status' + property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation + + end + end + + class SetLabelsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label_fingerprint, as: 'labelFingerprint' + hash :resource_labels, as: 'resourceLabels' end end class NodeManagement # @private class Representation < Google::Apis::Core::JsonRepresentation - property :auto_upgrade, as: 'autoUpgrade' property :auto_repair, as: 'autoRepair' + property :auto_upgrade, as: 'autoUpgrade' property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation end @@ -411,14 +646,14 @@ module Google class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :zone, as: 'zone' property :status, as: 'status' - property :name, as: 'name' property :status_message, as: 'statusMessage' + property :name, as: 'name' property :self_link, as: 'selfLink' property :target_link, as: 'targetLink' property :detail, as: 'detail' property :operation_type, as: 'operationType' - property :zone, as: 'zone' end end @@ -431,97 +666,6 @@ module Google end end - - class RollbackNodePoolUpgradeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class SetNodePoolSizeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :node_count, as: 'nodeCount' - end - end - - class UpdateClusterRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation - - end - end - - class Cluster - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :network, as: 'network' - property :label_fingerprint, as: 'labelFingerprint' - property :zone, as: 'zone' - property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize' - property :expire_time, as: 'expireTime' - property :logging_service, as: 'loggingService' - property :status_message, as: 'statusMessage' - property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation - - property :current_master_version, as: 'currentMasterVersion' - property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation - - property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation - - property :status, as: 'status' - property :current_node_version, as: 'currentNodeVersion' - property :subnetwork, as: 'subnetwork' - hash :resource_labels, as: 'resourceLabels' - property :name, as: 'name' - property :initial_cluster_version, as: 'initialClusterVersion' - property :endpoint, as: 'endpoint' - property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation - - property :create_time, as: 'createTime' - property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' - property :initial_node_count, as: 'initialNodeCount' - collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation - - collection :locations, as: 'locations' - property :self_link, as: 'selfLink' - collection :instance_group_urls, as: 'instanceGroupUrls' - property :services_ipv4_cidr, as: 'servicesIpv4Cidr' - property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha' - property :description, as: 'description' - property :current_node_count, as: 'currentNodeCount' - property :monitoring_service, as: 'monitoringService' - end - end - - class CreateNodePoolRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation - - end - end - - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation - - collection :missing_zones, as: 'missingZones' - end - end - - class ServerConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :valid_master_versions, as: 'validMasterVersions' - property :default_cluster_version, as: 'defaultClusterVersion' - property :default_image_type, as: 'defaultImageType' - collection :valid_node_versions, as: 'validNodeVersions' - collection :valid_image_types, as: 'validImageTypes' - end - end end end end diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index d0ced4f8b..a95cc0151 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -83,17 +83,17 @@ module Google execute_or_queue_command(command, &block) end - # Start master IP rotation. + # Updates the settings of a specific cluster. # @param [String] project_id # The Google Developers Console [project ID or project - # number](https://developers.google.com/console/help/new/#projectnumber). + # number](https://support.google.com/cloud/answer/6158840). # @param [String] zone # The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # @param [String] cluster_id - # The name of the cluster. - # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -111,10 +111,94 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options) - command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation - command.request_object = start_ip_rotation_request_object + def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) + command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation + command.request_object = update_cluster_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the monitoring service of a specific cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 monitoring_project_zone_cluster(project_id, zone, cluster_id, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options) + command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation + command.request_object = set_monitoring_service_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the master of a specific cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 master_project_zone_cluster(project_id, zone, cluster_id, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options) + command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation + command.request_object = update_master_request_object command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? @@ -169,13 +253,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the cluster, including the Kubernetes endpoint and all worker - # nodes. - # Firewalls and routes that were configured during cluster creation - # are also deleted. - # Other Google Compute Engine resources that might be in use by the cluster - # (e.g. load balancer resources) will not be deleted if they weren't present - # at the initial create time. + # Sets the logging service of a specific cluster. # @param [String] project_id # The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -184,7 +262,8 @@ module Google # [zone](/compute/docs/zones#available) in which the cluster # resides. # @param [String] cluster_id - # The name of the cluster to delete. + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -202,8 +281,10 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) + def logging_project_zone_cluster(project_id, zone, cluster_id, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options) + command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation + command.request_object = set_logging_service_request_object command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? @@ -251,6 +332,48 @@ module Google execute_or_queue_command(command, &block) end + # Sets labels on a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options) + command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation + command.request_object = set_labels_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a cluster, consisting of the specified number and type of Google # Compute Engine instances. # By default, the cluster is created in the project's @@ -299,48 +422,6 @@ module Google execute_or_queue_command(command, &block) end - # Sets labels on a cluster. - # @param [String] project_id - # The Google Developers Console [project ID or project - # number](https://developers.google.com/console/help/new/#projectnumber). - # @param [String] zone - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # @param [String] cluster_id - # The name of the cluster. - # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_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::ContainerV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1::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 resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options) - command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation - command.request_object = set_labels_request_object - command.response_representation = Google::Apis::ContainerV1::Operation::Representation - command.response_class = Google::Apis::ContainerV1::Operation - command.params['projectId'] = project_id unless project_id.nil? - command.params['zone'] = zone unless zone.nil? - command.params['clusterId'] = cluster_id unless cluster_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 - # Completes master IP rotation. # @param [String] project_id # The Google Developers Console [project ID or project @@ -464,17 +545,17 @@ module Google execute_or_queue_command(command, &block) end - # Updates the settings of a specific cluster. + # Enables/Disables Network Policy for a cluster. # @param [String] project_id # The Google Developers Console [project ID or project - # number](https://support.google.com/cloud/answer/6158840). + # number](https://developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # @param [String] cluster_id - # The name of the cluster to upgrade. - # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object + # The name of the cluster. + # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -492,10 +573,10 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) - command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation - command.request_object = update_cluster_request_object + def set_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options) + command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation + command.request_object = set_network_policy_request_object command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? @@ -506,6 +587,436 @@ module Google execute_or_queue_command(command, &block) end + # Start master IP rotation. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options) + command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation + command.request_object = start_ip_rotation_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the addons of a specific cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options) + command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation + command.request_object = set_addons_config_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the cluster, including the Kubernetes endpoint and all worker + # nodes. + # Firewalls and routes that were configured during cluster creation + # are also deleted. + # Other Google Compute Engine resources that might be in use by the cluster + # (e.g. load balancer resources) will not be deleted if they weren't present + # at the initial create time. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the locations of a specific cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 locations_project_zone_cluster(project_id, zone, cluster_id, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options) + command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation + command.request_object = set_locations_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the node pools for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListNodePoolsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) + command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_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 + + # Roll back the previously Aborted or Failed NodePool upgrade. + # This will be an no-op if the last upgrade successfully completed. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to rollback. + # @param [String] node_pool_id + # The name of the node pool to rollback. + # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options) + command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation + command.request_object = rollback_node_pool_upgrade_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a node pool for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) + command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation + command.request_object = create_node_pool_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the autoscaling settings of a specific node pool. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [String] node_pool_id + # The name of the node pool to upgrade. + # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 autoscaling_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options) + command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation + command.request_object = set_node_pool_autoscaling_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_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 + + # Retrieves the node pool requested. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [String] node_pool_id + # The name of the node pool. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::NodePool] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) + command.response_representation = Google::Apis::ContainerV1::NodePool::Representation + command.response_class = Google::Apis::ContainerV1::NodePool + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the version and/or image type of a specific node pool. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to upgrade. + # @param [String] node_pool_id + # The name of the node pool to upgrade. + # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options) + command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation + command.request_object = update_node_pool_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a node pool from a cluster. # @param [String] project_id # The Google Developers Console [project ID or project @@ -638,47 +1149,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists the node pools for a cluster. - # @param [String] project_id - # The Google Developers Console [project ID or project - # number](https://developers.google.com/console/help/new/#projectnumber). - # @param [String] zone - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # @param [String] cluster_id - # The name of the cluster. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1::ListNodePoolsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) - command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation - command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['zone'] = zone unless zone.nil? - command.params['clusterId'] = cluster_id unless cluster_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 - - # Roll back the previously Aborted or Failed NodePool upgrade. - # This will be an no-op if the last upgrade successfully completed. + # Gets the specified operation. # @param [String] project_id # The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -686,11 +1157,8 @@ module Google # The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. - # @param [String] cluster_id - # The name of the cluster to rollback. - # @param [String] node_pool_id - # The name of the node pool to rollback. - # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object + # @param [String] operation_id + # The server-assigned `name` of the operation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -708,32 +1176,25 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options) - command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation - command.request_object = rollback_node_pool_upgrade_request_object + def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? - command.params['clusterId'] = cluster_id unless cluster_id.nil? - command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.params['operationId'] = operation_id unless operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Creates a node pool for a cluster. + # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id # The Google Developers Console [project ID or project - # number](https://developers.google.com/console/help/new/#projectnumber). + # number](https://support.google.com/cloud/answer/6158840). # @param [String] zone - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # @param [String] cluster_id - # The name of the cluster. - # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) + # to return operations for, or `-` for all zones. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -743,65 +1204,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ContainerV1::Operation] + # @return [Google::Apis::ContainerV1::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 create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) - command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation - command.request_object = create_node_pool_request_object - command.response_representation = Google::Apis::ContainerV1::Operation::Representation - command.response_class = Google::Apis::ContainerV1::Operation + def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options) + command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListOperationsResponse command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? - command.params['clusterId'] = cluster_id unless cluster_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 - - # Retrieves the node pool requested. - # @param [String] project_id - # The Google Developers Console [project ID or project - # number](https://developers.google.com/console/help/new/#projectnumber). - # @param [String] zone - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # @param [String] cluster_id - # The name of the cluster. - # @param [String] node_pool_id - # The name of the node pool. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1::NodePool] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) - command.response_representation = Google::Apis::ContainerV1::NodePool::Representation - command.response_class = Google::Apis::ContainerV1::NodePool - command.params['projectId'] = project_id unless project_id.nil? - command.params['zone'] = zone unless zone.nil? - command.params['clusterId'] = cluster_id unless cluster_id.nil? - command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -847,80 +1263,6 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - - # Lists all operations in a project in a specific zone or all zones. - # @param [String] project_id - # The Google Developers Console [project ID or project - # number](https://support.google.com/cloud/answer/6158840). - # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) - # to return operations for, or `-` for all zones. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1::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_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options) - command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation - command.response_class = Google::Apis::ContainerV1::ListOperationsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['zone'] = zone unless zone.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the specified operation. - # @param [String] project_id - # The Google Developers Console [project ID or project - # number](https://support.google.com/cloud/answer/6158840). - # @param [String] zone - # The name of the Google Compute Engine - # [zone](/compute/docs/zones#available) in which the cluster - # resides. - # @param [String] operation_id - # The server-assigned `name` of the operation. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContainerV1::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_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options) - command.response_representation = Google::Apis::ContainerV1::Operation::Representation - command.response_class = Google::Apis::ContainerV1::Operation - command.params['projectId'] = project_id unless project_id.nil? - command.params['zone'] = zone unless zone.nil? - command.params['operationId'] = operation_id unless operation_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end protected diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index ba2401ab1..afa3ab9fc 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20170531' + REVISION = '20170627' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 576440b10..749e577c6 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -87,7 +87,9 @@ module Google end # Claims the website of a Merchant Center sub-account. This method can only be - # called for multi-client accounts. + # called for accounts to which the managing account has access: either the + # managing account itself or sub-accounts if the managing account is a multi- + # client account. # @param [Fixnum] merchant_id # The ID of the managing account. # @param [Fixnum] account_id diff --git a/generated/google/apis/customsearch_v1.rb b/generated/google/apis/customsearch_v1.rb index 8b8833e42..42ef1a5d6 100644 --- a/generated/google/apis/customsearch_v1.rb +++ b/generated/google/apis/customsearch_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/custom-search/v1/using_rest module CustomsearchV1 VERSION = 'V1' - REVISION = '20170530' + REVISION = '20170615' end end end diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 054a877d6..e7a4d42c5 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,10 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20170610' - - # View and manage your Google Compute Engine resources - AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' + REVISION = '20170701' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' @@ -38,6 +35,9 @@ module Google # View your Google Compute Engine resources AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly' + + # View and manage your Google Compute Engine resources + AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' end end end diff --git a/generated/google/apis/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 90f523e19..fa8bc73fa 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -22,1200 +22,6 @@ module Google module Apis module DataflowV1b3 - # The environment values to set at runtime. - class RuntimeEnvironment - include Google::Apis::Core::Hashable - - # The Compute Engine [availability - # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - # for launching worker instances to run your pipeline. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - # The maximum number of Google Compute Engine instances to be made - # available to your pipeline during execution, from 1 to 1000. - # Corresponds to the JSON property `maxWorkers` - # @return [Fixnum] - attr_accessor :max_workers - - # The Cloud Storage path to use for temporary files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # Corresponds to the JSON property `tempLocation` - # @return [String] - attr_accessor :temp_location - - # Whether to bypass the safety checks for the job's temporary directory. - # Use with caution. - # Corresponds to the JSON property `bypassTempDirValidation` - # @return [Boolean] - attr_accessor :bypass_temp_dir_validation - alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation - - # The email address of the service account to run the job as. - # Corresponds to the JSON property `serviceAccountEmail` - # @return [String] - attr_accessor :service_account_email - - # The machine type to use for the job. Defaults to the value from the - # template if not specified. - # 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) - @zone = args[:zone] if args.key?(:zone) - @max_workers = args[:max_workers] if args.key?(:max_workers) - @temp_location = args[:temp_location] if args.key?(:temp_location) - @bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation) - @service_account_email = args[:service_account_email] if args.key?(:service_account_email) - @machine_type = args[:machine_type] if args.key?(:machine_type) - end - end - - # Describes mounted data disk. - class MountedDataDisk - include Google::Apis::Core::Hashable - - # The name of the data disk. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - # Corresponds to the JSON property `dataDisk` - # @return [String] - attr_accessor :data_disk - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_disk = args[:data_disk] if args.key?(:data_disk) - end - end - - # Identifies the location of a streaming side input. - class StreamingSideInputLocation - include Google::Apis::Core::Hashable - - # Identifies the state family where this side input is stored. - # Corresponds to the JSON property `stateFamily` - # @return [String] - attr_accessor :state_family - - # Identifies the particular side input within the streaming Dataflow job. - # Corresponds to the JSON property `tag` - # @return [String] - attr_accessor :tag - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @state_family = args[:state_family] if args.key?(:state_family) - @tag = args[:tag] if args.key?(:tag) - end - end - - # Response to the request to launch a template. - class LaunchTemplateResponse - include Google::Apis::Core::Hashable - - # Defines a job to be run by the Cloud Dataflow service. - # Corresponds to the JSON property `job` - # @return [Google::Apis::DataflowV1b3::Job] - attr_accessor :job - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @job = args[:job] if args.key?(:job) - end - end - - # Defines a job to be run by the Cloud Dataflow service. - class Job - include Google::Apis::Core::Hashable - - # The location that contains this job. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The timestamp associated with the current state. - # Corresponds to the JSON property `currentStateTime` - # @return [String] - attr_accessor :current_state_time - - # The map of transform name prefixes of the job to be replaced to the - # corresponding name prefixes of the new job. - # Corresponds to the JSON property `transformNameMapping` - # @return [Hash] - attr_accessor :transform_name_mapping - - # The timestamp when the job was initially created. Immutable and set by the - # Cloud Dataflow service. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Describes the environment in which a Dataflow Job runs. - # Corresponds to the JSON property `environment` - # @return [Google::Apis::DataflowV1b3::Environment] - attr_accessor :environment - - # User-defined labels for this job. - # The labels map can contain no more than 64 entries. Entries of the labels - # map are UTF8 strings that comply with the following restrictions: - # * Keys must conform to regexp: \p`Ll`\p`Lo``0,62` - # * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` - # * Both keys and values are additionally constrained to be <= 128 bytes in - # size. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # This field may be mutated by the Cloud Dataflow service; - # callers cannot mutate it. - # Corresponds to the JSON property `stageStates` - # @return [Array] - attr_accessor :stage_states - - # The ID of the Cloud Platform project that the job belongs to. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # The type of Cloud Dataflow job. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # A descriptive representation of submitted pipeline as well as the executed - # form. This data is provided by the Dataflow service for ease of visualizing - # the pipeline and interpretting Dataflow provided metrics. - # Corresponds to the JSON property `pipelineDescription` - # @return [Google::Apis::DataflowV1b3::PipelineDescription] - attr_accessor :pipeline_description - - # If this job is an update of an existing job, this field is the job ID - # of the job it replaced. - # When sending a `CreateJobRequest`, you can update a job by specifying it - # here. The job named here is stopped, and its intermediate state is - # transferred to this job. - # Corresponds to the JSON property `replaceJobId` - # @return [String] - attr_accessor :replace_job_id - - # The job's requested state. - # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and - # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may - # also be used to directly set a job's requested state to - # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the - # job if it has not already reached a terminal state. - # Corresponds to the JSON property `requestedState` - # @return [String] - attr_accessor :requested_state - - # A set of files the system should be aware of that are used - # for temporary storage. These temporary files will be - # removed on job completion. - # No duplicates are allowed. - # No file patterns are supported. - # The supported files are: - # Google Cloud Storage: - # storage.googleapis.com/`bucket`/`object` - # bucket.storage.googleapis.com/`object` - # Corresponds to the JSON property `tempFiles` - # @return [Array] - attr_accessor :temp_files - - # The client's unique identifier of the job, re-used across retried attempts. - # If this field is set, the service will ensure its uniqueness. - # The request to create a job will fail if the service has knowledge of a - # previously submitted job with the same client's ID and job name. - # The caller may use this field to ensure idempotence of job - # creation across retried attempts to create a job. - # By default, the field is empty and, in that case, the service ignores it. - # Corresponds to the JSON property `clientRequestId` - # @return [String] - attr_accessor :client_request_id - - # The user-specified Cloud Dataflow job name. - # Only one Job with a given name may exist in a project at any - # given time. If a caller attempts to create a Job with the same - # name as an already-existing Job, the attempt returns the - # existing Job. - # The name must match the regular expression - # `[a-z]([-a-z0-9]`0,38`[a-z0-9])?` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # If another job is an update of this job (and thus, this job is in - # `JOB_STATE_UPDATED`), this field contains the ID of that job. - # Corresponds to the JSON property `replacedByJobId` - # @return [String] - attr_accessor :replaced_by_job_id - - # The top-level steps that constitute the entire job. - # Corresponds to the JSON property `steps` - # @return [Array] - attr_accessor :steps - - # The unique ID of this job. - # This field is set by the Cloud Dataflow service when the Job is - # created, and is immutable for the life of the job. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Additional information about how a Cloud Dataflow job will be executed that - # isn't contained in the submitted job. - # Corresponds to the JSON property `executionInfo` - # @return [Google::Apis::DataflowV1b3::JobExecutionInfo] - attr_accessor :execution_info - - # The current state of the job. - # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - # specified. - # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - # terminal state. After a job has reached a terminal state, no - # further state updates may be made. - # This field may be mutated by the Cloud Dataflow service; - # callers cannot mutate it. - # Corresponds to the JSON property `currentState` - # @return [String] - attr_accessor :current_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @location = args[:location] if args.key?(:location) - @current_state_time = args[:current_state_time] if args.key?(:current_state_time) - @transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping) - @create_time = args[:create_time] if args.key?(:create_time) - @environment = args[:environment] if args.key?(:environment) - @labels = args[:labels] if args.key?(:labels) - @stage_states = args[:stage_states] if args.key?(:stage_states) - @project_id = args[:project_id] if args.key?(:project_id) - @type = args[:type] if args.key?(:type) - @pipeline_description = args[:pipeline_description] if args.key?(:pipeline_description) - @replace_job_id = args[:replace_job_id] if args.key?(:replace_job_id) - @requested_state = args[:requested_state] if args.key?(:requested_state) - @temp_files = args[:temp_files] if args.key?(:temp_files) - @client_request_id = args[:client_request_id] if args.key?(:client_request_id) - @name = args[:name] if args.key?(:name) - @replaced_by_job_id = args[:replaced_by_job_id] if args.key?(:replaced_by_job_id) - @steps = args[:steps] if args.key?(:steps) - @id = args[:id] if args.key?(:id) - @execution_info = args[:execution_info] if args.key?(:execution_info) - @current_state = args[:current_state] if args.key?(:current_state) - end - end - - # When a task splits using WorkItemStatus.dynamic_source_split, this - # message describes the two parts of the split relative to the - # description of the current task's input. - class DynamicSourceSplit - include Google::Apis::Core::Hashable - - # Specification of one of the bundles produced as a result of splitting - # a Source (e.g. when executing a SourceSplitRequest, or when - # splitting an active task using WorkItemStatus.dynamic_source_split), - # relative to the source being split. - # Corresponds to the JSON property `residual` - # @return [Google::Apis::DataflowV1b3::DerivedSource] - attr_accessor :residual - - # Specification of one of the bundles produced as a result of splitting - # a Source (e.g. when executing a SourceSplitRequest, or when - # splitting an active task using WorkItemStatus.dynamic_source_split), - # relative to the source being split. - # Corresponds to the JSON property `primary` - # @return [Google::Apis::DataflowV1b3::DerivedSource] - attr_accessor :primary - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @residual = args[:residual] if args.key?(:residual) - @primary = args[:primary] if args.key?(:primary) - end - end - - # Specification of one of the bundles produced as a result of splitting - # a Source (e.g. when executing a SourceSplitRequest, or when - # splitting an active task using WorkItemStatus.dynamic_source_split), - # relative to the source being split. - class DerivedSource - include Google::Apis::Core::Hashable - - # What source to base the produced source on (if any). - # Corresponds to the JSON property `derivationMode` - # @return [String] - attr_accessor :derivation_mode - - # A source that records can be read and decoded from. - # Corresponds to the JSON property `source` - # @return [Google::Apis::DataflowV1b3::Source] - attr_accessor :source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @derivation_mode = args[:derivation_mode] if args.key?(:derivation_mode) - @source = args[:source] if args.key?(:source) - end - end - - # The result of a SourceOperationRequest, specified in - # ReportWorkItemStatusRequest.source_operation when the work item - # is completed. - class SourceOperationResponse - include Google::Apis::Core::Hashable - - # The result of a SourceGetMetadataOperation. - # Corresponds to the JSON property `getMetadata` - # @return [Google::Apis::DataflowV1b3::SourceGetMetadataResponse] - attr_accessor :get_metadata - - # The response to a SourceSplitRequest. - # Corresponds to the JSON property `split` - # @return [Google::Apis::DataflowV1b3::SourceSplitResponse] - attr_accessor :split - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @get_metadata = args[:get_metadata] if args.key?(:get_metadata) - @split = args[:split] if args.key?(:split) - end - end - - # Response to a send capture request. - # nothing - class SendDebugCaptureResponse - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Information about a side input of a DoFn or an input of a SeqDoFn. - class SideInputInfo - include Google::Apis::Core::Hashable - - # The source(s) to read element(s) from to get the value of this side input. - # If more than one source, then the elements are taken from the - # sources, in the specified order if order matters. - # At least one source is required. - # Corresponds to the JSON property `sources` - # @return [Array] - attr_accessor :sources - - # How to interpret the source element(s) as a side input value. - # Corresponds to the JSON property `kind` - # @return [Hash] - attr_accessor :kind - - # The id of the tag the user code will access this side input by; - # this should correspond to the tag of some MultiOutputInfo. - # Corresponds to the JSON property `tag` - # @return [String] - attr_accessor :tag - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @sources = args[:sources] if args.key?(:sources) - @kind = args[:kind] if args.key?(:kind) - @tag = args[:tag] if args.key?(:tag) - end - end - - # A single message which encapsulates structured name and metadata for a given - # counter. - class CounterStructuredNameAndMetadata - include Google::Apis::Core::Hashable - - # Identifies a counter within a per-job namespace. Counters whose structured - # names are the same get merged into a single value for the job. - # Corresponds to the JSON property `name` - # @return [Google::Apis::DataflowV1b3::CounterStructuredName] - attr_accessor :name - - # CounterMetadata includes all static non-name non-value counter attributes. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::DataflowV1b3::CounterMetadata] - attr_accessor :metadata - - 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) - end - end - - # A position that encapsulates an inner position and an index for the inner - # position. A ConcatPosition can be used by a reader of a source that - # encapsulates a set of other sources. - class ConcatPosition - include Google::Apis::Core::Hashable - - # Position defines a position within a collection of data. The value - # can be either the end position, a key (used with ordered - # collections), a byte offset, or a record index. - # Corresponds to the JSON property `position` - # @return [Google::Apis::DataflowV1b3::Position] - attr_accessor :position - - # Index of the inner source. - # Corresponds to the JSON property `index` - # @return [Fixnum] - attr_accessor :index - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @index = args[:index] if args.key?(:index) - end - end - - # An instruction that writes records. - # Takes one input, produces no outputs. - class WriteInstruction - include Google::Apis::Core::Hashable - - # An input of an instruction, as a reference to an output of a - # producer instruction. - # Corresponds to the JSON property `input` - # @return [Google::Apis::DataflowV1b3::InstructionInput] - attr_accessor :input - - # A sink that records can be encoded and written to. - # Corresponds to the JSON property `sink` - # @return [Google::Apis::DataflowV1b3::Sink] - attr_accessor :sink - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @input = args[:input] if args.key?(:input) - @sink = args[:sink] if args.key?(:sink) - end - end - - # Settings for WorkerPool autoscaling. - class AutoscalingSettings - include Google::Apis::Core::Hashable - - # The maximum number of workers to cap scaling at. - # Corresponds to the JSON property `maxNumWorkers` - # @return [Fixnum] - attr_accessor :max_num_workers - - # The algorithm to use for autoscaling. - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max_num_workers = args[:max_num_workers] if args.key?(:max_num_workers) - @algorithm = args[:algorithm] if args.key?(:algorithm) - end - end - - # Describes full or partial data disk assignment information of the computation - # ranges. - class StreamingComputationRanges - include Google::Apis::Core::Hashable - - # Data disk assignments for ranges from this computation. - # Corresponds to the JSON property `rangeAssignments` - # @return [Array] - attr_accessor :range_assignments - - # The ID of the computation. - # Corresponds to the JSON property `computationId` - # @return [String] - attr_accessor :computation_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @range_assignments = args[:range_assignments] if args.key?(:range_assignments) - @computation_id = args[:computation_id] if args.key?(:computation_id) - end - end - - # Description of the composing transforms, names/ids, and input/outputs of a - # stage of execution. Some composing transforms and sources may have been - # generated by the Dataflow service during execution planning. - class ExecutionStageSummary - include Google::Apis::Core::Hashable - - # Transforms that comprise this execution stage. - # Corresponds to the JSON property `componentTransform` - # @return [Array] - attr_accessor :component_transform - - # Collections produced and consumed by component transforms of this stage. - # Corresponds to the JSON property `componentSource` - # @return [Array] - attr_accessor :component_source - - # Type of tranform this stage is executing. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Output sources for this stage. - # Corresponds to the JSON property `outputSource` - # @return [Array] - attr_accessor :output_source - - # Dataflow service generated name for this stage. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Input sources for this stage. - # Corresponds to the JSON property `inputSource` - # @return [Array] - attr_accessor :input_source - - # Dataflow service generated id for this stage. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @component_transform = args[:component_transform] if args.key?(:component_transform) - @component_source = args[:component_source] if args.key?(:component_source) - @kind = args[:kind] if args.key?(:kind) - @output_source = args[:output_source] if args.key?(:output_source) - @name = args[:name] if args.key?(:name) - @input_source = args[:input_source] if args.key?(:input_source) - @id = args[:id] if args.key?(:id) - end - end - - # A request for sending worker messages to the service. - class SendWorkerMessagesRequest - include Google::Apis::Core::Hashable - - # The WorkerMessages to send. - # Corresponds to the JSON property `workerMessages` - # @return [Array] - attr_accessor :worker_messages - - # The location which contains the job - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @worker_messages = args[:worker_messages] if args.key?(:worker_messages) - @location = args[:location] if args.key?(:location) - end - end - - # Bucket of values for Distribution's logarithmic histogram. - class LogBucket - include Google::Apis::Core::Hashable - - # floor(log2(value)); defined to be zero for nonpositive values. - # log(-1) = 0 - # log(0) = 0 - # log(1) = 0 - # log(2) = 1 - # log(3) = 1 - # log(4) = 2 - # log(5) = 2 - # Corresponds to the JSON property `log` - # @return [Fixnum] - attr_accessor :log - - # Number of values in this bucket. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log = args[:log] if args.key?(:log) - @count = args[:count] if args.key?(:count) - end - end - - # DEPRECATED in favor of DerivedSource. - class SourceSplitShard - include Google::Apis::Core::Hashable - - # DEPRECATED - # Corresponds to the JSON property `derivationMode` - # @return [String] - attr_accessor :derivation_mode - - # A source that records can be read and decoded from. - # Corresponds to the JSON property `source` - # @return [Google::Apis::DataflowV1b3::Source] - attr_accessor :source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @derivation_mode = args[:derivation_mode] if args.key?(:derivation_mode) - @source = args[:source] if args.key?(:source) - end - end - - # Modeled after information exposed by /proc/stat. - class CpuTime - include Google::Apis::Core::Hashable - - # Timestamp of the measurement. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - # Total active CPU time across all cores (ie., non-idle) in milliseconds - # since start-up. - # Corresponds to the JSON property `totalMs` - # @return [Fixnum] - attr_accessor :total_ms - - # Average CPU utilization rate (% non-idle cpu / second) since previous - # sample. - # Corresponds to the JSON property `rate` - # @return [Float] - attr_accessor :rate - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @total_ms = args[:total_ms] if args.key?(:total_ms) - @rate = args[:rate] if args.key?(:rate) - end - end - - # Describes the environment in which a Dataflow Job runs. - class Environment - include Google::Apis::Core::Hashable - - # A description of the process that generated the request. - # Corresponds to the JSON property `userAgent` - # @return [Hash] - attr_accessor :user_agent - - # The Cloud Dataflow SDK pipeline options specified by the user. These - # options are passed through the service and are used to recreate the - # SDK pipeline options on the worker in a language agnostic and platform - # independent way. - # Corresponds to the JSON property `sdkPipelineOptions` - # @return [Hash] - attr_accessor :sdk_pipeline_options - - # The type of cluster manager API to use. If unknown or - # unspecified, the service will attempt to choose a reasonable - # default. This should be in the form of the API service name, - # e.g. "compute.googleapis.com". - # Corresponds to the JSON property `clusterManagerApiService` - # @return [String] - attr_accessor :cluster_manager_api_service - - # The prefix of the resources the system should use for temporary - # storage. The system will append the suffix "/temp-`JOBNAME` to - # this resource prefix, where `JOBNAME` is the value of the - # job_name field. The resulting bucket and object prefix is used - # as the prefix of the resources used to store temporary data - # needed during the job execution. NOTE: This will override the - # value in taskrunner_settings. - # The supported resource type is: - # Google Cloud Storage: - # storage.googleapis.com/`bucket`/`object` - # bucket.storage.googleapis.com/`object` - # Corresponds to the JSON property `tempStoragePrefix` - # @return [String] - attr_accessor :temp_storage_prefix - - # The worker pools. At least one "harness" worker pool must be - # specified in order for the job to have workers. - # Corresponds to the JSON property `workerPools` - # @return [Array] - attr_accessor :worker_pools - - # The dataset for the current project where various workflow - # related tables are stored. - # The supported resource type is: - # Google BigQuery: - # bigquery.googleapis.com/`dataset` - # Corresponds to the JSON property `dataset` - # @return [String] - attr_accessor :dataset - - # The list of experiments to enable. - # Corresponds to the JSON property `experiments` - # @return [Array] - attr_accessor :experiments - - # A structure describing which components and their versions of the service - # are required in order to run the job. - # Corresponds to the JSON property `version` - # @return [Hash] - attr_accessor :version - - # Experimental settings. - # Corresponds to the JSON property `internalExperiments` - # @return [Hash] - attr_accessor :internal_experiments - - # Identity to run virtual machines as. Defaults to the default account. - # Corresponds to the JSON property `serviceAccountEmail` - # @return [String] - attr_accessor :service_account_email - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @user_agent = args[:user_agent] if args.key?(:user_agent) - @sdk_pipeline_options = args[:sdk_pipeline_options] if args.key?(:sdk_pipeline_options) - @cluster_manager_api_service = args[:cluster_manager_api_service] if args.key?(:cluster_manager_api_service) - @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) - @worker_pools = args[:worker_pools] if args.key?(:worker_pools) - @dataset = args[:dataset] if args.key?(:dataset) - @experiments = args[:experiments] if args.key?(:experiments) - @version = args[:version] if args.key?(:version) - @internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments) - @service_account_email = args[:service_account_email] if args.key?(:service_account_email) - end - end - - # A task which describes what action should be performed for the specified - # streaming computation ranges. - class StreamingComputationTask - include Google::Apis::Core::Hashable - - # Describes the set of data disks this task should apply to. - # Corresponds to the JSON property `dataDisks` - # @return [Array] - attr_accessor :data_disks - - # A type of streaming computation task. - # Corresponds to the JSON property `taskType` - # @return [String] - attr_accessor :task_type - - # Contains ranges of a streaming computation this task should apply to. - # Corresponds to the JSON property `computationRanges` - # @return [Array] - attr_accessor :computation_ranges - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_disks = args[:data_disks] if args.key?(:data_disks) - @task_type = args[:task_type] if args.key?(:task_type) - @computation_ranges = args[:computation_ranges] if args.key?(:computation_ranges) - end - end - - # Request to send encoded debug information. - class SendDebugCaptureRequest - include Google::Apis::Core::Hashable - - # The worker id, i.e., VM hostname. - # Corresponds to the JSON property `workerId` - # @return [String] - attr_accessor :worker_id - - # The location which contains the job specified by job_id. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The encoded debug information. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - # The internal component id for which debug information is sent. - # Corresponds to the JSON property `componentId` - # @return [String] - attr_accessor :component_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @worker_id = args[:worker_id] if args.key?(:worker_id) - @location = args[:location] if args.key?(:location) - @data = args[:data] if args.key?(:data) - @component_id = args[:component_id] if args.key?(:component_id) - end - end - - # Response to a get debug configuration request. - class GetDebugConfigResponse - include Google::Apis::Core::Hashable - - # The encoded debug configuration for the requested component. - # Corresponds to the JSON property `config` - # @return [String] - attr_accessor :config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @config = args[:config] if args.key?(:config) - end - end - - # Description of a transform executed as part of an execution stage. - class ComponentTransform - include Google::Apis::Core::Hashable - - # User name for the original user transform with which this transform is - # most closely associated. - # Corresponds to the JSON property `originalTransform` - # @return [String] - attr_accessor :original_transform - - # Dataflow service generated name for this source. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Human-readable name for this transform; may be user or system generated. - # Corresponds to the JSON property `userName` - # @return [String] - attr_accessor :user_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @original_transform = args[:original_transform] if args.key?(:original_transform) - @name = args[:name] if args.key?(:name) - @user_name = args[:user_name] if args.key?(:user_name) - end - end - - # A task which initializes part of a streaming Dataflow job. - class StreamingSetupTask - include Google::Apis::Core::Hashable - - # The TCP port on which the worker should listen for messages from - # other streaming computation workers. - # Corresponds to the JSON property `receiveWorkPort` - # @return [Fixnum] - attr_accessor :receive_work_port - - # Global topology of the streaming Dataflow job, including all - # computations and their sharded locations. - # Corresponds to the JSON property `streamingComputationTopology` - # @return [Google::Apis::DataflowV1b3::TopologyConfig] - attr_accessor :streaming_computation_topology - - # The TCP port used by the worker to communicate with the Dataflow - # worker harness. - # Corresponds to the JSON property `workerHarnessPort` - # @return [Fixnum] - attr_accessor :worker_harness_port - - # The user has requested drain. - # Corresponds to the JSON property `drain` - # @return [Boolean] - attr_accessor :drain - alias_method :drain?, :drain - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @receive_work_port = args[:receive_work_port] if args.key?(:receive_work_port) - @streaming_computation_topology = args[:streaming_computation_topology] if args.key?(:streaming_computation_topology) - @worker_harness_port = args[:worker_harness_port] if args.key?(:worker_harness_port) - @drain = args[:drain] if args.key?(:drain) - end - end - - # Identifies a pubsub location to use for transferring data into or - # out of a streaming Dataflow job. - class PubsubLocation - include Google::Apis::Core::Hashable - - # A pubsub subscription, in the form of - # "pubsub.googleapis.com/subscriptions//" - # Corresponds to the JSON property `subscription` - # @return [String] - attr_accessor :subscription - - # Indicates whether the pipeline allows late-arriving data. - # Corresponds to the JSON property `dropLateData` - # @return [Boolean] - attr_accessor :drop_late_data - alias_method :drop_late_data?, :drop_late_data - - # If set, specifies the pubsub subscription that will be used for tracking - # custom time timestamps for watermark estimation. - # Corresponds to the JSON property `trackingSubscription` - # @return [String] - attr_accessor :tracking_subscription - - # If true, then the client has requested to get pubsub attributes. - # Corresponds to the JSON property `withAttributes` - # @return [Boolean] - attr_accessor :with_attributes - alias_method :with_attributes?, :with_attributes - - # If set, contains a pubsub label from which to extract record ids. - # If left empty, record deduplication will be strictly best effort. - # Corresponds to the JSON property `idLabel` - # @return [String] - attr_accessor :id_label - - # A pubsub topic, in the form of - # "pubsub.googleapis.com/topics//" - # Corresponds to the JSON property `topic` - # @return [String] - attr_accessor :topic - - # If set, contains a pubsub label from which to extract record timestamps. - # If left empty, record timestamps will be generated upon arrival. - # Corresponds to the JSON property `timestampLabel` - # @return [String] - attr_accessor :timestamp_label - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @subscription = args[:subscription] if args.key?(:subscription) - @drop_late_data = args[:drop_late_data] if args.key?(:drop_late_data) - @tracking_subscription = args[:tracking_subscription] if args.key?(:tracking_subscription) - @with_attributes = args[:with_attributes] if args.key?(:with_attributes) - @id_label = args[:id_label] if args.key?(:id_label) - @topic = args[:topic] if args.key?(:topic) - @timestamp_label = args[:timestamp_label] if args.key?(:timestamp_label) - end - end - - # WorkerHealthReport contains information about the health of a worker. - # The VM should be identified by the labels attached to the WorkerMessage that - # this health ping belongs to. - class WorkerHealthReport - include Google::Apis::Core::Hashable - - # The pods running on the worker. See: - # http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod - # This field is used by the worker to send the status of the indvidual - # containers running on each worker. - # Corresponds to the JSON property `pods` - # @return [Array>] - attr_accessor :pods - - # The time the VM was booted. - # Corresponds to the JSON property `vmStartupTime` - # @return [String] - attr_accessor :vm_startup_time - - # Whether the VM is healthy. - # Corresponds to the JSON property `vmIsHealthy` - # @return [Boolean] - attr_accessor :vm_is_healthy - alias_method :vm_is_healthy?, :vm_is_healthy - - # The interval at which the worker is sending health reports. - # The default value of 0 should be interpreted as the field is not being - # explicitly set by the worker. - # Corresponds to the JSON property `reportInterval` - # @return [String] - attr_accessor :report_interval - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @pods = args[:pods] if args.key?(:pods) - @vm_startup_time = args[:vm_startup_time] if args.key?(:vm_startup_time) - @vm_is_healthy = args[:vm_is_healthy] if args.key?(:vm_is_healthy) - @report_interval = args[:report_interval] if args.key?(:report_interval) - end - end - - # A particular message pertaining to a Dataflow job. - class JobMessage - include Google::Apis::Core::Hashable - - # Deprecated. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The text of the message. - # Corresponds to the JSON property `messageText` - # @return [String] - attr_accessor :message_text - - # Importance level of the message. - # Corresponds to the JSON property `messageImportance` - # @return [String] - attr_accessor :message_importance - - # The timestamp of the message. - # Corresponds to the JSON property `time` - # @return [String] - attr_accessor :time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @message_text = args[:message_text] if args.key?(:message_text) - @message_importance = args[:message_importance] if args.key?(:message_importance) - @time = args[:time] if args.key?(:time) - end - end - - # Metadata for a specific parameter. - class ParameterMetadata - include Google::Apis::Core::Hashable - - # Required. The label to display for the parameter. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - - # Required. The help text to display for the parameter. - # Corresponds to the JSON property `helpText` - # @return [String] - attr_accessor :help_text - - # Optional. Whether the parameter is optional. Defaults to false. - # Corresponds to the JSON property `isOptional` - # @return [Boolean] - attr_accessor :is_optional - alias_method :is_optional?, :is_optional - - # Required. The name of the parameter. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. Regexes that the parameter must match. - # Corresponds to the JSON property `regexes` - # @return [Array] - attr_accessor :regexes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label = args[:label] if args.key?(:label) - @help_text = args[:help_text] if args.key?(:help_text) - @is_optional = args[:is_optional] if args.key?(:is_optional) - @name = args[:name] if args.key?(:name) - @regexes = args[:regexes] if args.key?(:regexes) - end - end - # Information about an output of a multi-output DoFn. class MultiOutputInfo include Google::Apis::Core::Hashable @@ -1251,25 +57,25 @@ module Google class SourceSplitRequest include Google::Apis::Core::Hashable - # A source that records can be read and decoded from. - # Corresponds to the JSON property `source` - # @return [Google::Apis::DataflowV1b3::Source] - attr_accessor :source - # Hints for splitting a Source into bundles (parts for parallel # processing) using SourceSplitRequest. # Corresponds to the JSON property `options` # @return [Google::Apis::DataflowV1b3::SourceSplitOptions] attr_accessor :options + # A source that records can be read and decoded from. + # Corresponds to the JSON property `source` + # @return [Google::Apis::DataflowV1b3::Source] + attr_accessor :source + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @source = args[:source] if args.key?(:source) @options = args[:options] if args.key?(:options) + @source = args[:source] if args.key?(:source) end end @@ -1297,24 +103,24 @@ module Google class ShellTask include Google::Apis::Core::Hashable - # Exit code for the task. - # Corresponds to the JSON property `exitCode` - # @return [Fixnum] - attr_accessor :exit_code - # The shell command to run. # Corresponds to the JSON property `command` # @return [String] attr_accessor :command + # Exit code for the task. + # Corresponds to the JSON property `exitCode` + # @return [Fixnum] + attr_accessor :exit_code + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @exit_code = args[:exit_code] if args.key?(:exit_code) @command = args[:command] if args.key?(:command) + @exit_code = args[:exit_code] if args.key?(:exit_code) end end @@ -1323,25 +129,25 @@ module Google class MetricShortId include Google::Apis::Core::Hashable - # The service-generated short identifier for the metric. - # Corresponds to the JSON property `shortId` - # @return [Fixnum] - attr_accessor :short_id - # The index of the corresponding metric in # the ReportWorkItemStatusRequest. Required. # Corresponds to the JSON property `metricIndex` # @return [Fixnum] attr_accessor :metric_index + # The service-generated short identifier for the metric. + # Corresponds to the JSON property `shortId` + # @return [Fixnum] + attr_accessor :short_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @short_id = args[:short_id] if args.key?(:short_id) @metric_index = args[:metric_index] if args.key?(:metric_index) + @short_id = args[:short_id] if args.key?(:short_id) end end @@ -1350,6 +156,12 @@ module Google class AutoscalingEvent include Google::Apis::Core::Hashable + # The time this event was emitted to indicate a new target or current + # num_workers value. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + # A rich message format, including a human readable string, a key for # identifying the message, and structured data associated with the message for # programmatic consumption. @@ -1357,22 +169,16 @@ module Google # @return [Google::Apis::DataflowV1b3::StructuredMessage] attr_accessor :description - # The time this event was emitted to indicate a new target or current - # num_workers value. - # Corresponds to the JSON property `time` + # The type of autoscaling event to report. + # Corresponds to the JSON property `eventType` # @return [String] - attr_accessor :time + attr_accessor :event_type # The target number of workers the worker pool wants to resize to use. # Corresponds to the JSON property `targetNumWorkers` # @return [Fixnum] attr_accessor :target_num_workers - # The type of autoscaling event to report. - # Corresponds to the JSON property `eventType` - # @return [String] - attr_accessor :event_type - # The current number of workers the job has. # Corresponds to the JSON property `currentNumWorkers` # @return [Fixnum] @@ -1384,10 +190,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] if args.key?(:description) @time = args[:time] if args.key?(:time) - @target_num_workers = args[:target_num_workers] if args.key?(:target_num_workers) + @description = args[:description] if args.key?(:description) @event_type = args[:event_type] if args.key?(:event_type) + @target_num_workers = args[:target_num_workers] if args.key?(:target_num_workers) @current_num_workers = args[:current_num_workers] if args.key?(:current_num_workers) end end @@ -1396,6 +202,73 @@ module Google class TaskRunnerSettings include Google::Apis::Core::Hashable + # The API version of endpoint, e.g. "v1b3" + # Corresponds to the JSON property `dataflowApiVersion` + # @return [String] + attr_accessor :dataflow_api_version + + # The OAuth2 scopes to be requested by the taskrunner in order to + # access the Cloud Dataflow API. + # Corresponds to the JSON property `oauthScopes` + # @return [Array] + attr_accessor :oauth_scopes + + # The streaming worker main class name. + # Corresponds to the JSON property `streamingWorkerMainClass` + # @return [String] + attr_accessor :streaming_worker_main_class + + # Indicates where to put logs. If this is not specified, the logs + # will not be uploaded. + # The supported resource type is: + # Google Cloud Storage: + # storage.googleapis.com/`bucket`/`object` + # bucket.storage.googleapis.com/`object` + # Corresponds to the JSON property `logUploadLocation` + # @return [String] + attr_accessor :log_upload_location + + # The file to store the workflow in. + # Corresponds to the JSON property `workflowFileName` + # @return [String] + attr_accessor :workflow_file_name + + # The file to store preprocessing commands in. + # Corresponds to the JSON property `commandlinesFileName` + # @return [String] + attr_accessor :commandlines_file_name + + # The suggested backend language. + # Corresponds to the JSON property `languageHint` + # @return [String] + attr_accessor :language_hint + + # The location on the worker for task-specific subdirectories. + # Corresponds to the JSON property `baseTaskDir` + # @return [String] + attr_accessor :base_task_dir + + # The prefix of the resources the taskrunner should use for + # temporary storage. + # The supported resource type is: + # Google Cloud Storage: + # storage.googleapis.com/`bucket`/`object` + # bucket.storage.googleapis.com/`object` + # Corresponds to the JSON property `tempStoragePrefix` + # @return [String] + attr_accessor :temp_storage_prefix + + # The base URL for the taskrunner to use when accessing Google Cloud APIs. + # When workers access Google Cloud APIs, they logically do so via + # relative URLs. If this field is specified, it supplies the base + # URL to use for resolving these relative URLs. The normative + # algorithm used is defined by RFC 1808, "Relative Uniform Resource + # Locators". + # If not specified, the default value is "http://www.googleapis.com/" + # Corresponds to the JSON property `baseUrl` + # @return [String] + attr_accessor :base_url + # Whether to send taskrunner log info to Google Compute Engine VM serial # console. # Corresponds to the JSON property `logToSerialconsole` @@ -1447,79 +320,22 @@ module Google # @return [String] attr_accessor :log_dir - # The OAuth2 scopes to be requested by the taskrunner in order to - # access the Cloud Dataflow API. - # Corresponds to the JSON property `oauthScopes` - # @return [Array] - attr_accessor :oauth_scopes - - # The API version of endpoint, e.g. "v1b3" - # Corresponds to the JSON property `dataflowApiVersion` - # @return [String] - attr_accessor :dataflow_api_version - - # Indicates where to put logs. If this is not specified, the logs - # will not be uploaded. - # The supported resource type is: - # Google Cloud Storage: - # storage.googleapis.com/`bucket`/`object` - # bucket.storage.googleapis.com/`object` - # Corresponds to the JSON property `logUploadLocation` - # @return [String] - attr_accessor :log_upload_location - - # The streaming worker main class name. - # Corresponds to the JSON property `streamingWorkerMainClass` - # @return [String] - attr_accessor :streaming_worker_main_class - - # The file to store the workflow in. - # Corresponds to the JSON property `workflowFileName` - # @return [String] - attr_accessor :workflow_file_name - - # The location on the worker for task-specific subdirectories. - # Corresponds to the JSON property `baseTaskDir` - # @return [String] - attr_accessor :base_task_dir - - # The prefix of the resources the taskrunner should use for - # temporary storage. - # The supported resource type is: - # Google Cloud Storage: - # storage.googleapis.com/`bucket`/`object` - # bucket.storage.googleapis.com/`object` - # Corresponds to the JSON property `tempStoragePrefix` - # @return [String] - attr_accessor :temp_storage_prefix - - # The file to store preprocessing commands in. - # Corresponds to the JSON property `commandlinesFileName` - # @return [String] - attr_accessor :commandlines_file_name - - # The suggested backend language. - # Corresponds to the JSON property `languageHint` - # @return [String] - attr_accessor :language_hint - - # The base URL for the taskrunner to use when accessing Google Cloud APIs. - # When workers access Google Cloud APIs, they logically do so via - # relative URLs. If this field is specified, it supplies the base - # URL to use for resolving these relative URLs. The normative - # algorithm used is defined by RFC 1808, "Relative Uniform Resource - # Locators". - # If not specified, the default value is "http://www.googleapis.com/" - # Corresponds to the JSON property `baseUrl` - # @return [String] - attr_accessor :base_url - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @dataflow_api_version = args[:dataflow_api_version] if args.key?(:dataflow_api_version) + @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) + @streaming_worker_main_class = args[:streaming_worker_main_class] if args.key?(:streaming_worker_main_class) + @log_upload_location = args[:log_upload_location] if args.key?(:log_upload_location) + @workflow_file_name = args[:workflow_file_name] if args.key?(:workflow_file_name) + @commandlines_file_name = args[:commandlines_file_name] if args.key?(:commandlines_file_name) + @language_hint = args[:language_hint] if args.key?(:language_hint) + @base_task_dir = args[:base_task_dir] if args.key?(:base_task_dir) + @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) + @base_url = args[:base_url] if args.key?(:base_url) @log_to_serialconsole = args[:log_to_serialconsole] if args.key?(:log_to_serialconsole) @continue_on_exception = args[:continue_on_exception] if args.key?(:continue_on_exception) @parallel_worker_settings = args[:parallel_worker_settings] if args.key?(:parallel_worker_settings) @@ -1529,16 +345,6 @@ module Google @task_group = args[:task_group] if args.key?(:task_group) @harness_command = args[:harness_command] if args.key?(:harness_command) @log_dir = args[:log_dir] if args.key?(:log_dir) - @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) - @dataflow_api_version = args[:dataflow_api_version] if args.key?(:dataflow_api_version) - @log_upload_location = args[:log_upload_location] if args.key?(:log_upload_location) - @streaming_worker_main_class = args[:streaming_worker_main_class] if args.key?(:streaming_worker_main_class) - @workflow_file_name = args[:workflow_file_name] if args.key?(:workflow_file_name) - @base_task_dir = args[:base_task_dir] if args.key?(:base_task_dir) - @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) - @commandlines_file_name = args[:commandlines_file_name] if args.key?(:commandlines_file_name) - @language_hint = args[:language_hint] if args.key?(:language_hint) - @base_url = args[:base_url] if args.key?(:base_url) end end @@ -1559,6 +365,11 @@ module Google # @return [String] attr_accessor :shuffle_position + # Position is a byte offset. + # Corresponds to the JSON property `byteOffset` + # @return [Fixnum] + attr_accessor :byte_offset + # A position that encapsulates an inner position and an index for the inner # position. A ConcatPosition can be used by a reader of a source that # encapsulates a set of other sources. @@ -1566,11 +377,6 @@ module Google # @return [Google::Apis::DataflowV1b3::ConcatPosition] attr_accessor :concat_position - # Position is a byte offset. - # Corresponds to the JSON property `byteOffset` - # @return [Fixnum] - attr_accessor :byte_offset - # Position is past all other positions. Also useful for the end # position of an unbounded range. # Corresponds to the JSON property `end` @@ -1591,13 +397,77 @@ module Google def update!(**args) @record_index = args[:record_index] if args.key?(:record_index) @shuffle_position = args[:shuffle_position] if args.key?(:shuffle_position) - @concat_position = args[:concat_position] if args.key?(:concat_position) @byte_offset = args[:byte_offset] if args.key?(:byte_offset) + @concat_position = args[:concat_position] if args.key?(:concat_position) @end = args[:end] if args.key?(:end) @key = args[:key] if args.key?(:key) end end + # A source that records can be read and decoded from. + class Source + include Google::Apis::Core::Hashable + + # The source to read from, plus its parameters. + # Corresponds to the JSON property `spec` + # @return [Hash] + attr_accessor :spec + + # Metadata about a Source useful for automatically optimizing + # and tuning the pipeline, etc. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::DataflowV1b3::SourceMetadata] + attr_accessor :metadata + + # While splitting, sources may specify the produced bundles + # as differences against another source, in order to save backend-side + # memory and allow bigger jobs. For details, see SourceSplitRequest. + # To support this use case, the full set of parameters of the source + # is logically obtained by taking the latest explicitly specified value + # of each parameter in the order: + # base_specs (later items win), spec (overrides anything in base_specs). + # Corresponds to the JSON property `baseSpecs` + # @return [Array>] + attr_accessor :base_specs + + # Setting this value to true hints to the framework that the source + # doesn't need splitting, and using SourceSplitRequest on it would + # yield SOURCE_SPLIT_OUTCOME_USE_CURRENT. + # E.g. a file splitter may set this to true when splitting a single file + # into a set of byte ranges of appropriate size, and set this + # to false when splitting a filepattern into individual files. + # However, for efficiency, a file splitter may decide to produce + # file subranges directly from the filepattern to avoid a splitting + # round-trip. + # See SourceSplitRequest for an overview of the splitting process. + # This field is meaningful only in the Source objects populated + # by the user (e.g. when filling in a DerivedSource). + # Source objects supplied by the framework to the user don't have + # this field populated. + # Corresponds to the JSON property `doesNotNeedSplitting` + # @return [Boolean] + attr_accessor :does_not_need_splitting + alias_method :does_not_need_splitting?, :does_not_need_splitting + + # The codec to use to decode data read from the source. + # Corresponds to the JSON property `codec` + # @return [Hash] + attr_accessor :codec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spec = args[:spec] if args.key?(:spec) + @metadata = args[:metadata] if args.key?(:metadata) + @base_specs = args[:base_specs] if args.key?(:base_specs) + @does_not_need_splitting = args[:does_not_need_splitting] if args.key?(:does_not_need_splitting) + @codec = args[:codec] if args.key?(:codec) + end + end + # A representation of an int64, n, that is immune to precision loss when # encoded in JSON. class SplitInt64 @@ -1624,70 +494,6 @@ module Google end end - # A source that records can be read and decoded from. - class Source - include Google::Apis::Core::Hashable - - # Metadata about a Source useful for automatically optimizing - # and tuning the pipeline, etc. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::DataflowV1b3::SourceMetadata] - attr_accessor :metadata - - # While splitting, sources may specify the produced bundles - # as differences against another source, in order to save backend-side - # memory and allow bigger jobs. For details, see SourceSplitRequest. - # To support this use case, the full set of parameters of the source - # is logically obtained by taking the latest explicitly specified value - # of each parameter in the order: - # base_specs (later items win), spec (overrides anything in base_specs). - # Corresponds to the JSON property `baseSpecs` - # @return [Array>] - attr_accessor :base_specs - - # The codec to use to decode data read from the source. - # Corresponds to the JSON property `codec` - # @return [Hash] - attr_accessor :codec - - # Setting this value to true hints to the framework that the source - # doesn't need splitting, and using SourceSplitRequest on it would - # yield SOURCE_SPLIT_OUTCOME_USE_CURRENT. - # E.g. a file splitter may set this to true when splitting a single file - # into a set of byte ranges of appropriate size, and set this - # to false when splitting a filepattern into individual files. - # However, for efficiency, a file splitter may decide to produce - # file subranges directly from the filepattern to avoid a splitting - # round-trip. - # See SourceSplitRequest for an overview of the splitting process. - # This field is meaningful only in the Source objects populated - # by the user (e.g. when filling in a DerivedSource). - # Source objects supplied by the framework to the user don't have - # this field populated. - # Corresponds to the JSON property `doesNotNeedSplitting` - # @return [Boolean] - attr_accessor :does_not_need_splitting - alias_method :does_not_need_splitting?, :does_not_need_splitting - - # The source to read from, plus its parameters. - # Corresponds to the JSON property `spec` - # @return [Hash] - attr_accessor :spec - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metadata = args[:metadata] if args.key?(:metadata) - @base_specs = args[:base_specs] if args.key?(:base_specs) - @codec = args[:codec] if args.key?(:codec) - @does_not_need_splitting = args[:does_not_need_splitting] if args.key?(:does_not_need_splitting) - @spec = args[:spec] if args.key?(:spec) - end - end - # Describes one particular pool of Cloud Dataflow workers to be # instantiated by the Cloud Dataflow service in order to perform the # computations required by a job. Note that a workflow job may use @@ -1696,12 +502,31 @@ module Google class WorkerPool include Google::Apis::Core::Hashable - # The default package set to install. This allows the service to - # select a default set of packages which are useful to worker - # harnesses written in a particular language. - # Corresponds to the JSON property `defaultPackageSet` + # Subnetwork to which VMs will be assigned, if desired. Expected to be of + # the form "regions/REGION/subnetworks/SUBNETWORK". + # Corresponds to the JSON property `subnetwork` # @return [String] - attr_accessor :default_package_set + attr_accessor :subnetwork + + # Configuration for VM IPs. + # Corresponds to the JSON property `ipConfiguration` + # @return [String] + attr_accessor :ip_configuration + + # Taskrunner configuration settings. + # Corresponds to the JSON property `taskrunnerSettings` + # @return [Google::Apis::DataflowV1b3::TaskRunnerSettings] + attr_accessor :taskrunner_settings + + # Settings for WorkerPool autoscaling. + # Corresponds to the JSON property `autoscalingSettings` + # @return [Google::Apis::DataflowV1b3::AutoscalingSettings] + attr_accessor :autoscaling_settings + + # Metadata to set on the Google Compute Engine VMs. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata # Network to which VMs will be assigned. If empty or unspecified, # the service will use the network "default". @@ -1709,11 +534,19 @@ module Google # @return [String] attr_accessor :network - # Zone to run the worker pools in. If empty or unspecified, the service - # will attempt to choose a reasonable default. - # Corresponds to the JSON property `zone` + # The default package set to install. This allows the service to + # select a default set of packages which are useful to worker + # harnesses written in a particular language. + # Corresponds to the JSON property `defaultPackageSet` # @return [String] - attr_accessor :zone + attr_accessor :default_package_set + + # The number of threads per worker harness. If empty or unspecified, the + # service will choose a number of threads (according to the number of cores + # on the selected machine type for batch, or 1 by convention for streaming). + # Corresponds to the JSON property `numThreadsPerWorker` + # @return [Fixnum] + attr_accessor :num_threads_per_worker # Number of Google Compute Engine workers in this pool needed to # execute the job. If zero or unspecified, the service will @@ -1722,12 +555,11 @@ module Google # @return [Fixnum] attr_accessor :num_workers - # The number of threads per worker harness. If empty or unspecified, the - # service will choose a number of threads (according to the number of cores - # on the selected machine type for batch, or 1 by convention for streaming). - # Corresponds to the JSON property `numThreadsPerWorker` - # @return [Fixnum] - attr_accessor :num_threads_per_worker + # Zone to run the worker pools in. If empty or unspecified, the service + # will attempt to choose a reasonable default. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone # Fully qualified source image for disks. # Corresponds to the JSON property `diskSourceImage` @@ -1803,43 +635,22 @@ module Google # @return [Array] attr_accessor :data_disks - # Subnetwork to which VMs will be assigned, if desired. Expected to be of - # the form "regions/REGION/subnetworks/SUBNETWORK". - # Corresponds to the JSON property `subnetwork` - # @return [String] - attr_accessor :subnetwork - - # Configuration for VM IPs. - # Corresponds to the JSON property `ipConfiguration` - # @return [String] - attr_accessor :ip_configuration - - # Settings for WorkerPool autoscaling. - # Corresponds to the JSON property `autoscalingSettings` - # @return [Google::Apis::DataflowV1b3::AutoscalingSettings] - attr_accessor :autoscaling_settings - - # Taskrunner configuration settings. - # Corresponds to the JSON property `taskrunnerSettings` - # @return [Google::Apis::DataflowV1b3::TaskRunnerSettings] - attr_accessor :taskrunner_settings - - # Metadata to set on the Google Compute Engine VMs. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @default_package_set = args[:default_package_set] if args.key?(:default_package_set) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) + @taskrunner_settings = args[:taskrunner_settings] if args.key?(:taskrunner_settings) + @autoscaling_settings = args[:autoscaling_settings] if args.key?(:autoscaling_settings) + @metadata = args[:metadata] if args.key?(:metadata) @network = args[:network] if args.key?(:network) - @zone = args[:zone] if args.key?(:zone) - @num_workers = args[:num_workers] if args.key?(:num_workers) + @default_package_set = args[:default_package_set] if args.key?(:default_package_set) @num_threads_per_worker = args[:num_threads_per_worker] if args.key?(:num_threads_per_worker) + @num_workers = args[:num_workers] if args.key?(:num_workers) + @zone = args[:zone] if args.key?(:zone) @disk_source_image = args[:disk_source_image] if args.key?(:disk_source_image) @packages = args[:packages] if args.key?(:packages) @teardown_policy = args[:teardown_policy] if args.key?(:teardown_policy) @@ -1851,11 +662,6 @@ module Google @disk_type = args[:disk_type] if args.key?(:disk_type) @kind = args[:kind] if args.key?(:kind) @data_disks = args[:data_disks] if args.key?(:data_disks) - @subnetwork = args[:subnetwork] if args.key?(:subnetwork) - @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) - @autoscaling_settings = args[:autoscaling_settings] if args.key?(:autoscaling_settings) - @taskrunner_settings = args[:taskrunner_settings] if args.key?(:taskrunner_settings) - @metadata = args[:metadata] if args.key?(:metadata) end end @@ -1896,45 +702,58 @@ module Google end end - # A rich message format, including a human readable string, a key for - # identifying the message, and structured data associated with the message for - # programmatic consumption. - class StructuredMessage - include Google::Apis::Core::Hashable - - # The structured data associated with this message. - # Corresponds to the JSON property `parameters` - # @return [Array] - attr_accessor :parameters - - # Idenfier for this message type. Used by external systems to - # internationalize or personalize message. - # Corresponds to the JSON property `messageKey` - # @return [String] - attr_accessor :message_key - - # Human-readable version of message. - # Corresponds to the JSON property `messageText` - # @return [String] - attr_accessor :message_text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @parameters = args[:parameters] if args.key?(:parameters) - @message_key = args[:message_key] if args.key?(:message_key) - @message_text = args[:message_text] if args.key?(:message_text) - end - end - # WorkItem represents basic information about a WorkItem to be executed # in the cloud. class WorkItem include Google::Apis::Core::Hashable + # A task which initializes part of a streaming Dataflow job. + # Corresponds to the JSON property `streamingSetupTask` + # @return [Google::Apis::DataflowV1b3::StreamingSetupTask] + attr_accessor :streaming_setup_task + + # Recommended reporting interval. + # Corresponds to the JSON property `reportStatusInterval` + # @return [String] + attr_accessor :report_status_interval + + # A work item that represents the different operations that can be + # performed on a user-defined Source specification. + # Corresponds to the JSON property `sourceOperationTask` + # @return [Google::Apis::DataflowV1b3::SourceOperationRequest] + attr_accessor :source_operation_task + + # Time when the lease on this Work will expire. + # Corresponds to the JSON property `leaseExpireTime` + # @return [String] + attr_accessor :lease_expire_time + + # A task that carries configuration information for streaming computations. + # Corresponds to the JSON property `streamingConfigTask` + # @return [Google::Apis::DataflowV1b3::StreamingConfigTask] + attr_accessor :streaming_config_task + + # The initial index to use when reporting the status of the WorkItem. + # Corresponds to the JSON property `initialReportIndex` + # @return [Fixnum] + attr_accessor :initial_report_index + + # A task which describes what action should be performed for the specified + # streaming computation ranges. + # Corresponds to the JSON property `streamingComputationTask` + # @return [Google::Apis::DataflowV1b3::StreamingComputationTask] + attr_accessor :streaming_computation_task + + # A task which consists of a shell command for the worker to execute. + # Corresponds to the JSON property `shellTask` + # @return [Google::Apis::DataflowV1b3::ShellTask] + attr_accessor :shell_task + + # Identifies the workflow job this WorkItem belongs to. + # Corresponds to the JSON property `jobId` + # @return [String] + attr_accessor :job_id + # Identifies this WorkItem. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -1970,87 +789,51 @@ module Google # @return [String] attr_accessor :project_id - # A work item that represents the different operations that can be - # performed on a user-defined Source specification. - # Corresponds to the JSON property `sourceOperationTask` - # @return [Google::Apis::DataflowV1b3::SourceOperationRequest] - attr_accessor :source_operation_task - - # A task which initializes part of a streaming Dataflow job. - # Corresponds to the JSON property `streamingSetupTask` - # @return [Google::Apis::DataflowV1b3::StreamingSetupTask] - attr_accessor :streaming_setup_task - - # Recommended reporting interval. - # Corresponds to the JSON property `reportStatusInterval` - # @return [String] - attr_accessor :report_status_interval - - # A task that carries configuration information for streaming computations. - # Corresponds to the JSON property `streamingConfigTask` - # @return [Google::Apis::DataflowV1b3::StreamingConfigTask] - attr_accessor :streaming_config_task - - # Time when the lease on this Work will expire. - # Corresponds to the JSON property `leaseExpireTime` - # @return [String] - attr_accessor :lease_expire_time - - # The initial index to use when reporting the status of the WorkItem. - # Corresponds to the JSON property `initialReportIndex` - # @return [Fixnum] - attr_accessor :initial_report_index - - # A task which describes what action should be performed for the specified - # streaming computation ranges. - # Corresponds to the JSON property `streamingComputationTask` - # @return [Google::Apis::DataflowV1b3::StreamingComputationTask] - attr_accessor :streaming_computation_task - - # A task which consists of a shell command for the worker to execute. - # Corresponds to the JSON property `shellTask` - # @return [Google::Apis::DataflowV1b3::ShellTask] - attr_accessor :shell_task - - # Identifies the workflow job this WorkItem belongs to. - # Corresponds to the JSON property `jobId` - # @return [String] - attr_accessor :job_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @streaming_setup_task = args[:streaming_setup_task] if args.key?(:streaming_setup_task) + @report_status_interval = args[:report_status_interval] if args.key?(:report_status_interval) + @source_operation_task = args[:source_operation_task] if args.key?(:source_operation_task) + @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time) + @streaming_config_task = args[:streaming_config_task] if args.key?(:streaming_config_task) + @initial_report_index = args[:initial_report_index] if args.key?(:initial_report_index) + @streaming_computation_task = args[:streaming_computation_task] if args.key?(:streaming_computation_task) + @shell_task = args[:shell_task] if args.key?(:shell_task) + @job_id = args[:job_id] if args.key?(:job_id) @id = args[:id] if args.key?(:id) @configuration = args[:configuration] if args.key?(:configuration) @map_task = args[:map_task] if args.key?(:map_task) @seq_map_task = args[:seq_map_task] if args.key?(:seq_map_task) @packages = args[:packages] if args.key?(:packages) @project_id = args[:project_id] if args.key?(:project_id) - @source_operation_task = args[:source_operation_task] if args.key?(:source_operation_task) - @streaming_setup_task = args[:streaming_setup_task] if args.key?(:streaming_setup_task) - @report_status_interval = args[:report_status_interval] if args.key?(:report_status_interval) - @streaming_config_task = args[:streaming_config_task] if args.key?(:streaming_config_task) - @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time) - @initial_report_index = args[:initial_report_index] if args.key?(:initial_report_index) - @streaming_computation_task = args[:streaming_computation_task] if args.key?(:streaming_computation_task) - @shell_task = args[:shell_task] if args.key?(:shell_task) - @job_id = args[:job_id] if args.key?(:job_id) end end - # Worker metrics exported from workers. This contains resource utilization - # metrics accumulated from a variety of sources. For more information, see - # go/df-resource-signals. - class ResourceUtilizationReport + # A rich message format, including a human readable string, a key for + # identifying the message, and structured data associated with the message for + # programmatic consumption. + class StructuredMessage include Google::Apis::Core::Hashable - # CPU utilization samples. - # Corresponds to the JSON property `cpuTime` - # @return [Array] - attr_accessor :cpu_time + # Human-readable version of message. + # Corresponds to the JSON property `messageText` + # @return [String] + attr_accessor :message_text + + # The structured data associated with this message. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # Idenfier for this message type. Used by external systems to + # internationalize or personalize message. + # Corresponds to the JSON property `messageKey` + # @return [String] + attr_accessor :message_key def initialize(**args) update!(**args) @@ -2058,7 +841,9 @@ module Google # Update properties of this object def update!(**args) - @cpu_time = args[:cpu_time] if args.key?(:cpu_time) + @message_text = args[:message_text] if args.key?(:message_text) + @parameters = args[:parameters] if args.key?(:parameters) + @message_key = args[:message_key] if args.key?(:message_key) end end @@ -2094,35 +879,56 @@ module Google end end - # Global topology of the streaming Dataflow job, including all - # computations and their sharded locations. - class TopologyConfig + # Worker metrics exported from workers. This contains resource utilization + # metrics accumulated from a variety of sources. For more information, see + # go/df-resource-signals. + class ResourceUtilizationReport include Google::Apis::Core::Hashable - # Maps user stage names to stable computation names. - # Corresponds to the JSON property `userStageToComputationNameMap` - # @return [Hash] - attr_accessor :user_stage_to_computation_name_map - - # The computations associated with a streaming Dataflow job. - # Corresponds to the JSON property `computations` - # @return [Array] - attr_accessor :computations - - # The disks assigned to a streaming Dataflow job. - # Corresponds to the JSON property `dataDiskAssignments` - # @return [Array] - attr_accessor :data_disk_assignments - - # Version number for persistent state. - # Corresponds to the JSON property `persistentStateVersion` - # @return [Fixnum] - attr_accessor :persistent_state_version - - # The size (in bits) of keys that will be assigned to source messages. - # Corresponds to the JSON property `forwardingKeyBits` - # @return [Fixnum] - attr_accessor :forwarding_key_bits + # CPU utilization samples. + # Corresponds to the JSON property `cpuTime` + # @return [Array] + attr_accessor :cpu_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_time = args[:cpu_time] if args.key?(:cpu_time) + end + end + + # Global topology of the streaming Dataflow job, including all + # computations and their sharded locations. + class TopologyConfig + include Google::Apis::Core::Hashable + + # The computations associated with a streaming Dataflow job. + # Corresponds to the JSON property `computations` + # @return [Array] + attr_accessor :computations + + # Version number for persistent state. + # Corresponds to the JSON property `persistentStateVersion` + # @return [Fixnum] + attr_accessor :persistent_state_version + + # The disks assigned to a streaming Dataflow job. + # Corresponds to the JSON property `dataDiskAssignments` + # @return [Array] + attr_accessor :data_disk_assignments + + # The size (in bits) of keys that will be assigned to source messages. + # Corresponds to the JSON property `forwardingKeyBits` + # @return [Fixnum] + attr_accessor :forwarding_key_bits + + # Maps user stage names to stable computation names. + # Corresponds to the JSON property `userStageToComputationNameMap` + # @return [Hash] + attr_accessor :user_stage_to_computation_name_map def initialize(**args) update!(**args) @@ -2130,11 +936,11 @@ module Google # Update properties of this object def update!(**args) - @user_stage_to_computation_name_map = args[:user_stage_to_computation_name_map] if args.key?(:user_stage_to_computation_name_map) @computations = args[:computations] if args.key?(:computations) - @data_disk_assignments = args[:data_disk_assignments] if args.key?(:data_disk_assignments) @persistent_state_version = args[:persistent_state_version] if args.key?(:persistent_state_version) + @data_disk_assignments = args[:data_disk_assignments] if args.key?(:data_disk_assignments) @forwarding_key_bits = args[:forwarding_key_bits] if args.key?(:forwarding_key_bits) + @user_stage_to_computation_name_map = args[:user_stage_to_computation_name_map] if args.key?(:user_stage_to_computation_name_map) end end @@ -2189,6 +995,23 @@ module Google class WorkerSettings include Google::Apis::Core::Hashable + # The Cloud Dataflow service path relative to the root URL, for example, + # "dataflow/v1b3/projects". + # Corresponds to the JSON property `servicePath` + # @return [String] + attr_accessor :service_path + + # The Shuffle service path relative to the root URL, for example, + # "shuffle/v1beta1". + # Corresponds to the JSON property `shuffleServicePath` + # @return [String] + attr_accessor :shuffle_service_path + + # The ID of the worker running this pipeline. + # Corresponds to the JSON property `workerId` + # @return [String] + attr_accessor :worker_id + # The prefix of the resources the system should use for temporary # storage. # The supported resource type is: @@ -2216,22 +1039,31 @@ module Google # @return [String] attr_accessor :base_url - # The Cloud Dataflow service path relative to the root URL, for example, - # "dataflow/v1b3/projects". - # Corresponds to the JSON property `servicePath` - # @return [String] - attr_accessor :service_path + def initialize(**args) + update!(**args) + end - # The Shuffle service path relative to the root URL, for example, - # "shuffle/v1beta1". - # Corresponds to the JSON property `shuffleServicePath` - # @return [String] - attr_accessor :shuffle_service_path + # Update properties of this object + def update!(**args) + @service_path = args[:service_path] if args.key?(:service_path) + @shuffle_service_path = args[:shuffle_service_path] if args.key?(:shuffle_service_path) + @worker_id = args[:worker_id] if args.key?(:worker_id) + @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) + @reporting_enabled = args[:reporting_enabled] if args.key?(:reporting_enabled) + @base_url = args[:base_url] if args.key?(:base_url) + end + end - # The ID of the worker running this pipeline. - # Corresponds to the JSON property `workerId` + # Identifies the location of a streaming computation stage, for + # stage-to-stage communication. + class StreamingStageLocation + include Google::Apis::Core::Hashable + + # Identifies the particular stream within the streaming Dataflow + # job. + # Corresponds to the JSON property `streamId` # @return [String] - attr_accessor :worker_id + attr_accessor :stream_id def initialize(**args) update!(**args) @@ -2239,12 +1071,7 @@ module Google # Update properties of this object def update!(**args) - @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) - @reporting_enabled = args[:reporting_enabled] if args.key?(:reporting_enabled) - @base_url = args[:base_url] if args.key?(:base_url) - @service_path = args[:service_path] if args.key?(:service_path) - @shuffle_service_path = args[:shuffle_service_path] if args.key?(:shuffle_service_path) - @worker_id = args[:worker_id] if args.key?(:worker_id) + @stream_id = args[:stream_id] if args.key?(:stream_id) end end @@ -2277,27 +1104,6 @@ module Google end end - # Identifies the location of a streaming computation stage, for - # stage-to-stage communication. - class StreamingStageLocation - include Google::Apis::Core::Hashable - - # Identifies the particular stream within the streaming Dataflow - # job. - # Corresponds to the JSON property `streamId` - # @return [String] - attr_accessor :stream_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @stream_id = args[:stream_id] if args.key?(:stream_id) - end - end - # A suggestion by the service to the worker to dynamically split the WorkItem. class ApproximateSplitRequest include Google::Apis::Core::Hashable @@ -2368,12 +1174,6 @@ module Google class Status include Google::Apis::Core::Hashable - # 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 - # The status code, which should be an enum value of google.rpc.Code. # Corresponds to the JSON property `code` # @return [Fixnum] @@ -2386,15 +1186,21 @@ module Google # @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) - @details = args[:details] if args.key?(:details) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) end end @@ -2402,11 +1208,6 @@ module Google class ExecutionStageState include Google::Apis::Core::Hashable - # The name of the execution stage. - # Corresponds to the JSON property `executionStageName` - # @return [String] - attr_accessor :execution_stage_name - # The time at which the stage transitioned to this state. # Corresponds to the JSON property `currentStateTime` # @return [String] @@ -2417,15 +1218,20 @@ module Google # @return [String] attr_accessor :execution_stage_state + # The name of the execution stage. + # Corresponds to the JSON property `executionStageName` + # @return [String] + attr_accessor :execution_stage_name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @execution_stage_name = args[:execution_stage_name] if args.key?(:execution_stage_name) @current_state_time = args[:current_state_time] if args.key?(:current_state_time) @execution_stage_state = args[:execution_stage_state] if args.key?(:execution_stage_state) + @execution_stage_name = args[:execution_stage_name] if args.key?(:execution_stage_name) end end @@ -2439,11 +1245,10 @@ module Google # @return [Google::Apis::DataflowV1b3::CustomSourceLocation] attr_accessor :custom_source_location - # Identifies the location of a streaming computation stage, for - # stage-to-stage communication. - # Corresponds to the JSON property `streamingStageLocation` - # @return [Google::Apis::DataflowV1b3::StreamingStageLocation] - attr_accessor :streaming_stage_location + # Identifies the location of a streaming side input. + # Corresponds to the JSON property `sideInputLocation` + # @return [Google::Apis::DataflowV1b3::StreamingSideInputLocation] + attr_accessor :side_input_location # Identifies a pubsub location to use for transferring data into or # out of a streaming Dataflow job. @@ -2451,10 +1256,11 @@ module Google # @return [Google::Apis::DataflowV1b3::PubsubLocation] attr_accessor :pubsub_location - # Identifies the location of a streaming side input. - # Corresponds to the JSON property `sideInputLocation` - # @return [Google::Apis::DataflowV1b3::StreamingSideInputLocation] - attr_accessor :side_input_location + # Identifies the location of a streaming computation stage, for + # stage-to-stage communication. + # Corresponds to the JSON property `streamingStageLocation` + # @return [Google::Apis::DataflowV1b3::StreamingStageLocation] + attr_accessor :streaming_stage_location def initialize(**args) update!(**args) @@ -2463,9 +1269,9 @@ module Google # Update properties of this object def update!(**args) @custom_source_location = args[:custom_source_location] if args.key?(:custom_source_location) - @streaming_stage_location = args[:streaming_stage_location] if args.key?(:streaming_stage_location) - @pubsub_location = args[:pubsub_location] if args.key?(:pubsub_location) @side_input_location = args[:side_input_location] if args.key?(:side_input_location) + @pubsub_location = args[:pubsub_location] if args.key?(:pubsub_location) + @streaming_stage_location = args[:streaming_stage_location] if args.key?(:streaming_stage_location) end end @@ -2492,36 +1298,36 @@ module Google class StreamingComputationConfig include Google::Apis::Core::Hashable - # System defined name for this computation. - # Corresponds to the JSON property `systemName` + # Unique identifier for this computation. + # Corresponds to the JSON property `computationId` # @return [String] - attr_accessor :system_name + attr_accessor :computation_id # Stage name of this computation. # Corresponds to the JSON property `stageName` # @return [String] attr_accessor :stage_name + # System defined name for this computation. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name + # Instructions that comprise the computation. # Corresponds to the JSON property `instructions` # @return [Array] attr_accessor :instructions - # Unique identifier for this computation. - # Corresponds to the JSON property `computationId` - # @return [String] - attr_accessor :computation_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @system_name = args[:system_name] if args.key?(:system_name) - @stage_name = args[:stage_name] if args.key?(:stage_name) - @instructions = args[:instructions] if args.key?(:instructions) @computation_id = args[:computation_id] if args.key?(:computation_id) + @stage_name = args[:stage_name] if args.key?(:stage_name) + @system_name = args[:system_name] if args.key?(:system_name) + @instructions = args[:instructions] if args.key?(:instructions) end end @@ -2529,21 +1335,6 @@ module Google class TransformSummary include Google::Apis::Core::Hashable - # Type of transform. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # User names for all collection inputs to this transform. - # Corresponds to the JSON property `inputCollectionName` - # @return [Array] - attr_accessor :input_collection_name - - # User provided name for this transform instance. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # SDK generated id of this transform instance. # Corresponds to the JSON property `id` # @return [String] @@ -2559,18 +1350,33 @@ module Google # @return [Array] attr_accessor :output_collection_name + # Type of transform. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # User names for all collection inputs to this transform. + # Corresponds to the JSON property `inputCollectionName` + # @return [Array] + attr_accessor :input_collection_name + + # User provided name for this transform instance. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @input_collection_name = args[:input_collection_name] if args.key?(:input_collection_name) - @name = args[:name] if args.key?(:name) @id = args[:id] if args.key?(:id) @display_data = args[:display_data] if args.key?(:display_data) @output_collection_name = args[:output_collection_name] if args.key?(:output_collection_name) + @kind = args[:kind] if args.key?(:kind) + @input_collection_name = args[:input_collection_name] if args.key?(:input_collection_name) + @name = args[:name] if args.key?(:name) end end @@ -2593,6 +1399,37 @@ module Google end end + # Parameters to provide to the template being launched. + class LaunchTemplateParameters + include Google::Apis::Core::Hashable + + # The environment values to set at runtime. + # Corresponds to the JSON property `environment` + # @return [Google::Apis::DataflowV1b3::RuntimeEnvironment] + attr_accessor :environment + + # The runtime parameters to pass to the job. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # Required. The job name to use for the created job. + # Corresponds to the JSON property `jobName` + # @return [String] + attr_accessor :job_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment = args[:environment] if args.key?(:environment) + @parameters = args[:parameters] if args.key?(:parameters) + @job_name = args[:job_name] if args.key?(:job_name) + end + end + # A sink that records can be encoded and written to. class Sink include Google::Apis::Core::Hashable @@ -2618,37 +1455,6 @@ module Google end end - # Parameters to provide to the template being launched. - class LaunchTemplateParameters - include Google::Apis::Core::Hashable - - # The runtime parameters to pass to the job. - # Corresponds to the JSON property `parameters` - # @return [Hash] - attr_accessor :parameters - - # Required. The job name to use for the created job. - # Corresponds to the JSON property `jobName` - # @return [String] - attr_accessor :job_name - - # The environment values to set at runtime. - # Corresponds to the JSON property `environment` - # @return [Google::Apis::DataflowV1b3::RuntimeEnvironment] - attr_accessor :environment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @parameters = args[:parameters] if args.key?(:parameters) - @job_name = args[:job_name] if args.key?(:job_name) - @environment = args[:environment] if args.key?(:environment) - end - end - # An instruction that copies its inputs (zero or more) to its (single) output. class FlattenInstruction include Google::Apis::Core::Hashable @@ -2673,22 +1479,6 @@ module Google class PartialGroupByKeyInstruction include Google::Apis::Core::Hashable - # An input of an instruction, as a reference to an output of a - # producer instruction. - # Corresponds to the JSON property `input` - # @return [Google::Apis::DataflowV1b3::InstructionInput] - attr_accessor :input - - # The codec to use for interpreting an element in the input PTable. - # Corresponds to the JSON property `inputElementCodec` - # @return [Hash] - attr_accessor :input_element_codec - - # The value combining function to invoke. - # Corresponds to the JSON property `valueCombiningFn` - # @return [Hash] - attr_accessor :value_combining_fn - # If this instruction includes a combining function this is the name of the # intermediate store between the GBK and the CombineValues. # Corresponds to the JSON property `originalCombineValuesInputStoreName` @@ -2706,18 +1496,72 @@ module Google # @return [String] attr_accessor :original_combine_values_step_name + # An input of an instruction, as a reference to an output of a + # producer instruction. + # Corresponds to the JSON property `input` + # @return [Google::Apis::DataflowV1b3::InstructionInput] + attr_accessor :input + + # The codec to use for interpreting an element in the input PTable. + # Corresponds to the JSON property `inputElementCodec` + # @return [Hash] + attr_accessor :input_element_codec + + # The value combining function to invoke. + # Corresponds to the JSON property `valueCombiningFn` + # @return [Hash] + attr_accessor :value_combining_fn + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @input = args[:input] if args.key?(:input) - @input_element_codec = args[:input_element_codec] if args.key?(:input_element_codec) - @value_combining_fn = args[:value_combining_fn] if args.key?(:value_combining_fn) @original_combine_values_input_store_name = args[:original_combine_values_input_store_name] if args.key?(:original_combine_values_input_store_name) @side_inputs = args[:side_inputs] if args.key?(:side_inputs) @original_combine_values_step_name = args[:original_combine_values_step_name] if args.key?(:original_combine_values_step_name) + @input = args[:input] if args.key?(:input) + @input_element_codec = args[:input_element_codec] if args.key?(:input_element_codec) + @value_combining_fn = args[:value_combining_fn] if args.key?(:value_combining_fn) + end + end + + # Description of an input or output of an execution stage. + class StageSource + include Google::Apis::Core::Hashable + + # Size of the source, if measurable. + # Corresponds to the JSON property `sizeBytes` + # @return [Fixnum] + attr_accessor :size_bytes + + # Dataflow service generated name for this source. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Human-readable name for this source; may be user or system generated. + # Corresponds to the JSON property `userName` + # @return [String] + attr_accessor :user_name + + # User name for the original user transform or collection with which this + # source is most closely associated. + # Corresponds to the JSON property `originalTransformOrCollection` + # @return [String] + attr_accessor :original_transform_or_collection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @size_bytes = args[:size_bytes] if args.key?(:size_bytes) + @name = args[:name] if args.key?(:name) + @user_name = args[:user_name] if args.key?(:user_name) + @original_transform_or_collection = args[:original_transform_or_collection] if args.key?(:original_transform_or_collection) end end @@ -2750,44 +1594,6 @@ module Google end end - # Description of an input or output of an execution stage. - class StageSource - include Google::Apis::Core::Hashable - - # Dataflow service generated name for this source. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Size of the source, if measurable. - # Corresponds to the JSON property `sizeBytes` - # @return [Fixnum] - attr_accessor :size_bytes - - # Human-readable name for this source; may be user or system generated. - # Corresponds to the JSON property `userName` - # @return [String] - attr_accessor :user_name - - # User name for the original user transform or collection with which this - # source is most closely associated. - # Corresponds to the JSON property `originalTransformOrCollection` - # @return [String] - attr_accessor :original_transform_or_collection - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @size_bytes = args[:size_bytes] if args.key?(:size_bytes) - @user_name = args[:user_name] if args.key?(:user_name) - @original_transform_or_collection = args[:original_transform_or_collection] if args.key?(:original_transform_or_collection) - end - end - # A metric value representing a list of strings. class StringList include Google::Apis::Core::Hashable @@ -2811,17 +1617,6 @@ module Google class DisplayData include Google::Apis::Core::Hashable - # Contains value if the data is of java class type. - # Corresponds to the JSON property `javaClassValue` - # @return [String] - attr_accessor :java_class_value - - # Contains value if the data is of a boolean type. - # Corresponds to the JSON property `boolValue` - # @return [Boolean] - attr_accessor :bool_value - alias_method :bool_value?, :bool_value - # Contains value if the data is of string type. # Corresponds to the JSON property `strValue` # @return [String] @@ -2867,29 +1662,38 @@ module Google # @return [String] attr_accessor :short_str_value - # An optional label to display in a dax UI for the element. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - # An optional full URL. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url + # An optional label to display in a dax UI for the element. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + # Contains value if the data is of timestamp type. # Corresponds to the JSON property `timestampValue` # @return [String] attr_accessor :timestamp_value + # Contains value if the data is of java class type. + # Corresponds to the JSON property `javaClassValue` + # @return [String] + attr_accessor :java_class_value + + # Contains value if the data is of a boolean type. + # Corresponds to the JSON property `boolValue` + # @return [Boolean] + attr_accessor :bool_value + alias_method :bool_value?, :bool_value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @java_class_value = args[:java_class_value] if args.key?(:java_class_value) - @bool_value = args[:bool_value] if args.key?(:bool_value) @str_value = args[:str_value] if args.key?(:str_value) @duration_value = args[:duration_value] if args.key?(:duration_value) @int64_value = args[:int64_value] if args.key?(:int64_value) @@ -2897,60 +1701,11 @@ module Google @float_value = args[:float_value] if args.key?(:float_value) @key = args[:key] if args.key?(:key) @short_str_value = args[:short_str_value] if args.key?(:short_str_value) - @label = args[:label] if args.key?(:label) @url = args[:url] if args.key?(:url) + @label = args[:label] if args.key?(:label) @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) - end - end - - # Request to lease WorkItems. - class LeaseWorkItemRequest - include Google::Apis::Core::Hashable - - # The initial lease period. - # Corresponds to the JSON property `requestedLeaseDuration` - # @return [String] - attr_accessor :requested_lease_duration - - # The current timestamp at the worker. - # Corresponds to the JSON property `currentWorkerTime` - # @return [String] - attr_accessor :current_worker_time - - # The location which contains the WorkItem's job. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # Filter for WorkItem type. - # Corresponds to the JSON property `workItemTypes` - # @return [Array] - attr_accessor :work_item_types - - # Worker capabilities. WorkItems might be limited to workers with specific - # capabilities. - # Corresponds to the JSON property `workerCapabilities` - # @return [Array] - attr_accessor :worker_capabilities - - # Identifies the worker leasing work -- typically the ID of the - # virtual machine running the worker. - # Corresponds to the JSON property `workerId` - # @return [String] - attr_accessor :worker_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration) - @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time) - @location = args[:location] if args.key?(:location) - @work_item_types = args[:work_item_types] if args.key?(:work_item_types) - @worker_capabilities = args[:worker_capabilities] if args.key?(:worker_capabilities) - @worker_id = args[:worker_id] if args.key?(:worker_id) + @java_class_value = args[:java_class_value] if args.key?(:java_class_value) + @bool_value = args[:bool_value] if args.key?(:bool_value) end end @@ -2986,6 +1741,57 @@ module Google end end + # Request to lease WorkItems. + class LeaseWorkItemRequest + include Google::Apis::Core::Hashable + + # Worker capabilities. WorkItems might be limited to workers with specific + # capabilities. + # Corresponds to the JSON property `workerCapabilities` + # @return [Array] + attr_accessor :worker_capabilities + + # Identifies the worker leasing work -- typically the ID of the + # virtual machine running the worker. + # Corresponds to the JSON property `workerId` + # @return [String] + attr_accessor :worker_id + + # The initial lease period. + # Corresponds to the JSON property `requestedLeaseDuration` + # @return [String] + attr_accessor :requested_lease_duration + + # The current timestamp at the worker. + # Corresponds to the JSON property `currentWorkerTime` + # @return [String] + attr_accessor :current_worker_time + + # The location which contains the WorkItem's job. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Filter for WorkItem type. + # Corresponds to the JSON property `workItemTypes` + # @return [Array] + attr_accessor :work_item_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @worker_capabilities = args[:worker_capabilities] if args.key?(:worker_capabilities) + @worker_id = args[:worker_id] if args.key?(:worker_id) + @requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration) + @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time) + @location = args[:location] if args.key?(:location) + @work_item_types = args[:work_item_types] if args.key?(:work_item_types) + end + end + # The response to a GetTemplate request. class GetTemplateResponse include Google::Apis::Core::Hashable @@ -3078,6 +1884,18 @@ module Google class ReportWorkItemStatusRequest include Google::Apis::Core::Hashable + # The order is unimportant, except that the order of the + # WorkItemServiceState messages in the ReportWorkItemStatusResponse + # corresponds to the order of WorkItemStatus messages here. + # Corresponds to the JSON property `workItemStatuses` + # @return [Array] + attr_accessor :work_item_statuses + + # The current timestamp at the worker. + # Corresponds to the JSON property `currentWorkerTime` + # @return [String] + attr_accessor :current_worker_time + # The ID of the worker reporting the WorkItem status. If this # does not match the ID of the worker which the Dataflow service # believes currently has the lease on the WorkItem, the report @@ -3086,33 +1904,21 @@ module Google # @return [String] attr_accessor :worker_id - # The current timestamp at the worker. - # Corresponds to the JSON property `currentWorkerTime` - # @return [String] - attr_accessor :current_worker_time - # The location which contains the WorkItem's job. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # The order is unimportant, except that the order of the - # WorkItemServiceState messages in the ReportWorkItemStatusResponse - # corresponds to the order of WorkItemStatus messages here. - # Corresponds to the JSON property `workItemStatuses` - # @return [Array] - attr_accessor :work_item_statuses - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @worker_id = args[:worker_id] if args.key?(:worker_id) - @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time) - @location = args[:location] if args.key?(:location) @work_item_statuses = args[:work_item_statuses] if args.key?(:work_item_statuses) + @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time) + @worker_id = args[:worker_id] if args.key?(:worker_id) + @location = args[:location] if args.key?(:location) end end @@ -3153,18 +1959,6 @@ module Google class StreamingConfigTask include Google::Apis::Core::Hashable - # Set of computation configuration information. - # Corresponds to the JSON property `streamingComputationConfigs` - # @return [Array] - attr_accessor :streaming_computation_configs - - # If present, the worker must use this endpoint to communicate with Windmill - # Service dispatchers, otherwise the worker must continue to use whatever - # endpoint it had been using. - # Corresponds to the JSON property `windmillServiceEndpoint` - # @return [String] - attr_accessor :windmill_service_endpoint - # Map from user step names to state families. # Corresponds to the JSON property `userStepToStateFamilyNameMap` # @return [Hash] @@ -3177,16 +1971,48 @@ module Google # @return [Fixnum] attr_accessor :windmill_service_port + # Set of computation configuration information. + # Corresponds to the JSON property `streamingComputationConfigs` + # @return [Array] + attr_accessor :streaming_computation_configs + + # If present, the worker must use this endpoint to communicate with Windmill + # Service dispatchers, otherwise the worker must continue to use whatever + # endpoint it had been using. + # Corresponds to the JSON property `windmillServiceEndpoint` + # @return [String] + attr_accessor :windmill_service_endpoint + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @streaming_computation_configs = args[:streaming_computation_configs] if args.key?(:streaming_computation_configs) - @windmill_service_endpoint = args[:windmill_service_endpoint] if args.key?(:windmill_service_endpoint) @user_step_to_state_family_name_map = args[:user_step_to_state_family_name_map] if args.key?(:user_step_to_state_family_name_map) @windmill_service_port = args[:windmill_service_port] if args.key?(:windmill_service_port) + @streaming_computation_configs = args[:streaming_computation_configs] if args.key?(:streaming_computation_configs) + @windmill_service_endpoint = args[:windmill_service_endpoint] if args.key?(:windmill_service_endpoint) + end + end + + # Additional information about how a Cloud Dataflow job will be executed that + # isn't contained in the submitted job. + class JobExecutionInfo + include Google::Apis::Core::Hashable + + # A mapping from each stage to the information about that stage. + # Corresponds to the JSON property `stages` + # @return [Hash] + attr_accessor :stages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stages = args[:stages] if args.key?(:stages) end end @@ -3210,6 +2036,12 @@ module Google class Step include Google::Apis::Core::Hashable + # The name that identifies the step. This must be unique for each + # step with respect to all other steps in the Cloud Dataflow job. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The kind of step in the Cloud Dataflow job. # Corresponds to the JSON property `kind` # @return [String] @@ -3222,41 +2054,15 @@ module Google # @return [Hash] attr_accessor :properties - # The name that identifies the step. This must be unique for each - # step with respect to all other steps in the Cloud Dataflow job. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @name = args[:name] if args.key?(:name) @kind = args[:kind] if args.key?(:kind) @properties = args[:properties] if args.key?(:properties) - @name = args[:name] if args.key?(:name) - end - end - - # Additional information about how a Cloud Dataflow job will be executed that - # isn't contained in the submitted job. - class JobExecutionInfo - include Google::Apis::Core::Hashable - - # A mapping from each stage to the information about that stage. - # Corresponds to the JSON property `stages` - # @return [Hash] - attr_accessor :stages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @stages = args[:stages] if args.key?(:stages) end end @@ -3283,11 +2089,10 @@ module Google class Disk include Google::Apis::Core::Hashable - # Size of disk in GB. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # Corresponds to the JSON property `sizeGb` - # @return [Fixnum] - attr_accessor :size_gb + # Directory in a VM where disk is mounted. + # Corresponds to the JSON property `mountPoint` + # @return [String] + attr_accessor :mount_point # Disk storage type, as defined by Google Compute Engine. This # must be a disk type appropriate to the project and zone in which @@ -3308,10 +2113,11 @@ module Google # @return [String] attr_accessor :disk_type - # Directory in a VM where disk is mounted. - # Corresponds to the JSON property `mountPoint` - # @return [String] - attr_accessor :mount_point + # Size of disk in GB. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # Corresponds to the JSON property `sizeGb` + # @return [Fixnum] + attr_accessor :size_gb def initialize(**args) update!(**args) @@ -3319,9 +2125,46 @@ module Google # Update properties of this object def update!(**args) - @size_gb = args[:size_gb] if args.key?(:size_gb) - @disk_type = args[:disk_type] if args.key?(:disk_type) @mount_point = args[:mount_point] if args.key?(:mount_point) + @disk_type = args[:disk_type] if args.key?(:disk_type) + @size_gb = args[:size_gb] if args.key?(:size_gb) + end + end + + # CounterMetadata includes all static non-name non-value counter attributes. + class CounterMetadata + include Google::Apis::Core::Hashable + + # Human-readable description of the counter semantics. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Counter aggregation kind. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # System defined Units, see above enum. + # Corresponds to the JSON property `standardUnits` + # @return [String] + attr_accessor :standard_units + + # A string referring to the unit type. + # Corresponds to the JSON property `otherUnits` + # @return [String] + attr_accessor :other_units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @kind = args[:kind] if args.key?(:kind) + @standard_units = args[:standard_units] if args.key?(:standard_units) + @other_units = args[:other_units] if args.key?(:other_units) end end @@ -3356,47 +2199,16 @@ module Google end end - # CounterMetadata includes all static non-name non-value counter attributes. - class CounterMetadata - include Google::Apis::Core::Hashable - - # Counter aggregation kind. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Human-readable description of the counter semantics. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # System defined Units, see above enum. - # Corresponds to the JSON property `standardUnits` - # @return [String] - attr_accessor :standard_units - - # A string referring to the unit type. - # Corresponds to the JSON property `otherUnits` - # @return [String] - attr_accessor :other_units - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @description = args[:description] if args.key?(:description) - @standard_units = args[:standard_units] if args.key?(:standard_units) - @other_units = args[:other_units] if args.key?(:other_units) - end - end - # A progress measurement of a WorkItem by a worker. class ApproximateReportedProgress include Google::Apis::Core::Hashable + # Represents the level of parallelism in a WorkItem's input, + # reported by the worker. + # Corresponds to the JSON property `remainingParallelism` + # @return [Google::Apis::DataflowV1b3::ReportedParallelism] + attr_accessor :remaining_parallelism + # Position defines a position within a collection of data. The value # can be either the end position, a key (used with ordered # collections), a byte offset, or a record index. @@ -3416,48 +2228,16 @@ module Google # @return [Google::Apis::DataflowV1b3::ReportedParallelism] attr_accessor :consumed_parallelism - # Represents the level of parallelism in a WorkItem's input, - # reported by the worker. - # Corresponds to the JSON property `remainingParallelism` - # @return [Google::Apis::DataflowV1b3::ReportedParallelism] - attr_accessor :remaining_parallelism - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @remaining_parallelism = args[:remaining_parallelism] if args.key?(:remaining_parallelism) @position = args[:position] if args.key?(:position) @fraction_consumed = args[:fraction_consumed] if args.key?(:fraction_consumed) @consumed_parallelism = args[:consumed_parallelism] if args.key?(:consumed_parallelism) - @remaining_parallelism = args[:remaining_parallelism] if args.key?(:remaining_parallelism) - end - end - - # State family configuration. - class StateFamilyConfig - include Google::Apis::Core::Hashable - - # If true, this family corresponds to a read operation. - # Corresponds to the JSON property `isRead` - # @return [Boolean] - attr_accessor :is_read - alias_method :is_read?, :is_read - - # The state family value. - # Corresponds to the JSON property `stateFamily` - # @return [String] - attr_accessor :state_family - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @is_read = args[:is_read] if args.key?(:is_read) - @state_family = args[:state_family] if args.key?(:state_family) end end @@ -3480,6 +2260,32 @@ module Google end end + # State family configuration. + class StateFamilyConfig + include Google::Apis::Core::Hashable + + # The state family value. + # Corresponds to the JSON property `stateFamily` + # @return [String] + attr_accessor :state_family + + # If true, this family corresponds to a read operation. + # Corresponds to the JSON property `isRead` + # @return [Boolean] + attr_accessor :is_read + alias_method :is_read?, :is_read + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state_family = args[:state_family] if args.key?(:state_family) + @is_read = args[:is_read] if args.key?(:is_read) + end + end + # Service-side response to WorkerMessage reporting resource utilization. class ResourceUtilizationReportResponse include Google::Apis::Core::Hashable @@ -3497,6 +2303,13 @@ module Google class SourceSplitResponse include Google::Apis::Core::Hashable + # If outcome is SPLITTING_HAPPENED, then this is a list of bundles + # into which the source was split. Otherwise this field is ignored. + # This list can be empty, which means the source represents an empty input. + # Corresponds to the JSON property `bundles` + # @return [Array] + attr_accessor :bundles + # DEPRECATED in favor of bundles. # Corresponds to the JSON property `shards` # @return [Array] @@ -3511,22 +2324,15 @@ module Google # @return [String] attr_accessor :outcome - # If outcome is SPLITTING_HAPPENED, then this is a list of bundles - # into which the source was split. Otherwise this field is ignored. - # This list can be empty, which means the source represents an empty input. - # Corresponds to the JSON property `bundles` - # @return [Array] - attr_accessor :bundles - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @bundles = args[:bundles] if args.key?(:bundles) @shards = args[:shards] if args.key?(:shards) @outcome = args[:outcome] if args.key?(:outcome) - @bundles = args[:bundles] if args.key?(:bundles) end end @@ -3534,29 +2340,21 @@ module Google class ParallelInstruction include Google::Apis::Core::Hashable - # An instruction that reads records. - # Takes no inputs, produces one output. - # Corresponds to the JSON property `read` - # @return [Google::Apis::DataflowV1b3::ReadInstruction] - attr_accessor :read - - # An instruction that does a ParDo operation. - # Takes one main input and zero or more side inputs, and produces - # zero or more outputs. - # Runs user code. - # Corresponds to the JSON property `parDo` - # @return [Google::Apis::DataflowV1b3::ParDoInstruction] - attr_accessor :par_do + # System-defined name for the operation in the original workflow graph. + # Corresponds to the JSON property `originalName` + # @return [String] + attr_accessor :original_name # An instruction that copies its inputs (zero or more) to its (single) output. # Corresponds to the JSON property `flatten` # @return [Google::Apis::DataflowV1b3::FlattenInstruction] attr_accessor :flatten - # System-defined name for the operation in the original workflow graph. - # Corresponds to the JSON property `originalName` - # @return [String] - attr_accessor :original_name + # An instruction that writes records. + # Takes one input, produces no outputs. + # Corresponds to the JSON property `write` + # @return [Google::Apis::DataflowV1b3::WriteInstruction] + attr_accessor :write # System-defined name of this operation. # Unique across the workflow. @@ -3564,12 +2362,6 @@ module Google # @return [String] attr_accessor :system_name - # An instruction that writes records. - # Takes one input, produces no outputs. - # Corresponds to the JSON property `write` - # @return [Google::Apis::DataflowV1b3::WriteInstruction] - attr_accessor :write - # An instruction that does a partial group-by-key. # One input and one output. # Corresponds to the JSON property `partialGroupByKey` @@ -3586,58 +2378,35 @@ module Google # @return [String] attr_accessor :name + # An instruction that reads records. + # Takes no inputs, produces one output. + # Corresponds to the JSON property `read` + # @return [Google::Apis::DataflowV1b3::ReadInstruction] + attr_accessor :read + + # An instruction that does a ParDo operation. + # Takes one main input and zero or more side inputs, and produces + # zero or more outputs. + # Runs user code. + # Corresponds to the JSON property `parDo` + # @return [Google::Apis::DataflowV1b3::ParDoInstruction] + attr_accessor :par_do + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @read = args[:read] if args.key?(:read) - @par_do = args[:par_do] if args.key?(:par_do) - @flatten = args[:flatten] if args.key?(:flatten) @original_name = args[:original_name] if args.key?(:original_name) - @system_name = args[:system_name] if args.key?(:system_name) + @flatten = args[:flatten] if args.key?(:flatten) @write = args[:write] if args.key?(:write) + @system_name = args[:system_name] if args.key?(:system_name) @partial_group_by_key = args[:partial_group_by_key] if args.key?(:partial_group_by_key) @outputs = args[:outputs] if args.key?(:outputs) @name = args[:name] if args.key?(:name) - end - end - - # Data disk assignment information for a specific key-range of a sharded - # computation. - # Currently we only support UTF-8 character splits to simplify encoding into - # JSON. - class KeyRangeDataDiskAssignment - include Google::Apis::Core::Hashable - - # The start (inclusive) of the key range. - # Corresponds to the JSON property `start` - # @return [String] - attr_accessor :start - - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - # Corresponds to the JSON property `dataDisk` - # @return [String] - attr_accessor :data_disk - - # The end (exclusive) of the key range. - # Corresponds to the JSON property `end` - # @return [String] - attr_accessor :end - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start = args[:start] if args.key?(:start) - @data_disk = args[:data_disk] if args.key?(:data_disk) - @end = args[:end] if args.key?(:end) + @read = args[:read] if args.key?(:read) + @par_do = args[:par_do] if args.key?(:par_do) end end @@ -3676,6 +2445,43 @@ module Google end end + # Data disk assignment information for a specific key-range of a sharded + # computation. + # Currently we only support UTF-8 character splits to simplify encoding into + # JSON. + class KeyRangeDataDiskAssignment + include Google::Apis::Core::Hashable + + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + # Corresponds to the JSON property `dataDisk` + # @return [String] + attr_accessor :data_disk + + # The start (inclusive) of the key range. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + + # The end (exclusive) of the key range. + # Corresponds to the JSON property `end` + # @return [String] + attr_accessor :end + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_disk = args[:data_disk] if args.key?(:data_disk) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) + end + end + # An instruction that does a ParDo operation. # Takes one main input and zero or more side inputs, and produces # zero or more outputs. @@ -3683,6 +2489,11 @@ module Google class ParDoInstruction include Google::Apis::Core::Hashable + # Zero or more side inputs. + # Corresponds to the JSON property `sideInputs` + # @return [Array] + attr_accessor :side_inputs + # Information about each of the outputs, if user_fn is a MultiDoFn. # Corresponds to the JSON property `multiOutputInfos` # @return [Array] @@ -3704,22 +2515,17 @@ module Google # @return [Fixnum] attr_accessor :num_outputs - # Zero or more side inputs. - # Corresponds to the JSON property `sideInputs` - # @return [Array] - attr_accessor :side_inputs - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @side_inputs = args[:side_inputs] if args.key?(:side_inputs) @multi_output_infos = args[:multi_output_infos] if args.key?(:multi_output_infos) @user_fn = args[:user_fn] if args.key?(:user_fn) @input = args[:input] if args.key?(:input) @num_outputs = args[:num_outputs] if args.key?(:num_outputs) - @side_inputs = args[:side_inputs] if args.key?(:side_inputs) end end @@ -3727,32 +2533,6 @@ module Google class MetricUpdate include Google::Apis::Core::Hashable - # Timestamp associated with the metric value. Optional when workers are - # reporting work progress; it will be filled in responses from the - # metrics API. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - # Identifies a metric, by describing the source which generated the - # metric. - # Corresponds to the JSON property `name` - # @return [Google::Apis::DataflowV1b3::MetricStructuredName] - attr_accessor :name - - # A struct value describing properties of a distribution of numeric values. - # Corresponds to the JSON property `distribution` - # @return [Object] - attr_accessor :distribution - - # Worker-computed aggregate value for the "Set" aggregation kind. The only - # possible value type is a list of Values whose type can be Long, Double, - # or String, according to the metric's type. All Values in the list must - # be of the same type. - # Corresponds to the JSON property `set` - # @return [Object] - attr_accessor :set - # Worker-computed aggregate value for internal use by the Dataflow # service. # Corresponds to the JSON property `internal` @@ -3799,22 +2579,48 @@ module Google # @return [Object] attr_accessor :mean_sum + # Timestamp associated with the metric value. Optional when workers are + # reporting work progress; it will be filled in responses from the + # metrics API. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Identifies a metric, by describing the source which generated the + # metric. + # Corresponds to the JSON property `name` + # @return [Google::Apis::DataflowV1b3::MetricStructuredName] + attr_accessor :name + + # A struct value describing properties of a distribution of numeric values. + # Corresponds to the JSON property `distribution` + # @return [Object] + attr_accessor :distribution + + # Worker-computed aggregate value for the "Set" aggregation kind. The only + # possible value type is a list of Values whose type can be Long, Double, + # or String, according to the metric's type. All Values in the list must + # be of the same type. + # Corresponds to the JSON property `set` + # @return [Object] + attr_accessor :set + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @update_time = args[:update_time] if args.key?(:update_time) - @name = args[:name] if args.key?(:name) - @distribution = args[:distribution] if args.key?(:distribution) - @set = args[:set] if args.key?(:set) @internal = args[:internal] if args.key?(:internal) @cumulative = args[:cumulative] if args.key?(:cumulative) @kind = args[:kind] if args.key?(:kind) @scalar = args[:scalar] if args.key?(:scalar) @mean_count = args[:mean_count] if args.key?(:mean_count) @mean_sum = args[:mean_sum] if args.key?(:mean_sum) + @update_time = args[:update_time] if args.key?(:update_time) + @name = args[:name] if args.key?(:name) + @distribution = args[:distribution] if args.key?(:distribution) + @set = args[:set] if args.key?(:set) end end @@ -3823,28 +2629,6 @@ module Google class CounterStructuredName include Google::Apis::Core::Hashable - # A string containing a more specific namespace of the counter's origin. - # Corresponds to the JSON property `originNamespace` - # @return [String] - attr_accessor :origin_namespace - - # One of the standard Origins defined above. - # Corresponds to the JSON property `origin` - # @return [String] - attr_accessor :origin - - # Counter name. Not necessarily globally-unique, but unique within the - # context of the other fields. - # Required. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Name of the stage. An execution step contains multiple component steps. - # Corresponds to the JSON property `executionStepName` - # @return [String] - attr_accessor :execution_step_name - # Name of the optimized step being executed by the workers. # Corresponds to the JSON property `componentStepName` # @return [String] @@ -3866,20 +2650,42 @@ module Google # @return [String] attr_accessor :worker_id + # A string containing a more specific namespace of the counter's origin. + # Corresponds to the JSON property `originNamespace` + # @return [String] + attr_accessor :origin_namespace + + # Counter name. Not necessarily globally-unique, but unique within the + # context of the other fields. + # Required. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Name of the stage. An execution step contains multiple component steps. + # Corresponds to the JSON property `executionStepName` + # @return [String] + attr_accessor :execution_step_name + + # One of the standard Origins defined above. + # Corresponds to the JSON property `origin` + # @return [String] + attr_accessor :origin + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @origin_namespace = args[:origin_namespace] if args.key?(:origin_namespace) - @origin = args[:origin] if args.key?(:origin) - @name = args[:name] if args.key?(:name) - @execution_step_name = args[:execution_step_name] if args.key?(:execution_step_name) @component_step_name = args[:component_step_name] if args.key?(:component_step_name) @portion = args[:portion] if args.key?(:portion) @original_step_name = args[:original_step_name] if args.key?(:original_step_name) @worker_id = args[:worker_id] if args.key?(:worker_id) + @origin_namespace = args[:origin_namespace] if args.key?(:origin_namespace) + @name = args[:name] if args.key?(:name) + @execution_step_name = args[:execution_step_name] if args.key?(:execution_step_name) + @origin = args[:origin] if args.key?(:origin) end end @@ -3887,6 +2693,11 @@ module Google class ApproximateProgress include Google::Apis::Core::Hashable + # Obsolete. + # Corresponds to the JSON property `percentComplete` + # @return [Float] + attr_accessor :percent_complete + # Obsolete. # Corresponds to the JSON property `remainingTime` # @return [String] @@ -3899,20 +2710,15 @@ module Google # @return [Google::Apis::DataflowV1b3::Position] attr_accessor :position - # Obsolete. - # Corresponds to the JSON property `percentComplete` - # @return [Float] - attr_accessor :percent_complete - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @percent_complete = args[:percent_complete] if args.key?(:percent_complete) @remaining_time = args[:remaining_time] if args.key?(:remaining_time) @position = args[:position] if args.key?(:position) - @percent_complete = args[:percent_complete] if args.key?(:percent_complete) end end @@ -3921,25 +2727,25 @@ module Google class WorkerMessageResponse include Google::Apis::Core::Hashable + # Service-side response to WorkerMessage reporting resource utilization. + # Corresponds to the JSON property `workerMetricsResponse` + # @return [Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse] + attr_accessor :worker_metrics_response + # WorkerHealthReportResponse contains information returned to the worker # in response to a health ping. # Corresponds to the JSON property `workerHealthReportResponse` # @return [Google::Apis::DataflowV1b3::WorkerHealthReportResponse] attr_accessor :worker_health_report_response - # Service-side response to WorkerMessage reporting resource utilization. - # Corresponds to the JSON property `workerMetricsResponse` - # @return [Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse] - attr_accessor :worker_metrics_response - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @worker_health_report_response = args[:worker_health_report_response] if args.key?(:worker_health_report_response) @worker_metrics_response = args[:worker_metrics_response] if args.key?(:worker_metrics_response) + @worker_health_report_response = args[:worker_health_report_response] if args.key?(:worker_health_report_response) end end @@ -3947,16 +2753,16 @@ module Google class TemplateMetadata include Google::Apis::Core::Hashable - # Required. The name of the template. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The parameters for the template. # Corresponds to the JSON property `parameters` # @return [Array] attr_accessor :parameters + # Required. The name of the template. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Optional. A description of the template. # Corresponds to the JSON property `description` # @return [String] @@ -3968,8 +2774,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) @parameters = args[:parameters] if args.key?(:parameters) + @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) end end @@ -3978,6 +2784,20 @@ module Google class WorkerMessage include Google::Apis::Core::Hashable + # WorkerHealthReport contains information about the health of a worker. + # The VM should be identified by the labels attached to the WorkerMessage that + # this health ping belongs to. + # Corresponds to the JSON property `workerHealthReport` + # @return [Google::Apis::DataflowV1b3::WorkerHealthReport] + attr_accessor :worker_health_report + + # Worker metrics exported from workers. This contains resource utilization + # metrics accumulated from a variety of sources. For more information, see + # go/df-resource-signals. + # Corresponds to the JSON property `workerMetrics` + # @return [Google::Apis::DataflowV1b3::ResourceUtilizationReport] + attr_accessor :worker_metrics + # A message code is used to report status and error messages to the service. # The message codes are intended to be machine readable. The service will # take care of translating these into user understandable messages if @@ -3990,13 +2810,6 @@ module Google # @return [Google::Apis::DataflowV1b3::WorkerMessageCode] attr_accessor :worker_message_code - # Worker metrics exported from workers. This contains resource utilization - # metrics accumulated from a variety of sources. For more information, see - # go/df-resource-signals. - # Corresponds to the JSON property `workerMetrics` - # @return [Google::Apis::DataflowV1b3::ResourceUtilizationReport] - attr_accessor :worker_metrics - # Labels are used to group WorkerMessages. # For example, a worker_message about a particular container # might have the labels: @@ -4016,24 +2829,17 @@ module Google # @return [String] attr_accessor :time - # WorkerHealthReport contains information about the health of a worker. - # The VM should be identified by the labels attached to the WorkerMessage that - # this health ping belongs to. - # Corresponds to the JSON property `workerHealthReport` - # @return [Google::Apis::DataflowV1b3::WorkerHealthReport] - attr_accessor :worker_health_report - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @worker_message_code = args[:worker_message_code] if args.key?(:worker_message_code) + @worker_health_report = args[:worker_health_report] if args.key?(:worker_health_report) @worker_metrics = args[:worker_metrics] if args.key?(:worker_metrics) + @worker_message_code = args[:worker_message_code] if args.key?(:worker_message_code) @labels = args[:labels] if args.key?(:labels) @time = args[:time] if args.key?(:time) - @worker_health_report = args[:worker_health_report] if args.key?(:worker_health_report) end end @@ -4046,24 +2852,24 @@ module Google class JobMetrics include Google::Apis::Core::Hashable - # Timestamp as of which metric values are current. - # Corresponds to the JSON property `metricTime` - # @return [String] - attr_accessor :metric_time - # All metrics for this job. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics + # Timestamp as of which metric values are current. + # Corresponds to the JSON property `metricTime` + # @return [String] + attr_accessor :metric_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @metric_time = args[:metric_time] if args.key?(:metric_time) @metrics = args[:metrics] if args.key?(:metrics) + @metric_time = args[:metric_time] if args.key?(:metric_time) end end @@ -4090,13 +2896,6 @@ module Google class CounterUpdate include Google::Apis::Core::Hashable - # The service-generated short identifier for this counter. - # The short_id -> (name, metadata) mapping is constant for the lifetime of - # a job. - # Corresponds to the JSON property `shortId` - # @return [Fixnum] - attr_accessor :short_id - # A metric value representing a list of floating point numbers. # Corresponds to the JSON property `floatingPointList` # @return [Google::Apis::DataflowV1b3::FloatingPointList] @@ -4129,6 +2928,11 @@ module Google # @return [Float] attr_accessor :floating_point + # Value for internally-defined counters used by the Dataflow service. + # Corresponds to the JSON property `internal` + # @return [Object] + attr_accessor :internal + # True if this counter is reported as the total cumulative aggregate # value accumulated since the worker started working on this WorkItem. # By default this is false, indicating that this counter is reported @@ -4138,11 +2942,6 @@ module Google attr_accessor :cumulative alias_method :cumulative?, :cumulative - # Value for internally-defined counters used by the Dataflow service. - # Corresponds to the JSON property `internal` - # @return [Object] - attr_accessor :internal - # A representation of a floating point mean metric contribution. # Corresponds to the JSON property `floatingPointMean` # @return [Google::Apis::DataflowV1b3::FloatingPointMean] @@ -4169,26 +2968,33 @@ module Google # @return [Google::Apis::DataflowV1b3::DistributionUpdate] attr_accessor :distribution + # The service-generated short identifier for this counter. + # The short_id -> (name, metadata) mapping is constant for the lifetime of + # a job. + # Corresponds to the JSON property `shortId` + # @return [Fixnum] + attr_accessor :short_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @short_id = args[:short_id] if args.key?(:short_id) @floating_point_list = args[:floating_point_list] if args.key?(:floating_point_list) @integer = args[:integer] if args.key?(:integer) @structured_name_and_metadata = args[:structured_name_and_metadata] if args.key?(:structured_name_and_metadata) @integer_list = args[:integer_list] if args.key?(:integer_list) @integer_mean = args[:integer_mean] if args.key?(:integer_mean) @floating_point = args[:floating_point] if args.key?(:floating_point) - @cumulative = args[:cumulative] if args.key?(:cumulative) @internal = args[:internal] if args.key?(:internal) + @cumulative = args[:cumulative] if args.key?(:cumulative) @floating_point_mean = args[:floating_point_mean] if args.key?(:floating_point_mean) @boolean = args[:boolean] if args.key?(:boolean) @name_and_kind = args[:name_and_kind] if args.key?(:name_and_kind) @string_list = args[:string_list] if args.key?(:string_list) @distribution = args[:distribution] if args.key?(:distribution) + @short_id = args[:short_id] if args.key?(:short_id) end end @@ -4197,12 +3003,12 @@ module Google class SourceMetadata include Google::Apis::Core::Hashable - # Whether this source is known to produce key/value pairs with - # the (encoded) keys in lexicographically sorted order. - # Corresponds to the JSON property `producesSortedKeys` - # @return [Boolean] - attr_accessor :produces_sorted_keys - alias_method :produces_sorted_keys?, :produces_sorted_keys + # An estimate of the total size (in bytes) of the data that would be + # read from this source. This estimate is in terms of external storage + # size, before any decompression or other processing done by the reader. + # Corresponds to the JSON property `estimatedSizeBytes` + # @return [Fixnum] + attr_accessor :estimated_size_bytes # Specifies that the size of this source is known to be infinite # (this is a streaming source). @@ -4211,12 +3017,12 @@ module Google attr_accessor :infinite alias_method :infinite?, :infinite - # An estimate of the total size (in bytes) of the data that would be - # read from this source. This estimate is in terms of external storage - # size, before any decompression or other processing done by the reader. - # Corresponds to the JSON property `estimatedSizeBytes` - # @return [Fixnum] - attr_accessor :estimated_size_bytes + # Whether this source is known to produce key/value pairs with + # the (encoded) keys in lexicographically sorted order. + # Corresponds to the JSON property `producesSortedKeys` + # @return [Boolean] + attr_accessor :produces_sorted_keys + alias_method :produces_sorted_keys?, :produces_sorted_keys def initialize(**args) update!(**args) @@ -4224,9 +3030,9 @@ module Google # Update properties of this object def update!(**args) - @produces_sorted_keys = args[:produces_sorted_keys] if args.key?(:produces_sorted_keys) - @infinite = args[:infinite] if args.key?(:infinite) @estimated_size_bytes = args[:estimated_size_bytes] if args.key?(:estimated_size_bytes) + @infinite = args[:infinite] if args.key?(:infinite) + @produces_sorted_keys = args[:produces_sorted_keys] if args.key?(:produces_sorted_keys) end end @@ -4234,12 +3040,6 @@ module Google class DistributionUpdate include Google::Apis::Core::Hashable - # A representation of an int64, n, that is immune to precision loss when - # encoded in JSON. - # Corresponds to the JSON property `sum` - # @return [Google::Apis::DataflowV1b3::SplitInt64] - attr_accessor :sum - # A representation of an int64, n, that is immune to precision loss when # encoded in JSON. # Corresponds to the JSON property `max` @@ -4269,18 +3069,67 @@ module Google # @return [Float] attr_accessor :sum_of_squares + # A representation of an int64, n, that is immune to precision loss when + # encoded in JSON. + # Corresponds to the JSON property `sum` + # @return [Google::Apis::DataflowV1b3::SplitInt64] + attr_accessor :sum + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @sum = args[:sum] if args.key?(:sum) @max = args[:max] if args.key?(:max) @log_buckets = args[:log_buckets] if args.key?(:log_buckets) @count = args[:count] if args.key?(:count) @min = args[:min] if args.key?(:min) @sum_of_squares = args[:sum_of_squares] if args.key?(:sum_of_squares) + @sum = args[:sum] if args.key?(:sum) + end + end + + # DEPRECATED in favor of DynamicSourceSplit. + class SourceFork + include Google::Apis::Core::Hashable + + # Specification of one of the bundles produced as a result of splitting + # a Source (e.g. when executing a SourceSplitRequest, or when + # splitting an active task using WorkItemStatus.dynamic_source_split), + # relative to the source being split. + # Corresponds to the JSON property `primarySource` + # @return [Google::Apis::DataflowV1b3::DerivedSource] + attr_accessor :primary_source + + # DEPRECATED in favor of DerivedSource. + # Corresponds to the JSON property `residual` + # @return [Google::Apis::DataflowV1b3::SourceSplitShard] + attr_accessor :residual + + # Specification of one of the bundles produced as a result of splitting + # a Source (e.g. when executing a SourceSplitRequest, or when + # splitting an active task using WorkItemStatus.dynamic_source_split), + # relative to the source being split. + # Corresponds to the JSON property `residualSource` + # @return [Google::Apis::DataflowV1b3::DerivedSource] + attr_accessor :residual_source + + # DEPRECATED in favor of DerivedSource. + # Corresponds to the JSON property `primary` + # @return [Google::Apis::DataflowV1b3::SourceSplitShard] + attr_accessor :primary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @primary_source = args[:primary_source] if args.key?(:primary_source) + @residual = args[:residual] if args.key?(:residual) + @residual_source = args[:residual_source] if args.key?(:residual_source) + @primary = args[:primary] if args.key?(:primary) end end @@ -4307,53 +3156,51 @@ module Google end end - # DEPRECATED in favor of DynamicSourceSplit. - class SourceFork - include Google::Apis::Core::Hashable - - # DEPRECATED in favor of DerivedSource. - # Corresponds to the JSON property `residual` - # @return [Google::Apis::DataflowV1b3::SourceSplitShard] - attr_accessor :residual - - # Specification of one of the bundles produced as a result of splitting - # a Source (e.g. when executing a SourceSplitRequest, or when - # splitting an active task using WorkItemStatus.dynamic_source_split), - # relative to the source being split. - # Corresponds to the JSON property `residualSource` - # @return [Google::Apis::DataflowV1b3::DerivedSource] - attr_accessor :residual_source - - # DEPRECATED in favor of DerivedSource. - # Corresponds to the JSON property `primary` - # @return [Google::Apis::DataflowV1b3::SourceSplitShard] - attr_accessor :primary - - # Specification of one of the bundles produced as a result of splitting - # a Source (e.g. when executing a SourceSplitRequest, or when - # splitting an active task using WorkItemStatus.dynamic_source_split), - # relative to the source being split. - # Corresponds to the JSON property `primarySource` - # @return [Google::Apis::DataflowV1b3::DerivedSource] - attr_accessor :primary_source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @residual = args[:residual] if args.key?(:residual) - @residual_source = args[:residual_source] if args.key?(:residual_source) - @primary = args[:primary] if args.key?(:primary) - @primary_source = args[:primary_source] if args.key?(:primary_source) - end - end - # Conveys a worker's progress through the work described by a WorkItem. class WorkItemStatus include Google::Apis::Core::Hashable + # Worker output counters for this WorkItem. + # Corresponds to the JSON property `counterUpdates` + # @return [Array] + attr_accessor :counter_updates + + # Identifies the WorkItem. + # Corresponds to the JSON property `workItemId` + # @return [String] + attr_accessor :work_item_id + + # DEPRECATED in favor of counter_updates. + # Corresponds to the JSON property `metricUpdates` + # @return [Array] + attr_accessor :metric_updates + + # Specifies errors which occurred during processing. If errors are + # provided, and completed = true, then the WorkItem is considered + # to have failed. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # When a task splits using WorkItemStatus.dynamic_source_split, this + # message describes the two parts of the split relative to the + # description of the current task's input. + # Corresponds to the JSON property `dynamicSourceSplit` + # @return [Google::Apis::DataflowV1b3::DynamicSourceSplit] + attr_accessor :dynamic_source_split + + # The result of a SourceOperationRequest, specified in + # ReportWorkItemStatusRequest.source_operation when the work item + # is completed. + # Corresponds to the JSON property `sourceOperationResponse` + # @return [Google::Apis::DataflowV1b3::SourceOperationResponse] + attr_accessor :source_operation_response + + # Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest. + # Corresponds to the JSON property `progress` + # @return [Google::Apis::DataflowV1b3::ApproximateProgress] + attr_accessor :progress + # Amount of time the worker requests for its lease. # Corresponds to the JSON property `requestedLeaseDuration` # @return [String] @@ -4397,66 +3244,25 @@ module Google # @return [Google::Apis::DataflowV1b3::SourceFork] attr_accessor :source_fork - # Worker output counters for this WorkItem. - # Corresponds to the JSON property `counterUpdates` - # @return [Array] - attr_accessor :counter_updates - - # Identifies the WorkItem. - # Corresponds to the JSON property `workItemId` - # @return [String] - attr_accessor :work_item_id - - # Specifies errors which occurred during processing. If errors are - # provided, and completed = true, then the WorkItem is considered - # to have failed. - # Corresponds to the JSON property `errors` - # @return [Array] - attr_accessor :errors - - # DEPRECATED in favor of counter_updates. - # Corresponds to the JSON property `metricUpdates` - # @return [Array] - attr_accessor :metric_updates - - # When a task splits using WorkItemStatus.dynamic_source_split, this - # message describes the two parts of the split relative to the - # description of the current task's input. - # Corresponds to the JSON property `dynamicSourceSplit` - # @return [Google::Apis::DataflowV1b3::DynamicSourceSplit] - attr_accessor :dynamic_source_split - - # The result of a SourceOperationRequest, specified in - # ReportWorkItemStatusRequest.source_operation when the work item - # is completed. - # Corresponds to the JSON property `sourceOperationResponse` - # @return [Google::Apis::DataflowV1b3::SourceOperationResponse] - attr_accessor :source_operation_response - - # Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest. - # Corresponds to the JSON property `progress` - # @return [Google::Apis::DataflowV1b3::ApproximateProgress] - attr_accessor :progress - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @counter_updates = args[:counter_updates] if args.key?(:counter_updates) + @work_item_id = args[:work_item_id] if args.key?(:work_item_id) + @metric_updates = args[:metric_updates] if args.key?(:metric_updates) + @errors = args[:errors] if args.key?(:errors) + @dynamic_source_split = args[:dynamic_source_split] if args.key?(:dynamic_source_split) + @source_operation_response = args[:source_operation_response] if args.key?(:source_operation_response) + @progress = args[:progress] if args.key?(:progress) @requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration) @report_index = args[:report_index] if args.key?(:report_index) @stop_position = args[:stop_position] if args.key?(:stop_position) @completed = args[:completed] if args.key?(:completed) @reported_progress = args[:reported_progress] if args.key?(:reported_progress) @source_fork = args[:source_fork] if args.key?(:source_fork) - @counter_updates = args[:counter_updates] if args.key?(:counter_updates) - @work_item_id = args[:work_item_id] if args.key?(:work_item_id) - @errors = args[:errors] if args.key?(:errors) - @metric_updates = args[:metric_updates] if args.key?(:metric_updates) - @dynamic_source_split = args[:dynamic_source_split] if args.key?(:dynamic_source_split) - @source_operation_response = args[:source_operation_response] if args.key?(:source_operation_response) - @progress = args[:progress] if args.key?(:progress) end end @@ -4465,12 +3271,6 @@ module Google class ComponentSource include Google::Apis::Core::Hashable - # User name for the original user transform or collection with which this - # source is most closely associated. - # Corresponds to the JSON property `originalTransformOrCollection` - # @return [String] - attr_accessor :original_transform_or_collection - # Dataflow service generated name for this source. # Corresponds to the JSON property `name` # @return [String] @@ -4481,15 +3281,21 @@ module Google # @return [String] attr_accessor :user_name + # User name for the original user transform or collection with which this + # source is most closely associated. + # Corresponds to the JSON property `originalTransformOrCollection` + # @return [String] + attr_accessor :original_transform_or_collection + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @original_transform_or_collection = args[:original_transform_or_collection] if args.key?(:original_transform_or_collection) @name = args[:name] if args.key?(:name) @user_name = args[:user_name] if args.key?(:user_name) + @original_transform_or_collection = args[:original_transform_or_collection] if args.key?(:original_transform_or_collection) end end @@ -4579,17 +3385,17 @@ module Google # @return [Hash] attr_accessor :context + # Worker-defined metric name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Origin (namespace) of metric name. May be blank for user-define metrics; # will be "dataflow" for metrics defined by the Dataflow service or SDK. # Corresponds to the JSON property `origin` # @return [String] attr_accessor :origin - # Worker-defined metric name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - def initialize(**args) update!(**args) end @@ -4597,8 +3403,8 @@ module Google # Update properties of this object def update!(**args) @context = args[:context] if args.key?(:context) - @origin = args[:origin] if args.key?(:origin) @name = args[:name] if args.key?(:name) + @origin = args[:origin] if args.key?(:origin) end end @@ -4606,24 +3412,24 @@ module Google class SeqMapTaskOutputInfo include Google::Apis::Core::Hashable - # A sink that records can be encoded and written to. - # Corresponds to the JSON property `sink` - # @return [Google::Apis::DataflowV1b3::Sink] - attr_accessor :sink - # The id of the TupleTag the user code will tag the output value by. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag + # A sink that records can be encoded and written to. + # Corresponds to the JSON property `sink` + # @return [Google::Apis::DataflowV1b3::Sink] + attr_accessor :sink + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @sink = args[:sink] if args.key?(:sink) @tag = args[:tag] if args.key?(:tag) + @sink = args[:sink] if args.key?(:sink) end end @@ -4655,6 +3461,25 @@ module Google class KeyRangeLocation include Google::Apis::Core::Hashable + # The physical location of this range assignment to be used for + # streaming computation cross-worker message delivery. + # Corresponds to the JSON property `deliveryEndpoint` + # @return [String] + attr_accessor :delivery_endpoint + + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + # Corresponds to the JSON property `dataDisk` + # @return [String] + attr_accessor :data_disk + + # The start (inclusive) of the key range. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + # The end (exclusive) of the key range. # Corresponds to the JSON property `end` # @return [String] @@ -4666,36 +3491,17 @@ module Google # @return [String] attr_accessor :deprecated_persistent_directory - # The physical location of this range assignment to be used for - # streaming computation cross-worker message delivery. - # Corresponds to the JSON property `deliveryEndpoint` - # @return [String] - attr_accessor :delivery_endpoint - - # The start (inclusive) of the key range. - # Corresponds to the JSON property `start` - # @return [String] - attr_accessor :start - - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - # Corresponds to the JSON property `dataDisk` - # @return [String] - attr_accessor :data_disk - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @delivery_endpoint = args[:delivery_endpoint] if args.key?(:delivery_endpoint) + @data_disk = args[:data_disk] if args.key?(:data_disk) + @start = args[:start] if args.key?(:start) @end = args[:end] if args.key?(:end) @deprecated_persistent_directory = args[:deprecated_persistent_directory] if args.key?(:deprecated_persistent_directory) - @delivery_endpoint = args[:delivery_endpoint] if args.key?(:delivery_endpoint) - @start = args[:start] if args.key?(:start) - @data_disk = args[:data_disk] if args.key?(:data_disk) end end @@ -4718,34 +3524,19 @@ module Google end end - # Basic metadata about a counter. - class NameAndKind + # Describes a particular function to invoke. + class SeqMapTask include Google::Apis::Core::Hashable - # Counter aggregation kind. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of the counter. + # The user-provided name of the SeqDo operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # Describes a particular function to invoke. - class SeqMapTask - include Google::Apis::Core::Hashable + # Information about each of the outputs. + # Corresponds to the JSON property `outputInfos` + # @return [Array] + attr_accessor :output_infos # Information about each of the inputs. # Corresponds to the JSON property `inputs` @@ -4769,15 +3560,34 @@ module Google # @return [Hash] attr_accessor :user_fn - # The user-provided name of the SeqDo operation. + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @output_infos = args[:output_infos] if args.key?(:output_infos) + @inputs = args[:inputs] if args.key?(:inputs) + @stage_name = args[:stage_name] if args.key?(:stage_name) + @system_name = args[:system_name] if args.key?(:system_name) + @user_fn = args[:user_fn] if args.key?(:user_fn) + end + end + + # Basic metadata about a counter. + class NameAndKind + include Google::Apis::Core::Hashable + + # Name of the counter. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Information about each of the outputs. - # Corresponds to the JSON property `outputInfos` - # @return [Array] - attr_accessor :output_infos + # Counter aggregation kind. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind def initialize(**args) update!(**args) @@ -4785,12 +3595,8 @@ module Google # Update properties of this object def update!(**args) - @inputs = args[:inputs] if args.key?(:inputs) - @stage_name = args[:stage_name] if args.key?(:stage_name) - @system_name = args[:system_name] if args.key?(:system_name) - @user_fn = args[:user_fn] if args.key?(:user_fn) @name = args[:name] if args.key?(:name) - @output_infos = args[:output_infos] if args.key?(:output_infos) + @kind = args[:kind] if args.key?(:kind) end end @@ -4877,18 +3683,18 @@ module Google class MapTask include Google::Apis::Core::Hashable - # System-defined name of this MapTask. - # Unique across the workflow. - # Corresponds to the JSON property `systemName` - # @return [String] - attr_accessor :system_name - # System-defined name of the stage containing this MapTask. # Unique across the workflow. # Corresponds to the JSON property `stageName` # @return [String] attr_accessor :stage_name + # System-defined name of this MapTask. + # Unique across the workflow. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name + # The instructions in the MapTask. # Corresponds to the JSON property `instructions` # @return [Array] @@ -4900,8 +3706,8 @@ module Google # Update properties of this object def update!(**args) - @system_name = args[:system_name] if args.key?(:system_name) @stage_name = args[:stage_name] if args.key?(:stage_name) + @system_name = args[:system_name] if args.key?(:system_name) @instructions = args[:instructions] if args.key?(:instructions) end end @@ -4910,25 +3716,25 @@ module Google class FloatingPointMean include Google::Apis::Core::Hashable - # The sum of all values being aggregated. - # Corresponds to the JSON property `sum` - # @return [Float] - attr_accessor :sum - # A representation of an int64, n, that is immune to precision loss when # encoded in JSON. # Corresponds to the JSON property `count` # @return [Google::Apis::DataflowV1b3::SplitInt64] attr_accessor :count + # The sum of all values being aggregated. + # Corresponds to the JSON property `sum` + # @return [Float] + attr_accessor :sum + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @sum = args[:sum] if args.key?(:sum) @count = args[:count] if args.key?(:count) + @sum = args[:sum] if args.key?(:sum) end end @@ -5013,6 +3819,18 @@ module Google class CreateJobFromTemplateRequest include Google::Apis::Core::Hashable + # Required. The job name to use for the created job. + # Corresponds to the JSON property `jobName` + # @return [String] + attr_accessor :job_name + + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + # The environment values to set at runtime. # Corresponds to the JSON property `environment` # @return [Google::Apis::DataflowV1b3::RuntimeEnvironment] @@ -5028,29 +3846,17 @@ module Google # @return [Hash] attr_accessor :parameters - # Required. The job name to use for the created job. - # Corresponds to the JSON property `jobName` - # @return [String] - attr_accessor :job_name - - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # Corresponds to the JSON property `gcsPath` - # @return [String] - attr_accessor :gcs_path - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @job_name = args[:job_name] if args.key?(:job_name) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) @environment = args[:environment] if args.key?(:environment) @location = args[:location] if args.key?(:location) @parameters = args[:parameters] if args.key?(:parameters) - @job_name = args[:job_name] if args.key?(:job_name) - @gcs_path = args[:gcs_path] if args.key?(:gcs_path) end end @@ -5086,20 +3892,20 @@ module Google class ListJobsResponse include Google::Apis::Core::Hashable - # A subset of the requested job information. - # Corresponds to the JSON property `jobs` - # @return [Array] - attr_accessor :jobs + # Zero or more messages describing locations that failed to respond. + # Corresponds to the JSON property `failedLocation` + # @return [Array] + attr_accessor :failed_location # Set if there may be more results than fit in this response. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Zero or more messages describing locations that failed to respond. - # Corresponds to the JSON property `failedLocation` - # @return [Array] - attr_accessor :failed_location + # A subset of the requested job information. + # Corresponds to the JSON property `jobs` + # @return [Array] + attr_accessor :jobs def initialize(**args) update!(**args) @@ -5107,9 +3913,9 @@ module Google # Update properties of this object def update!(**args) - @jobs = args[:jobs] if args.key?(:jobs) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @failed_location = args[:failed_location] if args.key?(:failed_location) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @jobs = args[:jobs] if args.key?(:jobs) end end @@ -5117,48 +3923,1242 @@ module Google class ComputationTopology include Google::Apis::Core::Hashable - # The outputs from the computation. - # Corresponds to the JSON property `outputs` - # @return [Array] - attr_accessor :outputs - - # The state family values. - # Corresponds to the JSON property `stateFamilies` - # @return [Array] - attr_accessor :state_families - # The system stage name. # Corresponds to the JSON property `systemStageName` # @return [String] attr_accessor :system_stage_name - # The inputs to the computation. - # Corresponds to the JSON property `inputs` - # @return [Array] - attr_accessor :inputs - # The ID of the computation. # Corresponds to the JSON property `computationId` # @return [String] attr_accessor :computation_id + # The inputs to the computation. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + # The key ranges processed by the computation. # Corresponds to the JSON property `keyRanges` # @return [Array] attr_accessor :key_ranges + # The state family values. + # Corresponds to the JSON property `stateFamilies` + # @return [Array] + attr_accessor :state_families + + # The outputs from the computation. + # Corresponds to the JSON property `outputs` + # @return [Array] + attr_accessor :outputs + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @outputs = args[:outputs] if args.key?(:outputs) - @state_families = args[:state_families] if args.key?(:state_families) @system_stage_name = args[:system_stage_name] if args.key?(:system_stage_name) - @inputs = args[:inputs] if args.key?(:inputs) @computation_id = args[:computation_id] if args.key?(:computation_id) + @inputs = args[:inputs] if args.key?(:inputs) @key_ranges = args[:key_ranges] if args.key?(:key_ranges) + @state_families = args[:state_families] if args.key?(:state_families) + @outputs = args[:outputs] if args.key?(:outputs) + end + end + + # The environment values to set at runtime. + class RuntimeEnvironment + include Google::Apis::Core::Hashable + + # The machine type to use for the job. Defaults to the value from the + # template if not specified. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # The Compute Engine [availability + # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) + # for launching worker instances to run your pipeline. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + # The maximum number of Google Compute Engine instances to be made + # available to your pipeline during execution, from 1 to 1000. + # Corresponds to the JSON property `maxWorkers` + # @return [Fixnum] + attr_accessor :max_workers + + # The email address of the service account to run the job as. + # Corresponds to the JSON property `serviceAccountEmail` + # @return [String] + attr_accessor :service_account_email + + # The Cloud Storage path to use for temporary files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # Corresponds to the JSON property `tempLocation` + # @return [String] + attr_accessor :temp_location + + # Whether to bypass the safety checks for the job's temporary directory. + # Use with caution. + # Corresponds to the JSON property `bypassTempDirValidation` + # @return [Boolean] + attr_accessor :bypass_temp_dir_validation + alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @zone = args[:zone] if args.key?(:zone) + @max_workers = args[:max_workers] if args.key?(:max_workers) + @service_account_email = args[:service_account_email] if args.key?(:service_account_email) + @temp_location = args[:temp_location] if args.key?(:temp_location) + @bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation) + end + end + + # Describes mounted data disk. + class MountedDataDisk + include Google::Apis::Core::Hashable + + # The name of the data disk. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + # Corresponds to the JSON property `dataDisk` + # @return [String] + attr_accessor :data_disk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_disk = args[:data_disk] if args.key?(:data_disk) + end + end + + # Identifies the location of a streaming side input. + class StreamingSideInputLocation + include Google::Apis::Core::Hashable + + # Identifies the particular side input within the streaming Dataflow job. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + # Identifies the state family where this side input is stored. + # Corresponds to the JSON property `stateFamily` + # @return [String] + attr_accessor :state_family + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tag = args[:tag] if args.key?(:tag) + @state_family = args[:state_family] if args.key?(:state_family) + end + end + + # Response to the request to launch a template. + class LaunchTemplateResponse + include Google::Apis::Core::Hashable + + # Defines a job to be run by the Cloud Dataflow service. + # Corresponds to the JSON property `job` + # @return [Google::Apis::DataflowV1b3::Job] + attr_accessor :job + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @job = args[:job] if args.key?(:job) + end + end + + # Defines a job to be run by the Cloud Dataflow service. + class Job + include Google::Apis::Core::Hashable + + # This field may be mutated by the Cloud Dataflow service; + # callers cannot mutate it. + # Corresponds to the JSON property `stageStates` + # @return [Array] + attr_accessor :stage_states + + # The ID of the Cloud Platform project that the job belongs to. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The type of Cloud Dataflow job. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # A descriptive representation of submitted pipeline as well as the executed + # form. This data is provided by the Dataflow service for ease of visualizing + # the pipeline and interpretting Dataflow provided metrics. + # Corresponds to the JSON property `pipelineDescription` + # @return [Google::Apis::DataflowV1b3::PipelineDescription] + attr_accessor :pipeline_description + + # If this job is an update of an existing job, this field is the job ID + # of the job it replaced. + # When sending a `CreateJobRequest`, you can update a job by specifying it + # here. The job named here is stopped, and its intermediate state is + # transferred to this job. + # Corresponds to the JSON property `replaceJobId` + # @return [String] + attr_accessor :replace_job_id + + # The job's requested state. + # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and + # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may + # also be used to directly set a job's requested state to + # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the + # job if it has not already reached a terminal state. + # Corresponds to the JSON property `requestedState` + # @return [String] + attr_accessor :requested_state + + # A set of files the system should be aware of that are used + # for temporary storage. These temporary files will be + # removed on job completion. + # No duplicates are allowed. + # No file patterns are supported. + # The supported files are: + # Google Cloud Storage: + # storage.googleapis.com/`bucket`/`object` + # bucket.storage.googleapis.com/`object` + # Corresponds to the JSON property `tempFiles` + # @return [Array] + attr_accessor :temp_files + + # The client's unique identifier of the job, re-used across retried attempts. + # If this field is set, the service will ensure its uniqueness. + # The request to create a job will fail if the service has knowledge of a + # previously submitted job with the same client's ID and job name. + # The caller may use this field to ensure idempotence of job + # creation across retried attempts to create a job. + # By default, the field is empty and, in that case, the service ignores it. + # Corresponds to the JSON property `clientRequestId` + # @return [String] + attr_accessor :client_request_id + + # The user-specified Cloud Dataflow job name. + # Only one Job with a given name may exist in a project at any + # given time. If a caller attempts to create a Job with the same + # name as an already-existing Job, the attempt returns the + # existing Job. + # The name must match the regular expression + # `[a-z]([-a-z0-9]`0,38`[a-z0-9])?` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The top-level steps that constitute the entire job. + # Corresponds to the JSON property `steps` + # @return [Array] + attr_accessor :steps + + # If another job is an update of this job (and thus, this job is in + # `JOB_STATE_UPDATED`), this field contains the ID of that job. + # Corresponds to the JSON property `replacedByJobId` + # @return [String] + attr_accessor :replaced_by_job_id + + # Additional information about how a Cloud Dataflow job will be executed that + # isn't contained in the submitted job. + # Corresponds to the JSON property `executionInfo` + # @return [Google::Apis::DataflowV1b3::JobExecutionInfo] + attr_accessor :execution_info + + # The unique ID of this job. + # This field is set by the Cloud Dataflow service when the Job is + # created, and is immutable for the life of the job. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The current state of the job. + # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise + # specified. + # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a + # terminal state. After a job has reached a terminal state, no + # further state updates may be made. + # This field may be mutated by the Cloud Dataflow service; + # callers cannot mutate it. + # Corresponds to the JSON property `currentState` + # @return [String] + attr_accessor :current_state + + # The location that contains this job. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # The timestamp associated with the current state. + # Corresponds to the JSON property `currentStateTime` + # @return [String] + attr_accessor :current_state_time + + # The map of transform name prefixes of the job to be replaced to the + # corresponding name prefixes of the new job. + # Corresponds to the JSON property `transformNameMapping` + # @return [Hash] + attr_accessor :transform_name_mapping + + # User-defined labels for this job. + # The labels map can contain no more than 64 entries. Entries of the labels + # map are UTF8 strings that comply with the following restrictions: + # * Keys must conform to regexp: \p`Ll`\p`Lo``0,62` + # * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` + # * Both keys and values are additionally constrained to be <= 128 bytes in + # size. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Describes the environment in which a Dataflow Job runs. + # Corresponds to the JSON property `environment` + # @return [Google::Apis::DataflowV1b3::Environment] + attr_accessor :environment + + # The timestamp when the job was initially created. Immutable and set by the + # Cloud Dataflow service. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stage_states = args[:stage_states] if args.key?(:stage_states) + @project_id = args[:project_id] if args.key?(:project_id) + @type = args[:type] if args.key?(:type) + @pipeline_description = args[:pipeline_description] if args.key?(:pipeline_description) + @replace_job_id = args[:replace_job_id] if args.key?(:replace_job_id) + @requested_state = args[:requested_state] if args.key?(:requested_state) + @temp_files = args[:temp_files] if args.key?(:temp_files) + @client_request_id = args[:client_request_id] if args.key?(:client_request_id) + @name = args[:name] if args.key?(:name) + @steps = args[:steps] if args.key?(:steps) + @replaced_by_job_id = args[:replaced_by_job_id] if args.key?(:replaced_by_job_id) + @execution_info = args[:execution_info] if args.key?(:execution_info) + @id = args[:id] if args.key?(:id) + @current_state = args[:current_state] if args.key?(:current_state) + @location = args[:location] if args.key?(:location) + @current_state_time = args[:current_state_time] if args.key?(:current_state_time) + @transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping) + @labels = args[:labels] if args.key?(:labels) + @environment = args[:environment] if args.key?(:environment) + @create_time = args[:create_time] if args.key?(:create_time) + end + end + + # When a task splits using WorkItemStatus.dynamic_source_split, this + # message describes the two parts of the split relative to the + # description of the current task's input. + class DynamicSourceSplit + include Google::Apis::Core::Hashable + + # Specification of one of the bundles produced as a result of splitting + # a Source (e.g. when executing a SourceSplitRequest, or when + # splitting an active task using WorkItemStatus.dynamic_source_split), + # relative to the source being split. + # Corresponds to the JSON property `residual` + # @return [Google::Apis::DataflowV1b3::DerivedSource] + attr_accessor :residual + + # Specification of one of the bundles produced as a result of splitting + # a Source (e.g. when executing a SourceSplitRequest, or when + # splitting an active task using WorkItemStatus.dynamic_source_split), + # relative to the source being split. + # Corresponds to the JSON property `primary` + # @return [Google::Apis::DataflowV1b3::DerivedSource] + attr_accessor :primary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @residual = args[:residual] if args.key?(:residual) + @primary = args[:primary] if args.key?(:primary) + end + end + + # Specification of one of the bundles produced as a result of splitting + # a Source (e.g. when executing a SourceSplitRequest, or when + # splitting an active task using WorkItemStatus.dynamic_source_split), + # relative to the source being split. + class DerivedSource + include Google::Apis::Core::Hashable + + # A source that records can be read and decoded from. + # Corresponds to the JSON property `source` + # @return [Google::Apis::DataflowV1b3::Source] + attr_accessor :source + + # What source to base the produced source on (if any). + # Corresponds to the JSON property `derivationMode` + # @return [String] + attr_accessor :derivation_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + @derivation_mode = args[:derivation_mode] if args.key?(:derivation_mode) + end + end + + # The result of a SourceOperationRequest, specified in + # ReportWorkItemStatusRequest.source_operation when the work item + # is completed. + class SourceOperationResponse + include Google::Apis::Core::Hashable + + # The response to a SourceSplitRequest. + # Corresponds to the JSON property `split` + # @return [Google::Apis::DataflowV1b3::SourceSplitResponse] + attr_accessor :split + + # The result of a SourceGetMetadataOperation. + # Corresponds to the JSON property `getMetadata` + # @return [Google::Apis::DataflowV1b3::SourceGetMetadataResponse] + attr_accessor :get_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @split = args[:split] if args.key?(:split) + @get_metadata = args[:get_metadata] if args.key?(:get_metadata) + end + end + + # Information about a side input of a DoFn or an input of a SeqDoFn. + class SideInputInfo + include Google::Apis::Core::Hashable + + # The id of the tag the user code will access this side input by; + # this should correspond to the tag of some MultiOutputInfo. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + # How to interpret the source element(s) as a side input value. + # Corresponds to the JSON property `kind` + # @return [Hash] + attr_accessor :kind + + # The source(s) to read element(s) from to get the value of this side input. + # If more than one source, then the elements are taken from the + # sources, in the specified order if order matters. + # At least one source is required. + # Corresponds to the JSON property `sources` + # @return [Array] + attr_accessor :sources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tag = args[:tag] if args.key?(:tag) + @kind = args[:kind] if args.key?(:kind) + @sources = args[:sources] if args.key?(:sources) + end + end + + # Response to a send capture request. + # nothing + class SendDebugCaptureResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A position that encapsulates an inner position and an index for the inner + # position. A ConcatPosition can be used by a reader of a source that + # encapsulates a set of other sources. + class ConcatPosition + include Google::Apis::Core::Hashable + + # Position defines a position within a collection of data. The value + # can be either the end position, a key (used with ordered + # collections), a byte offset, or a record index. + # Corresponds to the JSON property `position` + # @return [Google::Apis::DataflowV1b3::Position] + attr_accessor :position + + # Index of the inner source. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] if args.key?(:position) + @index = args[:index] if args.key?(:index) + end + end + + # A single message which encapsulates structured name and metadata for a given + # counter. + class CounterStructuredNameAndMetadata + include Google::Apis::Core::Hashable + + # Identifies a counter within a per-job namespace. Counters whose structured + # names are the same get merged into a single value for the job. + # Corresponds to the JSON property `name` + # @return [Google::Apis::DataflowV1b3::CounterStructuredName] + attr_accessor :name + + # CounterMetadata includes all static non-name non-value counter attributes. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::DataflowV1b3::CounterMetadata] + attr_accessor :metadata + + 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) + end + end + + # An instruction that writes records. + # Takes one input, produces no outputs. + class WriteInstruction + include Google::Apis::Core::Hashable + + # A sink that records can be encoded and written to. + # Corresponds to the JSON property `sink` + # @return [Google::Apis::DataflowV1b3::Sink] + attr_accessor :sink + + # An input of an instruction, as a reference to an output of a + # producer instruction. + # Corresponds to the JSON property `input` + # @return [Google::Apis::DataflowV1b3::InstructionInput] + attr_accessor :input + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sink = args[:sink] if args.key?(:sink) + @input = args[:input] if args.key?(:input) + end + end + + # Describes full or partial data disk assignment information of the computation + # ranges. + class StreamingComputationRanges + include Google::Apis::Core::Hashable + + # Data disk assignments for ranges from this computation. + # Corresponds to the JSON property `rangeAssignments` + # @return [Array] + attr_accessor :range_assignments + + # The ID of the computation. + # Corresponds to the JSON property `computationId` + # @return [String] + attr_accessor :computation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range_assignments = args[:range_assignments] if args.key?(:range_assignments) + @computation_id = args[:computation_id] if args.key?(:computation_id) + end + end + + # Settings for WorkerPool autoscaling. + class AutoscalingSettings + include Google::Apis::Core::Hashable + + # The algorithm to use for autoscaling. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # The maximum number of workers to cap scaling at. + # Corresponds to the JSON property `maxNumWorkers` + # @return [Fixnum] + attr_accessor :max_num_workers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @max_num_workers = args[:max_num_workers] if args.key?(:max_num_workers) + end + end + + # Description of the composing transforms, names/ids, and input/outputs of a + # stage of execution. Some composing transforms and sources may have been + # generated by the Dataflow service during execution planning. + class ExecutionStageSummary + include Google::Apis::Core::Hashable + + # Collections produced and consumed by component transforms of this stage. + # Corresponds to the JSON property `componentSource` + # @return [Array] + attr_accessor :component_source + + # Type of tranform this stage is executing. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Output sources for this stage. + # Corresponds to the JSON property `outputSource` + # @return [Array] + attr_accessor :output_source + + # Dataflow service generated name for this stage. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Input sources for this stage. + # Corresponds to the JSON property `inputSource` + # @return [Array] + attr_accessor :input_source + + # Dataflow service generated id for this stage. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Transforms that comprise this execution stage. + # Corresponds to the JSON property `componentTransform` + # @return [Array] + attr_accessor :component_transform + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @component_source = args[:component_source] if args.key?(:component_source) + @kind = args[:kind] if args.key?(:kind) + @output_source = args[:output_source] if args.key?(:output_source) + @name = args[:name] if args.key?(:name) + @input_source = args[:input_source] if args.key?(:input_source) + @id = args[:id] if args.key?(:id) + @component_transform = args[:component_transform] if args.key?(:component_transform) + end + end + + # A request for sending worker messages to the service. + class SendWorkerMessagesRequest + include Google::Apis::Core::Hashable + + # The WorkerMessages to send. + # Corresponds to the JSON property `workerMessages` + # @return [Array] + attr_accessor :worker_messages + + # The location which contains the job + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @worker_messages = args[:worker_messages] if args.key?(:worker_messages) + @location = args[:location] if args.key?(:location) + end + end + + # Bucket of values for Distribution's logarithmic histogram. + class LogBucket + include Google::Apis::Core::Hashable + + # floor(log2(value)); defined to be zero for nonpositive values. + # log(-1) = 0 + # log(0) = 0 + # log(1) = 0 + # log(2) = 1 + # log(3) = 1 + # log(4) = 2 + # log(5) = 2 + # Corresponds to the JSON property `log` + # @return [Fixnum] + attr_accessor :log + + # Number of values in this bucket. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log = args[:log] if args.key?(:log) + @count = args[:count] if args.key?(:count) + end + end + + # DEPRECATED in favor of DerivedSource. + class SourceSplitShard + include Google::Apis::Core::Hashable + + # DEPRECATED + # Corresponds to the JSON property `derivationMode` + # @return [String] + attr_accessor :derivation_mode + + # A source that records can be read and decoded from. + # Corresponds to the JSON property `source` + # @return [Google::Apis::DataflowV1b3::Source] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @derivation_mode = args[:derivation_mode] if args.key?(:derivation_mode) + @source = args[:source] if args.key?(:source) + end + end + + # Modeled after information exposed by /proc/stat. + class CpuTime + include Google::Apis::Core::Hashable + + # Total active CPU time across all cores (ie., non-idle) in milliseconds + # since start-up. + # Corresponds to the JSON property `totalMs` + # @return [Fixnum] + attr_accessor :total_ms + + # Average CPU utilization rate (% non-idle cpu / second) since previous + # sample. + # Corresponds to the JSON property `rate` + # @return [Float] + attr_accessor :rate + + # Timestamp of the measurement. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total_ms = args[:total_ms] if args.key?(:total_ms) + @rate = args[:rate] if args.key?(:rate) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # Describes the environment in which a Dataflow Job runs. + class Environment + include Google::Apis::Core::Hashable + + # The type of cluster manager API to use. If unknown or + # unspecified, the service will attempt to choose a reasonable + # default. This should be in the form of the API service name, + # e.g. "compute.googleapis.com". + # Corresponds to the JSON property `clusterManagerApiService` + # @return [String] + attr_accessor :cluster_manager_api_service + + # The prefix of the resources the system should use for temporary + # storage. The system will append the suffix "/temp-`JOBNAME` to + # this resource prefix, where `JOBNAME` is the value of the + # job_name field. The resulting bucket and object prefix is used + # as the prefix of the resources used to store temporary data + # needed during the job execution. NOTE: This will override the + # value in taskrunner_settings. + # The supported resource type is: + # Google Cloud Storage: + # storage.googleapis.com/`bucket`/`object` + # bucket.storage.googleapis.com/`object` + # Corresponds to the JSON property `tempStoragePrefix` + # @return [String] + attr_accessor :temp_storage_prefix + + # The worker pools. At least one "harness" worker pool must be + # specified in order for the job to have workers. + # Corresponds to the JSON property `workerPools` + # @return [Array] + attr_accessor :worker_pools + + # The dataset for the current project where various workflow + # related tables are stored. + # The supported resource type is: + # Google BigQuery: + # bigquery.googleapis.com/`dataset` + # Corresponds to the JSON property `dataset` + # @return [String] + attr_accessor :dataset + + # The list of experiments to enable. + # Corresponds to the JSON property `experiments` + # @return [Array] + attr_accessor :experiments + + # A structure describing which components and their versions of the service + # are required in order to run the job. + # Corresponds to the JSON property `version` + # @return [Hash] + attr_accessor :version + + # Experimental settings. + # Corresponds to the JSON property `internalExperiments` + # @return [Hash] + attr_accessor :internal_experiments + + # Identity to run virtual machines as. Defaults to the default account. + # Corresponds to the JSON property `serviceAccountEmail` + # @return [String] + attr_accessor :service_account_email + + # A description of the process that generated the request. + # Corresponds to the JSON property `userAgent` + # @return [Hash] + attr_accessor :user_agent + + # The Cloud Dataflow SDK pipeline options specified by the user. These + # options are passed through the service and are used to recreate the + # SDK pipeline options on the worker in a language agnostic and platform + # independent way. + # Corresponds to the JSON property `sdkPipelineOptions` + # @return [Hash] + attr_accessor :sdk_pipeline_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_manager_api_service = args[:cluster_manager_api_service] if args.key?(:cluster_manager_api_service) + @temp_storage_prefix = args[:temp_storage_prefix] if args.key?(:temp_storage_prefix) + @worker_pools = args[:worker_pools] if args.key?(:worker_pools) + @dataset = args[:dataset] if args.key?(:dataset) + @experiments = args[:experiments] if args.key?(:experiments) + @version = args[:version] if args.key?(:version) + @internal_experiments = args[:internal_experiments] if args.key?(:internal_experiments) + @service_account_email = args[:service_account_email] if args.key?(:service_account_email) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @sdk_pipeline_options = args[:sdk_pipeline_options] if args.key?(:sdk_pipeline_options) + end + end + + # A task which describes what action should be performed for the specified + # streaming computation ranges. + class StreamingComputationTask + include Google::Apis::Core::Hashable + + # Describes the set of data disks this task should apply to. + # Corresponds to the JSON property `dataDisks` + # @return [Array] + attr_accessor :data_disks + + # A type of streaming computation task. + # Corresponds to the JSON property `taskType` + # @return [String] + attr_accessor :task_type + + # Contains ranges of a streaming computation this task should apply to. + # Corresponds to the JSON property `computationRanges` + # @return [Array] + attr_accessor :computation_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_disks = args[:data_disks] if args.key?(:data_disks) + @task_type = args[:task_type] if args.key?(:task_type) + @computation_ranges = args[:computation_ranges] if args.key?(:computation_ranges) + end + end + + # Request to send encoded debug information. + class SendDebugCaptureRequest + include Google::Apis::Core::Hashable + + # The location which contains the job specified by job_id. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # The encoded debug information. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + # The internal component id for which debug information is sent. + # Corresponds to the JSON property `componentId` + # @return [String] + attr_accessor :component_id + + # The worker id, i.e., VM hostname. + # Corresponds to the JSON property `workerId` + # @return [String] + attr_accessor :worker_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @data = args[:data] if args.key?(:data) + @component_id = args[:component_id] if args.key?(:component_id) + @worker_id = args[:worker_id] if args.key?(:worker_id) + end + end + + # Response to a get debug configuration request. + class GetDebugConfigResponse + include Google::Apis::Core::Hashable + + # The encoded debug configuration for the requested component. + # Corresponds to the JSON property `config` + # @return [String] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + end + end + + # Description of a transform executed as part of an execution stage. + class ComponentTransform + include Google::Apis::Core::Hashable + + # User name for the original user transform with which this transform is + # most closely associated. + # Corresponds to the JSON property `originalTransform` + # @return [String] + attr_accessor :original_transform + + # Dataflow service generated name for this source. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Human-readable name for this transform; may be user or system generated. + # Corresponds to the JSON property `userName` + # @return [String] + attr_accessor :user_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @original_transform = args[:original_transform] if args.key?(:original_transform) + @name = args[:name] if args.key?(:name) + @user_name = args[:user_name] if args.key?(:user_name) + end + end + + # A task which initializes part of a streaming Dataflow job. + class StreamingSetupTask + include Google::Apis::Core::Hashable + + # Global topology of the streaming Dataflow job, including all + # computations and their sharded locations. + # Corresponds to the JSON property `streamingComputationTopology` + # @return [Google::Apis::DataflowV1b3::TopologyConfig] + attr_accessor :streaming_computation_topology + + # The user has requested drain. + # Corresponds to the JSON property `drain` + # @return [Boolean] + attr_accessor :drain + alias_method :drain?, :drain + + # The TCP port used by the worker to communicate with the Dataflow + # worker harness. + # Corresponds to the JSON property `workerHarnessPort` + # @return [Fixnum] + attr_accessor :worker_harness_port + + # The TCP port on which the worker should listen for messages from + # other streaming computation workers. + # Corresponds to the JSON property `receiveWorkPort` + # @return [Fixnum] + attr_accessor :receive_work_port + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @streaming_computation_topology = args[:streaming_computation_topology] if args.key?(:streaming_computation_topology) + @drain = args[:drain] if args.key?(:drain) + @worker_harness_port = args[:worker_harness_port] if args.key?(:worker_harness_port) + @receive_work_port = args[:receive_work_port] if args.key?(:receive_work_port) + end + end + + # Identifies a pubsub location to use for transferring data into or + # out of a streaming Dataflow job. + class PubsubLocation + include Google::Apis::Core::Hashable + + # A pubsub topic, in the form of + # "pubsub.googleapis.com/topics//" + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + + # If set, contains a pubsub label from which to extract record timestamps. + # If left empty, record timestamps will be generated upon arrival. + # Corresponds to the JSON property `timestampLabel` + # @return [String] + attr_accessor :timestamp_label + + # A pubsub subscription, in the form of + # "pubsub.googleapis.com/subscriptions//" + # Corresponds to the JSON property `subscription` + # @return [String] + attr_accessor :subscription + + # Indicates whether the pipeline allows late-arriving data. + # Corresponds to the JSON property `dropLateData` + # @return [Boolean] + attr_accessor :drop_late_data + alias_method :drop_late_data?, :drop_late_data + + # If set, specifies the pubsub subscription that will be used for tracking + # custom time timestamps for watermark estimation. + # Corresponds to the JSON property `trackingSubscription` + # @return [String] + attr_accessor :tracking_subscription + + # If true, then the client has requested to get pubsub attributes. + # Corresponds to the JSON property `withAttributes` + # @return [Boolean] + attr_accessor :with_attributes + alias_method :with_attributes?, :with_attributes + + # If set, contains a pubsub label from which to extract record ids. + # If left empty, record deduplication will be strictly best effort. + # Corresponds to the JSON property `idLabel` + # @return [String] + attr_accessor :id_label + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @topic = args[:topic] if args.key?(:topic) + @timestamp_label = args[:timestamp_label] if args.key?(:timestamp_label) + @subscription = args[:subscription] if args.key?(:subscription) + @drop_late_data = args[:drop_late_data] if args.key?(:drop_late_data) + @tracking_subscription = args[:tracking_subscription] if args.key?(:tracking_subscription) + @with_attributes = args[:with_attributes] if args.key?(:with_attributes) + @id_label = args[:id_label] if args.key?(:id_label) + end + end + + # WorkerHealthReport contains information about the health of a worker. + # The VM should be identified by the labels attached to the WorkerMessage that + # this health ping belongs to. + class WorkerHealthReport + include Google::Apis::Core::Hashable + + # The pods running on the worker. See: + # http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod + # This field is used by the worker to send the status of the indvidual + # containers running on each worker. + # Corresponds to the JSON property `pods` + # @return [Array>] + attr_accessor :pods + + # The time the VM was booted. + # Corresponds to the JSON property `vmStartupTime` + # @return [String] + attr_accessor :vm_startup_time + + # The interval at which the worker is sending health reports. + # The default value of 0 should be interpreted as the field is not being + # explicitly set by the worker. + # Corresponds to the JSON property `reportInterval` + # @return [String] + attr_accessor :report_interval + + # Whether the VM is healthy. + # Corresponds to the JSON property `vmIsHealthy` + # @return [Boolean] + attr_accessor :vm_is_healthy + alias_method :vm_is_healthy?, :vm_is_healthy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pods = args[:pods] if args.key?(:pods) + @vm_startup_time = args[:vm_startup_time] if args.key?(:vm_startup_time) + @report_interval = args[:report_interval] if args.key?(:report_interval) + @vm_is_healthy = args[:vm_is_healthy] if args.key?(:vm_is_healthy) + end + end + + # A particular message pertaining to a Dataflow job. + class JobMessage + include Google::Apis::Core::Hashable + + # Deprecated. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Importance level of the message. + # Corresponds to the JSON property `messageImportance` + # @return [String] + attr_accessor :message_importance + + # The text of the message. + # Corresponds to the JSON property `messageText` + # @return [String] + attr_accessor :message_text + + # The timestamp of the message. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @message_importance = args[:message_importance] if args.key?(:message_importance) + @message_text = args[:message_text] if args.key?(:message_text) + @time = args[:time] if args.key?(:time) + end + end + + # Metadata for a specific parameter. + class ParameterMetadata + include Google::Apis::Core::Hashable + + # Optional. Regexes that the parameter must match. + # Corresponds to the JSON property `regexes` + # @return [Array] + attr_accessor :regexes + + # Required. The label to display for the parameter. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # Required. The help text to display for the parameter. + # Corresponds to the JSON property `helpText` + # @return [String] + attr_accessor :help_text + + # Optional. Whether the parameter is optional. Defaults to false. + # Corresponds to the JSON property `isOptional` + # @return [Boolean] + attr_accessor :is_optional + alias_method :is_optional?, :is_optional + + # Required. The name of the parameter. + # 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) + @regexes = args[:regexes] if args.key?(:regexes) + @label = args[:label] if args.key?(:label) + @help_text = args[:help_text] if args.key?(:help_text) + @is_optional = args[:is_optional] if args.key?(:is_optional) + @name = args[:name] if args.key?(:name) end end end diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index 0ad831163..e2a95f2c1 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -22,6 +22,564 @@ module Google module Apis module DataflowV1b3 + class MultiOutputInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceSplitRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceGetMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShellTask + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricShortId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AutoscalingEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TaskRunnerSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Source + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SplitInt64 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerPool + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StructuredMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportedParallelism + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceUtilizationReport + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TopologyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceSplitOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReadInstruction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StreamingStageLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DataDiskAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ApproximateSplitRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExecutionStageState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StreamLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SendWorkerMessagesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StreamingComputationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TransformSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LeaseWorkItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LaunchTemplateParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FlattenInstruction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartialGroupByKeyInstruction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StageSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstructionInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StringList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DisplayData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetDebugConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LeaseWorkItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetTemplateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Parameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportWorkItemStatusRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PipelineDescription + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StreamingConfigTask + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobExecutionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Step + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FailedLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Disk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CounterMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListJobMessagesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ApproximateReportedProgress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IntegerList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StateFamilyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceUtilizationReportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceSplitResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ParallelInstruction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Package + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class KeyRangeDataDiskAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ParDoInstruction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CounterStructuredName + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ApproximateProgress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerMessageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TemplateMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobMetrics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloatingPointList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CounterUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DistributionUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceFork + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerHealthReportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkItemStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ComponentSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkItemServiceState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricStructuredName + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SeqMapTaskOutputInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobExecutionStageInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class KeyRangeLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceGetMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SeqMapTask + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NameAndKind + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerMessageCode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomSourceLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MapTask + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FloatingPointMean + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportWorkItemStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstructionOutput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateJobFromTemplateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IntegerMean + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ComputationTopology + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RuntimeEnvironment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,19 +628,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SendDebugCaptureResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SideInputInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CounterStructuredNameAndMetadata + class SendDebugCaptureResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -94,19 +646,25 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CounterStructuredNameAndMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WriteInstruction class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AutoscalingSettings + class StreamingComputationRanges class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StreamingComputationRanges + class AutoscalingSettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -203,572 +761,1058 @@ module Google end class MultiOutputInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tag, as: 'tag' + end end class SourceSplitRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::DataflowV1b3::SourceSplitOptions, decorator: Google::Apis::DataflowV1b3::SourceSplitOptions::Representation - include Google::Apis::Core::JsonObjectSupport + property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation + + end end class SourceGetMetadataResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::SourceMetadata, decorator: Google::Apis::DataflowV1b3::SourceMetadata::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ShellTask - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :command, as: 'command' + property :exit_code, as: 'exitCode' + end end class MetricShortId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric_index, as: 'metricIndex' + property :short_id, :numeric_string => true, as: 'shortId' + end end class AutoscalingEvent - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :time, as: 'time' + property :description, as: 'description', class: Google::Apis::DataflowV1b3::StructuredMessage, decorator: Google::Apis::DataflowV1b3::StructuredMessage::Representation - include Google::Apis::Core::JsonObjectSupport + property :event_type, as: 'eventType' + property :target_num_workers, :numeric_string => true, as: 'targetNumWorkers' + property :current_num_workers, :numeric_string => true, as: 'currentNumWorkers' + end end class TaskRunnerSettings - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataflow_api_version, as: 'dataflowApiVersion' + collection :oauth_scopes, as: 'oauthScopes' + property :streaming_worker_main_class, as: 'streamingWorkerMainClass' + property :log_upload_location, as: 'logUploadLocation' + property :workflow_file_name, as: 'workflowFileName' + property :commandlines_file_name, as: 'commandlinesFileName' + property :language_hint, as: 'languageHint' + property :base_task_dir, as: 'baseTaskDir' + property :temp_storage_prefix, as: 'tempStoragePrefix' + property :base_url, as: 'baseUrl' + property :log_to_serialconsole, as: 'logToSerialconsole' + property :continue_on_exception, as: 'continueOnException' + property :parallel_worker_settings, as: 'parallelWorkerSettings', class: Google::Apis::DataflowV1b3::WorkerSettings, decorator: Google::Apis::DataflowV1b3::WorkerSettings::Representation - include Google::Apis::Core::JsonObjectSupport + property :vm_id, as: 'vmId' + property :task_user, as: 'taskUser' + property :alsologtostderr, as: 'alsologtostderr' + property :task_group, as: 'taskGroup' + property :harness_command, as: 'harnessCommand' + property :log_dir, as: 'logDir' + end end class Position - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :record_index, :numeric_string => true, as: 'recordIndex' + property :shuffle_position, as: 'shufflePosition' + property :byte_offset, :numeric_string => true, as: 'byteOffset' + property :concat_position, as: 'concatPosition', class: Google::Apis::DataflowV1b3::ConcatPosition, decorator: Google::Apis::DataflowV1b3::ConcatPosition::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class SplitInt64 - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + property :end, as: 'end' + property :key, as: 'key' + end end class Source - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :spec, as: 'spec' + property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::SourceMetadata, decorator: Google::Apis::DataflowV1b3::SourceMetadata::Representation - include Google::Apis::Core::JsonObjectSupport + collection :base_specs, as: 'baseSpecs' + property :does_not_need_splitting, as: 'doesNotNeedSplitting' + hash :codec, as: 'codec' + end + end + + class SplitInt64 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :low_bits, as: 'lowBits' + property :high_bits, as: 'highBits' + end end class WorkerPool - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :subnetwork, as: 'subnetwork' + property :ip_configuration, as: 'ipConfiguration' + property :taskrunner_settings, as: 'taskrunnerSettings', class: Google::Apis::DataflowV1b3::TaskRunnerSettings, decorator: Google::Apis::DataflowV1b3::TaskRunnerSettings::Representation - include Google::Apis::Core::JsonObjectSupport + property :autoscaling_settings, as: 'autoscalingSettings', class: Google::Apis::DataflowV1b3::AutoscalingSettings, decorator: Google::Apis::DataflowV1b3::AutoscalingSettings::Representation + + hash :metadata, as: 'metadata' + property :network, as: 'network' + property :default_package_set, as: 'defaultPackageSet' + property :num_threads_per_worker, as: 'numThreadsPerWorker' + property :num_workers, as: 'numWorkers' + property :zone, as: 'zone' + property :disk_source_image, as: 'diskSourceImage' + collection :packages, as: 'packages', class: Google::Apis::DataflowV1b3::Package, decorator: Google::Apis::DataflowV1b3::Package::Representation + + property :teardown_policy, as: 'teardownPolicy' + property :on_host_maintenance, as: 'onHostMaintenance' + hash :pool_args, as: 'poolArgs' + property :disk_size_gb, as: 'diskSizeGb' + property :worker_harness_container_image, as: 'workerHarnessContainerImage' + property :machine_type, as: 'machineType' + property :disk_type, as: 'diskType' + property :kind, as: 'kind' + collection :data_disks, as: 'dataDisks', class: Google::Apis::DataflowV1b3::Disk, decorator: Google::Apis::DataflowV1b3::Disk::Representation + + end end class SourceOperationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :get_metadata, as: 'getMetadata', class: Google::Apis::DataflowV1b3::SourceGetMetadataRequest, decorator: Google::Apis::DataflowV1b3::SourceGetMetadataRequest::Representation - include Google::Apis::Core::JsonObjectSupport - end + property :split, as: 'split', class: Google::Apis::DataflowV1b3::SourceSplitRequest, decorator: Google::Apis::DataflowV1b3::SourceSplitRequest::Representation - class StructuredMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + end end class WorkItem - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :streaming_setup_task, as: 'streamingSetupTask', class: Google::Apis::DataflowV1b3::StreamingSetupTask, decorator: Google::Apis::DataflowV1b3::StreamingSetupTask::Representation - include Google::Apis::Core::JsonObjectSupport + property :report_status_interval, as: 'reportStatusInterval' + property :source_operation_task, as: 'sourceOperationTask', class: Google::Apis::DataflowV1b3::SourceOperationRequest, decorator: Google::Apis::DataflowV1b3::SourceOperationRequest::Representation + + property :lease_expire_time, as: 'leaseExpireTime' + property :streaming_config_task, as: 'streamingConfigTask', class: Google::Apis::DataflowV1b3::StreamingConfigTask, decorator: Google::Apis::DataflowV1b3::StreamingConfigTask::Representation + + property :initial_report_index, :numeric_string => true, as: 'initialReportIndex' + property :streaming_computation_task, as: 'streamingComputationTask', class: Google::Apis::DataflowV1b3::StreamingComputationTask, decorator: Google::Apis::DataflowV1b3::StreamingComputationTask::Representation + + property :shell_task, as: 'shellTask', class: Google::Apis::DataflowV1b3::ShellTask, decorator: Google::Apis::DataflowV1b3::ShellTask::Representation + + property :job_id, as: 'jobId' + property :id, :numeric_string => true, as: 'id' + property :configuration, as: 'configuration' + property :map_task, as: 'mapTask', class: Google::Apis::DataflowV1b3::MapTask, decorator: Google::Apis::DataflowV1b3::MapTask::Representation + + property :seq_map_task, as: 'seqMapTask', class: Google::Apis::DataflowV1b3::SeqMapTask, decorator: Google::Apis::DataflowV1b3::SeqMapTask::Representation + + collection :packages, as: 'packages', class: Google::Apis::DataflowV1b3::Package, decorator: Google::Apis::DataflowV1b3::Package::Representation + + property :project_id, as: 'projectId' + end end - class ResourceUtilizationReport - class Representation < Google::Apis::Core::JsonRepresentation; end + class StructuredMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_text, as: 'messageText' + collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::Parameter, decorator: Google::Apis::DataflowV1b3::Parameter::Representation - include Google::Apis::Core::JsonObjectSupport + property :message_key, as: 'messageKey' + end end class ReportedParallelism - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :is_infinite, as: 'isInfinite' + end + end - include Google::Apis::Core::JsonObjectSupport + class ResourceUtilizationReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cpu_time, as: 'cpuTime', class: Google::Apis::DataflowV1b3::CpuTime, decorator: Google::Apis::DataflowV1b3::CpuTime::Representation + + end end class TopologyConfig - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :computations, as: 'computations', class: Google::Apis::DataflowV1b3::ComputationTopology, decorator: Google::Apis::DataflowV1b3::ComputationTopology::Representation - include Google::Apis::Core::JsonObjectSupport + property :persistent_state_version, as: 'persistentStateVersion' + collection :data_disk_assignments, as: 'dataDiskAssignments', class: Google::Apis::DataflowV1b3::DataDiskAssignment, decorator: Google::Apis::DataflowV1b3::DataDiskAssignment::Representation + + property :forwarding_key_bits, as: 'forwardingKeyBits' + hash :user_stage_to_computation_name_map, as: 'userStageToComputationNameMap' + end end class SourceSplitOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :desired_bundle_size_bytes, :numeric_string => true, as: 'desiredBundleSizeBytes' + property :desired_shard_size_bytes, :numeric_string => true, as: 'desiredShardSizeBytes' + end end class ReadInstruction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation - include Google::Apis::Core::JsonObjectSupport + end end class WorkerSettings - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataDiskAssignment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_path, as: 'servicePath' + property :shuffle_service_path, as: 'shuffleServicePath' + property :worker_id, as: 'workerId' + property :temp_storage_prefix, as: 'tempStoragePrefix' + property :reporting_enabled, as: 'reportingEnabled' + property :base_url, as: 'baseUrl' + end end class StreamingStageLocation - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stream_id, as: 'streamId' + end + end - include Google::Apis::Core::JsonObjectSupport + class DataDiskAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :vm_instance, as: 'vmInstance' + collection :data_disks, as: 'dataDisks' + end end class ApproximateSplitRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - include Google::Apis::Core::JsonObjectSupport + property :fraction_consumed, as: 'fractionConsumed' + end end class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' + end end class ExecutionStageState - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_state_time, as: 'currentStateTime' + property :execution_stage_state, as: 'executionStageState' + property :execution_stage_name, as: 'executionStageName' + end end class StreamLocation - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_source_location, as: 'customSourceLocation', class: Google::Apis::DataflowV1b3::CustomSourceLocation, decorator: Google::Apis::DataflowV1b3::CustomSourceLocation::Representation - include Google::Apis::Core::JsonObjectSupport + property :side_input_location, as: 'sideInputLocation', class: Google::Apis::DataflowV1b3::StreamingSideInputLocation, decorator: Google::Apis::DataflowV1b3::StreamingSideInputLocation::Representation + + property :pubsub_location, as: 'pubsubLocation', class: Google::Apis::DataflowV1b3::PubsubLocation, decorator: Google::Apis::DataflowV1b3::PubsubLocation::Representation + + property :streaming_stage_location, as: 'streamingStageLocation', class: Google::Apis::DataflowV1b3::StreamingStageLocation, decorator: Google::Apis::DataflowV1b3::StreamingStageLocation::Representation + + end end class SendWorkerMessagesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :worker_message_responses, as: 'workerMessageResponses', class: Google::Apis::DataflowV1b3::WorkerMessageResponse, decorator: Google::Apis::DataflowV1b3::WorkerMessageResponse::Representation - include Google::Apis::Core::JsonObjectSupport + end end class StreamingComputationConfig - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :computation_id, as: 'computationId' + property :stage_name, as: 'stageName' + property :system_name, as: 'systemName' + collection :instructions, as: 'instructions', class: Google::Apis::DataflowV1b3::ParallelInstruction, decorator: Google::Apis::DataflowV1b3::ParallelInstruction::Representation - include Google::Apis::Core::JsonObjectSupport + end end class TransformSummary - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation - include Google::Apis::Core::JsonObjectSupport + collection :output_collection_name, as: 'outputCollectionName' + property :kind, as: 'kind' + collection :input_collection_name, as: 'inputCollectionName' + property :name, as: 'name' + end end class LeaseWorkItemResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :work_items, as: 'workItems', class: Google::Apis::DataflowV1b3::WorkItem, decorator: Google::Apis::DataflowV1b3::WorkItem::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class Sink - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + end end class LaunchTemplateParameters - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation - include Google::Apis::Core::JsonObjectSupport + hash :parameters, as: 'parameters' + property :job_name, as: 'jobName' + end + end + + class Sink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :codec, as: 'codec' + hash :spec, as: 'spec' + end end class FlattenInstruction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - include Google::Apis::Core::JsonObjectSupport + end end class PartialGroupByKeyInstruction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_combine_values_input_store_name, as: 'originalCombineValuesInputStoreName' + collection :side_inputs, as: 'sideInputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation - include Google::Apis::Core::JsonObjectSupport - end + property :original_combine_values_step_name, as: 'originalCombineValuesStepName' + property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - class InstructionInput - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + hash :input_element_codec, as: 'inputElementCodec' + hash :value_combining_fn, as: 'valueCombiningFn' + end end class StageSource - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :size_bytes, :numeric_string => true, as: 'sizeBytes' + property :name, as: 'name' + property :user_name, as: 'userName' + property :original_transform_or_collection, as: 'originalTransformOrCollection' + end + end - include Google::Apis::Core::JsonObjectSupport + class InstructionInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :producer_instruction_index, as: 'producerInstructionIndex' + property :output_num, as: 'outputNum' + end end class StringList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :elements, as: 'elements' + end end class DisplayData - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LeaseWorkItemRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :str_value, as: 'strValue' + property :duration_value, as: 'durationValue' + property :int64_value, :numeric_string => true, as: 'int64Value' + property :namespace, as: 'namespace' + property :float_value, as: 'floatValue' + property :key, as: 'key' + property :short_str_value, as: 'shortStrValue' + property :url, as: 'url' + property :label, as: 'label' + property :timestamp_value, as: 'timestampValue' + property :java_class_value, as: 'javaClassValue' + property :bool_value, as: 'boolValue' + end end class GetDebugConfigRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :component_id, as: 'componentId' + property :worker_id, as: 'workerId' + property :location, as: 'location' + end + end - include Google::Apis::Core::JsonObjectSupport + class LeaseWorkItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :worker_capabilities, as: 'workerCapabilities' + property :worker_id, as: 'workerId' + property :requested_lease_duration, as: 'requestedLeaseDuration' + property :current_worker_time, as: 'currentWorkerTime' + property :location, as: 'location' + collection :work_item_types, as: 'workItemTypes' + end end class GetTemplateResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::TemplateMetadata, decorator: Google::Apis::DataflowV1b3::TemplateMetadata::Representation - include Google::Apis::Core::JsonObjectSupport + property :status, as: 'status', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation + + end end class Parameter - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end end class ReportWorkItemStatusRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :work_item_statuses, as: 'workItemStatuses', class: Google::Apis::DataflowV1b3::WorkItemStatus, decorator: Google::Apis::DataflowV1b3::WorkItemStatus::Representation - include Google::Apis::Core::JsonObjectSupport + property :current_worker_time, as: 'currentWorkerTime' + property :worker_id, as: 'workerId' + property :location, as: 'location' + end end class PipelineDescription - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :original_pipeline_transform, as: 'originalPipelineTransform', class: Google::Apis::DataflowV1b3::TransformSummary, decorator: Google::Apis::DataflowV1b3::TransformSummary::Representation - include Google::Apis::Core::JsonObjectSupport + collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation + + collection :execution_pipeline_stage, as: 'executionPipelineStage', class: Google::Apis::DataflowV1b3::ExecutionStageSummary, decorator: Google::Apis::DataflowV1b3::ExecutionStageSummary::Representation + + end end class StreamingConfigTask - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :user_step_to_state_family_name_map, as: 'userStepToStateFamilyNameMap' + property :windmill_service_port, :numeric_string => true, as: 'windmillServicePort' + collection :streaming_computation_configs, as: 'streamingComputationConfigs', class: Google::Apis::DataflowV1b3::StreamingComputationConfig, decorator: Google::Apis::DataflowV1b3::StreamingComputationConfig::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class Step - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + property :windmill_service_endpoint, as: 'windmillServiceEndpoint' + end end class JobExecutionInfo - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :stages, as: 'stages', class: Google::Apis::DataflowV1b3::JobExecutionStageInfo, decorator: Google::Apis::DataflowV1b3::JobExecutionStageInfo::Representation - include Google::Apis::Core::JsonObjectSupport + end + end + + class Step + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :kind, as: 'kind' + hash :properties, as: 'properties' + end end class FailedLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end end class Disk - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListJobMessagesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mount_point, as: 'mountPoint' + property :disk_type, as: 'diskType' + property :size_gb, as: 'sizeGb' + end end class CounterMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :kind, as: 'kind' + property :standard_units, as: 'standardUnits' + property :other_units, as: 'otherUnits' + end + end - include Google::Apis::Core::JsonObjectSupport + class ListJobMessagesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :autoscaling_events, as: 'autoscalingEvents', class: Google::Apis::DataflowV1b3::AutoscalingEvent, decorator: Google::Apis::DataflowV1b3::AutoscalingEvent::Representation + + collection :job_messages, as: 'jobMessages', class: Google::Apis::DataflowV1b3::JobMessage, decorator: Google::Apis::DataflowV1b3::JobMessage::Representation + + end end class ApproximateReportedProgress - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :remaining_parallelism, as: 'remainingParallelism', class: Google::Apis::DataflowV1b3::ReportedParallelism, decorator: Google::Apis::DataflowV1b3::ReportedParallelism::Representation - include Google::Apis::Core::JsonObjectSupport - end + property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - class StateFamilyConfig - class Representation < Google::Apis::Core::JsonRepresentation; end + property :fraction_consumed, as: 'fractionConsumed' + property :consumed_parallelism, as: 'consumedParallelism', class: Google::Apis::DataflowV1b3::ReportedParallelism, decorator: Google::Apis::DataflowV1b3::ReportedParallelism::Representation - include Google::Apis::Core::JsonObjectSupport + end end class IntegerList - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :elements, as: 'elements', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - include Google::Apis::Core::JsonObjectSupport + end + end + + class StateFamilyConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state_family, as: 'stateFamily' + property :is_read, as: 'isRead' + end end class ResourceUtilizationReportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class SourceSplitResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bundles, as: 'bundles', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation - include Google::Apis::Core::JsonObjectSupport + collection :shards, as: 'shards', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation + + property :outcome, as: 'outcome' + end end class ParallelInstruction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_name, as: 'originalName' + property :flatten, as: 'flatten', class: Google::Apis::DataflowV1b3::FlattenInstruction, decorator: Google::Apis::DataflowV1b3::FlattenInstruction::Representation - include Google::Apis::Core::JsonObjectSupport - end + property :write, as: 'write', class: Google::Apis::DataflowV1b3::WriteInstruction, decorator: Google::Apis::DataflowV1b3::WriteInstruction::Representation - class KeyRangeDataDiskAssignment - class Representation < Google::Apis::Core::JsonRepresentation; end + property :system_name, as: 'systemName' + property :partial_group_by_key, as: 'partialGroupByKey', class: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction, decorator: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction::Representation - include Google::Apis::Core::JsonObjectSupport + collection :outputs, as: 'outputs', class: Google::Apis::DataflowV1b3::InstructionOutput, decorator: Google::Apis::DataflowV1b3::InstructionOutput::Representation + + property :name, as: 'name' + property :read, as: 'read', class: Google::Apis::DataflowV1b3::ReadInstruction, decorator: Google::Apis::DataflowV1b3::ReadInstruction::Representation + + property :par_do, as: 'parDo', class: Google::Apis::DataflowV1b3::ParDoInstruction, decorator: Google::Apis::DataflowV1b3::ParDoInstruction::Representation + + end end class Package - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location' + property :name, as: 'name' + end + end - include Google::Apis::Core::JsonObjectSupport + class KeyRangeDataDiskAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_disk, as: 'dataDisk' + property :start, as: 'start' + property :end, as: 'end' + end end class ParDoInstruction - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :side_inputs, as: 'sideInputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation - include Google::Apis::Core::JsonObjectSupport + collection :multi_output_infos, as: 'multiOutputInfos', class: Google::Apis::DataflowV1b3::MultiOutputInfo, decorator: Google::Apis::DataflowV1b3::MultiOutputInfo::Representation + + hash :user_fn, as: 'userFn' + property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation + + property :num_outputs, as: 'numOutputs' + end end class MetricUpdate - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :internal, as: 'internal' + property :cumulative, as: 'cumulative' + property :kind, as: 'kind' + property :scalar, as: 'scalar' + property :mean_count, as: 'meanCount' + property :mean_sum, as: 'meanSum' + property :update_time, as: 'updateTime' + property :name, as: 'name', class: Google::Apis::DataflowV1b3::MetricStructuredName, decorator: Google::Apis::DataflowV1b3::MetricStructuredName::Representation - include Google::Apis::Core::JsonObjectSupport + property :distribution, as: 'distribution' + property :set, as: 'set' + end end class CounterStructuredName - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :component_step_name, as: 'componentStepName' + property :portion, as: 'portion' + property :original_step_name, as: 'originalStepName' + property :worker_id, as: 'workerId' + property :origin_namespace, as: 'originNamespace' + property :name, as: 'name' + property :execution_step_name, as: 'executionStepName' + property :origin, as: 'origin' + end end class ApproximateProgress - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :percent_complete, as: 'percentComplete' + property :remaining_time, as: 'remainingTime' + property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - include Google::Apis::Core::JsonObjectSupport + end end class WorkerMessageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :worker_metrics_response, as: 'workerMetricsResponse', class: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse::Representation - include Google::Apis::Core::JsonObjectSupport + property :worker_health_report_response, as: 'workerHealthReportResponse', class: Google::Apis::DataflowV1b3::WorkerHealthReportResponse, decorator: Google::Apis::DataflowV1b3::WorkerHealthReportResponse::Representation + + end end class TemplateMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::ParameterMetadata, decorator: Google::Apis::DataflowV1b3::ParameterMetadata::Representation - include Google::Apis::Core::JsonObjectSupport + property :name, as: 'name' + property :description, as: 'description' + end end class WorkerMessage - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :worker_health_report, as: 'workerHealthReport', class: Google::Apis::DataflowV1b3::WorkerHealthReport, decorator: Google::Apis::DataflowV1b3::WorkerHealthReport::Representation - include Google::Apis::Core::JsonObjectSupport + property :worker_metrics, as: 'workerMetrics', class: Google::Apis::DataflowV1b3::ResourceUtilizationReport, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReport::Representation + + property :worker_message_code, as: 'workerMessageCode', class: Google::Apis::DataflowV1b3::WorkerMessageCode, decorator: Google::Apis::DataflowV1b3::WorkerMessageCode::Representation + + hash :labels, as: 'labels' + property :time, as: 'time' + end end class JobMetrics - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metrics, as: 'metrics', class: Google::Apis::DataflowV1b3::MetricUpdate, decorator: Google::Apis::DataflowV1b3::MetricUpdate::Representation - include Google::Apis::Core::JsonObjectSupport + property :metric_time, as: 'metricTime' + end end class FloatingPointList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :elements, as: 'elements' + end end class CounterUpdate - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :floating_point_list, as: 'floatingPointList', class: Google::Apis::DataflowV1b3::FloatingPointList, decorator: Google::Apis::DataflowV1b3::FloatingPointList::Representation - include Google::Apis::Core::JsonObjectSupport + property :integer, as: 'integer', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation + + property :structured_name_and_metadata, as: 'structuredNameAndMetadata', class: Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata, decorator: Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata::Representation + + property :integer_list, as: 'integerList', class: Google::Apis::DataflowV1b3::IntegerList, decorator: Google::Apis::DataflowV1b3::IntegerList::Representation + + property :integer_mean, as: 'integerMean', class: Google::Apis::DataflowV1b3::IntegerMean, decorator: Google::Apis::DataflowV1b3::IntegerMean::Representation + + property :floating_point, as: 'floatingPoint' + property :internal, as: 'internal' + property :cumulative, as: 'cumulative' + property :floating_point_mean, as: 'floatingPointMean', class: Google::Apis::DataflowV1b3::FloatingPointMean, decorator: Google::Apis::DataflowV1b3::FloatingPointMean::Representation + + property :boolean, as: 'boolean' + property :name_and_kind, as: 'nameAndKind', class: Google::Apis::DataflowV1b3::NameAndKind, decorator: Google::Apis::DataflowV1b3::NameAndKind::Representation + + property :string_list, as: 'stringList', class: Google::Apis::DataflowV1b3::StringList, decorator: Google::Apis::DataflowV1b3::StringList::Representation + + property :distribution, as: 'distribution', class: Google::Apis::DataflowV1b3::DistributionUpdate, decorator: Google::Apis::DataflowV1b3::DistributionUpdate::Representation + + property :short_id, :numeric_string => true, as: 'shortId' + end end class SourceMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :estimated_size_bytes, :numeric_string => true, as: 'estimatedSizeBytes' + property :infinite, as: 'infinite' + property :produces_sorted_keys, as: 'producesSortedKeys' + end end class DistributionUpdate - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max, as: 'max', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - include Google::Apis::Core::JsonObjectSupport - end + collection :log_buckets, as: 'logBuckets', class: Google::Apis::DataflowV1b3::LogBucket, decorator: Google::Apis::DataflowV1b3::LogBucket::Representation - class WorkerHealthReportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - include Google::Apis::Core::JsonObjectSupport + property :min, as: 'min', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation + + property :sum_of_squares, as: 'sumOfSquares' + property :sum, as: 'sum', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation + + end end class SourceFork - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :primary_source, as: 'primarySource', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation - include Google::Apis::Core::JsonObjectSupport + property :residual, as: 'residual', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation + + property :residual_source, as: 'residualSource', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation + + property :primary, as: 'primary', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation + + end + end + + class WorkerHealthReportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :report_interval, as: 'reportInterval' + end end class WorkItemStatus - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :counter_updates, as: 'counterUpdates', class: Google::Apis::DataflowV1b3::CounterUpdate, decorator: Google::Apis::DataflowV1b3::CounterUpdate::Representation - include Google::Apis::Core::JsonObjectSupport + property :work_item_id, as: 'workItemId' + collection :metric_updates, as: 'metricUpdates', class: Google::Apis::DataflowV1b3::MetricUpdate, decorator: Google::Apis::DataflowV1b3::MetricUpdate::Representation + + collection :errors, as: 'errors', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation + + property :dynamic_source_split, as: 'dynamicSourceSplit', class: Google::Apis::DataflowV1b3::DynamicSourceSplit, decorator: Google::Apis::DataflowV1b3::DynamicSourceSplit::Representation + + property :source_operation_response, as: 'sourceOperationResponse', class: Google::Apis::DataflowV1b3::SourceOperationResponse, decorator: Google::Apis::DataflowV1b3::SourceOperationResponse::Representation + + property :progress, as: 'progress', class: Google::Apis::DataflowV1b3::ApproximateProgress, decorator: Google::Apis::DataflowV1b3::ApproximateProgress::Representation + + property :requested_lease_duration, as: 'requestedLeaseDuration' + property :report_index, :numeric_string => true, as: 'reportIndex' + property :stop_position, as: 'stopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation + + property :completed, as: 'completed' + property :reported_progress, as: 'reportedProgress', class: Google::Apis::DataflowV1b3::ApproximateReportedProgress, decorator: Google::Apis::DataflowV1b3::ApproximateReportedProgress::Representation + + property :source_fork, as: 'sourceFork', class: Google::Apis::DataflowV1b3::SourceFork, decorator: Google::Apis::DataflowV1b3::SourceFork::Representation + + end end class ComponentSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :user_name, as: 'userName' + property :original_transform_or_collection, as: 'originalTransformOrCollection' + end end class WorkItemServiceState - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :suggested_stop_point, as: 'suggestedStopPoint', class: Google::Apis::DataflowV1b3::ApproximateProgress, decorator: Google::Apis::DataflowV1b3::ApproximateProgress::Representation - include Google::Apis::Core::JsonObjectSupport + property :split_request, as: 'splitRequest', class: Google::Apis::DataflowV1b3::ApproximateSplitRequest, decorator: Google::Apis::DataflowV1b3::ApproximateSplitRequest::Representation + + property :suggested_stop_position, as: 'suggestedStopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation + + property :report_status_interval, as: 'reportStatusInterval' + hash :harness_data, as: 'harnessData' + property :lease_expire_time, as: 'leaseExpireTime' + collection :metric_short_id, as: 'metricShortId', class: Google::Apis::DataflowV1b3::MetricShortId, decorator: Google::Apis::DataflowV1b3::MetricShortId::Representation + + property :next_report_index, :numeric_string => true, as: 'nextReportIndex' + end end class MetricStructuredName - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :context, as: 'context' + property :name, as: 'name' + property :origin, as: 'origin' + end end class SeqMapTaskOutputInfo - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tag, as: 'tag' + property :sink, as: 'sink', class: Google::Apis::DataflowV1b3::Sink, decorator: Google::Apis::DataflowV1b3::Sink::Representation - include Google::Apis::Core::JsonObjectSupport + end end class JobExecutionStageInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :step_name, as: 'stepName' + end end class KeyRangeLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delivery_endpoint, as: 'deliveryEndpoint' + property :data_disk, as: 'dataDisk' + property :start, as: 'start' + property :end, as: 'end' + property :deprecated_persistent_directory, as: 'deprecatedPersistentDirectory' + end end class SourceGetMetadataRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation - include Google::Apis::Core::JsonObjectSupport - end - - class NameAndKind - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + end end class SeqMapTask - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :output_infos, as: 'outputInfos', class: Google::Apis::DataflowV1b3::SeqMapTaskOutputInfo, decorator: Google::Apis::DataflowV1b3::SeqMapTaskOutputInfo::Representation - include Google::Apis::Core::JsonObjectSupport + collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation + + property :stage_name, as: 'stageName' + property :system_name, as: 'systemName' + hash :user_fn, as: 'userFn' + end + end + + class NameAndKind + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :kind, as: 'kind' + end end class WorkerMessageCode - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :parameters, as: 'parameters' + property :code, as: 'code' + end end class CustomSourceLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stateful, as: 'stateful' + end end class MapTask - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stage_name, as: 'stageName' + property :system_name, as: 'systemName' + collection :instructions, as: 'instructions', class: Google::Apis::DataflowV1b3::ParallelInstruction, decorator: Google::Apis::DataflowV1b3::ParallelInstruction::Representation - include Google::Apis::Core::JsonObjectSupport + end end class FloatingPointMean - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - include Google::Apis::Core::JsonObjectSupport + property :sum, as: 'sum' + end end class ReportWorkItemStatusResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :work_item_service_states, as: 'workItemServiceStates', class: Google::Apis::DataflowV1b3::WorkItemServiceState, decorator: Google::Apis::DataflowV1b3::WorkItemServiceState::Representation - include Google::Apis::Core::JsonObjectSupport + end end class InstructionOutput - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :codec, as: 'codec' + property :name, as: 'name' + property :original_name, as: 'originalName' + property :system_name, as: 'systemName' + property :only_count_key_bytes, as: 'onlyCountKeyBytes' + property :only_count_value_bytes, as: 'onlyCountValueBytes' + end end class CreateJobFromTemplateRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :job_name, as: 'jobName' + property :gcs_path, as: 'gcsPath' + property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation - include Google::Apis::Core::JsonObjectSupport + property :location, as: 'location' + hash :parameters, as: 'parameters' + end end class IntegerMean - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - include Google::Apis::Core::JsonObjectSupport + property :sum, as: 'sum', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation + + end end class ListJobsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :failed_location, as: 'failedLocation', class: Google::Apis::DataflowV1b3::FailedLocation, decorator: Google::Apis::DataflowV1b3::FailedLocation::Representation - include Google::Apis::Core::JsonObjectSupport + property :next_page_token, as: 'nextPageToken' + collection :jobs, as: 'jobs', class: Google::Apis::DataflowV1b3::Job, decorator: Google::Apis::DataflowV1b3::Job::Representation + + end end class ComputationTopology - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :system_stage_name, as: 'systemStageName' + property :computation_id, as: 'computationId' + collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::StreamLocation, decorator: Google::Apis::DataflowV1b3::StreamLocation::Representation - include Google::Apis::Core::JsonObjectSupport + collection :key_ranges, as: 'keyRanges', class: Google::Apis::DataflowV1b3::KeyRangeLocation, decorator: Google::Apis::DataflowV1b3::KeyRangeLocation::Representation + + collection :state_families, as: 'stateFamilies', class: Google::Apis::DataflowV1b3::StateFamilyConfig, decorator: Google::Apis::DataflowV1b3::StateFamilyConfig::Representation + + collection :outputs, as: 'outputs', class: Google::Apis::DataflowV1b3::StreamLocation, decorator: Google::Apis::DataflowV1b3::StreamLocation::Representation + + end end class RuntimeEnvironment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :machine_type, as: 'machineType' property :zone, as: 'zone' property :max_workers, as: 'maxWorkers' + property :service_account_email, as: 'serviceAccountEmail' property :temp_location, as: 'tempLocation' property :bypass_temp_dir_validation, as: 'bypassTempDirValidation' - property :service_account_email, as: 'serviceAccountEmail' - property :machine_type, as: 'machineType' end end @@ -782,8 +1826,8 @@ module Google class StreamingSideInputLocation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :state_family, as: 'stateFamily' property :tag, as: 'tag' + property :state_family, as: 'stateFamily' end end @@ -798,13 +1842,6 @@ module Google class Job # @private class Representation < Google::Apis::Core::JsonRepresentation - property :location, as: 'location' - property :current_state_time, as: 'currentStateTime' - hash :transform_name_mapping, as: 'transformNameMapping' - property :create_time, as: 'createTime' - property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::Environment, decorator: Google::Apis::DataflowV1b3::Environment::Representation - - hash :labels, as: 'labels' collection :stage_states, as: 'stageStates', class: Google::Apis::DataflowV1b3::ExecutionStageState, decorator: Google::Apis::DataflowV1b3::ExecutionStageState::Representation property :project_id, as: 'projectId' @@ -816,13 +1853,20 @@ module Google collection :temp_files, as: 'tempFiles' property :client_request_id, as: 'clientRequestId' property :name, as: 'name' - property :replaced_by_job_id, as: 'replacedByJobId' collection :steps, as: 'steps', class: Google::Apis::DataflowV1b3::Step, decorator: Google::Apis::DataflowV1b3::Step::Representation - property :id, as: 'id' + property :replaced_by_job_id, as: 'replacedByJobId' property :execution_info, as: 'executionInfo', class: Google::Apis::DataflowV1b3::JobExecutionInfo, decorator: Google::Apis::DataflowV1b3::JobExecutionInfo::Representation + property :id, as: 'id' property :current_state, as: 'currentState' + property :location, as: 'location' + property :current_state_time, as: 'currentStateTime' + hash :transform_name_mapping, as: 'transformNameMapping' + hash :labels, as: 'labels' + property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::Environment, decorator: Google::Apis::DataflowV1b3::Environment::Representation + + property :create_time, as: 'createTime' end end @@ -839,18 +1883,28 @@ module Google class DerivedSource # @private class Representation < Google::Apis::Core::JsonRepresentation - property :derivation_mode, as: 'derivationMode' property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation + property :derivation_mode, as: 'derivationMode' end end class SourceOperationResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :split, as: 'split', class: Google::Apis::DataflowV1b3::SourceSplitResponse, decorator: Google::Apis::DataflowV1b3::SourceSplitResponse::Representation + property :get_metadata, as: 'getMetadata', class: Google::Apis::DataflowV1b3::SourceGetMetadataResponse, decorator: Google::Apis::DataflowV1b3::SourceGetMetadataResponse::Representation - property :split, as: 'split', class: Google::Apis::DataflowV1b3::SourceSplitResponse, decorator: Google::Apis::DataflowV1b3::SourceSplitResponse::Representation + end + end + + class SideInputInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tag, as: 'tag' + hash :kind, as: 'kind' + collection :sources, as: 'sources', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation end end @@ -861,13 +1915,12 @@ module Google end end - class SideInputInfo + class ConcatPosition # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :sources, as: 'sources', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation + property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - hash :kind, as: 'kind' - property :tag, as: 'tag' + property :index, as: 'index' end end @@ -881,30 +1934,13 @@ module Google end end - class ConcatPosition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :index, as: 'index' - end - end - class WriteInstruction # @private class Representation < Google::Apis::Core::JsonRepresentation - property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - property :sink, as: 'sink', class: Google::Apis::DataflowV1b3::Sink, decorator: Google::Apis::DataflowV1b3::Sink::Representation - end - end + property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - class AutoscalingSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_num_workers, as: 'maxNumWorkers' - property :algorithm, as: 'algorithm' end end @@ -917,11 +1953,17 @@ module Google end end + class AutoscalingSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :max_num_workers, as: 'maxNumWorkers' + end + end + class ExecutionStageSummary # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :component_transform, as: 'componentTransform', class: Google::Apis::DataflowV1b3::ComponentTransform, decorator: Google::Apis::DataflowV1b3::ComponentTransform::Representation - collection :component_source, as: 'componentSource', class: Google::Apis::DataflowV1b3::ComponentSource, decorator: Google::Apis::DataflowV1b3::ComponentSource::Representation property :kind, as: 'kind' @@ -931,6 +1973,8 @@ module Google collection :input_source, as: 'inputSource', class: Google::Apis::DataflowV1b3::StageSource, decorator: Google::Apis::DataflowV1b3::StageSource::Representation property :id, as: 'id' + collection :component_transform, as: 'componentTransform', class: Google::Apis::DataflowV1b3::ComponentTransform, decorator: Google::Apis::DataflowV1b3::ComponentTransform::Representation + end end @@ -963,17 +2007,15 @@ module Google class CpuTime # @private class Representation < Google::Apis::Core::JsonRepresentation - property :timestamp, as: 'timestamp' property :total_ms, :numeric_string => true, as: 'totalMs' property :rate, as: 'rate' + property :timestamp, as: 'timestamp' end end class Environment # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :user_agent, as: 'userAgent' - hash :sdk_pipeline_options, as: 'sdkPipelineOptions' property :cluster_manager_api_service, as: 'clusterManagerApiService' property :temp_storage_prefix, as: 'tempStoragePrefix' collection :worker_pools, as: 'workerPools', class: Google::Apis::DataflowV1b3::WorkerPool, decorator: Google::Apis::DataflowV1b3::WorkerPool::Representation @@ -983,6 +2025,8 @@ module Google hash :version, as: 'version' hash :internal_experiments, as: 'internalExperiments' property :service_account_email, as: 'serviceAccountEmail' + hash :user_agent, as: 'userAgent' + hash :sdk_pipeline_options, as: 'sdkPipelineOptions' end end @@ -1000,10 +2044,10 @@ module Google class SendDebugCaptureRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :worker_id, as: 'workerId' property :location, as: 'location' property :data, as: 'data' property :component_id, as: 'componentId' + property :worker_id, as: 'workerId' end end @@ -1026,24 +2070,24 @@ module Google class StreamingSetupTask # @private class Representation < Google::Apis::Core::JsonRepresentation - property :receive_work_port, as: 'receiveWorkPort' property :streaming_computation_topology, as: 'streamingComputationTopology', class: Google::Apis::DataflowV1b3::TopologyConfig, decorator: Google::Apis::DataflowV1b3::TopologyConfig::Representation - property :worker_harness_port, as: 'workerHarnessPort' property :drain, as: 'drain' + property :worker_harness_port, as: 'workerHarnessPort' + property :receive_work_port, as: 'receiveWorkPort' end end class PubsubLocation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :topic, as: 'topic' + property :timestamp_label, as: 'timestampLabel' property :subscription, as: 'subscription' property :drop_late_data, as: 'dropLateData' property :tracking_subscription, as: 'trackingSubscription' property :with_attributes, as: 'withAttributes' property :id_label, as: 'idLabel' - property :topic, as: 'topic' - property :timestamp_label, as: 'timestampLabel' end end @@ -1052,8 +2096,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :pods, as: 'pods' property :vm_startup_time, as: 'vmStartupTime' - property :vm_is_healthy, as: 'vmIsHealthy' property :report_interval, as: 'reportInterval' + property :vm_is_healthy, as: 'vmIsHealthy' end end @@ -1061,8 +2105,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' - property :message_text, as: 'messageText' property :message_importance, as: 'messageImportance' + property :message_text, as: 'messageText' property :time, as: 'time' end end @@ -1070,1055 +2114,11 @@ module Google class ParameterMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :regexes, as: 'regexes' property :label, as: 'label' property :help_text, as: 'helpText' property :is_optional, as: 'isOptional' property :name, as: 'name' - collection :regexes, as: 'regexes' - end - end - - class MultiOutputInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :tag, as: 'tag' - end - end - - class SourceSplitRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation - - property :options, as: 'options', class: Google::Apis::DataflowV1b3::SourceSplitOptions, decorator: Google::Apis::DataflowV1b3::SourceSplitOptions::Representation - - end - end - - class SourceGetMetadataResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::SourceMetadata, decorator: Google::Apis::DataflowV1b3::SourceMetadata::Representation - - end - end - - class ShellTask - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exit_code, as: 'exitCode' - property :command, as: 'command' - end - end - - class MetricShortId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :short_id, :numeric_string => true, as: 'shortId' - property :metric_index, as: 'metricIndex' - end - end - - class AutoscalingEvent - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description', class: Google::Apis::DataflowV1b3::StructuredMessage, decorator: Google::Apis::DataflowV1b3::StructuredMessage::Representation - - property :time, as: 'time' - property :target_num_workers, :numeric_string => true, as: 'targetNumWorkers' - property :event_type, as: 'eventType' - property :current_num_workers, :numeric_string => true, as: 'currentNumWorkers' - end - end - - class TaskRunnerSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_to_serialconsole, as: 'logToSerialconsole' - property :continue_on_exception, as: 'continueOnException' - property :parallel_worker_settings, as: 'parallelWorkerSettings', class: Google::Apis::DataflowV1b3::WorkerSettings, decorator: Google::Apis::DataflowV1b3::WorkerSettings::Representation - - property :vm_id, as: 'vmId' - property :task_user, as: 'taskUser' - property :alsologtostderr, as: 'alsologtostderr' - property :task_group, as: 'taskGroup' - property :harness_command, as: 'harnessCommand' - property :log_dir, as: 'logDir' - collection :oauth_scopes, as: 'oauthScopes' - property :dataflow_api_version, as: 'dataflowApiVersion' - property :log_upload_location, as: 'logUploadLocation' - property :streaming_worker_main_class, as: 'streamingWorkerMainClass' - property :workflow_file_name, as: 'workflowFileName' - property :base_task_dir, as: 'baseTaskDir' - property :temp_storage_prefix, as: 'tempStoragePrefix' - property :commandlines_file_name, as: 'commandlinesFileName' - property :language_hint, as: 'languageHint' - property :base_url, as: 'baseUrl' - end - end - - class Position - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :record_index, :numeric_string => true, as: 'recordIndex' - property :shuffle_position, as: 'shufflePosition' - property :concat_position, as: 'concatPosition', class: Google::Apis::DataflowV1b3::ConcatPosition, decorator: Google::Apis::DataflowV1b3::ConcatPosition::Representation - - property :byte_offset, :numeric_string => true, as: 'byteOffset' - property :end, as: 'end' - property :key, as: 'key' - end - end - - class SplitInt64 - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :low_bits, as: 'lowBits' - property :high_bits, as: 'highBits' - end - end - - class Source - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::SourceMetadata, decorator: Google::Apis::DataflowV1b3::SourceMetadata::Representation - - collection :base_specs, as: 'baseSpecs' - hash :codec, as: 'codec' - property :does_not_need_splitting, as: 'doesNotNeedSplitting' - hash :spec, as: 'spec' - end - end - - class WorkerPool - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :default_package_set, as: 'defaultPackageSet' - property :network, as: 'network' - property :zone, as: 'zone' - property :num_workers, as: 'numWorkers' - property :num_threads_per_worker, as: 'numThreadsPerWorker' - property :disk_source_image, as: 'diskSourceImage' - collection :packages, as: 'packages', class: Google::Apis::DataflowV1b3::Package, decorator: Google::Apis::DataflowV1b3::Package::Representation - - property :teardown_policy, as: 'teardownPolicy' - property :on_host_maintenance, as: 'onHostMaintenance' - hash :pool_args, as: 'poolArgs' - property :disk_size_gb, as: 'diskSizeGb' - property :worker_harness_container_image, as: 'workerHarnessContainerImage' - property :machine_type, as: 'machineType' - property :disk_type, as: 'diskType' - property :kind, as: 'kind' - collection :data_disks, as: 'dataDisks', class: Google::Apis::DataflowV1b3::Disk, decorator: Google::Apis::DataflowV1b3::Disk::Representation - - property :subnetwork, as: 'subnetwork' - property :ip_configuration, as: 'ipConfiguration' - property :autoscaling_settings, as: 'autoscalingSettings', class: Google::Apis::DataflowV1b3::AutoscalingSettings, decorator: Google::Apis::DataflowV1b3::AutoscalingSettings::Representation - - property :taskrunner_settings, as: 'taskrunnerSettings', class: Google::Apis::DataflowV1b3::TaskRunnerSettings, decorator: Google::Apis::DataflowV1b3::TaskRunnerSettings::Representation - - hash :metadata, as: 'metadata' - end - end - - class SourceOperationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :get_metadata, as: 'getMetadata', class: Google::Apis::DataflowV1b3::SourceGetMetadataRequest, decorator: Google::Apis::DataflowV1b3::SourceGetMetadataRequest::Representation - - property :split, as: 'split', class: Google::Apis::DataflowV1b3::SourceSplitRequest, decorator: Google::Apis::DataflowV1b3::SourceSplitRequest::Representation - - end - end - - class StructuredMessage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::Parameter, decorator: Google::Apis::DataflowV1b3::Parameter::Representation - - property :message_key, as: 'messageKey' - property :message_text, as: 'messageText' - end - end - - class WorkItem - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, :numeric_string => true, as: 'id' - property :configuration, as: 'configuration' - property :map_task, as: 'mapTask', class: Google::Apis::DataflowV1b3::MapTask, decorator: Google::Apis::DataflowV1b3::MapTask::Representation - - property :seq_map_task, as: 'seqMapTask', class: Google::Apis::DataflowV1b3::SeqMapTask, decorator: Google::Apis::DataflowV1b3::SeqMapTask::Representation - - collection :packages, as: 'packages', class: Google::Apis::DataflowV1b3::Package, decorator: Google::Apis::DataflowV1b3::Package::Representation - - property :project_id, as: 'projectId' - property :source_operation_task, as: 'sourceOperationTask', class: Google::Apis::DataflowV1b3::SourceOperationRequest, decorator: Google::Apis::DataflowV1b3::SourceOperationRequest::Representation - - property :streaming_setup_task, as: 'streamingSetupTask', class: Google::Apis::DataflowV1b3::StreamingSetupTask, decorator: Google::Apis::DataflowV1b3::StreamingSetupTask::Representation - - property :report_status_interval, as: 'reportStatusInterval' - property :streaming_config_task, as: 'streamingConfigTask', class: Google::Apis::DataflowV1b3::StreamingConfigTask, decorator: Google::Apis::DataflowV1b3::StreamingConfigTask::Representation - - property :lease_expire_time, as: 'leaseExpireTime' - property :initial_report_index, :numeric_string => true, as: 'initialReportIndex' - property :streaming_computation_task, as: 'streamingComputationTask', class: Google::Apis::DataflowV1b3::StreamingComputationTask, decorator: Google::Apis::DataflowV1b3::StreamingComputationTask::Representation - - property :shell_task, as: 'shellTask', class: Google::Apis::DataflowV1b3::ShellTask, decorator: Google::Apis::DataflowV1b3::ShellTask::Representation - - property :job_id, as: 'jobId' - end - end - - class ResourceUtilizationReport - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :cpu_time, as: 'cpuTime', class: Google::Apis::DataflowV1b3::CpuTime, decorator: Google::Apis::DataflowV1b3::CpuTime::Representation - - end - end - - class ReportedParallelism - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, as: 'value' - property :is_infinite, as: 'isInfinite' - end - end - - class TopologyConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :user_stage_to_computation_name_map, as: 'userStageToComputationNameMap' - collection :computations, as: 'computations', class: Google::Apis::DataflowV1b3::ComputationTopology, decorator: Google::Apis::DataflowV1b3::ComputationTopology::Representation - - collection :data_disk_assignments, as: 'dataDiskAssignments', class: Google::Apis::DataflowV1b3::DataDiskAssignment, decorator: Google::Apis::DataflowV1b3::DataDiskAssignment::Representation - - property :persistent_state_version, as: 'persistentStateVersion' - property :forwarding_key_bits, as: 'forwardingKeyBits' - end - end - - class SourceSplitOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :desired_bundle_size_bytes, :numeric_string => true, as: 'desiredBundleSizeBytes' - property :desired_shard_size_bytes, :numeric_string => true, as: 'desiredShardSizeBytes' - end - end - - class ReadInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation - - end - end - - class WorkerSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :temp_storage_prefix, as: 'tempStoragePrefix' - property :reporting_enabled, as: 'reportingEnabled' - property :base_url, as: 'baseUrl' - property :service_path, as: 'servicePath' - property :shuffle_service_path, as: 'shuffleServicePath' - property :worker_id, as: 'workerId' - end - end - - class DataDiskAssignment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :vm_instance, as: 'vmInstance' - collection :data_disks, as: 'dataDisks' - end - end - - class StreamingStageLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :stream_id, as: 'streamId' - end - end - - class ApproximateSplitRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :fraction_consumed, as: 'fractionConsumed' - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' - end - end - - class ExecutionStageState - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :execution_stage_name, as: 'executionStageName' - property :current_state_time, as: 'currentStateTime' - property :execution_stage_state, as: 'executionStageState' - end - end - - class StreamLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :custom_source_location, as: 'customSourceLocation', class: Google::Apis::DataflowV1b3::CustomSourceLocation, decorator: Google::Apis::DataflowV1b3::CustomSourceLocation::Representation - - property :streaming_stage_location, as: 'streamingStageLocation', class: Google::Apis::DataflowV1b3::StreamingStageLocation, decorator: Google::Apis::DataflowV1b3::StreamingStageLocation::Representation - - property :pubsub_location, as: 'pubsubLocation', class: Google::Apis::DataflowV1b3::PubsubLocation, decorator: Google::Apis::DataflowV1b3::PubsubLocation::Representation - - property :side_input_location, as: 'sideInputLocation', class: Google::Apis::DataflowV1b3::StreamingSideInputLocation, decorator: Google::Apis::DataflowV1b3::StreamingSideInputLocation::Representation - - end - end - - class SendWorkerMessagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :worker_message_responses, as: 'workerMessageResponses', class: Google::Apis::DataflowV1b3::WorkerMessageResponse, decorator: Google::Apis::DataflowV1b3::WorkerMessageResponse::Representation - - end - end - - class StreamingComputationConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :system_name, as: 'systemName' - property :stage_name, as: 'stageName' - collection :instructions, as: 'instructions', class: Google::Apis::DataflowV1b3::ParallelInstruction, decorator: Google::Apis::DataflowV1b3::ParallelInstruction::Representation - - property :computation_id, as: 'computationId' - end - end - - class TransformSummary - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - collection :input_collection_name, as: 'inputCollectionName' - property :name, as: 'name' - property :id, as: 'id' - collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation - - collection :output_collection_name, as: 'outputCollectionName' - end - end - - class LeaseWorkItemResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :work_items, as: 'workItems', class: Google::Apis::DataflowV1b3::WorkItem, decorator: Google::Apis::DataflowV1b3::WorkItem::Representation - - end - end - - class Sink - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :codec, as: 'codec' - hash :spec, as: 'spec' - end - end - - class LaunchTemplateParameters - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :parameters, as: 'parameters' - property :job_name, as: 'jobName' - property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation - - end - end - - class FlattenInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - - end - end - - class PartialGroupByKeyInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - - hash :input_element_codec, as: 'inputElementCodec' - hash :value_combining_fn, as: 'valueCombiningFn' - property :original_combine_values_input_store_name, as: 'originalCombineValuesInputStoreName' - collection :side_inputs, as: 'sideInputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation - - property :original_combine_values_step_name, as: 'originalCombineValuesStepName' - end - end - - class InstructionInput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :producer_instruction_index, as: 'producerInstructionIndex' - property :output_num, as: 'outputNum' - end - end - - class StageSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :size_bytes, :numeric_string => true, as: 'sizeBytes' - property :user_name, as: 'userName' - property :original_transform_or_collection, as: 'originalTransformOrCollection' - end - end - - class StringList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :elements, as: 'elements' - end - end - - class DisplayData - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :java_class_value, as: 'javaClassValue' - property :bool_value, as: 'boolValue' - property :str_value, as: 'strValue' - property :duration_value, as: 'durationValue' - property :int64_value, :numeric_string => true, as: 'int64Value' - property :namespace, as: 'namespace' - property :float_value, as: 'floatValue' - property :key, as: 'key' - property :short_str_value, as: 'shortStrValue' - property :label, as: 'label' - property :url, as: 'url' - property :timestamp_value, as: 'timestampValue' - end - end - - class LeaseWorkItemRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :requested_lease_duration, as: 'requestedLeaseDuration' - property :current_worker_time, as: 'currentWorkerTime' - property :location, as: 'location' - collection :work_item_types, as: 'workItemTypes' - collection :worker_capabilities, as: 'workerCapabilities' - property :worker_id, as: 'workerId' - end - end - - class GetDebugConfigRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :component_id, as: 'componentId' - property :worker_id, as: 'workerId' - property :location, as: 'location' - end - end - - class GetTemplateResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::DataflowV1b3::TemplateMetadata, decorator: Google::Apis::DataflowV1b3::TemplateMetadata::Representation - - property :status, as: 'status', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation - - end - end - - class Parameter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - - class ReportWorkItemStatusRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :worker_id, as: 'workerId' - property :current_worker_time, as: 'currentWorkerTime' - property :location, as: 'location' - collection :work_item_statuses, as: 'workItemStatuses', class: Google::Apis::DataflowV1b3::WorkItemStatus, decorator: Google::Apis::DataflowV1b3::WorkItemStatus::Representation - - end - end - - class PipelineDescription - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :original_pipeline_transform, as: 'originalPipelineTransform', class: Google::Apis::DataflowV1b3::TransformSummary, decorator: Google::Apis::DataflowV1b3::TransformSummary::Representation - - collection :display_data, as: 'displayData', class: Google::Apis::DataflowV1b3::DisplayData, decorator: Google::Apis::DataflowV1b3::DisplayData::Representation - - collection :execution_pipeline_stage, as: 'executionPipelineStage', class: Google::Apis::DataflowV1b3::ExecutionStageSummary, decorator: Google::Apis::DataflowV1b3::ExecutionStageSummary::Representation - - end - end - - class StreamingConfigTask - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :streaming_computation_configs, as: 'streamingComputationConfigs', class: Google::Apis::DataflowV1b3::StreamingComputationConfig, decorator: Google::Apis::DataflowV1b3::StreamingComputationConfig::Representation - - property :windmill_service_endpoint, as: 'windmillServiceEndpoint' - hash :user_step_to_state_family_name_map, as: 'userStepToStateFamilyNameMap' - property :windmill_service_port, :numeric_string => true, as: 'windmillServicePort' - end - end - - class Step - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - hash :properties, as: 'properties' - property :name, as: 'name' - end - end - - class JobExecutionInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :stages, as: 'stages', class: Google::Apis::DataflowV1b3::JobExecutionStageInfo, decorator: Google::Apis::DataflowV1b3::JobExecutionStageInfo::Representation - - end - end - - class FailedLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - end - end - - class Disk - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :size_gb, as: 'sizeGb' - property :disk_type, as: 'diskType' - property :mount_point, as: 'mountPoint' - end - end - - class ListJobMessagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :autoscaling_events, as: 'autoscalingEvents', class: Google::Apis::DataflowV1b3::AutoscalingEvent, decorator: Google::Apis::DataflowV1b3::AutoscalingEvent::Representation - - collection :job_messages, as: 'jobMessages', class: Google::Apis::DataflowV1b3::JobMessage, decorator: Google::Apis::DataflowV1b3::JobMessage::Representation - - end - end - - class CounterMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :description, as: 'description' - property :standard_units, as: 'standardUnits' - property :other_units, as: 'otherUnits' - end - end - - class ApproximateReportedProgress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :fraction_consumed, as: 'fractionConsumed' - property :consumed_parallelism, as: 'consumedParallelism', class: Google::Apis::DataflowV1b3::ReportedParallelism, decorator: Google::Apis::DataflowV1b3::ReportedParallelism::Representation - - property :remaining_parallelism, as: 'remainingParallelism', class: Google::Apis::DataflowV1b3::ReportedParallelism, decorator: Google::Apis::DataflowV1b3::ReportedParallelism::Representation - - end - end - - class StateFamilyConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_read, as: 'isRead' - property :state_family, as: 'stateFamily' - end - end - - class IntegerList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :elements, as: 'elements', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - end - end - - class ResourceUtilizationReportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class SourceSplitResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :shards, as: 'shards', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation - - property :outcome, as: 'outcome' - collection :bundles, as: 'bundles', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation - - end - end - - class ParallelInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :read, as: 'read', class: Google::Apis::DataflowV1b3::ReadInstruction, decorator: Google::Apis::DataflowV1b3::ReadInstruction::Representation - - property :par_do, as: 'parDo', class: Google::Apis::DataflowV1b3::ParDoInstruction, decorator: Google::Apis::DataflowV1b3::ParDoInstruction::Representation - - property :flatten, as: 'flatten', class: Google::Apis::DataflowV1b3::FlattenInstruction, decorator: Google::Apis::DataflowV1b3::FlattenInstruction::Representation - - property :original_name, as: 'originalName' - property :system_name, as: 'systemName' - property :write, as: 'write', class: Google::Apis::DataflowV1b3::WriteInstruction, decorator: Google::Apis::DataflowV1b3::WriteInstruction::Representation - - property :partial_group_by_key, as: 'partialGroupByKey', class: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction, decorator: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction::Representation - - collection :outputs, as: 'outputs', class: Google::Apis::DataflowV1b3::InstructionOutput, decorator: Google::Apis::DataflowV1b3::InstructionOutput::Representation - - property :name, as: 'name' - end - end - - class KeyRangeDataDiskAssignment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start, as: 'start' - property :data_disk, as: 'dataDisk' - property :end, as: 'end' - end - end - - class Package - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :location, as: 'location' - property :name, as: 'name' - end - end - - class ParDoInstruction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :multi_output_infos, as: 'multiOutputInfos', class: Google::Apis::DataflowV1b3::MultiOutputInfo, decorator: Google::Apis::DataflowV1b3::MultiOutputInfo::Representation - - hash :user_fn, as: 'userFn' - property :input, as: 'input', class: Google::Apis::DataflowV1b3::InstructionInput, decorator: Google::Apis::DataflowV1b3::InstructionInput::Representation - - property :num_outputs, as: 'numOutputs' - collection :side_inputs, as: 'sideInputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation - - end - end - - class MetricUpdate - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :update_time, as: 'updateTime' - property :name, as: 'name', class: Google::Apis::DataflowV1b3::MetricStructuredName, decorator: Google::Apis::DataflowV1b3::MetricStructuredName::Representation - - property :distribution, as: 'distribution' - property :set, as: 'set' - property :internal, as: 'internal' - property :cumulative, as: 'cumulative' - property :kind, as: 'kind' - property :scalar, as: 'scalar' - property :mean_count, as: 'meanCount' - property :mean_sum, as: 'meanSum' - end - end - - class CounterStructuredName - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :origin_namespace, as: 'originNamespace' - property :origin, as: 'origin' - property :name, as: 'name' - property :execution_step_name, as: 'executionStepName' - property :component_step_name, as: 'componentStepName' - property :portion, as: 'portion' - property :original_step_name, as: 'originalStepName' - property :worker_id, as: 'workerId' - end - end - - class ApproximateProgress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :remaining_time, as: 'remainingTime' - property :position, as: 'position', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :percent_complete, as: 'percentComplete' - end - end - - class WorkerMessageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :worker_health_report_response, as: 'workerHealthReportResponse', class: Google::Apis::DataflowV1b3::WorkerHealthReportResponse, decorator: Google::Apis::DataflowV1b3::WorkerHealthReportResponse::Representation - - property :worker_metrics_response, as: 'workerMetricsResponse', class: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse::Representation - - end - end - - class TemplateMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - collection :parameters, as: 'parameters', class: Google::Apis::DataflowV1b3::ParameterMetadata, decorator: Google::Apis::DataflowV1b3::ParameterMetadata::Representation - - property :description, as: 'description' - end - end - - class WorkerMessage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :worker_message_code, as: 'workerMessageCode', class: Google::Apis::DataflowV1b3::WorkerMessageCode, decorator: Google::Apis::DataflowV1b3::WorkerMessageCode::Representation - - property :worker_metrics, as: 'workerMetrics', class: Google::Apis::DataflowV1b3::ResourceUtilizationReport, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReport::Representation - - hash :labels, as: 'labels' - property :time, as: 'time' - property :worker_health_report, as: 'workerHealthReport', class: Google::Apis::DataflowV1b3::WorkerHealthReport, decorator: Google::Apis::DataflowV1b3::WorkerHealthReport::Representation - - end - end - - class JobMetrics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric_time, as: 'metricTime' - collection :metrics, as: 'metrics', class: Google::Apis::DataflowV1b3::MetricUpdate, decorator: Google::Apis::DataflowV1b3::MetricUpdate::Representation - - end - end - - class FloatingPointList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :elements, as: 'elements' - end - end - - class CounterUpdate - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :short_id, :numeric_string => true, as: 'shortId' - property :floating_point_list, as: 'floatingPointList', class: Google::Apis::DataflowV1b3::FloatingPointList, decorator: Google::Apis::DataflowV1b3::FloatingPointList::Representation - - property :integer, as: 'integer', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - property :structured_name_and_metadata, as: 'structuredNameAndMetadata', class: Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata, decorator: Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata::Representation - - property :integer_list, as: 'integerList', class: Google::Apis::DataflowV1b3::IntegerList, decorator: Google::Apis::DataflowV1b3::IntegerList::Representation - - property :integer_mean, as: 'integerMean', class: Google::Apis::DataflowV1b3::IntegerMean, decorator: Google::Apis::DataflowV1b3::IntegerMean::Representation - - property :floating_point, as: 'floatingPoint' - property :cumulative, as: 'cumulative' - property :internal, as: 'internal' - property :floating_point_mean, as: 'floatingPointMean', class: Google::Apis::DataflowV1b3::FloatingPointMean, decorator: Google::Apis::DataflowV1b3::FloatingPointMean::Representation - - property :boolean, as: 'boolean' - property :name_and_kind, as: 'nameAndKind', class: Google::Apis::DataflowV1b3::NameAndKind, decorator: Google::Apis::DataflowV1b3::NameAndKind::Representation - - property :string_list, as: 'stringList', class: Google::Apis::DataflowV1b3::StringList, decorator: Google::Apis::DataflowV1b3::StringList::Representation - - property :distribution, as: 'distribution', class: Google::Apis::DataflowV1b3::DistributionUpdate, decorator: Google::Apis::DataflowV1b3::DistributionUpdate::Representation - - end - end - - class SourceMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :produces_sorted_keys, as: 'producesSortedKeys' - property :infinite, as: 'infinite' - property :estimated_size_bytes, :numeric_string => true, as: 'estimatedSizeBytes' - end - end - - class DistributionUpdate - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :sum, as: 'sum', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - property :max, as: 'max', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - collection :log_buckets, as: 'logBuckets', class: Google::Apis::DataflowV1b3::LogBucket, decorator: Google::Apis::DataflowV1b3::LogBucket::Representation - - property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - property :min, as: 'min', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - property :sum_of_squares, as: 'sumOfSquares' - end - end - - class WorkerHealthReportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :report_interval, as: 'reportInterval' - end - end - - class SourceFork - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :residual, as: 'residual', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation - - property :residual_source, as: 'residualSource', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation - - property :primary, as: 'primary', class: Google::Apis::DataflowV1b3::SourceSplitShard, decorator: Google::Apis::DataflowV1b3::SourceSplitShard::Representation - - property :primary_source, as: 'primarySource', class: Google::Apis::DataflowV1b3::DerivedSource, decorator: Google::Apis::DataflowV1b3::DerivedSource::Representation - - end - end - - class WorkItemStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :requested_lease_duration, as: 'requestedLeaseDuration' - property :report_index, :numeric_string => true, as: 'reportIndex' - property :stop_position, as: 'stopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :completed, as: 'completed' - property :reported_progress, as: 'reportedProgress', class: Google::Apis::DataflowV1b3::ApproximateReportedProgress, decorator: Google::Apis::DataflowV1b3::ApproximateReportedProgress::Representation - - property :source_fork, as: 'sourceFork', class: Google::Apis::DataflowV1b3::SourceFork, decorator: Google::Apis::DataflowV1b3::SourceFork::Representation - - collection :counter_updates, as: 'counterUpdates', class: Google::Apis::DataflowV1b3::CounterUpdate, decorator: Google::Apis::DataflowV1b3::CounterUpdate::Representation - - property :work_item_id, as: 'workItemId' - collection :errors, as: 'errors', class: Google::Apis::DataflowV1b3::Status, decorator: Google::Apis::DataflowV1b3::Status::Representation - - collection :metric_updates, as: 'metricUpdates', class: Google::Apis::DataflowV1b3::MetricUpdate, decorator: Google::Apis::DataflowV1b3::MetricUpdate::Representation - - property :dynamic_source_split, as: 'dynamicSourceSplit', class: Google::Apis::DataflowV1b3::DynamicSourceSplit, decorator: Google::Apis::DataflowV1b3::DynamicSourceSplit::Representation - - property :source_operation_response, as: 'sourceOperationResponse', class: Google::Apis::DataflowV1b3::SourceOperationResponse, decorator: Google::Apis::DataflowV1b3::SourceOperationResponse::Representation - - property :progress, as: 'progress', class: Google::Apis::DataflowV1b3::ApproximateProgress, decorator: Google::Apis::DataflowV1b3::ApproximateProgress::Representation - - end - end - - class ComponentSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :original_transform_or_collection, as: 'originalTransformOrCollection' - property :name, as: 'name' - property :user_name, as: 'userName' - end - end - - class WorkItemServiceState - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :suggested_stop_point, as: 'suggestedStopPoint', class: Google::Apis::DataflowV1b3::ApproximateProgress, decorator: Google::Apis::DataflowV1b3::ApproximateProgress::Representation - - property :split_request, as: 'splitRequest', class: Google::Apis::DataflowV1b3::ApproximateSplitRequest, decorator: Google::Apis::DataflowV1b3::ApproximateSplitRequest::Representation - - property :suggested_stop_position, as: 'suggestedStopPosition', class: Google::Apis::DataflowV1b3::Position, decorator: Google::Apis::DataflowV1b3::Position::Representation - - property :report_status_interval, as: 'reportStatusInterval' - hash :harness_data, as: 'harnessData' - property :lease_expire_time, as: 'leaseExpireTime' - collection :metric_short_id, as: 'metricShortId', class: Google::Apis::DataflowV1b3::MetricShortId, decorator: Google::Apis::DataflowV1b3::MetricShortId::Representation - - property :next_report_index, :numeric_string => true, as: 'nextReportIndex' - end - end - - class MetricStructuredName - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :context, as: 'context' - property :origin, as: 'origin' - property :name, as: 'name' - end - end - - class SeqMapTaskOutputInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :sink, as: 'sink', class: Google::Apis::DataflowV1b3::Sink, decorator: Google::Apis::DataflowV1b3::Sink::Representation - - property :tag, as: 'tag' - end - end - - class JobExecutionStageInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :step_name, as: 'stepName' - end - end - - class KeyRangeLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end, as: 'end' - property :deprecated_persistent_directory, as: 'deprecatedPersistentDirectory' - property :delivery_endpoint, as: 'deliveryEndpoint' - property :start, as: 'start' - property :data_disk, as: 'dataDisk' - end - end - - class SourceGetMetadataRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::DataflowV1b3::Source, decorator: Google::Apis::DataflowV1b3::Source::Representation - - end - end - - class NameAndKind - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class SeqMapTask - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::SideInputInfo, decorator: Google::Apis::DataflowV1b3::SideInputInfo::Representation - - property :stage_name, as: 'stageName' - property :system_name, as: 'systemName' - hash :user_fn, as: 'userFn' - property :name, as: 'name' - collection :output_infos, as: 'outputInfos', class: Google::Apis::DataflowV1b3::SeqMapTaskOutputInfo, decorator: Google::Apis::DataflowV1b3::SeqMapTaskOutputInfo::Representation - - end - end - - class WorkerMessageCode - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :parameters, as: 'parameters' - property :code, as: 'code' - end - end - - class CustomSourceLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :stateful, as: 'stateful' - end - end - - class MapTask - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :system_name, as: 'systemName' - property :stage_name, as: 'stageName' - collection :instructions, as: 'instructions', class: Google::Apis::DataflowV1b3::ParallelInstruction, decorator: Google::Apis::DataflowV1b3::ParallelInstruction::Representation - - end - end - - class FloatingPointMean - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :sum, as: 'sum' - property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - end - end - - class ReportWorkItemStatusResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :work_item_service_states, as: 'workItemServiceStates', class: Google::Apis::DataflowV1b3::WorkItemServiceState, decorator: Google::Apis::DataflowV1b3::WorkItemServiceState::Representation - - end - end - - class InstructionOutput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :codec, as: 'codec' - property :name, as: 'name' - property :original_name, as: 'originalName' - property :system_name, as: 'systemName' - property :only_count_key_bytes, as: 'onlyCountKeyBytes' - property :only_count_value_bytes, as: 'onlyCountValueBytes' - end - end - - class CreateJobFromTemplateRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation - - property :location, as: 'location' - hash :parameters, as: 'parameters' - property :job_name, as: 'jobName' - property :gcs_path, as: 'gcsPath' - end - end - - class IntegerMean - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - property :sum, as: 'sum', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation - - end - end - - class ListJobsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :jobs, as: 'jobs', class: Google::Apis::DataflowV1b3::Job, decorator: Google::Apis::DataflowV1b3::Job::Representation - - property :next_page_token, as: 'nextPageToken' - collection :failed_location, as: 'failedLocation', class: Google::Apis::DataflowV1b3::FailedLocation, decorator: Google::Apis::DataflowV1b3::FailedLocation::Representation - - end - end - - class ComputationTopology - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :outputs, as: 'outputs', class: Google::Apis::DataflowV1b3::StreamLocation, decorator: Google::Apis::DataflowV1b3::StreamLocation::Representation - - collection :state_families, as: 'stateFamilies', class: Google::Apis::DataflowV1b3::StateFamilyConfig, decorator: Google::Apis::DataflowV1b3::StateFamilyConfig::Representation - - property :system_stage_name, as: 'systemStageName' - collection :inputs, as: 'inputs', class: Google::Apis::DataflowV1b3::StreamLocation, decorator: Google::Apis::DataflowV1b3::StreamLocation::Representation - - property :computation_id, as: 'computationId' - collection :key_ranges, as: 'keyRanges', class: Google::Apis::DataflowV1b3::KeyRangeLocation, decorator: Google::Apis::DataflowV1b3::KeyRangeLocation::Representation - end end end diff --git a/generated/google/apis/dataflow_v1b3/service.rb b/generated/google/apis/dataflow_v1b3/service.rb index b62ee2446..7e6c40ec6 100644 --- a/generated/google/apis/dataflow_v1b3/service.rb +++ b/generated/google/apis/dataflow_v1b3/service.rb @@ -32,16 +32,16 @@ module Google # # @see https://cloud.google.com/dataflow class DataflowService < Google::Apis::Core::BaseService - # @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 - # @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://dataflow.googleapis.com/', '') @batch_path = 'batch' @@ -51,11 +51,11 @@ module Google # @param [String] project_id # The project to send the WorkerMessages to. # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -68,134 +68,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def worker_project_messages(project_id, send_worker_messages_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options) command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation command.request_object = send_worker_messages_request_object command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse 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 - - # Get the template associated with a template. - # @param [String] project_id - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param [String] view - # The view to retrieve. Defaults to METADATA_ONLY. - # @param [String] gcs_path - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param [String] location - # The location to which to direct the request. - # @param [String] quota_user - # Available 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::DataflowV1b3::GetTemplateResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::GetTemplateResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_template(project_id, view: nil, gcs_path: nil, location: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options) - command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['view'] = view unless view.nil? - command.query['gcsPath'] = gcs_path unless gcs_path.nil? - command.query['location'] = location unless location.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates a Cloud Dataflow job from a template. - # @param [String] project_id - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_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::DataflowV1b3::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_job_from_template(project_id, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options) - command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation - command.request_object = create_job_from_template_request_object - command.response_representation = Google::Apis::DataflowV1b3::Job::Representation - command.response_class = Google::Apis::DataflowV1b3::Job - 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 - - # Launch a template. - # @param [String] project_id - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object - # @param [String] location - # The location to which to direct the request. - # @param [Boolean] validate_only - # If true, the request is validated but not actually executed. - # Defaults to false. - # @param [String] gcs_path - # Required. A Cloud Storage path to the template from which to create - # the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @param [String] quota_user - # Available 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::DataflowV1b3::LaunchTemplateResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def launch_project_template(project_id, launch_template_parameters_object = nil, location: nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options) - command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation - command.request_object = launch_template_parameters_object - command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['location'] = location unless location.nil? - command.query['validateOnly'] = validate_only unless validate_only.nil? - command.query['gcsPath'] = gcs_path unless gcs_path.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -205,11 +86,11 @@ module Google # @param [String] location # The location which contains the job # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -222,7 +103,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/WorkerMessages', options) command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation command.request_object = send_worker_messages_request_object @@ -230,8 +111,8 @@ module Google command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -248,11 +129,11 @@ module Google # Required. A Cloud Storage path to the template from which to create # the job. # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -265,7 +146,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block) + def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options) command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation command.request_object = launch_template_parameters_object @@ -275,8 +156,8 @@ module Google command.params['location'] = location unless location.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['gcsPath'] = gcs_path unless gcs_path.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -285,17 +166,17 @@ module Google # Required. The ID of the Cloud Platform project that the job belongs to. # @param [String] location # The location to which to direct the request. + # @param [String] view + # The view to retrieve. Defaults to METADATA_ONLY. # @param [String] gcs_path # Required. A Cloud Storage path to the template from which to # create the job. # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param [String] view - # The view to retrieve. Defaults to METADATA_ONLY. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -308,16 +189,16 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_template(project_id, location, gcs_path: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) + def get_project_location_template(project_id, location, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options) command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? - command.query['gcsPath'] = gcs_path unless gcs_path.nil? command.query['view'] = view unless view.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['gcsPath'] = gcs_path unless gcs_path.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -327,11 +208,11 @@ module Google # @param [String] location # The location to which to direct the request. # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -344,7 +225,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options) command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation command.request_object = create_job_from_template_request_object @@ -352,89 +233,8 @@ module Google command.response_class = Google::Apis::DataflowV1b3::Job command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates the state of an existing Cloud Dataflow job. - # @param [String] project_id - # The ID of the Cloud Platform project that the job belongs to. - # @param [String] location - # The location that contains this job. - # @param [String] job_id - # The job ID. - # @param [Google::Apis::DataflowV1b3::Job] job_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::DataflowV1b3::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_location_job(project_id, location, job_id, job_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options) - command.request_representation = Google::Apis::DataflowV1b3::Job::Representation - command.request_object = job_object - command.response_representation = Google::Apis::DataflowV1b3::Job::Representation - command.response_class = Google::Apis::DataflowV1b3::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['jobId'] = job_id unless job_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 - - # Creates a Cloud Dataflow job. - # @param [String] project_id - # The ID of the Cloud Platform project that the job belongs to. - # @param [String] location - # The location that contains this job. - # @param [Google::Apis::DataflowV1b3::Job] job_object - # @param [String] replace_job_id - # Deprecated. This field is now in the Job message. - # @param [String] view - # The level of information requested in response. - # @param [String] quota_user - # Available 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::DataflowV1b3::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options) - command.request_representation = Google::Apis::DataflowV1b3::Job::Representation - command.request_object = job_object - command.response_representation = Google::Apis::DataflowV1b3::Job::Representation - command.response_class = Google::Apis::DataflowV1b3::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil? - command.query['view'] = view unless view.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -448,11 +248,11 @@ module Google # @param [String] start_time # Return only metric data that has changed since this time. # Default is to return all information about all metrics for the job. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -465,7 +265,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, quota_user: nil, fields: nil, options: nil, &block) + def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options) command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation command.response_class = Google::Apis::DataflowV1b3::JobMetrics @@ -473,47 +273,8 @@ module Google command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_id.nil? command.query['startTime'] = start_time unless start_time.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 state of the specified Cloud Dataflow job. - # @param [String] project_id - # The ID of the Cloud Platform project that the job belongs to. - # @param [String] location - # The location that contains this job. - # @param [String] job_id - # The job ID. - # @param [String] view - # The level of information requested in response. - # @param [String] quota_user - # Available 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::DataflowV1b3::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_job(project_id, location, job_id, view: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options) - command.response_representation = Google::Apis::DataflowV1b3::Job::Representation - command.response_class = Google::Apis::DataflowV1b3::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['jobId'] = job_id unless job_id.nil? - command.query['view'] = view unless view.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -533,11 +294,11 @@ module Google # and an unspecified server-defined limit. # @param [String] view # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -550,7 +311,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options) command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse @@ -560,86 +321,128 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['view'] = view unless view.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get encoded debug configuration for component. Not cacheable. + # Gets the state of the specified Cloud Dataflow job. # @param [String] project_id - # The project id. + # The ID of the Cloud Platform project that the job belongs to. # @param [String] location - # The location which contains the job specified by job_id. + # The location that contains this job. # @param [String] job_id - # The job id. - # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object + # The job ID. + # @param [String] view + # The level of information requested in 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 [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::DataflowV1b3::GetDebugConfigResponse] parsed result object + # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse] + # @return [Google::Apis::DataflowV1b3::Job] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_job_debug_config(project_id, location, job_id, get_debug_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig', options) - command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation - command.request_object = get_debug_config_request_object - command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse + def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options) + command.response_representation = Google::Apis::DataflowV1b3::Job::Representation + command.response_class = Google::Apis::DataflowV1b3::Job command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 - # Send encoded debug capture data for component. + # Updates the state of an existing Cloud Dataflow job. # @param [String] project_id - # The project id. + # The ID of the Cloud Platform project that the job belongs to. # @param [String] location - # The location which contains the job specified by job_id. + # The location that contains this job. # @param [String] job_id - # The job id. - # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object + # The job ID. + # @param [Google::Apis::DataflowV1b3::Job] job_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [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::DataflowV1b3::SendDebugCaptureResponse] parsed result object + # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] + # @return [Google::Apis::DataflowV1b3::Job] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def send_project_location_job_debug_capture(project_id, location, job_id, send_debug_capture_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture', options) - command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation - command.request_object = send_debug_capture_request_object - command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse + def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options) + command.request_representation = Google::Apis::DataflowV1b3::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::DataflowV1b3::Job::Representation + command.response_class = Google::Apis::DataflowV1b3::Job command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 Cloud Dataflow job. + # @param [String] project_id + # The ID of the Cloud Platform project that the job belongs to. + # @param [String] location + # The location that contains this job. + # @param [Google::Apis::DataflowV1b3::Job] job_object + # @param [String] replace_job_id + # Deprecated. This field is now in the Job message. + # @param [String] view + # The level of information requested in 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::DataflowV1b3::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options) + command.request_representation = Google::Apis::DataflowV1b3::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::DataflowV1b3::Job::Representation + command.response_class = Google::Apis::DataflowV1b3::Job + command.params['projectId'] = project_id unless project_id.nil? + command.params['location'] = location unless location.nil? + command.query['replaceJobId'] = replace_job_id unless replace_job_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 @@ -651,11 +454,11 @@ module Google # @param [String] job_id # Identifies the workflow job this worker belongs to. # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -668,7 +471,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options) command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation command.request_object = lease_work_item_request_object @@ -677,8 +480,8 @@ module Google command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -690,11 +493,11 @@ module Google # @param [String] job_id # The job which the WorkItem is part of. # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -707,7 +510,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options) command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation command.request_object = report_work_item_status_request_object @@ -716,8 +519,86 @@ module Google command.params['projectId'] = project_id unless project_id.nil? command.params['location'] = location unless location.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Send encoded debug capture data for component. + # @param [String] project_id + # The project id. + # @param [String] location + # The location which contains the job specified by job_id. + # @param [String] job_id + # The job id. + # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_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::DataflowV1b3::SendDebugCaptureResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def send_project_location_job_debug_capture(project_id, location, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture', options) + command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation + command.request_object = send_debug_capture_request_object + command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['location'] = location unless location.nil? + command.params['jobId'] = job_id unless job_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 + + # Get encoded debug configuration for component. Not cacheable. + # @param [String] project_id + # The project id. + # @param [String] location + # The location which contains the job specified by job_id. + # @param [String] job_id + # The job id. + # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_job_debug_config(project_id, location, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig', options) + command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation + command.request_object = get_debug_config_request_object + command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['location'] = location unless location.nil? + command.params['jobId'] = job_id unless job_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 @@ -744,11 +625,11 @@ module Google # default, or may return an arbitrarily large number of results. # @param [String] minimum_importance # Filter to only get messages with importance >= level + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -761,7 +642,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options) command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse @@ -773,65 +654,61 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Request the job status. + # Get the template associated with a template. # @param [String] project_id - # A project id. - # @param [String] job_id - # The job to get messages for. + # Required. The ID of the Cloud Platform project that the job belongs to. # @param [String] location - # The location which contains the job specified by job_id. - # @param [String] start_time - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. + # The location to which to direct the request. + # @param [String] view + # The view to retrieve. Defaults to METADATA_ONLY. + # @param [String] gcs_path + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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::DataflowV1b3::JobMetrics] parsed result object + # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DataflowV1b3::JobMetrics] + # @return [Google::Apis::DataflowV1b3::GetTemplateResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job_metrics(project_id, job_id, location: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options) - command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation - command.response_class = Google::Apis::DataflowV1b3::JobMetrics + def get_project_template(project_id, location: nil, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options) + command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse command.params['projectId'] = project_id unless project_id.nil? - command.params['jobId'] = job_id unless job_id.nil? command.query['location'] = location unless location.nil? - command.query['startTime'] = start_time unless start_time.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['view'] = view unless view.nil? + command.query['gcsPath'] = gcs_path unless gcs_path.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 state of the specified Cloud Dataflow job. + # Creates a Cloud Dataflow job from a template. # @param [String] project_id - # The ID of the Cloud Platform project that the job belongs to. - # @param [String] job_id - # The job ID. - # @param [String] location - # The location that contains this job. - # @param [String] view - # The level of information requested in response. + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -844,16 +721,60 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_job(project_id, job_id, location: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options) + def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options) + command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation + command.request_object = create_job_from_template_request_object command.response_representation = Google::Apis::DataflowV1b3::Job::Representation command.response_class = Google::Apis::DataflowV1b3::Job command.params['projectId'] = project_id unless project_id.nil? - command.params['jobId'] = job_id unless job_id.nil? - command.query['location'] = location unless location.nil? - command.query['view'] = view unless view.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Launch a template. + # @param [String] project_id + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object + # @param [String] location + # The location to which to direct the request. + # @param [Boolean] validate_only + # If true, the request is validated but not actually executed. + # Defaults to false. + # @param [String] gcs_path + # Required. A Cloud Storage path to the template from which to create + # the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::DataflowV1b3::LaunchTemplateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def launch_project_template(project_id, launch_template_parameters_object = nil, location: nil, validate_only: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options) + command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation + command.request_object = launch_template_parameters_object + command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['location'] = location unless location.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['gcsPath'] = gcs_path unless gcs_path.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -873,11 +794,11 @@ module Google # and an unspecified server-defined limit. # @param [String] view # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -890,7 +811,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options) command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse @@ -900,24 +821,25 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['view'] = view unless view.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 state of an existing Cloud Dataflow job. + # Gets the state of the specified Cloud Dataflow job. # @param [String] project_id # The ID of the Cloud Platform project that the job belongs to. # @param [String] job_id # The job ID. - # @param [Google::Apis::DataflowV1b3::Job] job_object + # @param [String] view + # The level of information requested in response. # @param [String] location # The location that contains this job. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -930,7 +852,45 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_job(project_id, job_id, job_object = nil, location: nil, quota_user: nil, fields: nil, options: nil, &block) + def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options) + command.response_representation = Google::Apis::DataflowV1b3::Job::Representation + command.response_class = Google::Apis::DataflowV1b3::Job + command.params['projectId'] = project_id unless project_id.nil? + command.params['jobId'] = job_id unless job_id.nil? + command.query['view'] = view unless view.nil? + command.query['location'] = location unless location.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 state of an existing Cloud Dataflow job. + # @param [String] project_id + # The ID of the Cloud Platform project that the job belongs to. + # @param [String] job_id + # The job ID. + # @param [Google::Apis::DataflowV1b3::Job] job_object + # @param [String] location + # The location that contains this job. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::DataflowV1b3::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options) command.request_representation = Google::Apis::DataflowV1b3::Job::Representation command.request_object = job_object @@ -939,8 +899,8 @@ module Google command.params['projectId'] = project_id unless project_id.nil? command.params['jobId'] = job_id unless job_id.nil? command.query['location'] = location unless location.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -954,11 +914,11 @@ module Google # The location that contains this job. # @param [String] replace_job_id # Deprecated. This field is now in the Job message. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -971,7 +931,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, quota_user: nil, fields: nil, options: nil, &block) + def create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options) command.request_representation = Google::Apis::DataflowV1b3::Job::Representation command.request_object = job_object @@ -981,80 +941,48 @@ module Google command.query['view'] = view unless view.nil? command.query['location'] = location unless location.nil? command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get encoded debug configuration for component. Not cacheable. + # Request the job status. # @param [String] project_id - # The project id. + # A project id. # @param [String] job_id - # The job id. - # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object + # The job to get messages for. + # @param [String] location + # The location which contains the job specified by job_id. + # @param [String] start_time + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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::DataflowV1b3::GetDebugConfigResponse] parsed result object + # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse] + # @return [Google::Apis::DataflowV1b3::JobMetrics] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options) - command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation - command.request_object = get_debug_config_request_object - command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse + def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options) + command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation + command.response_class = Google::Apis::DataflowV1b3::JobMetrics command.params['projectId'] = project_id unless project_id.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['location'] = location unless location.nil? + command.query['startTime'] = start_time unless start_time.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Send encoded debug capture data for component. - # @param [String] project_id - # The project id. - # @param [String] job_id - # The job id. - # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_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::DataflowV1b3::SendDebugCaptureResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options) - command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation - command.request_object = send_debug_capture_request_object - command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['jobId'] = job_id unless job_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 @@ -1064,11 +992,11 @@ module Google # @param [String] job_id # The job which the WorkItem is part of. # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1081,7 +1009,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options) command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation command.request_object = report_work_item_status_request_object @@ -1089,8 +1017,8 @@ module Google command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse command.params['projectId'] = project_id unless project_id.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -1100,11 +1028,11 @@ module Google # @param [String] job_id # Identifies the workflow job this worker belongs to. # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1117,7 +1045,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options) command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation command.request_object = lease_work_item_request_object @@ -1125,8 +1053,80 @@ module Google command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse command.params['projectId'] = project_id unless project_id.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Send encoded debug capture data for component. + # @param [String] project_id + # The project id. + # @param [String] job_id + # The job id. + # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_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::DataflowV1b3::SendDebugCaptureResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options) + command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation + command.request_object = send_debug_capture_request_object + command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['jobId'] = job_id unless job_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 + + # Get encoded debug configuration for component. Not cacheable. + # @param [String] project_id + # The project id. + # @param [String] job_id + # The job id. + # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options) + command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation + command.request_object = get_debug_config_request_object + command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation + command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['jobId'] = job_id unless job_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 @@ -1135,6 +1135,11 @@ module Google # A project id. # @param [String] job_id # The job to get messages about. + # @param [String] location + # The location which contains the job specified by job_id. + # @param [String] end_time + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). # @param [String] page_token # If supplied, this should be the value of next_page_token returned # by an earlier call. This will cause the next page of results to @@ -1148,16 +1153,11 @@ module Google # default, or may return an arbitrarily large number of results. # @param [String] minimum_importance # Filter to only get messages with importance >= level - # @param [String] location - # The location which contains the job specified by job_id. - # @param [String] end_time - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -1170,28 +1170,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_job_messages(project_id, job_id, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, location: nil, end_time: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_project_job_messages(project_id, job_id, location: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options) command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse command.params['projectId'] = project_id unless project_id.nil? command.params['jobId'] = job_id unless job_id.nil? + command.query['location'] = location unless location.nil? + command.query['endTime'] = end_time unless end_time.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['startTime'] = start_time unless start_time.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil? - command.query['location'] = location unless location.nil? - command.query['endTime'] = end_time unless end_time.nil? - command.query['quotaUser'] = quota_user unless quota_user.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['quotaUser'] = quota_user unless quota_user.nil? command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? end end end diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 20b2bb334..618d387ab 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20170606' + REVISION = '20170707' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 86480d4f6..9336d5655 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -22,18 +22,81 @@ module Google module Apis module DataprocV1 - # Job scheduling options.Beta Feature: These options are available for testing - # purposes only. They may be changed before final release. - class JobScheduling + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation include Google::Apis::Core::Hashable - # Optional. Maximum number of times per hour a driver may be restarted as a - # result of driver terminating with non-zero code before job is reported failed. - # A job may be reported as thrashing if driver exits with non-zero code 4 times - # within 10 minute window.Maximum value is 10. - # Corresponds to the JSON property `maxFailuresPerHour` - # @return [Fixnum] - attr_accessor :max_failures_per_hour + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the name should + # have the format of operations/some/unique/name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # 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 needsOverviewThe 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 that can be used for common error + # conditions.Language mappingThe 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 usesThe 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. + # 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::DataprocV1::Status] + attr_accessor :error + + # 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 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) @@ -41,7 +104,126 @@ module Google # Update properties of this object def update!(**args) - @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour) + @name = args[:name] if args.key?(:name) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @response = args[:response] if args.key?(:response) + end + end + + # Encapsulates the full scoping used to reference a job. + class JobReference + include Google::Apis::Core::Hashable + + # Optional. The job ID, which must be unique within the project. The job ID is + # generated by the server upon job submission or provided by the user as a means + # to perform retries without creating duplicate jobs. The ID must contain only + # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The + # maximum length is 100 characters. + # Corresponds to the JSON property `jobId` + # @return [String] + attr_accessor :job_id + + # Required. The ID of the Google Cloud Platform project that the job belongs to. + # 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) + @job_id = args[:job_id] if args.key?(:job_id) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # A request to submit a job. + class SubmitJobRequest + include Google::Apis::Core::Hashable + + # A Cloud Dataproc job resource. + # Corresponds to the JSON property `job` + # @return [Google::Apis::DataprocV1::Job] + attr_accessor :job + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @job = args[:job] if args.key?(:job) + 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 needsOverviewThe 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 that can be used for common error + # conditions.Language mappingThe 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 usesThe 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. + # 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 @@ -55,9 +237,12 @@ module Google # @return [Google::Apis::DataprocV1::DiskConfig] attr_accessor :disk_config - # Required. The Google Compute Engine machine type used for cluster instances. - # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us- - # east1-a/machineTypes/n1-standard-2. + # Optional. The Google Compute Engine machine type used for cluster instances.A + # full URL, partial URI, or short name are valid. Examples: + # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ + # machineTypes/n1-standard-2 + # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 + # n1-standard-2 # Corresponds to the JSON property `machineTypeUri` # @return [String] attr_accessor :machine_type_uri @@ -93,7 +278,7 @@ module Google # @return [Array] attr_accessor :accelerators - # Required. The number of VM instances in the instance group. For master + # Optional. The number of VM instances in the instance group. For master # instance groups, must be set to 1. # Corresponds to the JSON property `numInstances` # @return [Fixnum] @@ -116,21 +301,18 @@ module Google end end - # A list of jobs in a project. - class ListJobsResponse + # Job scheduling options.Beta Feature: These options are available for testing + # purposes only. They may be changed before final release. + class JobScheduling include Google::Apis::Core::Hashable - # Optional. This token is included in the response if there are more results to - # fetch. To fetch additional results, provide this value as the page_token in a - # subsequent ListJobsRequest. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Output-only. Jobs list. - # Corresponds to the JSON property `jobs` - # @return [Array] - attr_accessor :jobs + # Optional. Maximum number of times per hour a driver may be restarted as a + # result of driver terminating with non-zero code before job is reported failed. + # A job may be reported as thrashing if driver exits with non-zero code 4 times + # within 10 minute window.Maximum value is 10. + # Corresponds to the JSON property `maxFailuresPerHour` + # @return [Fixnum] + attr_accessor :max_failures_per_hour def initialize(**args) update!(**args) @@ -138,8 +320,7 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @jobs = args[:jobs] if args.key?(:jobs) + @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour) end end @@ -172,6 +353,33 @@ module Google end end + # A list of jobs in a project. + class ListJobsResponse + include Google::Apis::Core::Hashable + + # Output-only. Jobs list. + # Corresponds to the JSON property `jobs` + # @return [Array] + attr_accessor :jobs + + # Optional. This token is included in the response if there are more results to + # fetch. To fetch additional results, provide this value as the page_token in a + # subsequent ListJobsRequest. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @jobs = args[:jobs] if args.key?(:jobs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # A request to cancel a job. class CancelJobRequest include Google::Apis::Core::Hashable @@ -190,16 +398,16 @@ module Google class SparkSqlJob include Google::Apis::Core::Hashable - # A list of queries to run on a cluster. - # Corresponds to the JSON property `queryList` - # @return [Google::Apis::DataprocV1::QueryList] - attr_accessor :query_list - # The HCFS URI of the script that contains SQL queries. # Corresponds to the JSON property `queryFileUri` # @return [String] attr_accessor :query_file_uri + # A list of queries to run on a cluster. + # Corresponds to the JSON property `queryList` + # @return [Google::Apis::DataprocV1::QueryList] + attr_accessor :query_list + # Optional. Mapping of query variable names to values (equivalent to the Spark # SQL command: SET name="value";). # Corresponds to the JSON property `scriptVariables` @@ -229,8 +437,8 @@ module Google # Update properties of this object def update!(**args) - @query_list = args[:query_list] if args.key?(:query_list) @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) + @query_list = args[:query_list] if args.key?(:query_list) @script_variables = args[:script_variables] if args.key?(:script_variables) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @logging_config = args[:logging_config] if args.key?(:logging_config) @@ -252,11 +460,6 @@ module Google # @return [Hash] attr_accessor :labels - # The status of a cluster and its instances. - # Corresponds to the JSON property `status` - # @return [Google::Apis::DataprocV1::ClusterStatus] - attr_accessor :status - # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: # This report is available for testing purposes only. It may be changed before # final release. @@ -264,6 +467,11 @@ module Google # @return [Google::Apis::DataprocV1::ClusterMetrics] attr_accessor :metrics + # The status of a cluster and its instances. + # Corresponds to the JSON property `status` + # @return [Google::Apis::DataprocV1::ClusterStatus] + attr_accessor :status + # Output-only. The previous cluster status. # Corresponds to the JSON property `statusHistory` # @return [Array] @@ -274,18 +482,18 @@ module Google # @return [Google::Apis::DataprocV1::ClusterConfig] attr_accessor :config - # Required. The cluster name. Cluster names within a project must be unique. - # Names of deleted clusters can be reused. - # Corresponds to the JSON property `clusterName` - # @return [String] - attr_accessor :cluster_name - # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc # generates this value when it creates the cluster. # Corresponds to the JSON property `clusterUuid` # @return [String] attr_accessor :cluster_uuid + # Required. The cluster name. Cluster names within a project must be unique. + # Names of deleted clusters can be reused. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + # Required. The Google Cloud Platform project ID that the cluster belongs to. # Corresponds to the JSON property `projectId` # @return [String] @@ -298,12 +506,12 @@ module Google # Update properties of this object def update!(**args) @labels = args[:labels] if args.key?(:labels) - @status = args[:status] if args.key?(:status) @metrics = args[:metrics] if args.key?(:metrics) + @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) @config = args[:config] if args.key?(:config) - @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @project_id = args[:project_id] if args.key?(:project_id) end end @@ -312,24 +520,24 @@ module Google 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 + # 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) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @operations = args[:operations] if args.key?(:operations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -440,6 +648,24 @@ module Google class PigJob include Google::Apis::Core::Hashable + # Optional. Whether to continue executing queries if a query fails. The default + # value is false. Setting to true can be useful when executing independent + # parallel queries. + # Corresponds to the JSON property `continueOnFailure` + # @return [Boolean] + attr_accessor :continue_on_failure + alias_method :continue_on_failure?, :continue_on_failure + + # A list of queries to run on a cluster. + # Corresponds to the JSON property `queryList` + # @return [Google::Apis::DataprocV1::QueryList] + attr_accessor :query_list + + # The HCFS URI of the script that contains the Pig queries. + # Corresponds to the JSON property `queryFileUri` + # @return [String] + attr_accessor :query_file_uri + # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. # Corresponds to the JSON property `jarFileUris` @@ -465,37 +691,19 @@ module Google # @return [Hash] attr_accessor :properties - # Optional. Whether to continue executing queries if a query fails. The default - # value is false. Setting to true can be useful when executing independent - # parallel queries. - # Corresponds to the JSON property `continueOnFailure` - # @return [Boolean] - attr_accessor :continue_on_failure - alias_method :continue_on_failure?, :continue_on_failure - - # The HCFS URI of the script that contains the Pig queries. - # Corresponds to the JSON property `queryFileUri` - # @return [String] - attr_accessor :query_file_uri - - # A list of queries to run on a cluster. - # Corresponds to the JSON property `queryList` - # @return [Google::Apis::DataprocV1::QueryList] - attr_accessor :query_list - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure) + @query_list = args[:query_list] if args.key?(:query_list) + @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @script_variables = args[:script_variables] if args.key?(:script_variables) @logging_config = args[:logging_config] if args.key?(:logging_config) @properties = args[:properties] if args.key?(:properties) - @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure) - @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) - @query_list = args[:query_list] if args.key?(:query_list) end end @@ -530,6 +738,44 @@ module Google class Job include Google::Apis::Core::Hashable + # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) + # queries on YARN. + # Corresponds to the JSON property `hiveJob` + # @return [Google::Apis::DataprocV1::HiveJob] + attr_accessor :hive_job + + # Optional. The labels to associate with this job. Label keys must contain 1 to + # 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035. + # txt). Label values may be empty, but, if present, must contain 1 to 63 + # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt) + # . No more than 32 labels can be associated with a job. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Output-only. A URI pointing to the location of the stdout of the job's driver + # program. + # Corresponds to the JSON property `driverOutputResourceUri` + # @return [String] + attr_accessor :driver_output_resource_uri + + # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ + # ) queries. + # Corresponds to the JSON property `sparkSqlJob` + # @return [Google::Apis::DataprocV1::SparkSqlJob] + attr_accessor :spark_sql_job + + # Output-only. The previous job status. + # Corresponds to the JSON property `statusHistory` + # @return [Array] + attr_accessor :status_history + + # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) + # applications on YARN. + # Corresponds to the JSON property `sparkJob` + # @return [Google::Apis::DataprocV1::SparkJob] + attr_accessor :spark_job + # Output-only. The collection of YARN applications spun up by this job.Beta # Feature: This report is available for testing purposes only. It may be changed # before final release. @@ -585,50 +831,18 @@ module Google # @return [Google::Apis::DataprocV1::PigJob] attr_accessor :pig_job - # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) - # queries on YARN. - # Corresponds to the JSON property `hiveJob` - # @return [Google::Apis::DataprocV1::HiveJob] - attr_accessor :hive_job - - # Optional. The labels to associate with this job. Label keys must contain 1 to - # 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035. - # txt). Label values may be empty, but, if present, must contain 1 to 63 - # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt) - # . No more than 32 labels can be associated with a job. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # Output-only. A URI pointing to the location of the stdout of the job's driver - # program. - # Corresponds to the JSON property `driverOutputResourceUri` - # @return [String] - attr_accessor :driver_output_resource_uri - - # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ - # ) queries. - # Corresponds to the JSON property `sparkSqlJob` - # @return [Google::Apis::DataprocV1::SparkSqlJob] - attr_accessor :spark_sql_job - - # Output-only. The previous job status. - # Corresponds to the JSON property `statusHistory` - # @return [Array] - attr_accessor :status_history - - # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - # applications on YARN. - # Corresponds to the JSON property `sparkJob` - # @return [Google::Apis::DataprocV1::SparkJob] - attr_accessor :spark_job - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @hive_job = args[:hive_job] if args.key?(:hive_job) + @labels = args[:labels] if args.key?(:labels) + @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri) + @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) + @status_history = args[:status_history] if args.key?(:status_history) + @spark_job = args[:spark_job] if args.key?(:spark_job) @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications) @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job) @reference = args[:reference] if args.key?(:reference) @@ -638,12 +852,6 @@ module Google @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri) @scheduling = args[:scheduling] if args.key?(:scheduling) @pig_job = args[:pig_job] if args.key?(:pig_job) - @hive_job = args[:hive_job] if args.key?(:hive_job) - @labels = args[:labels] if args.key?(:labels) - @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri) - @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) - @status_history = args[:status_history] if args.key?(:status_history) - @spark_job = args[:spark_job] if args.key?(:spark_job) end end @@ -652,19 +860,6 @@ module Google class SparkJob include Google::Apis::Core::Hashable - # Optional. The arguments to pass to the driver. Do not include arguments, such - # as --conf, that can be set as job properties, since a collision may occur that - # causes an incorrect job submission. - # Corresponds to the JSON property `args` - # @return [Array] - attr_accessor :args - - # Optional. HCFS URIs of files to be copied to the working directory of Spark - # drivers and distributed tasks. Useful for naively parallel tasks. - # Corresponds to the JSON property `fileUris` - # @return [Array] - attr_accessor :file_uris - # The name of the driver's main class. The jar file that contains the class must # be in the default CLASSPATH or specified in jar_file_uris. # Corresponds to the JSON property `mainClass` @@ -702,20 +897,33 @@ module Google # @return [Hash] attr_accessor :properties + # Optional. The arguments to pass to the driver. Do not include arguments, such + # as --conf, that can be set as job properties, since a collision may occur that + # causes an incorrect job submission. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # Optional. HCFS URIs of files to be copied to the working directory of Spark + # drivers and distributed tasks. Useful for naively parallel tasks. + # Corresponds to the JSON property `fileUris` + # @return [Array] + attr_accessor :file_uris + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @args = args[:args] if args.key?(:args) - @file_uris = args[:file_uris] if args.key?(:file_uris) @main_class = args[:main_class] if args.key?(:main_class) @archive_uris = args[:archive_uris] if args.key?(:archive_uris) @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @logging_config = args[:logging_config] if args.key?(:logging_config) @properties = args[:properties] if args.key?(:properties) + @args = args[:args] if args.key?(:args) + @file_uris = args[:file_uris] if args.key?(:file_uris) end end @@ -723,17 +931,6 @@ module Google class JobStatus include Google::Apis::Core::Hashable - # Output-only. Additional state information, which includes status reported by - # the agent. - # Corresponds to the JSON property `substate` - # @return [String] - attr_accessor :substate - - # Output-only. The time when this state was entered. - # Corresponds to the JSON property `stateStartTime` - # @return [String] - attr_accessor :state_start_time - # Output-only. Optional job state details, such as an error description if the # state is ERROR. # Corresponds to the JSON property `details` @@ -745,16 +942,27 @@ module Google # @return [String] attr_accessor :state + # Output-only. Additional state information, which includes status reported by + # the agent. + # Corresponds to the JSON property `substate` + # @return [String] + attr_accessor :substate + + # Output-only. The time when 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) - @substate = args[:substate] if args.key?(:substate) - @state_start_time = args[:state_start_time] if args.key?(:state_start_time) @details = args[:details] if args.key?(:details) @state = args[:state] if args.key?(:state) + @substate = args[:substate] if args.key?(:substate) + @state_start_time = args[:state_start_time] if args.key?(:state_start_time) end end @@ -828,14 +1036,6 @@ module Google class HadoopJob include Google::Apis::Core::Hashable - # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo- - # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test- - # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop- - # mapreduce-examples.jar' - # Corresponds to the JSON property `mainJarFileUri` - # @return [String] - attr_accessor :main_jar_file_uri - # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and # tasks. # Corresponds to the JSON property `jarFileUris` @@ -882,13 +1082,20 @@ module Google # @return [Array] attr_accessor :archive_uris + # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo- + # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test- + # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop- + # mapreduce-examples.jar' + # Corresponds to the JSON property `mainJarFileUri` + # @return [String] + attr_accessor :main_jar_file_uri + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @logging_config = args[:logging_config] if args.key?(:logging_config) @properties = args[:properties] if args.key?(:properties) @@ -896,6 +1103,7 @@ module Google @file_uris = args[:file_uris] if args.key?(:file_uris) @main_class = args[:main_class] if args.key?(:main_class) @archive_uris = args[:archive_uris] if args.key?(:archive_uris) + @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri) end end @@ -937,6 +1145,16 @@ module Google class YarnApplication include Google::Apis::Core::Hashable + # Required. The application state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Required. The application name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or # TimelineServer that provides application-specific information. The URL uses # the internal hostname, and requires a proxy server for resolution and, @@ -950,26 +1168,16 @@ module Google # @return [Float] attr_accessor :progress - # Required. The application state. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Required. The application 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) - @tracking_url = args[:tracking_url] if args.key?(:tracking_url) - @progress = args[:progress] if args.key?(:progress) @state = args[:state] if args.key?(:state) @name = args[:name] if args.key?(:name) + @tracking_url = args[:tracking_url] if args.key?(:tracking_url) + @progress = args[:progress] if args.key?(:progress) end end @@ -990,11 +1198,6 @@ module Google class DiskConfig include Google::Apis::Core::Hashable - # Optional. Size in GB of the boot disk (default is 500GB). - # Corresponds to the JSON property `bootDiskSizeGb` - # @return [Fixnum] - attr_accessor :boot_disk_size_gb - # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop. # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are @@ -1004,14 +1207,19 @@ module Google # @return [Fixnum] attr_accessor :num_local_ssds + # Optional. Size in GB of the boot disk (default is 500GB). + # Corresponds to the JSON property `bootDiskSizeGb` + # @return [Fixnum] + attr_accessor :boot_disk_size_gb + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds) + @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) end end @@ -1019,11 +1227,6 @@ module Google class ClusterOperationMetadata include Google::Apis::Core::Hashable - # Output-only. Labels associated with the operation - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - # The status of the operation. # Corresponds to the JSON property `status` # @return [Google::Apis::DataprocV1::ClusterOperationStatus] @@ -1059,13 +1262,17 @@ module Google # @return [Array] attr_accessor :warnings + # Output-only. Labels associated with the operation + # 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) - @labels = args[:labels] if args.key?(:labels) @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @@ -1073,6 +1280,7 @@ module Google @operation_type = args[:operation_type] if args.key?(:operation_type) @description = args[:description] if args.key?(:description) @warnings = args[:warnings] if args.key?(:warnings) + @labels = args[:labels] if args.key?(:labels) end end @@ -1081,18 +1289,18 @@ module Google class HiveJob include Google::Apis::Core::Hashable - # Optional. Mapping of query variable names to values (equivalent to the Hive - # command: SET name="value";). - # Corresponds to the JSON property `scriptVariables` - # @return [Hash] - attr_accessor :script_variables - # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server # and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. # Corresponds to the JSON property `jarFileUris` # @return [Array] attr_accessor :jar_file_uris + # Optional. Mapping of query variable names to values (equivalent to the Hive + # command: SET name="value";). + # Corresponds to the JSON property `scriptVariables` + # @return [Hash] + attr_accessor :script_variables + # Optional. A mapping of property names and values, used to configure Hive. # Properties that conflict with values set by the Cloud Dataproc API may be # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/ @@ -1125,8 +1333,8 @@ module Google # Update properties of this object def update!(**args) - @script_variables = args[:script_variables] if args.key?(:script_variables) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) + @script_variables = args[:script_variables] if args.key?(:script_variables) @properties = args[:properties] if args.key?(:properties) @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure) @query_list = args[:query_list] if args.key?(:query_list) @@ -1177,6 +1385,18 @@ module Google class ClusterConfig include Google::Apis::Core::Hashable + # Optional. The config settings for Google Compute Engine resources in an + # instance group, such as a master or worker group. + # Corresponds to the JSON property `masterConfig` + # @return [Google::Apis::DataprocV1::InstanceGroupConfig] + attr_accessor :master_config + + # Optional. The config settings for Google Compute Engine resources in an + # instance group, such as a master or worker group. + # Corresponds to the JSON property `secondaryWorkerConfig` + # @return [Google::Apis::DataprocV1::InstanceGroupConfig] + attr_accessor :secondary_worker_config + # Optional. Commands to execute on each node after config is completed. By # default, executables are run on master and all worker nodes. You can test a # node's role metadata to run an executable on a master or worker node, as shown @@ -1219,31 +1439,19 @@ module Google # @return [Google::Apis::DataprocV1::SoftwareConfig] attr_accessor :software_config - # Optional. The config settings for Google Compute Engine resources in an - # instance group, such as a master or worker group. - # Corresponds to the JSON property `masterConfig` - # @return [Google::Apis::DataprocV1::InstanceGroupConfig] - attr_accessor :master_config - - # Optional. The config settings for Google Compute Engine resources in an - # instance group, such as a master or worker group. - # Corresponds to the JSON property `secondaryWorkerConfig` - # @return [Google::Apis::DataprocV1::InstanceGroupConfig] - attr_accessor :secondary_worker_config - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @master_config = args[:master_config] if args.key?(:master_config) + @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions) @config_bucket = args[:config_bucket] if args.key?(:config_bucket) @worker_config = args[:worker_config] if args.key?(:worker_config) @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config) @software_config = args[:software_config] if args.key?(:software_config) - @master_config = args[:master_config] if args.key?(:master_config) - @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) end end @@ -1373,8 +1581,12 @@ module Google attr_accessor :service_account # Optional. The Google Compute Engine subnetwork to be used for machine - # communications. Cannot be specified with network_uri. Example: https://www. - # googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0. + # communications. Cannot be specified with network_uri.A full URL, partial URI, + # or short name are valid. Examples: + # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/ + # sub0 + # projects/[project_id]/regions/us-east1/sub0 + # sub0 # Corresponds to the JSON property `subnetworkUri` # @return [String] attr_accessor :subnetwork_uri @@ -1383,15 +1595,24 @@ module Google # communications. Cannot be specified with subnetwork_uri. If neither # network_uri nor subnetwork_uri is specified, the "default" network of the # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using - # Subnetworks for more information). Example: https://www.googleapis.com/compute/ - # v1/projects/[project_id]/regions/global/default. + # Subnetworks for more information).A full URL, partial URI, or short name are + # valid. Examples: + # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/ + # default + # projects/[project_id]/regions/global/default + # default # Corresponds to the JSON property `networkUri` # @return [String] attr_accessor :network_uri - # Required. The zone where the Google Compute Engine cluster will be located. - # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[ - # zone]. + # Optional. The zone where the Google Compute Engine cluster will be located. On + # a create request, it is required in the "global" region. If omitted in a non- + # global Cloud Dataproc region, the service will pick a zone in the + # corresponding GCE region. On a get request, zone will always be present.A full + # URL, partial URI, or short name are valid. Examples: + # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] + # projects/[project_id]/zones/[zone] + # us-central1-f # Corresponds to the JSON property `zoneUri` # @return [String] attr_accessor :zone_uri @@ -1419,24 +1640,24 @@ module Google class ClusterMetrics include Google::Apis::Core::Hashable - # The YARN metrics. - # Corresponds to the JSON property `yarnMetrics` - # @return [Hash] - attr_accessor :yarn_metrics - # The HDFS metrics. # Corresponds to the JSON property `hdfsMetrics` # @return [Hash] attr_accessor :hdfs_metrics + # The YARN metrics. + # Corresponds to the JSON property `yarnMetrics` + # @return [Hash] + attr_accessor :yarn_metrics + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics) @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics) + @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics) end end @@ -1445,26 +1666,29 @@ module Google class AcceleratorConfig include Google::Apis::Core::Hashable - # Full or partial URI of the accelerator type resource to expose to this - # instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/ - # beta/acceleratorTypes) - # Corresponds to the JSON property `acceleratorTypeUri` - # @return [String] - attr_accessor :accelerator_type_uri - # The number of the accelerator cards of this type exposed to this instance. # Corresponds to the JSON property `acceleratorCount` # @return [Fixnum] attr_accessor :accelerator_count + # Full URL, partial URI, or short name of the accelerator type resource to + # expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/ + # docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/ + # compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia- + # tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia- + # tesla-k80 * nvidia-tesla-k80 + # Corresponds to the JSON property `acceleratorTypeUri` + # @return [String] + attr_accessor :accelerator_type_uri + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) + @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri) end end @@ -1488,211 +1712,6 @@ module Google @driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels) 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 - - # 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 - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the name should - # have the format of operations/some/unique/name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # 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 needsOverviewThe 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 that can be used for common error - # conditions.Language mappingThe 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 usesThe 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. - # 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::DataprocV1::Status] - attr_accessor :error - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @response = args[:response] if args.key?(:response) - @name = args[:name] if args.key?(:name) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - end - end - - # Encapsulates the full scoping used to reference a job. - class JobReference - include Google::Apis::Core::Hashable - - # Optional. The job ID, which must be unique within the project. The job ID is - # generated by the server upon job submission or provided by the user as a means - # to perform retries without creating duplicate jobs. The ID must contain only - # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The - # maximum length is 100 characters. - # Corresponds to the JSON property `jobId` - # @return [String] - attr_accessor :job_id - - # Required. The ID of the Google Cloud Platform project that the job belongs to. - # 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) - @job_id = args[:job_id] if args.key?(:job_id) - @project_id = args[:project_id] if args.key?(:project_id) - end - end - - # A request to submit a job. - class SubmitJobRequest - include Google::Apis::Core::Hashable - - # A Cloud Dataproc job resource. - # Corresponds to the JSON property `job` - # @return [Google::Apis::DataprocV1::Job] - attr_accessor :job - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @job = args[:job] if args.key?(:job) - 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 needsOverviewThe 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 that can be used for common error - # conditions.Language mappingThe 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 usesThe 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. - # 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 - - # 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @details = args[:details] if args.key?(:details) - @code = args[:code] if args.key?(:code) - @message = args[:message] if args.key?(:message) - end - end end end end diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 4da4a8b2f..b059cf05c 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -22,7 +22,25 @@ module Google module Apis module DataprocV1 - class JobScheduling + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class JobReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SubmitJobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -34,7 +52,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListJobsResponse + class JobScheduling class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -46,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CancelJobRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -221,33 +245,39 @@ module Google end class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation - include Google::Apis::Core::JsonObjectSupport + hash :metadata, as: 'metadata' + property :done, as: 'done' + hash :response, as: 'response' + end end class JobReference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :job_id, as: 'jobId' + property :project_id, as: 'projectId' + end end class SubmitJobRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class JobScheduling # @private class Representation < Google::Apis::Core::JsonRepresentation - property :max_failures_per_hour, as: 'maxFailuresPerHour' + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' end end @@ -268,12 +298,10 @@ module Google end end - class ListJobsResponse + class JobScheduling # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation - + property :max_failures_per_hour, as: 'maxFailuresPerHour' end end @@ -285,6 +313,15 @@ module Google end end + class ListJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class CancelJobRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -294,9 +331,9 @@ module Google class SparkSqlJob # @private class Representation < Google::Apis::Core::JsonRepresentation + property :query_file_uri, as: 'queryFileUri' property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation - property :query_file_uri, as: 'queryFileUri' hash :script_variables, as: 'scriptVariables' collection :jar_file_uris, as: 'jarFileUris' property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation @@ -309,16 +346,16 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :labels, as: 'labels' - property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation - property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation + property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation + collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation - property :cluster_name, as: 'clusterName' property :cluster_uuid, as: 'clusterUuid' + property :cluster_name, as: 'clusterName' property :project_id, as: 'projectId' end end @@ -326,9 +363,9 @@ module Google class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation + property :next_page_token, as: 'nextPageToken' end end @@ -361,15 +398,15 @@ module Google class PigJob # @private class Representation < Google::Apis::Core::JsonRepresentation + property :continue_on_failure, as: 'continueOnFailure' + property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation + + property :query_file_uri, as: 'queryFileUri' collection :jar_file_uris, as: 'jarFileUris' hash :script_variables, as: 'scriptVariables' property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation hash :properties, as: 'properties' - property :continue_on_failure, as: 'continueOnFailure' - property :query_file_uri, as: 'queryFileUri' - property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation - end end @@ -385,6 +422,16 @@ module Google class Job # @private class Representation < Google::Apis::Core::JsonRepresentation + property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation + + hash :labels, as: 'labels' + property :driver_output_resource_uri, as: 'driverOutputResourceUri' + property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation + + collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation + + property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation + collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation @@ -402,24 +449,12 @@ module Google property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation - property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation - - hash :labels, as: 'labels' - property :driver_output_resource_uri, as: 'driverOutputResourceUri' - property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation - - collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation - - property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation - end end class SparkJob # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :args, as: 'args' - collection :file_uris, as: 'fileUris' property :main_class, as: 'mainClass' collection :archive_uris, as: 'archiveUris' property :main_jar_file_uri, as: 'mainJarFileUri' @@ -427,16 +462,18 @@ module Google property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation hash :properties, as: 'properties' + collection :args, as: 'args' + collection :file_uris, as: 'fileUris' end end class JobStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - property :substate, as: 'substate' - property :state_start_time, as: 'stateStartTime' property :details, as: 'details' property :state, as: 'state' + property :substate, as: 'substate' + property :state_start_time, as: 'stateStartTime' end end @@ -461,7 +498,6 @@ module Google class HadoopJob # @private class Representation < Google::Apis::Core::JsonRepresentation - property :main_jar_file_uri, as: 'mainJarFileUri' collection :jar_file_uris, as: 'jarFileUris' property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation @@ -470,6 +506,7 @@ module Google collection :file_uris, as: 'fileUris' property :main_class, as: 'mainClass' collection :archive_uris, as: 'archiveUris' + property :main_jar_file_uri, as: 'mainJarFileUri' end end @@ -483,10 +520,10 @@ module Google class YarnApplication # @private class Representation < Google::Apis::Core::JsonRepresentation - property :tracking_url, as: 'trackingUrl' - property :progress, as: 'progress' property :state, as: 'state' property :name, as: 'name' + property :tracking_url, as: 'trackingUrl' + property :progress, as: 'progress' end end @@ -499,15 +536,14 @@ module Google class DiskConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :boot_disk_size_gb, as: 'bootDiskSizeGb' property :num_local_ssds, as: 'numLocalSsds' + property :boot_disk_size_gb, as: 'bootDiskSizeGb' end end class ClusterOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation @@ -517,14 +553,15 @@ module Google property :operation_type, as: 'operationType' property :description, as: 'description' collection :warnings, as: 'warnings' + hash :labels, as: 'labels' end end class HiveJob # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :script_variables, as: 'scriptVariables' collection :jar_file_uris, as: 'jarFileUris' + hash :script_variables, as: 'scriptVariables' hash :properties, as: 'properties' property :continue_on_failure, as: 'continueOnFailure' property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation @@ -549,6 +586,10 @@ module Google class ClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation + + property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation + collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation property :config_bucket, as: 'configBucket' @@ -558,10 +599,6 @@ module Google property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation - property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation - - property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation - end end @@ -597,16 +634,16 @@ module Google class ClusterMetrics # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :yarn_metrics, as: 'yarnMetrics' hash :hdfs_metrics, as: 'hdfsMetrics' + hash :yarn_metrics, as: 'yarnMetrics' end end class AcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :accelerator_type_uri, as: 'acceleratorTypeUri' property :accelerator_count, as: 'acceleratorCount' + property :accelerator_type_uri, as: 'acceleratorTypeUri' end end @@ -616,43 +653,6 @@ module Google hash :driver_log_levels, as: 'driverLogLevels' end end - - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation - - hash :metadata, as: 'metadata' - end - end - - class JobReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :job_id, as: 'jobId' - property :project_id, as: 'projectId' - end - end - - class SubmitJobRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation - - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' - end - end end end end diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index 5b539e179..6eac7e012 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -47,6 +47,43 @@ module Google @batch_path = 'batch' end + # Creates a cluster in a project. + # @param [String] project_id + # Required. The ID of the Google Cloud Platform project that the cluster belongs + # to. + # @param [String] region + # Required. The Cloud Dataproc region in which to handle the request. + # @param [Google::Apis::DataprocV1::Cluster] cluster_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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options) + command.request_representation = Google::Apis::DataprocV1::Cluster::Representation + command.request_object = cluster_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['region'] = region unless region.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 resource representation for a cluster in a project. # @param [String] project_id # Required. The ID of the Google Cloud Platform project that the cluster belongs @@ -55,11 +92,11 @@ module Google # Required. The Cloud Dataproc region in which to handle the request. # @param [String] cluster_name # Required. The cluster 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -72,15 +109,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_cluster(project_id, region, cluster_name, quota_user: nil, fields: nil, options: nil, &block) + def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command.response_representation = Google::Apis::DataprocV1::Cluster::Representation command.response_class = Google::Apis::DataprocV1::Cluster command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -121,11 +158,11 @@ module Google # num_instances Resize primary worker group # config.secondary_worker_config.num_instances Resize secondary worker group + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -138,7 +175,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) + def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command.request_representation = Google::Apis::DataprocV1::Cluster::Representation command.request_object = cluster_object @@ -148,8 +185,8 @@ module Google command.params['region'] = region unless region.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -163,11 +200,11 @@ module Google # @param [String] cluster_name # Required. The cluster name. # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -180,7 +217,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options) command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation command.request_object = diagnose_cluster_request_object @@ -189,8 +226,8 @@ module Google command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -202,11 +239,11 @@ module Google # Required. The Cloud Dataproc region in which to handle the request. # @param [String] cluster_name # Required. The cluster 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -219,15 +256,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_cluster(project_id, region, cluster_name, quota_user: nil, fields: nil, options: nil, &block) + def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command.response_representation = Google::Apis::DataprocV1::Operation::Representation command.response_class = Google::Apis::DataprocV1::Operation command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -237,6 +274,8 @@ module Google # to. # @param [String] region # Required. The Cloud Dataproc region in which to handle the request. + # @param [String] page_token + # Optional. The standard List page token. # @param [Fixnum] page_size # Optional. The standard List page size. # @param [String] filter @@ -251,13 +290,11 @@ module Google # separated items are treated as having an implicit AND operator.Example filter: # status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND # labels.starred = * - # @param [String] page_token - # Optional. 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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -270,124 +307,17 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_clusters(project_id, region, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options) command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation command.response_class = Google::Apis::DataprocV1::ListClustersResponse command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? + command.query['pageToken'] = page_token unless page_token.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 - - # Creates a cluster in a project. - # @param [String] project_id - # Required. The ID of the Google Cloud Platform project that the cluster belongs - # to. - # @param [String] region - # Required. The Cloud Dataproc region in which to handle the request. - # @param [Google::Apis::DataprocV1::Cluster] cluster_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::DataprocV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::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_cluster(project_id, region, cluster_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options) - command.request_representation = Google::Apis::DataprocV1::Cluster::Representation - command.request_object = cluster_object - command.response_representation = Google::Apis::DataprocV1::Operation::Representation - command.response_class = Google::Apis::DataprocV1::Operation - command.params['projectId'] = project_id unless project_id.nil? - command.params['region'] = region unless region.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 asynchronous cancellation on a long-running operation. The server makes - # a best effort to cancel the operation, but success is not guaranteed. If the - # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. - # Clients can use Operations.GetOperation or other methods to check whether the - # cancellation succeeded or whether the operation completed despite cancellation. - # On successful cancellation, the operation is not deleted; instead, it becomes - # an operation with an Operation.error value with a google.rpc.Status.code of 1, - # corresponding to Code.CANCELLED. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [String] quota_user - # Available 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::DataprocV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_operation(name, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:cancel', options) - command.response_representation = Google::Apis::DataprocV1::Empty::Representation - command.response_class = Google::Apis::DataprocV1::Empty - 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 - - # Deletes a long-running operation. This method indicates that the client is no - # longer interested in the operation result. It does not cancel the operation. - # If the server doesn't support this method, it returns google.rpc.Code. - # UNIMPLEMENTED. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] quota_user - # Available 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::DataprocV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::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_operation(name, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::DataprocV1::Empty::Representation - command.response_class = Google::Apis::DataprocV1::Empty - 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 @@ -395,11 +325,11 @@ module Google # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -412,13 +342,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_operation(name, quota_user: nil, fields: nil, options: nil, &block) + def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::DataprocV1::Operation::Representation command.response_class = Google::Apis::DataprocV1::Operation command.params['name'] = name unless name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -438,11 +368,11 @@ module Google # The standard list page token. # @param [Fixnum] page_size # The standard list page size. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -455,7 +385,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation command.response_class = Google::Apis::DataprocV1::ListOperationsResponse @@ -463,142 +393,26 @@ module Google command.query['filter'] = filter unless filter.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Updates a job in a project. - # @param [String] project_id - # Required. The ID of the Google Cloud Platform project that the job belongs to. - # @param [String] region - # Required. The Cloud Dataproc region in which to handle the request. - # @param [String] job_id - # Required. The job ID. - # @param [Google::Apis::DataprocV1::Job] job_object - # @param [String] update_mask - # Required. Specifies the path, relative to Job, of the field to - # update. For example, to update the labels of a Job the update_mask - # parameter would be specified as labels, and the PATCH request - # body would specify the new value. Note: Currently, - # labels is the only field that can be updated. + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to Code.CANCELLED. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [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::DataprocV1::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) - command.request_representation = Google::Apis::DataprocV1::Job::Representation - command.request_object = job_object - command.response_representation = Google::Apis::DataprocV1::Job::Representation - command.response_class = Google::Apis::DataprocV1::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['region'] = region unless region.nil? - command.params['jobId'] = job_id unless job_id.nil? - command.query['updateMask'] = update_mask unless update_mask.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 resource representation for a job in a project. - # @param [String] project_id - # Required. The ID of the Google Cloud Platform project that the job belongs to. - # @param [String] region - # Required. The Cloud Dataproc region in which to handle the request. - # @param [String] job_id - # Required. The job ID. - # @param [String] quota_user - # Available 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::DataprocV1::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_job(project_id, region, job_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) - command.response_representation = Google::Apis::DataprocV1::Job::Representation - command.response_class = Google::Apis::DataprocV1::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['region'] = region unless region.nil? - command.params['jobId'] = job_id unless job_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 - - # Submits a job to a cluster. - # @param [String] project_id - # Required. The ID of the Google Cloud Platform project that the job belongs to. - # @param [String] region - # Required. The Cloud Dataproc region in which to handle the request. - # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_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::DataprocV1::Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_job(project_id, region, submit_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options) - command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation - command.request_object = submit_job_request_object - command.response_representation = Google::Apis::DataprocV1::Job::Representation - command.response_class = Google::Apis::DataprocV1::Job - command.params['projectId'] = project_id unless project_id.nil? - command.params['region'] = region unless region.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes the job from the project. If the job is active, the delete fails, and - # the response returns FAILED_PRECONDITION. - # @param [String] project_id - # Required. The ID of the Google Cloud Platform project that the job belongs to. - # @param [String] region - # Required. The Cloud Dataproc region in which to handle the request. - # @param [String] job_id - # Required. The job ID. - # @param [String] quota_user - # Available 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 # @@ -611,15 +425,119 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_job(project_id, region, job_id, quota_user: nil, fields: nil, options: nil, &block) + def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.response_representation = Google::Apis::DataprocV1::Empty::Representation + command.response_class = Google::Apis::DataprocV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns google.rpc.Code. + # UNIMPLEMENTED. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::Empty::Representation + command.response_class = Google::Apis::DataprocV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Submits a job to a cluster. + # @param [String] project_id + # Required. The ID of the Google Cloud Platform project that the job belongs to. + # @param [String] region + # Required. The Cloud Dataproc region in which to handle the request. + # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options) + command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation + command.request_object = submit_job_request_object + command.response_representation = Google::Apis::DataprocV1::Job::Representation + command.response_class = Google::Apis::DataprocV1::Job + command.params['projectId'] = project_id unless project_id.nil? + command.params['region'] = region unless region.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the job from the project. If the job is active, the delete fails, and + # the response returns FAILED_PRECONDITION. + # @param [String] project_id + # Required. The ID of the Google Cloud Platform project that the job belongs to. + # @param [String] region + # Required. The Cloud Dataproc region in which to handle the request. + # @param [String] job_id + # Required. The job 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::DataprocV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) command.response_representation = Google::Apis::DataprocV1::Empty::Representation command.response_class = Google::Apis::DataprocV1::Empty command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -647,11 +565,11 @@ module Google # @param [String] cluster_name # Optional. If set, the returned jobs list includes only jobs that were # submitted to the named cluster. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -664,7 +582,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options) command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation command.response_class = Google::Apis::DataprocV1::ListJobsResponse @@ -675,8 +593,8 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['clusterName'] = cluster_name unless cluster_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -689,11 +607,11 @@ module Google # @param [String] job_id # Required. The job ID. # @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -706,7 +624,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options) command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation command.request_object = cancel_job_request_object @@ -715,8 +633,90 @@ module Google command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['jobId'] = job_id unless job_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 resource representation for a job in a project. + # @param [String] project_id + # Required. The ID of the Google Cloud Platform project that the job belongs to. + # @param [String] region + # Required. The Cloud Dataproc region in which to handle the request. + # @param [String] job_id + # Required. The job 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::DataprocV1::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) + command.response_representation = Google::Apis::DataprocV1::Job::Representation + command.response_class = Google::Apis::DataprocV1::Job + command.params['projectId'] = project_id unless project_id.nil? + command.params['region'] = region unless region.nil? + command.params['jobId'] = job_id unless job_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a job in a project. + # @param [String] project_id + # Required. The ID of the Google Cloud Platform project that the job belongs to. + # @param [String] region + # Required. The Cloud Dataproc region in which to handle the request. + # @param [String] job_id + # Required. The job ID. + # @param [Google::Apis::DataprocV1::Job] job_object + # @param [String] update_mask + # Required. Specifies the path, relative to Job, of the field to + # update. For example, to update the labels of a Job the update_mask + # parameter would be specified as labels, and the PATCH request + # body would specify the new value. Note: Currently, + # labels is the only field that can be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::DataprocV1::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) + command.request_representation = Google::Apis::DataprocV1::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::DataprocV1::Job::Representation + command.response_class = Google::Apis::DataprocV1::Job + command.params['projectId'] = project_id unless project_id.nil? + command.params['region'] = region unless region.nil? + command.params['jobId'] = job_id unless job_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index 645556eed..593fb7e44 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,13 +26,13 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20170606' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170626' # View and manage your Google Cloud Datastore data AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore' + + # 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/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index 0e985c25d..330e77efd 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -22,10 +22,128 @@ module Google module Apis module DatastoreV1 + # The result of applying a mutation. + class MutationResult + include Google::Apis::Core::Hashable + + # The version of the entity on the server after processing the mutation. If + # the mutation doesn't change anything on the server, then the version will + # be the version of the current entity or, if no entity is present, a version + # that is strictly greater than the version of any previous entity and less + # than the version of any possible future entity. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Whether a conflict was detected for this mutation. Always false when a + # conflict detection strategy field is not set in the mutation. + # Corresponds to the JSON property `conflictDetected` + # @return [Boolean] + attr_accessor :conflict_detected + alias_method :conflict_detected?, :conflict_detected + + # A unique identifier for an entity. + # If a key's partition ID or any of its path kinds or names are + # reserved/read-only, the key is reserved/read-only. + # A reserved/read-only key is forbidden in certain documented contexts. + # Corresponds to the JSON property `key` + # @return [Google::Apis::DatastoreV1::Key] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected) + @key = args[:key] if args.key?(:key) + end + end + + # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). + class GqlQuery + include Google::Apis::Core::Hashable + + # Numbered binding site @1 references the first numbered parameter, + # effectively using 1-based indexing, rather than the usual 0. + # For each binding site numbered i in `query_string`, there must be an i-th + # numbered parameter. The inverse must also be true. + # Corresponds to the JSON property `positionalBindings` + # @return [Array] + attr_accessor :positional_bindings + + # For each non-reserved named binding site in the query string, there must be + # a named parameter with that name, but not necessarily the inverse. + # Key must match regex `A-Za-z_$*`, must not match regex + # `__.*__`, and must not be `""`. + # Corresponds to the JSON property `namedBindings` + # @return [Hash] + attr_accessor :named_bindings + + # When false, the query string must not contain any literals and instead must + # bind all values. For example, + # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while + # `SELECT * FROM Kind WHERE a = @value` is. + # Corresponds to the JSON property `allowLiterals` + # @return [Boolean] + attr_accessor :allow_literals + alias_method :allow_literals?, :allow_literals + + # A string of the format described + # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). + # Corresponds to the JSON property `queryString` + # @return [String] + attr_accessor :query_string + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings) + @named_bindings = args[:named_bindings] if args.key?(:named_bindings) + @allow_literals = args[:allow_literals] if args.key?(:allow_literals) + @query_string = args[:query_string] if args.key?(:query_string) + end + end + + # A holder for any type of filter. + class Filter + include Google::Apis::Core::Hashable + + # A filter on a specific property. + # Corresponds to the JSON property `propertyFilter` + # @return [Google::Apis::DatastoreV1::PropertyFilter] + attr_accessor :property_filter + + # A filter that merges multiple other filters using the given operator. + # Corresponds to the JSON property `compositeFilter` + # @return [Google::Apis::DatastoreV1::CompositeFilter] + attr_accessor :composite_filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @property_filter = args[:property_filter] if args.key?(:property_filter) + @composite_filter = args[:composite_filter] if args.key?(:composite_filter) + end + end + # The request for Datastore.RunQuery. class RunQueryRequest include Google::Apis::Core::Hashable + # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). + # Corresponds to the JSON property `gqlQuery` + # @return [Google::Apis::DatastoreV1::GqlQuery] + attr_accessor :gql_query + # A partition ID identifies a grouping of entities. The grouping is always # by project and namespace, however the namespace ID may be empty. # A partition ID contains several dimensions: @@ -46,11 +164,6 @@ module Google # @return [Google::Apis::DatastoreV1::PartitionId] attr_accessor :partition_id - # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - # Corresponds to the JSON property `gqlQuery` - # @return [Google::Apis::DatastoreV1::GqlQuery] - attr_accessor :gql_query - # The options shared by read requests. # Corresponds to the JSON property `readOptions` # @return [Google::Apis::DatastoreV1::ReadOptions] @@ -67,8 +180,8 @@ module Google # Update properties of this object def update!(**args) - @partition_id = args[:partition_id] if args.key?(:partition_id) @gql_query = args[:gql_query] if args.key?(:gql_query) + @partition_id = args[:partition_id] if args.key?(:partition_id) @read_options = args[:read_options] if args.key?(:read_options) @query = args[:query] if args.key?(:query) end @@ -159,6 +272,11 @@ module Google # @return [String] attr_accessor :end_cursor + # A holder for any type of filter. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::DatastoreV1::Filter] + attr_accessor :filter + # The maximum number of results to return. Applies after all other # constraints. Optional. # Unspecified is interpreted as no limit. @@ -167,11 +285,6 @@ module Google # @return [Fixnum] attr_accessor :limit - # A holder for any type of filter. - # Corresponds to the JSON property `filter` - # @return [Google::Apis::DatastoreV1::Filter] - attr_accessor :filter - # A starting point for the query results. Query cursors are # returned in query result batches and # [can only be used to continue the same query](https://cloud.google.com/ @@ -213,8 +326,8 @@ module Google def update!(**args) @projection = args[:projection] if args.key?(:projection) @end_cursor = args[:end_cursor] if args.key?(:end_cursor) - @limit = args[:limit] if args.key?(:limit) @filter = args[:filter] if args.key?(:filter) + @limit = args[:limit] if args.key?(:limit) @start_cursor = args[:start_cursor] if args.key?(:start_cursor) @offset = args[:offset] if args.key?(:offset) @kind = args[:kind] if args.key?(:kind) @@ -227,11 +340,6 @@ module Google class PropertyFilter include Google::Apis::Core::Hashable - # The operator to filter by. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - # A message that can hold any of the supported value types and associated # metadata. # Corresponds to the JSON property `value` @@ -243,15 +351,20 @@ module Google # @return [Google::Apis::DatastoreV1::PropertyReference] attr_accessor :property + # The operator to filter by. + # Corresponds to the JSON property `op` + # @return [String] + attr_accessor :op + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @op = args[:op] if args.key?(:op) @value = args[:value] if args.key?(:value) @property = args[:property] if args.key?(:property) + @op = args[:op] if args.key?(:op) end end @@ -259,6 +372,14 @@ module Google class EntityResult include Google::Apis::Core::Hashable + # A Datastore data object. + # An entity is limited to 1 megabyte when stored. That _roughly_ + # corresponds to a limit of 1 megabyte for the serialized form of this + # message. + # Corresponds to the JSON property `entity` + # @return [Google::Apis::DatastoreV1::Entity] + attr_accessor :entity + # A cursor that points to the position after the result entity. # Set only when the `EntityResult` is part of a `QueryResultBatch` message. # Corresponds to the JSON property `cursor` @@ -277,50 +398,15 @@ module Google # @return [Fixnum] attr_accessor :version - # A Datastore data object. - # An entity is limited to 1 megabyte when stored. That _roughly_ - # corresponds to a limit of 1 megabyte for the serialized form of this - # message. - # Corresponds to the JSON property `entity` - # @return [Google::Apis::DatastoreV1::Entity] - attr_accessor :entity - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @entity = args[:entity] if args.key?(:entity) @cursor = args[:cursor] if args.key?(:cursor) @version = args[:version] if args.key?(:version) - @entity = args[:entity] if args.key?(:entity) - end - end - - # The response for Datastore.Commit. - class CommitResponse - include Google::Apis::Core::Hashable - - # The result of performing the mutations. - # The i-th mutation result corresponds to the i-th mutation in the request. - # Corresponds to the JSON property `mutationResults` - # @return [Array] - attr_accessor :mutation_results - - # The number of index entries updated during the commit, or zero if none were - # updated. - # Corresponds to the JSON property `indexUpdates` - # @return [Fixnum] - attr_accessor :index_updates - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mutation_results = args[:mutation_results] if args.key?(:mutation_results) - @index_updates = args[:index_updates] if args.key?(:index_updates) end end @@ -329,17 +415,29 @@ module Google class Value include Google::Apis::Core::Hashable - # A boolean value. - # Corresponds to the JSON property `booleanValue` - # @return [Boolean] - attr_accessor :boolean_value - alias_method :boolean_value?, :boolean_value + # A double value. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # A timestamp value. + # When stored in the Datastore, precise only to microseconds; + # any additional precision is rounded down. + # Corresponds to the JSON property `timestampValue` + # @return [String] + attr_accessor :timestamp_value # A null value. # Corresponds to the JSON property `nullValue` # @return [String] attr_accessor :null_value + # A boolean value. + # Corresponds to the JSON property `booleanValue` + # @return [Boolean] + attr_accessor :boolean_value + alias_method :boolean_value?, :boolean_value + # A blob value. # May have at most 1,000,000 bytes. # When `exclude_from_indexes` is false, may have at most 1500 bytes. @@ -434,26 +532,16 @@ module Google attr_accessor :exclude_from_indexes alias_method :exclude_from_indexes?, :exclude_from_indexes - # A double value. - # Corresponds to the JSON property `doubleValue` - # @return [Float] - attr_accessor :double_value - - # A timestamp value. - # When stored in the Datastore, precise only to microseconds; - # any additional precision is rounded down. - # Corresponds to the JSON property `timestampValue` - # @return [String] - attr_accessor :timestamp_value - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @boolean_value = args[:boolean_value] if args.key?(:boolean_value) + @double_value = args[:double_value] if args.key?(:double_value) + @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) @null_value = args[:null_value] if args.key?(:null_value) + @boolean_value = args[:boolean_value] if args.key?(:boolean_value) @blob_value = args[:blob_value] if args.key?(:blob_value) @meaning = args[:meaning] if args.key?(:meaning) @array_value = args[:array_value] if args.key?(:array_value) @@ -463,8 +551,33 @@ module Google @integer_value = args[:integer_value] if args.key?(:integer_value) @string_value = args[:string_value] if args.key?(:string_value) @exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes) - @double_value = args[:double_value] if args.key?(:double_value) - @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) + end + end + + # The response for Datastore.Commit. + class CommitResponse + include Google::Apis::Core::Hashable + + # The number of index entries updated during the commit, or zero if none were + # updated. + # Corresponds to the JSON property `indexUpdates` + # @return [Fixnum] + attr_accessor :index_updates + + # The result of performing the mutations. + # The i-th mutation result corresponds to the i-th mutation in the request. + # Corresponds to the JSON property `mutationResults` + # @return [Array] + attr_accessor :mutation_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @index_updates = args[:index_updates] if args.key?(:index_updates) + @mutation_results = args[:mutation_results] if args.key?(:mutation_results) end end @@ -544,38 +657,35 @@ module Google end end + # The request for Datastore.Lookup. + class LookupRequest + include Google::Apis::Core::Hashable + + # The options shared by read requests. + # Corresponds to the JSON property `readOptions` + # @return [Google::Apis::DatastoreV1::ReadOptions] + attr_accessor :read_options + + # Keys of entities to look up. + # Corresponds to the JSON property `keys` + # @return [Array] + attr_accessor :keys + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_options = args[:read_options] if args.key?(:read_options) + @keys = args[:keys] if args.key?(:keys) + end + end + # A batch of results produced by a query. class QueryResultBatch include Google::Apis::Core::Hashable - # The results for this batch. - # Corresponds to the JSON property `entityResults` - # @return [Array] - attr_accessor :entity_results - - # A cursor that points to the position after the last result in the batch. - # Corresponds to the JSON property `endCursor` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :end_cursor - - # The state of the query after the current batch. - # Corresponds to the JSON property `moreResults` - # @return [String] - attr_accessor :more_results - - # The version number of the snapshot this batch was returned from. - # This applies to the range of results from the query's `start_cursor` (or - # the beginning of the query if no cursor was given) to this batch's - # `end_cursor` (not the query's `end_cursor`). - # In a single transaction, subsequent query result batches for the same query - # can have a greater snapshot version number. Each batch's snapshot version - # is valid for all preceding batches. - # The value will be zero for eventually consistent queries. - # Corresponds to the JSON property `snapshotVersion` - # @return [Fixnum] - attr_accessor :snapshot_version - # A cursor that points to the position after the last skipped result. # Will be set when `skipped_results` != 0. # Corresponds to the JSON property `skippedCursor` @@ -593,44 +703,47 @@ module Google # @return [String] attr_accessor :entity_result_type + # The results for this batch. + # Corresponds to the JSON property `entityResults` + # @return [Array] + attr_accessor :entity_results + + # The state of the query after the current batch. + # Corresponds to the JSON property `moreResults` + # @return [String] + attr_accessor :more_results + + # A cursor that points to the position after the last result in the batch. + # Corresponds to the JSON property `endCursor` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :end_cursor + + # The version number of the snapshot this batch was returned from. + # This applies to the range of results from the query's `start_cursor` (or + # the beginning of the query if no cursor was given) to this batch's + # `end_cursor` (not the query's `end_cursor`). + # In a single transaction, subsequent query result batches for the same query + # can have a greater snapshot version number. Each batch's snapshot version + # is valid for all preceding batches. + # The value will be zero for eventually consistent queries. + # Corresponds to the JSON property `snapshotVersion` + # @return [Fixnum] + attr_accessor :snapshot_version + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @entity_results = args[:entity_results] if args.key?(:entity_results) - @end_cursor = args[:end_cursor] if args.key?(:end_cursor) - @more_results = args[:more_results] if args.key?(:more_results) - @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version) @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor) @skipped_results = args[:skipped_results] if args.key?(:skipped_results) @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type) - end - end - - # The request for Datastore.Lookup. - class LookupRequest - include Google::Apis::Core::Hashable - - # Keys of entities to look up. - # Corresponds to the JSON property `keys` - # @return [Array] - attr_accessor :keys - - # The options shared by read requests. - # Corresponds to the JSON property `readOptions` - # @return [Google::Apis::DatastoreV1::ReadOptions] - attr_accessor :read_options - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @keys = args[:keys] if args.key?(:keys) - @read_options = args[:read_options] if args.key?(:read_options) + @entity_results = args[:entity_results] if args.key?(:entity_results) + @more_results = args[:more_results] if args.key?(:more_results) + @end_cursor = args[:end_cursor] if args.key?(:end_cursor) + @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version) end end @@ -679,12 +792,6 @@ module Google class GqlQueryParameter include Google::Apis::Core::Hashable - # A message that can hold any of the supported value types and associated - # metadata. - # Corresponds to the JSON property `value` - # @return [Google::Apis::DatastoreV1::Value] - attr_accessor :value - # A query cursor. Query cursors are returned in query # result batches. # Corresponds to the JSON property `cursor` @@ -692,14 +799,20 @@ module Google # @return [String] attr_accessor :cursor + # A message that can hold any of the supported value types and associated + # metadata. + # Corresponds to the JSON property `value` + # @return [Google::Apis::DatastoreV1::Value] + attr_accessor :value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @value = args[:value] if args.key?(:value) @cursor = args[:cursor] if args.key?(:cursor) + @value = args[:value] if args.key?(:value) end end @@ -747,13 +860,6 @@ module Google class LookupResponse include Google::Apis::Core::Hashable - # Entities found as `ResultType.FULL` entities. The order of results in this - # field is undefined and has no relation to the order of the keys in the - # input. - # Corresponds to the JSON property `found` - # @return [Array] - attr_accessor :found - # Entities not found as `ResultType.KEY_ONLY` entities. The order of results # in this field is undefined and has no relation to the order of the keys # in the input. @@ -761,6 +867,13 @@ module Google # @return [Array] attr_accessor :missing + # Entities found as `ResultType.FULL` entities. The order of results in this + # field is undefined and has no relation to the order of the keys in the + # input. + # Corresponds to the JSON property `found` + # @return [Array] + attr_accessor :found + # A list of keys that were not looked up due to resource constraints. The # order of results in this field is undefined and has no relation to the # order of the keys in the input. @@ -774,8 +887,8 @@ module Google # Update properties of this object def update!(**args) - @found = args[:found] if args.key?(:found) @missing = args[:missing] if args.key?(:missing) + @found = args[:found] if args.key?(:found) @deferred = args[:deferred] if args.key?(:deferred) end end @@ -805,43 +918,10 @@ module Google end end - # The desired order for a specific property. - class PropertyOrder - include Google::Apis::Core::Hashable - - # A reference to a property relative to the kind expressions. - # Corresponds to the JSON property `property` - # @return [Google::Apis::DatastoreV1::PropertyReference] - attr_accessor :property - - # The direction to order by. Defaults to `ASCENDING`. - # Corresponds to the JSON property `direction` - # @return [String] - attr_accessor :direction - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @property = args[:property] if args.key?(:property) - @direction = args[:direction] if args.key?(:direction) - end - end - # The request for Datastore.Commit. class CommitRequest include Google::Apis::Core::Hashable - # The identifier of the transaction associated with the commit. A - # transaction identifier is returned by a call to - # Datastore.BeginTransaction. - # Corresponds to the JSON property `transaction` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :transaction - # The type of commit to perform. Defaults to `TRANSACTIONAL`. # Corresponds to the JSON property `mode` # @return [String] @@ -861,15 +941,23 @@ module Google # @return [Array] attr_accessor :mutations + # The identifier of the transaction associated with the commit. A + # transaction identifier is returned by a call to + # Datastore.BeginTransaction. + # Corresponds to the JSON property `transaction` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :transaction + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @transaction = args[:transaction] if args.key?(:transaction) @mode = args[:mode] if args.key?(:mode) @mutations = args[:mutations] if args.key?(:mutations) + @transaction = args[:transaction] if args.key?(:transaction) end end @@ -886,6 +974,31 @@ module Google end end + # The desired order for a specific property. + class PropertyOrder + include Google::Apis::Core::Hashable + + # The direction to order by. Defaults to `ASCENDING`. + # Corresponds to the JSON property `direction` + # @return [String] + attr_accessor :direction + + # A reference to a property relative to the kind expressions. + # Corresponds to the JSON property `property` + # @return [Google::Apis::DatastoreV1::PropertyReference] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @direction = args[:direction] if args.key?(:direction) + @property = args[:property] if args.key?(:property) + end + end + # A representation of a kind. class KindExpression include Google::Apis::Core::Hashable @@ -905,6 +1018,62 @@ module Google end end + # A unique identifier for an entity. + # If a key's partition ID or any of its path kinds or names are + # reserved/read-only, the key is reserved/read-only. + # A reserved/read-only key is forbidden in certain documented contexts. + class Key + include Google::Apis::Core::Hashable + + # A partition ID identifies a grouping of entities. The grouping is always + # by project and namespace, however the namespace ID may be empty. + # A partition ID contains several dimensions: + # project ID and namespace ID. + # Partition dimensions: + # - May be `""`. + # - Must be valid UTF-8 bytes. + # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100`` + # If the value of any dimension matches regex `__.*__`, the partition is + # reserved/read-only. + # A reserved/read-only partition ID is forbidden in certain documented + # contexts. + # Foreign partition IDs (in which the project ID does + # not match the context project ID ) are discouraged. + # Reads and writes of foreign partition IDs may fail if the project is not in an + # active state. + # Corresponds to the JSON property `partitionId` + # @return [Google::Apis::DatastoreV1::PartitionId] + attr_accessor :partition_id + + # The entity path. + # An entity path consists of one or more elements composed of a kind and a + # string or numerical identifier, which identify entities. The first + # element identifies a _root entity_, the second element identifies + # a _child_ of the root entity, the third element identifies a child of the + # second entity, and so forth. The entities identified by all prefixes of + # the path are called the element's _ancestors_. + # An entity path is always fully complete: *all* of the entity's ancestors + # are required to be in the path along with the entity identifier itself. + # The only exception is that in some documented cases, the identifier in the + # last path element (for the entity) itself may be omitted. For example, + # the last path element of the key of `Mutation.insert` may have no + # identifier. + # A path can never be empty, and a path can have at most 100 elements. + # Corresponds to the JSON property `path` + # @return [Array] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @partition_id = args[:partition_id] if args.key?(:partition_id) + @path = args[:path] if args.key?(:path) + end + end + # An object representing a latitude/longitude pair. This is expressed as a pair # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the @@ -964,62 +1133,6 @@ module Google end end - # A unique identifier for an entity. - # If a key's partition ID or any of its path kinds or names are - # reserved/read-only, the key is reserved/read-only. - # A reserved/read-only key is forbidden in certain documented contexts. - class Key - include Google::Apis::Core::Hashable - - # The entity path. - # An entity path consists of one or more elements composed of a kind and a - # string or numerical identifier, which identify entities. The first - # element identifies a _root entity_, the second element identifies - # a _child_ of the root entity, the third element identifies a child of the - # second entity, and so forth. The entities identified by all prefixes of - # the path are called the element's _ancestors_. - # An entity path is always fully complete: *all* of the entity's ancestors - # are required to be in the path along with the entity identifier itself. - # The only exception is that in some documented cases, the identifier in the - # last path element (for the entity) itself may be omitted. For example, - # the last path element of the key of `Mutation.insert` may have no - # identifier. - # A path can never be empty, and a path can have at most 100 elements. - # Corresponds to the JSON property `path` - # @return [Array] - attr_accessor :path - - # A partition ID identifies a grouping of entities. The grouping is always - # by project and namespace, however the namespace ID may be empty. - # A partition ID contains several dimensions: - # project ID and namespace ID. - # Partition dimensions: - # - May be `""`. - # - Must be valid UTF-8 bytes. - # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100`` - # If the value of any dimension matches regex `__.*__`, the partition is - # reserved/read-only. - # A reserved/read-only partition ID is forbidden in certain documented - # contexts. - # Foreign partition IDs (in which the project ID does - # not match the context project ID ) are discouraged. - # Reads and writes of foreign partition IDs may fail if the project is not in an - # active state. - # Corresponds to the JSON property `partitionId` - # @return [Google::Apis::DatastoreV1::PartitionId] - attr_accessor :partition_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @path = args[:path] if args.key?(:path) - @partition_id = args[:partition_id] if args.key?(:partition_id) - end - end - # A reference to a property relative to the kind expressions. class PropertyReference include Google::Apis::Core::Hashable @@ -1084,6 +1197,20 @@ module Google class Mutation include Google::Apis::Core::Hashable + # The version of the entity that this mutation is being applied to. If this + # does not match the current version on the server, the mutation conflicts. + # Corresponds to the JSON property `baseVersion` + # @return [Fixnum] + attr_accessor :base_version + + # A Datastore data object. + # An entity is limited to 1 megabyte when stored. That _roughly_ + # corresponds to a limit of 1 megabyte for the serialized form of this + # message. + # Corresponds to the JSON property `insert` + # @return [Google::Apis::DatastoreV1::Entity] + attr_accessor :insert + # A Datastore data object. # An entity is limited to 1 megabyte when stored. That _roughly_ # corresponds to a limit of 1 megabyte for the serialized form of this @@ -1108,31 +1235,17 @@ module Google # @return [Google::Apis::DatastoreV1::Key] attr_accessor :delete - # A Datastore data object. - # An entity is limited to 1 megabyte when stored. That _roughly_ - # corresponds to a limit of 1 megabyte for the serialized form of this - # message. - # Corresponds to the JSON property `insert` - # @return [Google::Apis::DatastoreV1::Entity] - attr_accessor :insert - - # The version of the entity that this mutation is being applied to. If this - # does not match the current version on the server, the mutation conflicts. - # Corresponds to the JSON property `baseVersion` - # @return [Fixnum] - attr_accessor :base_version - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @base_version = args[:base_version] if args.key?(:base_version) + @insert = args[:insert] if args.key?(:insert) @update = args[:update] if args.key?(:update) @upsert = args[:upsert] if args.key?(:upsert) @delete = args[:delete] if args.key?(:delete) - @insert = args[:insert] if args.key?(:insert) - @base_version = args[:base_version] if args.key?(:base_version) end end @@ -1140,12 +1253,6 @@ module Google class ReadOptions include Google::Apis::Core::Hashable - # The non-transactional read consistency to use. - # Cannot be set to `STRONG` for global queries. - # Corresponds to the JSON property `readConsistency` - # @return [String] - attr_accessor :read_consistency - # The identifier of the transaction in which to read. A # transaction identifier is returned by a call to # Datastore.BeginTransaction. @@ -1154,14 +1261,20 @@ module Google # @return [String] attr_accessor :transaction + # The non-transactional read consistency to use. + # Cannot be set to `STRONG` for global queries. + # Corresponds to the JSON property `readConsistency` + # @return [String] + attr_accessor :read_consistency + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @read_consistency = args[:read_consistency] if args.key?(:read_consistency) @transaction = args[:transaction] if args.key?(:transaction) + @read_consistency = args[:read_consistency] if args.key?(:read_consistency) end end @@ -1178,119 +1291,6 @@ module Google def update!(**args) end end - - # The result of applying a mutation. - class MutationResult - include Google::Apis::Core::Hashable - - # A unique identifier for an entity. - # If a key's partition ID or any of its path kinds or names are - # reserved/read-only, the key is reserved/read-only. - # A reserved/read-only key is forbidden in certain documented contexts. - # Corresponds to the JSON property `key` - # @return [Google::Apis::DatastoreV1::Key] - attr_accessor :key - - # The version of the entity on the server after processing the mutation. If - # the mutation doesn't change anything on the server, then the version will - # be the version of the current entity or, if no entity is present, a version - # that is strictly greater than the version of any previous entity and less - # than the version of any possible future entity. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # Whether a conflict was detected for this mutation. Always false when a - # conflict detection strategy field is not set in the mutation. - # Corresponds to the JSON property `conflictDetected` - # @return [Boolean] - attr_accessor :conflict_detected - alias_method :conflict_detected?, :conflict_detected - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @version = args[:version] if args.key?(:version) - @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected) - end - end - - # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - class GqlQuery - include Google::Apis::Core::Hashable - - # A string of the format described - # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - # Corresponds to the JSON property `queryString` - # @return [String] - attr_accessor :query_string - - # When false, the query string must not contain any literals and instead must - # bind all values. For example, - # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while - # `SELECT * FROM Kind WHERE a = @value` is. - # Corresponds to the JSON property `allowLiterals` - # @return [Boolean] - attr_accessor :allow_literals - alias_method :allow_literals?, :allow_literals - - # For each non-reserved named binding site in the query string, there must be - # a named parameter with that name, but not necessarily the inverse. - # Key must match regex `A-Za-z_$*`, must not match regex - # `__.*__`, and must not be `""`. - # Corresponds to the JSON property `namedBindings` - # @return [Hash] - attr_accessor :named_bindings - - # Numbered binding site @1 references the first numbered parameter, - # effectively using 1-based indexing, rather than the usual 0. - # For each binding site numbered i in `query_string`, there must be an i-th - # numbered parameter. The inverse must also be true. - # Corresponds to the JSON property `positionalBindings` - # @return [Array] - attr_accessor :positional_bindings - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @query_string = args[:query_string] if args.key?(:query_string) - @allow_literals = args[:allow_literals] if args.key?(:allow_literals) - @named_bindings = args[:named_bindings] if args.key?(:named_bindings) - @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings) - end - end - - # A holder for any type of filter. - class Filter - include Google::Apis::Core::Hashable - - # A filter that merges multiple other filters using the given operator. - # Corresponds to the JSON property `compositeFilter` - # @return [Google::Apis::DatastoreV1::CompositeFilter] - attr_accessor :composite_filter - - # A filter on a specific property. - # Corresponds to the JSON property `propertyFilter` - # @return [Google::Apis::DatastoreV1::PropertyFilter] - attr_accessor :property_filter - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @composite_filter = args[:composite_filter] if args.key?(:composite_filter) - @property_filter = args[:property_filter] if args.key?(:property_filter) - end - end end end end diff --git a/generated/google/apis/datastore_v1/representations.rb b/generated/google/apis/datastore_v1/representations.rb index 7329cd3c8..4ea6543ac 100644 --- a/generated/google/apis/datastore_v1/representations.rb +++ b/generated/google/apis/datastore_v1/representations.rb @@ -22,6 +22,24 @@ module Google module Apis module DatastoreV1 + class MutationResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GqlQuery + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Filter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RunQueryRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -64,13 +82,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CommitResponse + class Value class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Value + class CommitResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -88,13 +106,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class QueryResultBatch + class LookupRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LookupRequest + class QueryResultBatch class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -136,12 +154,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PropertyOrder - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CommitRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,19 +166,25 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PropertyOrder + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class KindExpression class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LatLng + class Key class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Key + class LatLng class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -209,30 +227,44 @@ module Google end class MutationResult - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, :numeric_string => true, as: 'version' + property :conflict_detected, as: 'conflictDetected' + property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - include Google::Apis::Core::JsonObjectSupport + end end class GqlQuery - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation - include Google::Apis::Core::JsonObjectSupport + hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation + + property :allow_literals, as: 'allowLiterals' + property :query_string, as: 'queryString' + end end class Filter - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation - include Google::Apis::Core::JsonObjectSupport + property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation + + end end class RunQueryRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation - property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation + property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation + property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation @@ -270,9 +302,9 @@ module Google collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation property :end_cursor, :base64 => true, as: 'endCursor' - property :limit, as: 'limit' property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation + property :limit, as: 'limit' property :start_cursor, :base64 => true, as: 'startCursor' property :offset, as: 'offset' collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation @@ -287,38 +319,31 @@ module Google class PropertyFilter # @private class Representation < Google::Apis::Core::JsonRepresentation - property :op, as: 'op' property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation + property :op, as: 'op' end end class EntityResult # @private class Representation < Google::Apis::Core::JsonRepresentation - property :cursor, :base64 => true, as: 'cursor' - property :version, :numeric_string => true, as: 'version' property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation - end - end - - class CommitResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation - - property :index_updates, as: 'indexUpdates' + property :cursor, :base64 => true, as: 'cursor' + property :version, :numeric_string => true, as: 'version' end end class Value # @private class Representation < Google::Apis::Core::JsonRepresentation - property :boolean_value, as: 'booleanValue' + property :double_value, as: 'doubleValue' + property :timestamp_value, as: 'timestampValue' property :null_value, as: 'nullValue' + property :boolean_value, as: 'booleanValue' property :blob_value, :base64 => true, as: 'blobValue' property :meaning, as: 'meaning' property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation @@ -332,8 +357,15 @@ module Google property :integer_value, :numeric_string => true, as: 'integerValue' property :string_value, as: 'stringValue' property :exclude_from_indexes, as: 'excludeFromIndexes' - property :double_value, as: 'doubleValue' - property :timestamp_value, as: 'timestampValue' + end + end + + class CommitResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :index_updates, as: 'indexUpdates' + collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation + end end @@ -355,27 +387,27 @@ module Google end end - class QueryResultBatch - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation - - property :end_cursor, :base64 => true, as: 'endCursor' - property :more_results, as: 'moreResults' - property :snapshot_version, :numeric_string => true, as: 'snapshotVersion' - property :skipped_cursor, :base64 => true, as: 'skippedCursor' - property :skipped_results, as: 'skippedResults' - property :entity_result_type, as: 'entityResultType' - end - end - class LookupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation + collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation + + end + end + + class QueryResultBatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :skipped_cursor, :base64 => true, as: 'skippedCursor' + property :skipped_results, as: 'skippedResults' + property :entity_result_type, as: 'entityResultType' + collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation + + property :more_results, as: 'moreResults' + property :end_cursor, :base64 => true, as: 'endCursor' + property :snapshot_version, :numeric_string => true, as: 'snapshotVersion' end end @@ -391,9 +423,9 @@ module Google class GqlQueryParameter # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cursor, :base64 => true, as: 'cursor' property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation - property :cursor, :base64 => true, as: 'cursor' end end @@ -415,10 +447,10 @@ module Google class LookupResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation - collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation + collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation + collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation end @@ -434,22 +466,13 @@ module Google end end - class PropertyOrder - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation - - property :direction, as: 'direction' - end - end - class CommitRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :transaction, :base64 => true, as: 'transaction' property :mode, as: 'mode' collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation + property :transaction, :base64 => true, as: 'transaction' end end @@ -459,6 +482,15 @@ module Google end end + class PropertyOrder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :direction, as: 'direction' + property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation + + end + end + class KindExpression # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -466,6 +498,16 @@ module Google end end + class Key + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation + + collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation + + end + end + class LatLng # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -474,16 +516,6 @@ module Google end end - class Key - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation - - property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation - - end - end - class PropertyReference # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -510,23 +542,23 @@ module Google class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :base_version, :numeric_string => true, as: 'baseVersion' + property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation + property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation - - property :base_version, :numeric_string => true, as: 'baseVersion' end end class ReadOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :read_consistency, as: 'readConsistency' property :transaction, :base64 => true, as: 'transaction' + property :read_consistency, as: 'readConsistency' end end @@ -535,38 +567,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation end end - - class MutationResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation - - property :version, :numeric_string => true, as: 'version' - property :conflict_detected, as: 'conflictDetected' - end - end - - class GqlQuery - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :query_string, as: 'queryString' - property :allow_literals, as: 'allowLiterals' - hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation - - collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation - - end - end - - class Filter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation - - property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation - - end - end end end end diff --git a/generated/google/apis/datastore_v1/service.rb b/generated/google/apis/datastore_v1/service.rb index 678fc6a24..0f2bf1764 100644 --- a/generated/google/apis/datastore_v1/service.rb +++ b/generated/google/apis/datastore_v1/service.rb @@ -48,6 +48,105 @@ module Google @batch_path = 'batch' end + # Queries for entities. + # @param [String] project_id + # The ID of the project against which to make the request. + # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_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::DatastoreV1::RunQueryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::RunQueryResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options) + command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation + command.request_object = run_query_request_object + command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation + command.response_class = Google::Apis::DatastoreV1::RunQueryResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rolls back a transaction. + # @param [String] project_id + # The ID of the project against which to make the request. + # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_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::DatastoreV1::RollbackResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::RollbackResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options) + command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation + command.request_object = rollback_request_object + command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation + command.response_class = Google::Apis::DatastoreV1::RollbackResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Looks up entities by key. + # @param [String] project_id + # The ID of the project against which to make the request. + # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_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::DatastoreV1::LookupResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::LookupResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options) + command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation + command.request_object = lookup_request_object + command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation + command.response_class = Google::Apis::DatastoreV1::LookupResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Allocates IDs for the given keys, which is useful for referencing an entity # before it is inserted. # @param [String] project_id @@ -148,105 +247,6 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - - # Queries for entities. - # @param [String] project_id - # The ID of the project against which to make the request. - # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_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::DatastoreV1::RunQueryResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DatastoreV1::RunQueryResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options) - command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation - command.request_object = run_query_request_object - command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation - command.response_class = Google::Apis::DatastoreV1::RunQueryResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rolls back a transaction. - # @param [String] project_id - # The ID of the project against which to make the request. - # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_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::DatastoreV1::RollbackResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DatastoreV1::RollbackResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options) - command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation - command.request_object = rollback_request_object - command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation - command.response_class = Google::Apis::DatastoreV1::RollbackResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Looks up entities by key. - # @param [String] project_id - # The ID of the project against which to make the request. - # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_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::DatastoreV1::LookupResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DatastoreV1::LookupResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options) - command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation - command.request_object = lookup_request_object - command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation - command.response_class = Google::Apis::DatastoreV1::LookupResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end protected diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 5ea2bdb5c..07289ce0f 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20170501' + REVISION = '20170615' # 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 3ab39a21e..124100392 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -105,6 +105,13 @@ module Google class Binding include Google::Apis::Core::Hashable + # Represents an expression text. Example: + # title: "User account presence" description: "Determines whether the request + # has a user account" expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::DeploymentmanagerV2::Expr] + attr_accessor :condition + # Specifies the identities requesting access for a Cloud Platform resource. ` # members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is on the @@ -135,6 +142,7 @@ module Google # Update properties of this object def update!(**args) + @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end @@ -476,6 +484,50 @@ module Google end end + # Represents an expression text. Example: + # title: "User account presence" description: "Determines whether the request + # has a user account" expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in Common Expression Language syntax. + # The application context of the containing message determines which well-known + # feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing its + # purpose. This can be used e.g. in UIs which allow to enter the expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + # class ImportFile include Google::Apis::Core::Hashable @@ -505,6 +557,11 @@ module Google class LogConfig include Google::Apis::Core::Hashable + # Write a Cloud Audit log + # Corresponds to the JSON property `cloudAudit` + # @return [Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions] + attr_accessor :cloud_audit + # Options for counters # Corresponds to the JSON property `counter` # @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions] @@ -516,10 +573,30 @@ module Google # Update properties of this object def update!(**args) + @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) @counter = args[:counter] if args.key?(:counter) end end + # Write a Cloud Audit log + class LogConfigCloudAuditOptions + include Google::Apis::Core::Hashable + + # The log_name to populate in the Cloud Audit Record. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_name = args[:log_name] if args.key?(:log_name) + end + end + # Options for counters class LogConfigCounterOptions include Google::Apis::Core::Hashable @@ -969,9 +1046,8 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Multiple `bindings` must not be - # specified for the same `role`. `bindings` with no members will result in an - # error. + # Associates a list of `members` to a `role`. `bindings` with no members will + # result in an error. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings diff --git a/generated/google/apis/deploymentmanager_v2/representations.rb b/generated/google/apis/deploymentmanager_v2/representations.rb index 632abb6ff..8fbeb7d3f 100644 --- a/generated/google/apis/deploymentmanager_v2/representations.rb +++ b/generated/google/apis/deploymentmanager_v2/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogConfigCloudAuditOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogConfigCounterOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -283,6 +295,8 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::DeploymentmanagerV2::Expr, decorator: Google::Apis::DeploymentmanagerV2::Expr::Representation + collection :members, as: 'members' property :role, as: 'role' end @@ -377,6 +391,16 @@ module Google end end + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + class ImportFile # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -388,11 +412,20 @@ module Google class LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_audit, as: 'cloudAudit', class: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions::Representation + property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation end end + class LogConfigCloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_name, as: 'logName' + end + end + class LogConfigCounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index aef1253d0..8e01b96a1 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -264,9 +264,8 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: field_name - # comparison_string literal_string. + # Sets a filter `expression` for filtering listed resources. 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 @@ -275,7 +274,7 @@ module Google # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. # For example, to filter for instances that do not have a name of example- - # instance, you would use filter=name ne example-instance. + # instance, you would use name ne example-instance. # You can filter on nested fields. For example, you could filter on instances # that have set the scheduling.automaticRestart field to true. Use filtering on # nested fields to take advantage of labels to organize and search for results @@ -627,9 +626,8 @@ module Google # @param [String] deployment # The name of the deployment for this request. # @param [String] filter - # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: field_name - # comparison_string literal_string. + # Sets a filter `expression` for filtering listed resources. 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 @@ -638,7 +636,7 @@ module Google # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. # For example, to filter for instances that do not have a name of example- - # instance, you would use filter=name ne example-instance. + # instance, you would use name ne example-instance. # You can filter on nested fields. For example, you could filter on instances # that have set the scheduling.automaticRestart field to true. Use filtering on # nested fields to take advantage of labels to organize and search for results @@ -743,9 +741,8 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: field_name - # comparison_string literal_string. + # Sets a filter `expression` for filtering listed resources. 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 @@ -754,7 +751,7 @@ module Google # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. # For example, to filter for instances that do not have a name of example- - # instance, you would use filter=name ne example-instance. + # instance, you would use name ne example-instance. # You can filter on nested fields. For example, you could filter on instances # that have set the scheduling.automaticRestart field to true. Use filtering on # nested fields to take advantage of labels to organize and search for results @@ -863,9 +860,8 @@ module Google # @param [String] deployment # The name of the deployment for this request. # @param [String] filter - # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: field_name - # comparison_string literal_string. + # Sets a filter `expression` for filtering listed resources. 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 @@ -874,7 +870,7 @@ module Google # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. # For example, to filter for instances that do not have a name of example- - # instance, you would use filter=name ne example-instance. + # instance, you would use name ne example-instance. # You can filter on nested fields. For example, you could filter on instances # that have set the scheduling.automaticRestart field to true. Use filtering on # nested fields to take advantage of labels to organize and search for results @@ -941,9 +937,8 @@ module Google # @param [String] project # The project ID for this request. # @param [String] filter - # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: field_name - # comparison_string literal_string. + # Sets a filter `expression` for filtering listed resources. 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 @@ -952,7 +947,7 @@ module Google # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. # For example, to filter for instances that do not have a name of example- - # instance, you would use filter=name ne example-instance. + # instance, you would use name ne example-instance. # You can filter on nested fields. For example, you could filter on instances # that have set the scheduling.automaticRestart field to true. Use filtering on # nested fields to take advantage of labels to organize and search for results diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 8effd63e2..e1bc29439 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20170607' + REVISION = '20170630' # 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/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index 30a33c8b3..afe3d4201 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV2beta1 VERSION = 'V2beta1' - REVISION = '20170607' + REVISION = '20170630' # 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/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 2ab8ccd3b..eaa9bf64f 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20170531' + REVISION = '20170705' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1/classes.rb index 448e78dc8..97ce6327a 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/classes.rb @@ -65,8 +65,8 @@ module Google class DownloadLineItemsResponse include Google::Apis::Core::Hashable - # Retrieved line items in CSV format. Refer to Entity Write File Format or - # Structured Data File Format for more information on file formats. + # Retrieved line items in CSV format. For more information about file formats, + # see Entity Write File Format. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 24aaa5867..b36eca203 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 = '20170609' + REVISION = '20170705' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index ed3a3ab6f..0d5e4c225 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20170605' + REVISION = '20170623' # 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/service.rb b/generated/google/apis/drive_v2/service.rb index 6333a96e2..ac25e1e78 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -993,7 +993,7 @@ module Google end # Exports a Google Doc to the requested MIME type and returns the exported - # content. + # content. Please note that the exported content is limited to 10MB. # @param [String] file_id # The ID of the file. # @param [String] mime_type diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 61ea5f99a..d960b079b 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20170605' + REVISION = '20170623' # 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/service.rb b/generated/google/apis/drive_v3/service.rb index b8cc5273e..23c4f70ad 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -697,7 +697,7 @@ module Google end # Exports a Google Doc to the requested MIME type and returns the exported - # content. + # content. Please note that the exported content is limited to 10MB. # @param [String] file_id # The ID of the file. # @param [String] mime_type diff --git a/generated/google/apis/firebasedynamiclinks_v1.rb b/generated/google/apis/firebasedynamiclinks_v1.rb index 75ec6f491..65228577a 100644 --- a/generated/google/apis/firebasedynamiclinks_v1.rb +++ b/generated/google/apis/firebasedynamiclinks_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/dynamic-links/ module FirebasedynamiclinksV1 VERSION = 'V1' - REVISION = '20170613' + REVISION = '20170703' # View and administer all your Firebase data and settings AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase' diff --git a/generated/google/apis/firebasedynamiclinks_v1/classes.rb b/generated/google/apis/firebasedynamiclinks_v1/classes.rb index 2d43e7f74..09a73a4ce 100644 --- a/generated/google/apis/firebasedynamiclinks_v1/classes.rb +++ b/generated/google/apis/firebasedynamiclinks_v1/classes.rb @@ -22,6 +22,37 @@ module Google module Apis module FirebasedynamiclinksV1 + # Response to create a short Dynamic Link. + class CreateShortDynamicLinkResponse + include Google::Apis::Core::Hashable + + # Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz + # Corresponds to the JSON property `shortLink` + # @return [String] + attr_accessor :short_link + + # Preivew link to show the link flow chart. + # Corresponds to the JSON property `previewLink` + # @return [String] + attr_accessor :preview_link + + # Information about potential warnings on link creation. + # Corresponds to the JSON property `warning` + # @return [Array] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @short_link = args[:short_link] if args.key?(:short_link) + @preview_link = args[:preview_link] if args.key?(:preview_link) + @warning = args[:warning] if args.key?(:warning) + end + end + # Short Dynamic Link suffix. class Suffix include Google::Apis::Core::Hashable @@ -102,6 +133,27 @@ module Google class DynamicLinkInfo include Google::Apis::Core::Hashable + # The link your app will open, You can specify any URL your app can handle. + # This link must be a well-formatted URL, be properly URL-encoded, and use + # the HTTP or HTTPS scheme. See 'link' parameters in the + # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually) + # . + # Required. + # Corresponds to the JSON property `link` + # @return [String] + attr_accessor :link + + # iOS related attributes to the Dynamic Link.. + # Corresponds to the JSON property `iosInfo` + # @return [Google::Apis::FirebasedynamiclinksV1::IosInfo] + attr_accessor :ios_info + + # Parameters for social meta tag params. + # Used to set meta tag data for link previews on social sites. + # Corresponds to the JSON property `socialMetaTagInfo` + # @return [Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo] + attr_accessor :social_meta_tag_info + # Android related attributes to the Dynamic Link. # Corresponds to the JSON property `androidInfo` # @return [Google::Apis::FirebasedynamiclinksV1::AndroidInfo] @@ -125,40 +177,19 @@ module Google # @return [String] attr_accessor :dynamic_link_domain - # The link your app will open, You can specify any URL your app can handle. - # This link must be a well-formatted URL, be properly URL-encoded, and use - # the HTTP or HTTPS scheme. See 'link' parameters in the - # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually) - # . - # Required. - # Corresponds to the JSON property `link` - # @return [String] - attr_accessor :link - - # iOS related attributes to the Dynamic Link.. - # Corresponds to the JSON property `iosInfo` - # @return [Google::Apis::FirebasedynamiclinksV1::IosInfo] - attr_accessor :ios_info - - # Parameters for social meta tag params. - # Used to set meta tag data for link previews on social sites. - # Corresponds to the JSON property `socialMetaTagInfo` - # @return [Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo] - attr_accessor :social_meta_tag_info - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @link = args[:link] if args.key?(:link) + @ios_info = args[:ios_info] if args.key?(:ios_info) + @social_meta_tag_info = args[:social_meta_tag_info] if args.key?(:social_meta_tag_info) @android_info = args[:android_info] if args.key?(:android_info) @navigation_info = args[:navigation_info] if args.key?(:navigation_info) @analytics_info = args[:analytics_info] if args.key?(:analytics_info) @dynamic_link_domain = args[:dynamic_link_domain] if args.key?(:dynamic_link_domain) - @link = args[:link] if args.key?(:link) - @ios_info = args[:ios_info] if args.key?(:ios_info) - @social_meta_tag_info = args[:social_meta_tag_info] if args.key?(:social_meta_tag_info) end end @@ -233,31 +264,6 @@ module Google end end - # Dynamic Links warning messages. - class DynamicLinkWarning - include Google::Apis::Core::Hashable - - # The warning code. - # Corresponds to the JSON property `warningCode` - # @return [String] - attr_accessor :warning_code - - # The warning message to help developers improve their requests. - # Corresponds to the JSON property `warningMessage` - # @return [String] - attr_accessor :warning_message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @warning_code = args[:warning_code] if args.key?(:warning_code) - @warning_message = args[:warning_message] if args.key?(:warning_message) - end - end - # Analytics stats of a Dynamic Link for a given timeframe. class DynamicLinkStats include Google::Apis::Core::Hashable @@ -277,10 +283,40 @@ module Google end end + # Dynamic Links warning messages. + class DynamicLinkWarning + include Google::Apis::Core::Hashable + + # The warning message to help developers improve their requests. + # Corresponds to the JSON property `warningMessage` + # @return [String] + attr_accessor :warning_message + + # The warning code. + # Corresponds to the JSON property `warningCode` + # @return [String] + attr_accessor :warning_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warning_message = args[:warning_message] if args.key?(:warning_message) + @warning_code = args[:warning_code] if args.key?(:warning_code) + end + end + # Android related attributes to the Dynamic Link. class AndroidInfo include Google::Apis::Core::Hashable + # Link to open on Android if the app is not installed. + # Corresponds to the JSON property `androidFallbackLink` + # @return [String] + attr_accessor :android_fallback_link + # Android package name of the app. # Corresponds to the JSON property `androidPackageName` # @return [String] @@ -297,21 +333,16 @@ module Google # @return [String] attr_accessor :android_link - # Link to open on Android if the app is not installed. - # Corresponds to the JSON property `androidFallbackLink` - # @return [String] - attr_accessor :android_fallback_link - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @android_fallback_link = args[:android_fallback_link] if args.key?(:android_fallback_link) @android_package_name = args[:android_package_name] if args.key?(:android_package_name) @android_min_package_version_code = args[:android_min_package_version_code] if args.key?(:android_min_package_version_code) @android_link = args[:android_link] if args.key?(:android_link) - @android_fallback_link = args[:android_fallback_link] if args.key?(:android_fallback_link) end end @@ -453,6 +484,11 @@ module Google class DynamicLinkEventStat include Google::Apis::Core::Hashable + # Requested platform. + # Corresponds to the JSON property `platform` + # @return [String] + attr_accessor :platform + # The number of times this event occurred. # Corresponds to the JSON property `count` # @return [Fixnum] @@ -463,51 +499,15 @@ module Google # @return [String] attr_accessor :event - # Requested platform. - # Corresponds to the JSON property `platform` - # @return [String] - attr_accessor :platform - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @platform = args[:platform] if args.key?(:platform) @count = args[:count] if args.key?(:count) @event = args[:event] if args.key?(:event) - @platform = args[:platform] if args.key?(:platform) - end - end - - # Response to create a short Dynamic Link. - class CreateShortDynamicLinkResponse - include Google::Apis::Core::Hashable - - # Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz - # Corresponds to the JSON property `shortLink` - # @return [String] - attr_accessor :short_link - - # Preivew link to show the link flow chart. - # Corresponds to the JSON property `previewLink` - # @return [String] - attr_accessor :preview_link - - # Information about potential warnings on link creation. - # Corresponds to the JSON property `warning` - # @return [Array] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @short_link = args[:short_link] if args.key?(:short_link) - @preview_link = args[:preview_link] if args.key?(:preview_link) - @warning = args[:warning] if args.key?(:warning) end end end diff --git a/generated/google/apis/firebasedynamiclinks_v1/representations.rb b/generated/google/apis/firebasedynamiclinks_v1/representations.rb index 2c0ce4062..9117715c3 100644 --- a/generated/google/apis/firebasedynamiclinks_v1/representations.rb +++ b/generated/google/apis/firebasedynamiclinks_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module FirebasedynamiclinksV1 + class CreateShortDynamicLinkResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Suffix class Representation < Google::Apis::Core::JsonRepresentation; end @@ -52,13 +58,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DynamicLinkWarning + class DynamicLinkStats class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DynamicLinkStats + class DynamicLinkWarning class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -101,9 +107,13 @@ module Google end class CreateShortDynamicLinkResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :short_link, as: 'shortLink' + property :preview_link, as: 'previewLink' + collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Suffix @@ -128,6 +138,11 @@ module Google class DynamicLinkInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :link, as: 'link' + property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation + + property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation + property :android_info, as: 'androidInfo', class: Google::Apis::FirebasedynamiclinksV1::AndroidInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AndroidInfo::Representation property :navigation_info, as: 'navigationInfo', class: Google::Apis::FirebasedynamiclinksV1::NavigationInfo, decorator: Google::Apis::FirebasedynamiclinksV1::NavigationInfo::Representation @@ -135,11 +150,6 @@ module Google property :analytics_info, as: 'analyticsInfo', class: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo::Representation property :dynamic_link_domain, as: 'dynamicLinkDomain' - property :link, as: 'link' - property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation - - property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation - end end @@ -162,14 +172,6 @@ module Google end end - class DynamicLinkWarning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :warning_code, as: 'warningCode' - property :warning_message, as: 'warningMessage' - end - end - class DynamicLinkStats # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -178,13 +180,21 @@ module Google end end + class DynamicLinkWarning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :warning_message, as: 'warningMessage' + property :warning_code, as: 'warningCode' + end + end + class AndroidInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :android_fallback_link, as: 'androidFallbackLink' property :android_package_name, as: 'androidPackageName' property :android_min_package_version_code, as: 'androidMinPackageVersionCode' property :android_link, as: 'androidLink' - property :android_fallback_link, as: 'androidFallbackLink' end end @@ -231,19 +241,9 @@ module Google class DynamicLinkEventStat # @private class Representation < Google::Apis::Core::JsonRepresentation + property :platform, as: 'platform' property :count, :numeric_string => true, as: 'count' property :event, as: 'event' - property :platform, as: 'platform' - end - end - - class CreateShortDynamicLinkResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :short_link, as: 'shortLink' - property :preview_link, as: 'previewLink' - collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation - end end end diff --git a/generated/google/apis/firebaserules_v1/classes.rb b/generated/google/apis/firebaserules_v1/classes.rb index 5debc2437..7ef26dcb1 100644 --- a/generated/google/apis/firebaserules_v1/classes.rb +++ b/generated/google/apis/firebaserules_v1/classes.rb @@ -22,6 +22,381 @@ module Google module Apis module FirebaserulesV1 + # `File` containing source content. + class File + include Google::Apis::Core::Hashable + + # Textual Content. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Fingerprint (e.g. github sha) associated with the `File`. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # File 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) + @content = args[:content] if args.key?(:content) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + end + end + + # Represents a service-defined function call that was invoked during test + # execution. + class FunctionCall + include Google::Apis::Core::Hashable + + # The arguments that were provided to the function. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # Name of the function invoked. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @args = args[:args] if args.key?(:args) + @function = args[:function] if args.key?(:function) + end + end + + # The response for FirebaseRulesService.ListReleases. + class ListReleasesResponse + include Google::Apis::Core::Hashable + + # List of `Release` instances. + # Corresponds to the JSON property `releases` + # @return [Array] + attr_accessor :releases + + # The pagination token to retrieve the next page of results. If the value is + # empty, no further results remain. + # 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) + @releases = args[:releases] if args.key?(:releases) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a + # `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. + class Release + include Google::Apis::Core::Hashable + + # Time the release was created. + # Output only. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Time the release was updated. + # Output only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Resource name for the `Release`. + # `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` + # which affords developers a great deal of flexibility in mapping the name + # to the style that best fits their existing development practices. For + # example, a name could refer to an environment, an app, a version, or some + # combination of three. + # In the table below, for the project name `projects/foo`, the following + # relative release paths show how flat and structured names might be chosen + # to match a desired development / deployment strategy. + # Use Case | Flat Name | Structured Name + # -------------|---------------------|---------------- + # Environments | releases/qa | releases/qa + # Apps | releases/app1_qa | releases/app1/qa + # Versions | releases/app1_v2_qa | releases/app1/v2/qa + # The delimiter between the release name path elements can be almost anything + # and it should work equally well with the release name list filter, but in + # many ways the structured paths provide a clearer picture of the + # relationship between `Release` instances. + # Format: `projects/`project_id`/releases/`release_id`` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must + # exist the `Release` to be created. + # Corresponds to the JSON property `rulesetName` + # @return [String] + attr_accessor :ruleset_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @update_time = args[:update_time] if args.key?(:update_time) + @name = args[:name] if args.key?(:name) + @ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name) + end + end + + # The response for FirebaseRulesService.TestRuleset. + class TestRulesetResponse + include Google::Apis::Core::Hashable + + # The set of test results given the test cases in the `TestSuite`. + # The results will appear in the same order as the test cases appear in the + # `TestSuite`. + # Corresponds to the JSON property `testResults` + # @return [Array] + attr_accessor :test_results + + # Syntactic and semantic `Source` issues of varying severity. Issues of + # `ERROR` severity will prevent tests from executing. + # Corresponds to the JSON property `issues` + # @return [Array] + attr_accessor :issues + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_results = args[:test_results] if args.key?(:test_results) + @issues = args[:issues] if args.key?(:issues) + end + end + + # Test result message containing the state of the test as well as a + # description and source position for test failures. + class TestResult + include Google::Apis::Core::Hashable + + # Position in the `Source` content including its line, column number, and an + # index of the `File` in the `Source` message. Used for debug purposes. + # Corresponds to the JSON property `errorPosition` + # @return [Google::Apis::FirebaserulesV1::SourcePosition] + attr_accessor :error_position + + # The set of function calls made to service-defined methods. + # Function calls are included in the order in which they are encountered + # during evaluation, are provided for both mocked and unmocked functions, + # and included on the response regardless of the test `state`. + # Corresponds to the JSON property `functionCalls` + # @return [Array] + attr_accessor :function_calls + + # State of the test. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Debug messages related to test execution issues encountered during + # evaluation. + # Debug messages may be related to too many or too few invocations of + # function mocks or to runtime errors that occur during evaluation. + # For example: ```Unable to read variable [name: "resource"]``` + # Corresponds to the JSON property `debugMessages` + # @return [Array] + attr_accessor :debug_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_position = args[:error_position] if args.key?(:error_position) + @function_calls = args[:function_calls] if args.key?(:function_calls) + @state = args[:state] if args.key?(:state) + @debug_messages = args[:debug_messages] if args.key?(:debug_messages) + end + end + + # The response for FirebaseRulesService.ListRulesets. + class ListRulesetsResponse + include Google::Apis::Core::Hashable + + # The pagination token to retrieve the next page of results. If the value is + # empty, no further results remain. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of `Ruleset` instances. + # Corresponds to the JSON property `rulesets` + # @return [Array] + attr_accessor :rulesets + + 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) + @rulesets = args[:rulesets] if args.key?(:rulesets) + end + end + + # Arg matchers for the mock function. + class Arg + include Google::Apis::Core::Hashable + + # Argument exactly matches value provided. + # Corresponds to the JSON property `exactValue` + # @return [Object] + attr_accessor :exact_value + + # 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 ````. + # Corresponds to the JSON property `anyValue` + # @return [Google::Apis::FirebaserulesV1::Empty] + attr_accessor :any_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exact_value = args[:exact_value] if args.key?(:exact_value) + @any_value = args[:any_value] if args.key?(:any_value) + end + end + + # `TestSuite` is a collection of `TestCase` instances that validate the logical + # correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within + # a `TestRuleset` invocation or as part of a `Release` object as a pre-release + # check. + class TestSuite + include Google::Apis::Core::Hashable + + # Collection of test cases associated with the `TestSuite`. + # Corresponds to the JSON property `testCases` + # @return [Array] + attr_accessor :test_cases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_cases = args[:test_cases] if args.key?(:test_cases) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Mock function definition. + # Mocks must refer to a function declared by the target service. The type of + # the function args and result will be inferred at test time. If either the + # arg or result values are not compatible with function type declaration, the + # request will be considered invalid. + # More than one `FunctionMock` may be provided for a given function name so + # long as the `Arg` matchers are distinct. There may be only one function + # for a given overload where all `Arg` values are `Arg.any_value`. + class FunctionMock + include Google::Apis::Core::Hashable + + # The list of `Arg` values to match. The order in which the arguments are + # provided is the order in which they must appear in the function + # invocation. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # The name of the function. + # The function name must match one provided by a service declaration. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # Possible result values from the function mock invocation. + # Corresponds to the JSON property `result` + # @return [Google::Apis::FirebaserulesV1::Result] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @args = args[:args] if args.key?(:args) + @function = args[:function] if args.key?(:function) + @result = args[:result] if args.key?(:result) + end + end + + # `Source` is one or more `File` messages comprising a logical set of rules. + class Source + include Google::Apis::Core::Hashable + + # `File` set constituting the `Source` bundle. + # Corresponds to the JSON property `files` + # @return [Array] + attr_accessor :files + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @files = args[:files] if args.key?(:files) + end + end + # Possible result values from the function mock invocation. class Result include Google::Apis::Core::Hashable @@ -148,41 +523,6 @@ module Google end end - # `Ruleset` is an immutable copy of `Source` with a globally unique identifier - # and a creation time. - class Ruleset - include Google::Apis::Core::Hashable - - # `Source` is one or more `File` messages comprising a logical set of rules. - # Corresponds to the JSON property `source` - # @return [Google::Apis::FirebaserulesV1::Source] - attr_accessor :source - - # Time the `Ruleset` was created. - # Output only. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Name of the `Ruleset`. The ruleset_id is auto generated by the service. - # Format: `projects/`project_id`/rulesets/`ruleset_id`` - # Output only. - # 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) - @source = args[:source] if args.key?(:source) - @create_time = args[:create_time] if args.key?(:create_time) - @name = args[:name] if args.key?(:name) - end - end - # The request for FirebaseRulesService.TestRuleset. class TestRulesetRequest include Google::Apis::Core::Hashable @@ -211,6 +551,41 @@ module Google end end + # `Ruleset` is an immutable copy of `Source` with a globally unique identifier + # and a creation time. + class Ruleset + include Google::Apis::Core::Hashable + + # Name of the `Ruleset`. The ruleset_id is auto generated by the service. + # Format: `projects/`project_id`/rulesets/`ruleset_id`` + # Output only. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # `Source` is one or more `File` messages comprising a logical set of rules. + # Corresponds to the JSON property `source` + # @return [Google::Apis::FirebaserulesV1::Source] + attr_accessor :source + + # Time the `Ruleset` was created. + # Output only. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @source = args[:source] if args.key?(:source) + @create_time = args[:create_time] if args.key?(:create_time) + end + end + # Issues include warnings, errors, and deprecation notices. class Issue include Google::Apis::Core::Hashable @@ -242,381 +617,6 @@ module Google @severity = args[:severity] if args.key?(:severity) end end - - # The response for FirebaseRulesService.ListReleases. - class ListReleasesResponse - include Google::Apis::Core::Hashable - - # List of `Release` instances. - # Corresponds to the JSON property `releases` - # @return [Array] - attr_accessor :releases - - # The pagination token to retrieve the next page of results. If the value is - # empty, no further results remain. - # 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) - @releases = args[:releases] if args.key?(:releases) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # `File` containing source content. - class File - include Google::Apis::Core::Hashable - - # File name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Textual Content. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # Fingerprint (e.g. github sha) associated with the `File`. - # Corresponds to the JSON property `fingerprint` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :fingerprint - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @content = args[:content] if args.key?(:content) - @fingerprint = args[:fingerprint] if args.key?(:fingerprint) - end - end - - # Represents a service-defined function call that was invoked during test - # execution. - class FunctionCall - include Google::Apis::Core::Hashable - - # The arguments that were provided to the function. - # Corresponds to the JSON property `args` - # @return [Array] - attr_accessor :args - - # Name of the function invoked. - # Corresponds to the JSON property `function` - # @return [String] - attr_accessor :function - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @args = args[:args] if args.key?(:args) - @function = args[:function] if args.key?(:function) - end - end - - # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a - # `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. - class Release - include Google::Apis::Core::Hashable - - # Time the release was created. - # Output only. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Time the release was updated. - # Output only. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - # Resource name for the `Release`. - # `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` - # which affords developers a great deal of flexibility in mapping the name - # to the style that best fits their existing development practices. For - # example, a name could refer to an environment, an app, a version, or some - # combination of three. - # In the table below, for the project name `projects/foo`, the following - # relative release paths show how flat and structured names might be chosen - # to match a desired development / deployment strategy. - # Use Case | Flat Name | Structured Name - # -------------|---------------------|---------------- - # Environments | releases/qa | releases/qa - # Apps | releases/app1_qa | releases/app1/qa - # Versions | releases/app1_v2_qa | releases/app1/v2/qa - # The delimiter between the release name path elements can be almost anything - # and it should work equally well with the release name list filter, but in - # many ways the structured paths provide a clearer picture of the - # relationship between `Release` instances. - # Format: `projects/`project_id`/releases/`release_id`` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must - # exist the `Release` to be created. - # Corresponds to the JSON property `rulesetName` - # @return [String] - attr_accessor :ruleset_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @update_time = args[:update_time] if args.key?(:update_time) - @name = args[:name] if args.key?(:name) - @ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name) - end - end - - # The response for FirebaseRulesService.TestRuleset. - class TestRulesetResponse - include Google::Apis::Core::Hashable - - # The set of test results given the test cases in the `TestSuite`. - # The results will appear in the same order as the test cases appear in the - # `TestSuite`. - # Corresponds to the JSON property `testResults` - # @return [Array] - attr_accessor :test_results - - # Syntactic and semantic `Source` issues of varying severity. Issues of - # `ERROR` severity will prevent tests from executing. - # Corresponds to the JSON property `issues` - # @return [Array] - attr_accessor :issues - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @test_results = args[:test_results] if args.key?(:test_results) - @issues = args[:issues] if args.key?(:issues) - end - end - - # Test result message containing the state of the test as well as a - # description and source position for test failures. - class TestResult - include Google::Apis::Core::Hashable - - # The set of function calls made to service-defined methods. - # Function calls are included in the order in which they are encountered - # during evaluation, are provided for both mocked and unmocked functions, - # and included on the response regardless of the test `state`. - # Corresponds to the JSON property `functionCalls` - # @return [Array] - attr_accessor :function_calls - - # State of the test. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Debug messages related to test execution issues encountered during - # evaluation. - # Debug messages may be related to too many or too few invocations of - # function mocks or to runtime errors that occur during evaluation. - # For example: ```Unable to read variable [name: "resource"]``` - # Corresponds to the JSON property `debugMessages` - # @return [Array] - attr_accessor :debug_messages - - # Position in the `Source` content including its line, column number, and an - # index of the `File` in the `Source` message. Used for debug purposes. - # Corresponds to the JSON property `errorPosition` - # @return [Google::Apis::FirebaserulesV1::SourcePosition] - attr_accessor :error_position - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @function_calls = args[:function_calls] if args.key?(:function_calls) - @state = args[:state] if args.key?(:state) - @debug_messages = args[:debug_messages] if args.key?(:debug_messages) - @error_position = args[:error_position] if args.key?(:error_position) - end - end - - # The response for FirebaseRulesService.ListRulesets. - class ListRulesetsResponse - include Google::Apis::Core::Hashable - - # List of `Ruleset` instances. - # Corresponds to the JSON property `rulesets` - # @return [Array] - attr_accessor :rulesets - - # The pagination token to retrieve the next page of results. If the value is - # empty, no further results remain. - # 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) - @rulesets = args[:rulesets] if args.key?(:rulesets) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Arg matchers for the mock function. - class Arg - include Google::Apis::Core::Hashable - - # Argument exactly matches value provided. - # Corresponds to the JSON property `exactValue` - # @return [Object] - attr_accessor :exact_value - - # 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 ````. - # Corresponds to the JSON property `anyValue` - # @return [Google::Apis::FirebaserulesV1::Empty] - attr_accessor :any_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exact_value = args[:exact_value] if args.key?(:exact_value) - @any_value = args[:any_value] if args.key?(:any_value) - end - end - - # `TestSuite` is a collection of `TestCase` instances that validate the logical - # correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within - # a `TestRuleset` invocation or as part of a `Release` object as a pre-release - # check. - class TestSuite - include Google::Apis::Core::Hashable - - # Collection of test cases associated with the `TestSuite`. - # Corresponds to the JSON property `testCases` - # @return [Array] - attr_accessor :test_cases - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @test_cases = args[:test_cases] if args.key?(:test_cases) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Mock function definition. - # Mocks must refer to a function declared by the target service. The type of - # the function args and result will be inferred at test time. If either the - # arg or result values are not compatible with function type declaration, the - # request will be considered invalid. - # More than one `FunctionMock` may be provided for a given function name so - # long as the `Arg` matchers are distinct. There may be only one function - # for a given overload where all `Arg` values are `Arg.any_value`. - class FunctionMock - include Google::Apis::Core::Hashable - - # The name of the function. - # The function name must match one provided by a service declaration. - # Corresponds to the JSON property `function` - # @return [String] - attr_accessor :function - - # Possible result values from the function mock invocation. - # Corresponds to the JSON property `result` - # @return [Google::Apis::FirebaserulesV1::Result] - attr_accessor :result - - # The list of `Arg` values to match. The order in which the arguments are - # provided is the order in which they must appear in the function - # invocation. - # Corresponds to the JSON property `args` - # @return [Array] - attr_accessor :args - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @function = args[:function] if args.key?(:function) - @result = args[:result] if args.key?(:result) - @args = args[:args] if args.key?(:args) - end - end - - # `Source` is one or more `File` messages comprising a logical set of rules. - class Source - include Google::Apis::Core::Hashable - - # `File` set constituting the `Source` bundle. - # Corresponds to the JSON property `files` - # @return [Array] - attr_accessor :files - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @files = args[:files] if args.key?(:files) - end - end end end end diff --git a/generated/google/apis/firebaserules_v1/representations.rb b/generated/google/apis/firebaserules_v1/representations.rb index 05630a210..ce0827195 100644 --- a/generated/google/apis/firebaserules_v1/representations.rb +++ b/generated/google/apis/firebaserules_v1/representations.rb @@ -22,48 +22,6 @@ module Google module Apis module FirebaserulesV1 - class Result - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SourcePosition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestCase - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Ruleset - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestRulesetRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Issue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListReleasesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class File class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListReleasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Release class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,6 +94,151 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Result + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourcePosition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestCase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestRulesetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Ruleset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Issue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class File + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :name, as: 'name' + end + end + + class FunctionCall + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :args, as: 'args' + property :function, as: 'function' + end + end + + class ListReleasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Release + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :update_time, as: 'updateTime' + property :name, as: 'name' + property :ruleset_name, as: 'rulesetName' + end + end + + class TestRulesetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation + + collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation + + end + end + + class TestResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation + + collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation + + property :state, as: 'state' + collection :debug_messages, as: 'debugMessages' + end + end + + class ListRulesetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation + + end + end + + class Arg + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exact_value, as: 'exactValue' + property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation + + end + end + + class TestSuite + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class FunctionMock + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation + + property :function, as: 'function' + property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation + + end + end + + class Source + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation + + end + end + class Result # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -159,16 +268,6 @@ module Google end end - class Ruleset - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation - - property :create_time, as: 'createTime' - property :name, as: 'name' - end - end - class TestRulesetRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -179,6 +278,16 @@ module Google end end + class Ruleset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation + + property :create_time, as: 'createTime' + end + end + class Issue # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -188,115 +297,6 @@ module Google property :severity, as: 'severity' end end - - class ListReleasesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class File - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :content, as: 'content' - property :fingerprint, :base64 => true, as: 'fingerprint' - end - end - - class FunctionCall - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :args, as: 'args' - property :function, as: 'function' - end - end - - class Release - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :update_time, as: 'updateTime' - property :name, as: 'name' - property :ruleset_name, as: 'rulesetName' - end - end - - class TestRulesetResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation - - collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation - - end - end - - class TestResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation - - property :state, as: 'state' - collection :debug_messages, as: 'debugMessages' - property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation - - end - end - - class ListRulesetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class Arg - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exact_value, as: 'exactValue' - property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation - - end - end - - class TestSuite - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation - - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class FunctionMock - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :function, as: 'function' - property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation - - collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation - - end - end - - class Source - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation - - end - end end end end diff --git a/generated/google/apis/firebaserules_v1/service.rb b/generated/google/apis/firebaserules_v1/service.rb index dbd723a6e..5925f5ff9 100644 --- a/generated/google/apis/firebaserules_v1/service.rb +++ b/generated/google/apis/firebaserules_v1/service.rb @@ -102,157 +102,6 @@ module Google execute_or_queue_command(command, &block) end - # Delete a `Ruleset` by resource name. - # If the `Ruleset` is referenced by a `Release` the operation will fail. - # @param [String] name - # Resource name for the ruleset to delete. - # Format: `projects/`project_id`/rulesets/`ruleset_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::FirebaserulesV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FirebaserulesV1::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_ruleset(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation - command.response_class = Google::Apis::FirebaserulesV1::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Get a `Ruleset` by name including the full `Source` contents. - # @param [String] name - # Resource name for the ruleset to get. - # Format: `projects/`project_id`/rulesets/`ruleset_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::FirebaserulesV1::Ruleset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FirebaserulesV1::Ruleset] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_ruleset(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation - command.response_class = Google::Apis::FirebaserulesV1::Ruleset - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # List `Ruleset` metadata only and optionally filter the results by `Ruleset` - # name. - # The full `Source` contents of a `Ruleset` may be retrieved with - # GetRuleset. - # @param [String] name - # Resource name for the project. - # Format: `projects/`project_id`` - # @param [String] page_token - # Next page token for loading the next batch of `Ruleset` instances. - # @param [Fixnum] page_size - # Page size to load. Maximum of 100. Defaults to 10. - # Note: `page_size` is just a hint and the service may choose to load less - # than `page_size` due to the size of the output. To traverse all of the - # releases, caller should iterate until the `page_token` is empty. - # @param [String] filter - # `Ruleset` filter. The list method supports filters with restrictions on - # `Ruleset.name`. - # Filters on `Ruleset.create_time` should use the `date` function which - # parses strings that conform to the RFC 3339 date/time specifications. - # Example: `create_time > date("2017-01-01") AND name=UUID-*` - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::FirebaserulesV1::ListRulesetsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_rulesets(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/rulesets', options) - command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation - command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse - command.params['name'] = name unless name.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Create a `Ruleset` from `Source`. - # The `Ruleset` is given a unique generated name which is returned to the - # caller. `Source` containing syntactic or semantics errors will result in an - # error response indicating the first error encountered. For a detailed view - # of `Source` issues, use TestRuleset. - # @param [String] name - # Resource name for Project which owns this `Ruleset`. - # Format: `projects/`project_id`` - # @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_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::FirebaserulesV1::Ruleset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FirebaserulesV1::Ruleset] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_ruleset(name, ruleset_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}/rulesets', options) - command.request_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation - command.request_object = ruleset_object - command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation - command.response_class = Google::Apis::FirebaserulesV1::Ruleset - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Update a `Release`. # Only updates to the `ruleset_name` and `test_suite_name` fields will be # honored. `Release` rename is not supported. To create a `Release` use the @@ -483,6 +332,157 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Get a `Ruleset` by name including the full `Source` contents. + # @param [String] name + # Resource name for the ruleset to get. + # Format: `projects/`project_id`/rulesets/`ruleset_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::FirebaserulesV1::Ruleset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::Ruleset] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_ruleset(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation + command.response_class = Google::Apis::FirebaserulesV1::Ruleset + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List `Ruleset` metadata only and optionally filter the results by `Ruleset` + # name. + # The full `Source` contents of a `Ruleset` may be retrieved with + # GetRuleset. + # @param [String] name + # Resource name for the project. + # Format: `projects/`project_id`` + # @param [String] filter + # `Ruleset` filter. The list method supports filters with restrictions on + # `Ruleset.name`. + # Filters on `Ruleset.create_time` should use the `date` function which + # parses strings that conform to the RFC 3339 date/time specifications. + # Example: `create_time > date("2017-01-01") AND name=UUID-*` + # @param [String] page_token + # Next page token for loading the next batch of `Ruleset` instances. + # @param [Fixnum] page_size + # Page size to load. Maximum of 100. Defaults to 10. + # Note: `page_size` is just a hint and the service may choose to load less + # than `page_size` due to the size of the output. To traverse all of the + # releases, caller should iterate until the `page_token` is empty. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::FirebaserulesV1::ListRulesetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_rulesets(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/rulesets', options) + command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation + command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.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 + + # Create a `Ruleset` from `Source`. + # The `Ruleset` is given a unique generated name which is returned to the + # caller. `Source` containing syntactic or semantics errors will result in an + # error response indicating the first error encountered. For a detailed view + # of `Source` issues, use TestRuleset. + # @param [String] name + # Resource name for Project which owns this `Ruleset`. + # Format: `projects/`project_id`` + # @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_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::FirebaserulesV1::Ruleset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::Ruleset] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_ruleset(name, ruleset_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}/rulesets', options) + command.request_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation + command.request_object = ruleset_object + command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation + command.response_class = Google::Apis::FirebaserulesV1::Ruleset + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Delete a `Ruleset` by resource name. + # If the `Ruleset` is referenced by a `Release` the operation will fail. + # @param [String] name + # Resource name for the ruleset to delete. + # Format: `projects/`project_id`/rulesets/`ruleset_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::FirebaserulesV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::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_ruleset(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation + command.response_class = Google::Apis::FirebaserulesV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 9bc30bd8a..e7effa8d1 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 = '20170601' + REVISION = '20170710' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index ce2ae233f..b1c344dd4 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 = '20170601' + REVISION = '20170710' # 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_v1.rb b/generated/google/apis/games_v1.rb index 67ccb09bd..259fcd6dc 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 = '20170601' + REVISION = '20170710' # 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/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 01c76214b..38161fe25 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,22 +25,22 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20170614' - - # View and manage your data in Google BigQuery - AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' - - # Manage your data in Google Cloud Storage - AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170712' # View Genomics data AUTH_GENOMICS_READONLY = 'https://www.googleapis.com/auth/genomics.readonly' + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View and manage Genomics data AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics' + + # Manage your data in Google Cloud Storage + AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write' + + # View and manage your data in Google BigQuery + AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' end end end diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index ad5678477..ebaf7a41f 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -22,565 +22,6 @@ module Google module Apis module GenomicsV1 - # The dataset list response. - class ListDatasetsResponse - include Google::Apis::Core::Hashable - - # The list of matching Datasets. - # Corresponds to the JSON property `datasets` - # @return [Array] - attr_accessor :datasets - - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. This field will be empty if there aren't any additional 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) - @datasets = args[:datasets] if args.key?(:datasets) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Request message for `TestIamPermissions` method. - class TestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # REQUIRED: The set of permissions to check for the 'resource'. - # Permissions with wildcards (such as '*' or 'storage.*') are not allowed. - # Allowed permissions are: - # * `genomics.datasets.create` - # * `genomics.datasets.delete` - # * `genomics.datasets.get` - # * `genomics.datasets.list` - # * `genomics.datasets.update` - # * `genomics.datasets.getIamPolicy` - # * `genomics.datasets.setIamPolicy` - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # The read group set export request. - class ExportReadGroupSetRequest - include Google::Apis::Core::Hashable - - # Required. The Google Cloud project ID that owns this - # export. The caller must have WRITE access to this project. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # Required. A Google Cloud Storage URI for the exported BAM file. - # The currently authenticated user must have write access to the new file. - # An error will be returned if the URI already contains data. - # Corresponds to the JSON property `exportUri` - # @return [String] - attr_accessor :export_uri - - # The reference names to export. If this is not specified, all reference - # sequences, including unmapped reads, are exported. - # Use `*` to export only unmapped reads. - # Corresponds to the JSON property `referenceNames` - # @return [Array] - attr_accessor :reference_names - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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 - - # - class Exon - include Google::Apis::Core::Hashable - - # The end position of the exon on this annotation's reference sequence, - # 0-based exclusive. Note that this is relative to the reference start, and - # *not* the containing annotation start. - # Corresponds to the JSON property `end` - # @return [Fixnum] - attr_accessor :end - - # The frame of this exon. Contains a value of 0, 1, or 2, which indicates - # the offset of the first coding base of the exon within the reading frame - # of the coding DNA sequence, if any. This field is dependent on the - # strandedness of this annotation (see - # Annotation.reverse_strand). - # For forward stranded annotations, this offset is relative to the - # exon.start. For reverse - # strand annotations, this offset is relative to the - # exon.end `- 1`. - # Unset if this exon does not intersect the coding sequence. Upon creation - # of a transcript, the frame must be populated for all or none of the - # coding exons. - # Corresponds to the JSON property `frame` - # @return [Fixnum] - attr_accessor :frame - - # The start position of the exon on this annotation's reference sequence, - # 0-based inclusive. Note that this is relative to the reference start, and - # **not** the containing annotation start. - # Corresponds to the JSON property `start` - # @return [Fixnum] - attr_accessor :start - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end = args[:end] if args.key?(:end) - @frame = args[:frame] if args.key?(:frame) - @start = args[:start] if args.key?(:start) - end - end - - # A call set is a collection of variant calls, typically for one sample. It - # belongs to a variant set. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - class CallSet - include Google::Apis::Core::Hashable - - # The date this call set was created in milliseconds from the epoch. - # Corresponds to the JSON property `created` - # @return [Fixnum] - attr_accessor :created - - # The sample ID this call set corresponds to. - # Corresponds to the JSON property `sampleId` - # @return [String] - attr_accessor :sample_id - - # The call set name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A map of additional call set information. This must be of the form - # map (string key mapping to a list of string values). - # Corresponds to the JSON property `info` - # @return [Hash>] - attr_accessor :info - - # The IDs of the variant sets this call set belongs to. This field must - # have exactly length one, as a call set belongs to a single variant set. - # This field is repeated for compatibility with the - # [GA4GH 0.5.1 - # API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/ - # variants.avdl#L76). - # Corresponds to the JSON property `variantSetIds` - # @return [Array] - attr_accessor :variant_set_ids - - # The server-generated call set ID, unique across all call sets. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @created = args[:created] if args.key?(:created) - @sample_id = args[:sample_id] if args.key?(:sample_id) - @name = args[:name] if args.key?(:name) - @info = args[:info] if args.key?(:info) - @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) - @id = args[:id] if args.key?(:id) - end - end - - # - class SearchAnnotationSetsResponse - include Google::Apis::Core::Hashable - - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. This field will be empty if there aren't any additional results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The matching annotation sets. - # Corresponds to the JSON property `annotationSets` - # @return [Array] - attr_accessor :annotation_sets - - 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) - @annotation_sets = args[:annotation_sets] if args.key?(:annotation_sets) - end - end - - # The variant data import request. - class ImportVariantsRequest - include Google::Apis::Core::Hashable - - # The format of the variant data being imported. If unspecified, defaults to - # to `VCF`. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - - # A mapping between info field keys and the InfoMergeOperations to - # be performed on them. This is plumbed down to the MergeVariantRequests - # generated by the resulting import job. - # Corresponds to the JSON property `infoMergeConfig` - # @return [Hash] - attr_accessor :info_merge_config - - # Required. The variant set to which variant data should be imported. - # Corresponds to the JSON property `variantSetId` - # @return [String] - attr_accessor :variant_set_id - - # A list of URIs referencing variant files in Google Cloud Storage. URIs can - # include wildcards [as described - # here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). - # Note that recursive wildcards ('**') are not supported. - # Corresponds to the JSON property `sourceUris` - # @return [Array] - attr_accessor :source_uris - - # Convert reference names to the canonical representation. - # hg19 haploytypes (those reference names containing "_hap") - # are not modified in any way. - # All other reference names are modified according to the following rules: - # The reference name is capitalized. - # The "chr" prefix is dropped for all autosomes and sex chromsomes. - # For example "chr17" becomes "17" and "chrX" becomes "X". - # All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT". - # Corresponds to the JSON property `normalizeReferenceNames` - # @return [Boolean] - attr_accessor :normalize_reference_names - alias_method :normalize_reference_names?, :normalize_reference_names - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @format = args[:format] if args.key?(:format) - @info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config) - @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) - @source_uris = args[:source_uris] if args.key?(:source_uris) - @normalize_reference_names = args[:normalize_reference_names] if args.key?(:normalize_reference_names) - end - end - - # - class VariantAnnotation - include Google::Apis::Core::Hashable - - # Type has been adapted from ClinVar's list of variant types. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The alternate allele for this variant. If multiple alternate alleles - # exist at this location, create a separate variant for each one, as they - # may represent distinct conditions. - # Corresponds to the JSON property `alternateBases` - # @return [String] - attr_accessor :alternate_bases - - # Google annotation ID of the gene affected by this variant. This should - # be provided when the variant is created. - # Corresponds to the JSON property `geneId` - # @return [String] - attr_accessor :gene_id - - # Describes the clinical significance of a variant. - # It is adapted from the ClinVar controlled vocabulary for clinical - # significance described at: - # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ - # Corresponds to the JSON property `clinicalSignificance` - # @return [String] - attr_accessor :clinical_significance - - # The set of conditions associated with this variant. - # A condition describes the way a variant influences human health. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Effect of the variant on the coding sequence. - # Corresponds to the JSON property `effect` - # @return [String] - attr_accessor :effect - - # Google annotation IDs of the transcripts affected by this variant. These - # should be provided when the variant is created. - # Corresponds to the JSON property `transcriptIds` - # @return [Array] - attr_accessor :transcript_ids - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) - @gene_id = args[:gene_id] if args.key?(:gene_id) - @clinical_significance = args[:clinical_significance] if args.key?(:clinical_significance) - @conditions = args[:conditions] if args.key?(:conditions) - @effect = args[:effect] if args.key?(:effect) - @transcript_ids = args[:transcript_ids] if args.key?(:transcript_ids) - end - end - - # - class ListCoverageBucketsResponse - include Google::Apis::Core::Hashable - - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. This field will be empty if there aren't any additional results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The length of each coverage bucket in base pairs. Note that buckets at the - # end of a reference sequence may be shorter. This value is omitted if the - # bucket width is infinity (the default behaviour, with no range or - # `targetBucketWidth`). - # Corresponds to the JSON property `bucketWidth` - # @return [Fixnum] - attr_accessor :bucket_width - - # The coverage buckets. The list of buckets is sparse; a bucket with 0 - # overlapping reads is not returned. A bucket never crosses more than one - # reference sequence. Each bucket has width `bucketWidth`, unless - # its end is the end of the reference sequence. - # Corresponds to the JSON property `coverageBuckets` - # @return [Array] - attr_accessor :coverage_buckets - - 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) - @bucket_width = args[:bucket_width] if args.key?(:bucket_width) - @coverage_buckets = args[:coverage_buckets] if args.key?(:coverage_buckets) - end - end - - # The variant data export request. - class ExportVariantSetRequest - include Google::Apis::Core::Hashable - - # The format for the exported data. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - - # Required. The BigQuery dataset to export data to. This dataset must already - # exist. Note that this is distinct from the Genomics concept of "dataset". - # Corresponds to the JSON property `bigqueryDataset` - # @return [String] - attr_accessor :bigquery_dataset - - # Required. The BigQuery table to export data to. - # If the table doesn't exist, it will be created. If it already exists, it - # will be overwritten. - # Corresponds to the JSON property `bigqueryTable` - # @return [String] - attr_accessor :bigquery_table - - # If provided, only variant call information from the specified call sets - # will be exported. By default all variant calls are exported. - # Corresponds to the JSON property `callSetIds` - # @return [Array] - attr_accessor :call_set_ids - - # Required. The Google Cloud project ID that owns the destination - # BigQuery dataset. The caller must have WRITE access to this project. This - # project will also own the resulting export job. - # 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) - @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) - @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) - @project_id = args[:project_id] if args.key?(:project_id) - end - end - - # - class SearchAnnotationsRequest - include Google::Apis::Core::Hashable - - # The continuation token, which is used to page through large result sets. - # To get the next page of results, set this parameter to the value of - # `nextPageToken` from the previous response. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # The maximum number of results to return in a single page. If unspecified, - # defaults to 256. The maximum value is 2048. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size - - # The start position of the range on the reference, 0-based inclusive. If - # specified, - # referenceId or - # referenceName - # must be specified. Defaults to 0. - # Corresponds to the JSON property `start` - # @return [Fixnum] - attr_accessor :start - - # Required. The annotation sets to search within. The caller must have - # `READ` access to these annotation sets. - # All queried annotation sets must have the same type. - # Corresponds to the JSON property `annotationSetIds` - # @return [Array] - attr_accessor :annotation_set_ids - - # The name of the reference to query, within the reference set associated - # with this query. - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name - - # The ID of the reference to query. - # Corresponds to the JSON property `referenceId` - # @return [String] - attr_accessor :reference_id - - # The end position of the range on the reference, 0-based exclusive. If - # referenceId or - # referenceName - # must be specified, Defaults to the length of the reference. - # Corresponds to the JSON property `end` - # @return [Fixnum] - attr_accessor :end - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @page_token = args[:page_token] if args.key?(:page_token) - @page_size = args[:page_size] if args.key?(:page_size) - @start = args[:start] if args.key?(:start) - @annotation_set_ids = args[:annotation_set_ids] if args.key?(:annotation_set_ids) - @reference_name = args[:reference_name] if args.key?(:reference_name) - @reference_id = args[:reference_id] if args.key?(:reference_id) - @end = args[:end] if args.key?(:end) - end - end - - # An event that occurred during an Operation. - class OperationEvent - include Google::Apis::Core::Hashable - - # Optional time of when event started. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Required description of event. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Optional time of when event finished. An event can have a start time and no - # finish time. If an event has a finish time, there must be a start time. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start_time = args[:start_time] if args.key?(:start_time) - @description = args[:description] if args.key?(:description) - @end_time = args[:end_time] if args.key?(:end_time) - end - end - - # - class CodingSequence - include Google::Apis::Core::Hashable - - # The start of the coding sequence on this annotation's reference sequence, - # 0-based inclusive. Note that this position is relative to the reference - # start, and *not* the containing annotation start. - # Corresponds to the JSON property `start` - # @return [Fixnum] - attr_accessor :start - - # The end of the coding sequence on this annotation's reference sequence, - # 0-based exclusive. Note that this position is relative to the reference - # start, and *not* the containing annotation start. - # Corresponds to the JSON property `end` - # @return [Fixnum] - attr_accessor :end - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start = args[:start] if args.key?(:start) - @end = args[:end] if args.key?(:end) - end - end - # class SearchReferencesResponse include Google::Apis::Core::Hashable @@ -645,18 +86,6 @@ module Google class SearchAnnotationSetsRequest include Google::Apis::Core::Hashable - # Required. The dataset IDs to search within. Caller must have `READ` access - # to these datasets. - # Corresponds to the JSON property `datasetIds` - # @return [Array] - attr_accessor :dataset_ids - - # If specified, only annotation sets that have any of these types are - # returned. - # Corresponds to the JSON property `types` - # @return [Array] - attr_accessor :types - # Only return annotations sets for which a substring of the name matches this # string (case insensitive). # Corresponds to the JSON property `name` @@ -682,18 +111,30 @@ module Google # @return [Fixnum] attr_accessor :page_size + # Required. The dataset IDs to search within. Caller must have `READ` access + # to these datasets. + # Corresponds to the JSON property `datasetIds` + # @return [Array] + attr_accessor :dataset_ids + + # If specified, only annotation sets that have any of these types are + # returned. + # Corresponds to the JSON property `types` + # @return [Array] + attr_accessor :types + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) - @types = args[:types] if args.key?(:types) @name = args[:name] if args.key?(:name) @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) + @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) + @types = args[:types] if args.key?(:types) end end @@ -724,45 +165,6 @@ module Google end end - # A linear alignment can be represented by one CIGAR string. Describes the - # mapped position and local alignment of the read to the reference. - class LinearAlignment - include Google::Apis::Core::Hashable - - # An abstraction for referring to a genomic position, in relation to some - # already known reference. For now, represents a genomic position as a - # reference name, a base number on that reference (0-based), and a - # determination of forward or reverse strand. - # Corresponds to the JSON property `position` - # @return [Google::Apis::GenomicsV1::Position] - attr_accessor :position - - # Represents the local alignment of this sequence (alignment matches, indels, - # etc) against the reference. - # Corresponds to the JSON property `cigar` - # @return [Array] - attr_accessor :cigar - - # The mapping quality of this alignment. Represents how likely - # the read maps to this position as opposed to other locations. - # Specifically, this is -10 log10 Pr(mapping position is wrong), rounded to - # the nearest integer. - # Corresponds to the JSON property `mappingQuality` - # @return [Fixnum] - attr_accessor :mapping_quality - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @cigar = args[:cigar] if args.key?(:cigar) - @mapping_quality = args[:mapping_quality] if args.key?(:mapping_quality) - end - end - # class SearchReferencesRequest include Google::Apis::Core::Hashable @@ -773,6 +175,13 @@ module Google # @return [Array] attr_accessor :md5checksums + # The continuation token, which is used to page through large result sets. + # To get the next page of results, set this parameter to the value of + # `nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + # If present, return references for which a prefix of any of # sourceAccessions match # any of these strings. Accession numbers typically have a main number and a @@ -781,24 +190,17 @@ module Google # @return [Array] attr_accessor :accessions - # The continuation token, which is used to page through large result sets. - # To get the next page of results, set this parameter to the value of - # `nextPageToken` from the previous response. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # If present, return only references which belong to this reference set. - # Corresponds to the JSON property `referenceSetId` - # @return [String] - attr_accessor :reference_set_id - # The maximum number of results to return in a single page. If unspecified, # defaults to 1024. The maximum value is 4096. # Corresponds to the JSON property `pageSize` # @return [Fixnum] attr_accessor :page_size + # If present, return only references which belong to this reference set. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + def initialize(**args) update!(**args) end @@ -806,10 +208,49 @@ module Google # Update properties of this object def update!(**args) @md5checksums = args[:md5checksums] if args.key?(:md5checksums) - @accessions = args[:accessions] if args.key?(:accessions) @page_token = args[:page_token] if args.key?(:page_token) - @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @accessions = args[:accessions] if args.key?(:accessions) @page_size = args[:page_size] if args.key?(:page_size) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + end + end + + # A linear alignment can be represented by one CIGAR string. Describes the + # mapped position and local alignment of the read to the reference. + class LinearAlignment + include Google::Apis::Core::Hashable + + # The mapping quality of this alignment. Represents how likely + # the read maps to this position as opposed to other locations. + # Specifically, this is -10 log10 Pr(mapping position is wrong), rounded to + # the nearest integer. + # Corresponds to the JSON property `mappingQuality` + # @return [Fixnum] + attr_accessor :mapping_quality + + # Represents the local alignment of this sequence (alignment matches, indels, + # etc) against the reference. + # Corresponds to the JSON property `cigar` + # @return [Array] + attr_accessor :cigar + + # An abstraction for referring to a genomic position, in relation to some + # already known reference. For now, represents a genomic position as a + # reference name, a base number on that reference (0-based), and a + # determination of forward or reverse strand. + # Corresponds to the JSON property `position` + # @return [Google::Apis::GenomicsV1::Position] + attr_accessor :position + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mapping_quality = args[:mapping_quality] if args.key?(:mapping_quality) + @cigar = args[:cigar] if args.key?(:cigar) + @position = args[:position] if args.key?(:position) end end @@ -819,16 +260,6 @@ module Google class Dataset include Google::Apis::Core::Hashable - # The time this dataset was created, in seconds from the epoch. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The dataset name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The Google Cloud project ID that this dataset belongs to. # Corresponds to the JSON property `projectId` # @return [String] @@ -839,16 +270,26 @@ module Google # @return [String] attr_accessor :id + # The time this dataset was created, in seconds from the epoch. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The dataset 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) - @create_time = args[:create_time] if args.key?(:create_time) - @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) @id = args[:id] if args.key?(:id) + @create_time = args[:create_time] if args.key?(:create_time) + @name = args[:name] if args.key?(:name) end end @@ -875,13 +316,6 @@ module Google class ReadGroup include Google::Apis::Core::Hashable - # The server-generated read group ID, unique for all read groups. - # Note: This is different than the @RG ID field in the SAM spec. For that - # value, see name. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - # The programs used to generate this read group. Programs are always # identical for all read groups within a read group set. For this reason, # only the first read group in a returned set will have this field @@ -932,13 +366,19 @@ module Google # @return [Hash>] attr_accessor :info + # The server-generated read group ID, unique for all read groups. + # Note: This is different than the @RG ID field in the SAM spec. For that + # value, see name. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @id = args[:id] if args.key?(:id) @programs = args[:programs] if args.key?(:programs) @predicted_insert_size = args[:predicted_insert_size] if args.key?(:predicted_insert_size) @description = args[:description] if args.key?(:description) @@ -948,6 +388,7 @@ module Google @name = args[:name] if args.key?(:name) @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) @info = args[:info] if args.key?(:info) + @id = args[:id] if args.key?(:id) end end @@ -963,6 +404,11 @@ module Google class ReadGroupSet include Google::Apis::Core::Hashable + # The server-generated read group set ID, unique for all read group sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + # The dataset to which this read group set belongs. # Corresponds to the JSON property `datasetId` # @return [String] @@ -995,24 +441,19 @@ module Google # @return [Hash>] attr_accessor :info - # The server-generated read group set ID, unique for all read group sets. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @id = args[:id] if args.key?(:id) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) @filename = args[:filename] if args.key?(:filename) @read_groups = args[:read_groups] if args.key?(:read_groups) @name = args[:name] if args.key?(:name) @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) @info = args[:info] if args.key?(:info) - @id = args[:id] if args.key?(:id) end end @@ -1066,6 +507,16 @@ module Google class Entry include Google::Apis::Core::Hashable + # An annotation describes a region of reference genome. The value of an + # annotation may be one of several canonical types, supplemented by arbitrary + # info tags. An annotation is not inherently associated with a specific + # sample or individual (though a client could choose to use annotations in + # this way). Example canonical annotation types are `GENE` and + # `VARIANT`. + # Corresponds to the JSON property `annotation` + # @return [Google::Apis::GenomicsV1::Annotation] + attr_accessor :annotation + # 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: @@ -1109,24 +560,14 @@ module Google # @return [Google::Apis::GenomicsV1::Status] attr_accessor :status - # An annotation describes a region of reference genome. The value of an - # annotation may be one of several canonical types, supplemented by arbitrary - # info tags. An annotation is not inherently associated with a specific - # sample or individual (though a client could choose to use annotations in - # this way). Example canonical annotation types are `GENE` and - # `VARIANT`. - # Corresponds to the JSON property `annotation` - # @return [Google::Apis::GenomicsV1::Annotation] - attr_accessor :annotation - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @status = args[:status] if args.key?(:status) @annotation = args[:annotation] if args.key?(:annotation) + @status = args[:status] if args.key?(:status) end end @@ -1197,12 +638,6 @@ module Google class SearchCallSetsRequest include Google::Apis::Core::Hashable - # Only return call sets for which a substring of the name matches this - # string. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The continuation token, which is used to page through large result sets. # To get the next page of results, set this parameter to the value of # `nextPageToken` from the previous response. @@ -1210,6 +645,12 @@ module Google # @return [String] attr_accessor :page_token + # Only return call sets for which a substring of the name matches this + # string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The maximum number of results to return in a single page. If unspecified, # defaults to 1024. # Corresponds to the JSON property `pageSize` @@ -1228,8 +669,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) @page_token = args[:page_token] if args.key?(:page_token) + @name = args[:name] if args.key?(:name) @page_size = args[:page_size] if args.key?(:page_size) @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) end @@ -1239,6 +680,20 @@ module Google class ImportReadGroupSetsRequest include Google::Apis::Core::Hashable + # The reference set to which the imported read group sets are aligned to, if + # any. The reference names of this reference set must be a superset of those + # found in the imported file headers. If no reference set id is provided, a + # best effort is made to associate with a matching reference set. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + + # The partition strategy describes how read groups are partitioned into read + # group sets. + # Corresponds to the JSON property `partitionStrategy` + # @return [String] + attr_accessor :partition_strategy + # Required. The ID of the dataset these read group sets will belong to. The # caller must have WRITE permissions to this dataset. # Corresponds to the JSON property `datasetId` @@ -1258,30 +713,16 @@ module Google # @return [Array] attr_accessor :source_uris - # The reference set to which the imported read group sets are aligned to, if - # any. The reference names of this reference set must be a superset of those - # found in the imported file headers. If no reference set id is provided, a - # best effort is made to associate with a matching reference set. - # Corresponds to the JSON property `referenceSetId` - # @return [String] - attr_accessor :reference_set_id - - # The partition strategy describes how read groups are partitioned into read - # group sets. - # Corresponds to the JSON property `partitionStrategy` - # @return [String] - attr_accessor :partition_strategy - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @dataset_id = args[:dataset_id] if args.key?(:dataset_id) - @source_uris = args[:source_uris] if args.key?(:source_uris) @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) @partition_strategy = args[:partition_strategy] if args.key?(:partition_strategy) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @source_uris = args[:source_uris] if args.key?(:source_uris) end end @@ -1355,14 +796,6 @@ module Google class SearchReadsRequest include Google::Apis::Core::Hashable - # The IDs of the read groups sets within which to search for reads. All - # specified read group sets must be aligned against a common set of reference - # sequences; this defines the genomic coordinates for the query. Must specify - # one of `readGroupSetIds` or `readGroupIds`. - # Corresponds to the JSON property `readGroupSetIds` - # @return [Array] - attr_accessor :read_group_set_ids - # The IDs of the read groups within which to search for reads. All specified # read groups must belong to the same read group sets. Must specify one of # `readGroupSetIds` or `readGroupIds`. @@ -1402,19 +835,27 @@ module Google # @return [String] attr_accessor :reference_name + # The IDs of the read groups sets within which to search for reads. All + # specified read group sets must be aligned against a common set of reference + # sequences; this defines the genomic coordinates for the query. Must specify + # one of `readGroupSetIds` or `readGroupIds`. + # Corresponds to the JSON property `readGroupSetIds` + # @return [Array] + attr_accessor :read_group_set_ids + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) @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) @start = args[:start] if args.key?(:start) @reference_name = args[:reference_name] if args.key?(:reference_name) + @read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids) end end @@ -1458,16 +899,16 @@ module Google # @return [Google::Apis::GenomicsV1::VariantAnnotation] attr_accessor :variant - # The ID of the Google Genomics reference associated with this range. - # Corresponds to the JSON property `referenceId` - # @return [String] - attr_accessor :reference_id - # The server-generated annotation ID, unique across all annotations. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id + # The ID of the Google Genomics reference associated with this range. + # Corresponds to the JSON property `referenceId` + # @return [String] + attr_accessor :reference_id + # Whether this range refers to the reverse strand, as opposed to the forward # strand. Note that regardless of this field, the start/end position of the # range always refer to the forward strand. @@ -1519,8 +960,8 @@ module Google @annotation_set_id = args[:annotation_set_id] if args.key?(:annotation_set_id) @name = args[:name] if args.key?(:name) @variant = args[:variant] if args.key?(:variant) - @reference_id = args[:reference_id] if args.key?(:reference_id) @id = args[:id] if args.key?(:id) + @reference_id = args[:reference_id] if args.key?(:reference_id) @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand) @reference_name = args[:reference_name] if args.key?(:reference_name) @type = args[:type] if args.key?(:type) @@ -1558,33 +999,6 @@ module Google class Operation include Google::Apis::Core::Hashable - # An OperationMetadata object. This will always be returned with the Operation. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is - # available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If - # importing Variants, an ImportVariantsResponse is returned. For pipelines and - # exports, an empty response is returned. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - # The server-assigned name, which is only unique within the same service that - # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- - # qzoWAgEw` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # 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: @@ -1628,17 +1042,44 @@ module Google # @return [Google::Apis::GenomicsV1::Status] attr_accessor :error + # An OperationMetadata object. This will always be returned with the Operation. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # If the value is `false`, it means the operation is still in progress. + # If true, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If + # importing Variants, an ImportVariantsResponse is returned. For pipelines and + # exports, an empty response is returned. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + # The server-assigned name, which is only unique within the same service that + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # qzoWAgEw` + # 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) @metadata = args[:metadata] if args.key?(:metadata) @done = args[:done] if args.key?(:done) @response = args[:response] if args.key?(:response) @name = args[:name] if args.key?(:name) - @error = args[:error] if args.key?(:error) end end @@ -1838,15 +1279,8 @@ module Google class Status include Google::Apis::Core::Hashable - # 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. + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details @@ -1856,15 +1290,22 @@ module Google # @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 + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @message = args[:message] if args.key?(:message) @details = args[:details] if args.key?(:details) @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) end end @@ -1925,11 +1366,6 @@ module Google class Range include Google::Apis::Core::Hashable - # The end position of the range on the reference, 0-based exclusive. - # Corresponds to the JSON property `end` - # @return [Fixnum] - attr_accessor :end - # The reference sequence name, for example `chr1`, # `1`, or `chrX`. # Corresponds to the JSON property `referenceName` @@ -1941,15 +1377,20 @@ module Google # @return [Fixnum] attr_accessor :start + # The end position of the range on the reference, 0-based exclusive. + # Corresponds to the JSON property `end` + # @return [Fixnum] + attr_accessor :end + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @end = args[:end] if args.key?(:end) @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 @@ -1960,6 +1401,22 @@ module Google class VariantSet include Google::Apis::Core::Hashable + # The metadata associated with this variant set. + # Corresponds to the JSON property `metadata` + # @return [Array] + attr_accessor :metadata + + # A list of all references used by the variants in a variant set + # with associated coordinate upper bounds for each one. + # Corresponds to the JSON property `referenceBounds` + # @return [Array] + attr_accessor :reference_bounds + + # The server-generated variant set ID, unique across all variant sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + # A textual description of this variant set. # Corresponds to the JSON property `description` # @return [String] @@ -1988,21 +1445,37 @@ module Google # @return [String] attr_accessor :reference_set_id - # The metadata associated with this variant set. - # Corresponds to the JSON property `metadata` - # @return [Array] - attr_accessor :metadata + def initialize(**args) + update!(**args) + end - # A list of all references used by the variants in a variant set - # with associated coordinate upper bounds for each one. - # Corresponds to the JSON property `referenceBounds` - # @return [Array] - attr_accessor :reference_bounds + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds) + @id = args[:id] if args.key?(:id) + @description = args[:description] if args.key?(:description) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @name = args[:name] if args.key?(:name) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + end + end - # The server-generated variant set ID, unique across all variant sets. - # Corresponds to the JSON property `id` + # ReferenceBound records an upper bound for the starting coordinate of + # variants in a particular reference. + class ReferenceBound + include Google::Apis::Core::Hashable + + # An upper bound (inclusive) on the starting coordinate of any + # variant in the reference sequence. + # Corresponds to the JSON property `upperBound` + # @return [Fixnum] + attr_accessor :upper_bound + + # The name of the reference associated with this reference bound. + # Corresponds to the JSON property `referenceName` # @return [String] - attr_accessor :id + attr_accessor :reference_name def initialize(**args) update!(**args) @@ -2010,13 +1483,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] if args.key?(:description) - @dataset_id = args[:dataset_id] if args.key?(:dataset_id) - @name = args[:name] if args.key?(:name) - @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) - @metadata = args[:metadata] if args.key?(:metadata) - @reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds) - @id = args[:id] if args.key?(:id) + @upper_bound = args[:upper_bound] if args.key?(:upper_bound) + @reference_name = args[:reference_name] if args.key?(:reference_name) end end @@ -2040,43 +1508,18 @@ module Google end end - # ReferenceBound records an upper bound for the starting coordinate of - # variants in a particular reference. - class ReferenceBound + # The call set search response. + class SearchCallSetsResponse include Google::Apis::Core::Hashable - # The name of the reference associated with this reference bound. - # Corresponds to the JSON property `referenceName` - # @return [String] - attr_accessor :reference_name + # The list of matching call sets. + # Corresponds to the JSON property `callSets` + # @return [Array] + attr_accessor :call_sets - # An upper bound (inclusive) on the starting coordinate of any - # variant in the reference sequence. - # Corresponds to the JSON property `upperBound` - # @return [Fixnum] - attr_accessor :upper_bound - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @reference_name = args[:reference_name] if args.key?(:reference_name) - @upper_bound = args[:upper_bound] if args.key?(:upper_bound) - 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. + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of + # results. This field will be empty if there aren't any additional results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2087,7 +1530,7 @@ module Google # Update properties of this object def update!(**args) - @operations = args[:operations] if args.key?(:operations) + @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 @@ -2128,16 +1571,16 @@ module Google # @return [String] attr_accessor :reference_bases - # The bases that appear instead of the reference bases. - # Corresponds to the JSON property `alternateBases` - # @return [Array] - attr_accessor :alternate_bases - # Names for the variant, for example a RefSNP ID. # Corresponds to the JSON property `names` # @return [Array] attr_accessor :names + # The bases that appear instead of the reference bases. + # Corresponds to the JSON property `alternateBases` + # @return [Array] + attr_accessor :alternate_bases + # The end position (0-based) of this variant. This corresponds to the first # base after the last base in the reference allele. So, the length of # the reference allele is (end - start). This is useful for variants @@ -2190,8 +1633,8 @@ module Google @reference_name = args[:reference_name] if args.key?(:reference_name) @info = args[:info] if args.key?(:info) @reference_bases = args[:reference_bases] if args.key?(:reference_bases) - @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) @names = args[:names] if args.key?(:names) + @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) @end = args[:end] if args.key?(:end) @filter = args[:filter] if args.key?(:filter) @calls = args[:calls] if args.key?(:calls) @@ -2202,21 +1645,19 @@ module Google end end - # The call set search response. - class SearchCallSetsResponse + # The response message for Operations.ListOperations. + class ListOperationsResponse include Google::Apis::Core::Hashable - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. This field will be empty if there aren't any additional results. + # The standard List next-page token. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The list of matching call sets. - # Corresponds to the JSON property `callSets` - # @return [Array] - attr_accessor :call_sets + # 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) @@ -2225,7 +1666,7 @@ module Google # Update properties of this object def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @call_sets = args[:call_sets] if args.key?(:call_sets) + @operations = args[:operations] if args.key?(:operations) end end @@ -2233,6 +1674,24 @@ module Google class SearchVariantsRequest include Google::Apis::Core::Hashable + # Only return variant calls which belong to call sets with these ids. + # Leaving this blank returns all variant calls. If a variant has no + # calls belonging to any of these call sets, it won't be returned at all. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + # Only return variants which have exactly this name. + # Corresponds to the JSON property `variantName` + # @return [String] + attr_accessor :variant_name + + # The beginning of the window (0-based, inclusive) for which + # overlapping variants should be returned. If unspecified, defaults to 0. + # Corresponds to the JSON property `start` + # @return [Fixnum] + attr_accessor :start + # Required. Only return variants in this reference sequence. # Corresponds to the JSON property `referenceName` # @return [String] @@ -2272,39 +1731,21 @@ module Google # @return [Fixnum] attr_accessor :page_size - # Only return variant calls which belong to call sets with these ids. - # Leaving this blank returns all variant calls. If a variant has no - # calls belonging to any of these call sets, it won't be returned at all. - # Corresponds to the JSON property `callSetIds` - # @return [Array] - attr_accessor :call_set_ids - - # The beginning of the window (0-based, inclusive) for which - # overlapping variants should be returned. If unspecified, defaults to 0. - # Corresponds to the JSON property `start` - # @return [Fixnum] - attr_accessor :start - - # Only return variants which have exactly this name. - # Corresponds to the JSON property `variantName` - # @return [String] - attr_accessor :variant_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + @variant_name = args[:variant_name] if args.key?(:variant_name) + @start = args[:start] if args.key?(:start) @reference_name = args[:reference_name] if args.key?(:reference_name) @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) @end = args[:end] if args.key?(:end) @max_calls = args[:max_calls] if args.key?(:max_calls) @page_token = args[:page_token] if args.key?(:page_token) @page_size = args[:page_size] if args.key?(:page_size) - @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) - @start = args[:start] if args.key?(:start) - @variant_name = args[:variant_name] if args.key?(:variant_name) end end @@ -2312,6 +1753,18 @@ module Google class OperationMetadata include Google::Apis::Core::Hashable + # The time at which the job began to run. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The original request that started the operation. Note that this will be in + # current version of the API. If the operation was started with v1beta2 API + # and a GetOperation is performed on v1 API, a v1 request will be returned. + # Corresponds to the JSON property `request` + # @return [Hash] + attr_accessor :request + # Runtime metadata on this Operation. # Corresponds to the JSON property `runtimeMetadata` # @return [Hash] @@ -2339,11 +1792,6 @@ module Google # @return [String] attr_accessor :client_id - # The time at which the job stopped running. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - # Optional event messages that were generated during the job's execution. # This also contains any warnings that were generated during import # or export. @@ -2351,17 +1799,10 @@ module Google # @return [Array] attr_accessor :events - # The time at which the job began to run. - # Corresponds to the JSON property `startTime` + # The time at which the job stopped running. + # Corresponds to the JSON property `endTime` # @return [String] - attr_accessor :start_time - - # The original request that started the operation. Note that this will be in - # current version of the API. If the operation was started with v1beta2 API - # and a GetOperation is performed on v1 API, a v1 request will be returned. - # Corresponds to the JSON property `request` - # @return [Hash] - attr_accessor :request + attr_accessor :end_time def initialize(**args) update!(**args) @@ -2369,15 +1810,15 @@ module Google # Update properties of this object def update!(**args) + @start_time = args[:start_time] if args.key?(:start_time) + @request = args[:request] if args.key?(:request) @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata) @labels = args[:labels] if args.key?(:labels) @create_time = args[:create_time] if args.key?(:create_time) @project_id = args[:project_id] if args.key?(:project_id) @client_id = args[:client_id] if args.key?(:client_id) - @end_time = args[:end_time] if args.key?(:end_time) @events = args[:events] if args.key?(:events) - @start_time = args[:start_time] if args.key?(:start_time) - @request = args[:request] if args.key?(:request) + @end_time = args[:end_time] if args.key?(:end_time) end end @@ -2385,18 +1826,6 @@ module Google class SearchReadGroupSetsRequest include Google::Apis::Core::Hashable - # Restricts this query to read group sets within the given datasets. At least - # one ID must be provided. - # Corresponds to the JSON property `datasetIds` - # @return [Array] - attr_accessor :dataset_ids - - # Only return read group sets for which a substring of the name matches this - # string. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The continuation token, which is used to page through large result sets. # To get the next page of results, set this parameter to the value of # `nextPageToken` from the previous response. @@ -2404,22 +1833,34 @@ module Google # @return [String] attr_accessor :page_token + # Only return read group sets for which a substring of the name matches this + # string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The maximum number of results to return in a single page. If unspecified, # defaults to 256. The maximum value is 1024. # Corresponds to the JSON property `pageSize` # @return [Fixnum] attr_accessor :page_size + # Restricts this query to read group sets within the given datasets. At least + # one ID must be provided. + # Corresponds to the JSON property `datasetIds` + # @return [Array] + attr_accessor :dataset_ids + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @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) + @name = args[:name] if args.key?(:name) @page_size = args[:page_size] if args.key?(:page_size) + @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) end end @@ -2450,40 +1891,16 @@ module Google end end - # The read search response. - class SearchReadsResponse - include Google::Apis::Core::Hashable - - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. This field will be empty if there aren't any additional results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of matching alignments sorted by mapped genomic coordinate, - # if any, ascending in position within the same reference. Unmapped reads, - # which have no position, are returned contiguously and are sorted in - # ascending lexicographic order by fragment name. - # Corresponds to the JSON property `alignments` - # @return [Array] - attr_accessor :alignments - - 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) - @alignments = args[:alignments] if args.key?(:alignments) - end - end - # class ClinicalCondition include Google::Apis::Core::Hashable + # The OMIM id for this condition. + # Search for these IDs at http://omim.org/ + # Corresponds to the JSON property `omimId` + # @return [String] + attr_accessor :omim_id + # The set of external IDs for this condition. # Corresponds to the JSON property `externalIds` # @return [Array] @@ -2500,11 +1917,37 @@ module Google # @return [Array] attr_accessor :names - # The OMIM id for this condition. - # Search for these IDs at http://omim.org/ - # Corresponds to the JSON property `omimId` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @omim_id = args[:omim_id] if args.key?(:omim_id) + @external_ids = args[:external_ids] if args.key?(:external_ids) + @concept_id = args[:concept_id] if args.key?(:concept_id) + @names = args[:names] if args.key?(:names) + end + end + + # The read search response. + class SearchReadsResponse + include Google::Apis::Core::Hashable + + # The list of matching alignments sorted by mapped genomic coordinate, + # if any, ascending in position within the same reference. Unmapped reads, + # which have no position, are returned contiguously and are sorted in + # ascending lexicographic order by fragment name. + # Corresponds to the JSON property `alignments` + # @return [Array] + attr_accessor :alignments + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of + # results. This field will be empty if there aren't any additional results. + # Corresponds to the JSON property `nextPageToken` # @return [String] - attr_accessor :omim_id + attr_accessor :next_page_token def initialize(**args) update!(**args) @@ -2512,10 +1955,8 @@ module Google # Update properties of this object def update!(**args) - @external_ids = args[:external_ids] if args.key?(:external_ids) - @concept_id = args[:concept_id] if args.key?(:concept_id) - @names = args[:names] if args.key?(:names) - @omim_id = args[:omim_id] if args.key?(:omim_id) + @alignments = args[:alignments] if args.key?(:alignments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2529,15 +1970,20 @@ module Google # @return [String] attr_accessor :name + # The ID of the program run before this one. + # Corresponds to the JSON property `prevProgramId` + # @return [String] + attr_accessor :prev_program_id + # The command line used to run this program. # Corresponds to the JSON property `commandLine` # @return [String] attr_accessor :command_line - # The ID of the program run before this one. - # Corresponds to the JSON property `prevProgramId` + # The version of the program run. + # Corresponds to the JSON property `version` # @return [String] - attr_accessor :prev_program_id + attr_accessor :version # The user specified locally unique ID of the program. Used along with # `prevProgramId` to define an ordering between programs. @@ -2545,11 +1991,6 @@ module Google # @return [String] attr_accessor :id - # The version of the program run. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - def initialize(**args) update!(**args) end @@ -2557,10 +1998,10 @@ module Google # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) - @command_line = args[:command_line] if args.key?(:command_line) @prev_program_id = args[:prev_program_id] if args.key?(:prev_program_id) - @id = args[:id] if args.key?(:id) + @command_line = args[:command_line] if args.key?(:command_line) @version = args[:version] if args.key?(:version) + @id = args[:id] if args.key?(:id) end end @@ -2569,16 +2010,16 @@ module Google class ComputeEngine include Google::Apis::Core::Hashable - # The machine type of the instance. - # Corresponds to the JSON property `machineType` - # @return [String] - attr_accessor :machine_type - # The names of the disks that were created for this pipeline. # Corresponds to the JSON property `diskNames` # @return [Array] attr_accessor :disk_names + # The machine type of the instance. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + # The instance on which the operation is running. # Corresponds to the JSON property `instanceName` # @return [String] @@ -2595,8 +2036,8 @@ module Google # Update properties of this object def update!(**args) - @machine_type = args[:machine_type] if args.key?(:machine_type) @disk_names = args[:disk_names] if args.key?(:disk_names) + @machine_type = args[:machine_type] if args.key?(:machine_type) @instance_name = args[:instance_name] if args.key?(:instance_name) @zone = args[:zone] if args.key?(:zone) end @@ -2607,25 +2048,25 @@ module Google class CoverageBucket include Google::Apis::Core::Hashable + # A 0-based half-open genomic coordinate range for search requests. + # Corresponds to the JSON property `range` + # @return [Google::Apis::GenomicsV1::Range] + attr_accessor :range + # The average number of reads which are aligned to each individual # reference base in this bucket. # Corresponds to the JSON property `meanCoverage` # @return [Float] attr_accessor :mean_coverage - # A 0-based half-open genomic coordinate range for search requests. - # Corresponds to the JSON property `range` - # @return [Google::Apis::GenomicsV1::Range] - attr_accessor :range - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @mean_coverage = args[:mean_coverage] if args.key?(:mean_coverage) @range = args[:range] if args.key?(:range) + @mean_coverage = args[:mean_coverage] if args.key?(:mean_coverage) end end @@ -2654,70 +2095,6 @@ module Google end end - # A reference is a canonical assembled DNA sequence, intended to act as a - # reference coordinate space for other genomic annotations. A single reference - # might represent the human chromosome 1 or mitochandrial DNA, for instance. A - # reference belongs to one or more reference sets. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - class Reference - include Google::Apis::Core::Hashable - - # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally - # with a version number, for example `GCF_000001405.26`. - # Corresponds to the JSON property `sourceAccessions` - # @return [Array] - attr_accessor :source_accessions - - # ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. - # Corresponds to the JSON property `ncbiTaxonId` - # @return [Fixnum] - attr_accessor :ncbi_taxon_id - - # The URI from which the sequence was obtained. Typically specifies a FASTA - # format file. - # Corresponds to the JSON property `sourceUri` - # @return [String] - attr_accessor :source_uri - - # The name of this reference, for example `22`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # MD5 of the upper-case sequence excluding all whitespace characters (this - # is equivalent to SQ:M5 in SAM). This value is represented in lower case - # hexadecimal format. - # Corresponds to the JSON property `md5checksum` - # @return [String] - attr_accessor :md5checksum - - # The server-generated reference ID, unique across all references. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The length of this reference's sequence. - # Corresponds to the JSON property `length` - # @return [Fixnum] - attr_accessor :length - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source_accessions = args[:source_accessions] if args.key?(:source_accessions) - @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id) - @source_uri = args[:source_uri] if args.key?(:source_uri) - @name = args[:name] if args.key?(:name) - @md5checksum = args[:md5checksum] if args.key?(:md5checksum) - @id = args[:id] if args.key?(:id) - @length = args[:length] if args.key?(:length) - end - end - # The search variant sets request. class SearchVariantSetsRequest include Google::Apis::Core::Hashable @@ -2760,18 +2137,6 @@ module Google class VariantSetMetadata include Google::Apis::Core::Hashable - # The type of data. Possible types include: Integer, Float, - # Flag, Character, and String. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Remaining structured metadata key-value pairs. This must be of the form - # map (string key mapping to a list of string values). - # Corresponds to the JSON property `info` - # @return [Hash>] - attr_accessor :info - # The value field for simple metadata # Corresponds to the JSON property `value` # @return [String] @@ -2800,19 +2165,95 @@ module Google # @return [String] attr_accessor :description + # Remaining structured metadata key-value pairs. This must be of the form + # map (string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + # The type of data. Possible types include: Integer, Float, + # Flag, Character, and String. + # 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) - @type = args[:type] if args.key?(:type) - @info = args[:info] if args.key?(:info) @value = args[:value] if args.key?(:value) @id = args[:id] if args.key?(:id) @number = args[:number] if args.key?(:number) @key = args[:key] if args.key?(:key) @description = args[:description] if args.key?(:description) + @info = args[:info] if args.key?(:info) + @type = args[:type] if args.key?(:type) + end + end + + # A reference is a canonical assembled DNA sequence, intended to act as a + # reference coordinate space for other genomic annotations. A single reference + # might represent the human chromosome 1 or mitochandrial DNA, for instance. A + # reference belongs to one or more reference sets. + # For more genomics resource definitions, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + class Reference + include Google::Apis::Core::Hashable + + # The server-generated reference ID, unique across all references. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The length of this reference's sequence. + # Corresponds to the JSON property `length` + # @return [Fixnum] + attr_accessor :length + + # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally + # with a version number, for example `GCF_000001405.26`. + # Corresponds to the JSON property `sourceAccessions` + # @return [Array] + attr_accessor :source_accessions + + # The URI from which the sequence was obtained. Typically specifies a FASTA + # format file. + # Corresponds to the JSON property `sourceUri` + # @return [String] + attr_accessor :source_uri + + # ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. + # Corresponds to the JSON property `ncbiTaxonId` + # @return [Fixnum] + attr_accessor :ncbi_taxon_id + + # The name of this reference, for example `22`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # MD5 of the upper-case sequence excluding all whitespace characters (this + # is equivalent to SQ:M5 in SAM). This value is represented in lower case + # hexadecimal format. + # Corresponds to the JSON property `md5checksum` + # @return [String] + attr_accessor :md5checksum + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @length = args[:length] if args.key?(:length) + @source_accessions = args[:source_accessions] if args.key?(:source_accessions) + @source_uri = args[:source_uri] if args.key?(:source_uri) + @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id) + @name = args[:name] if args.key?(:name) + @md5checksum = args[:md5checksum] if args.key?(:md5checksum) end end @@ -2820,6 +2261,19 @@ module Google class SearchReferenceSetsRequest include Google::Apis::Core::Hashable + # If present, return reference sets for which the + # md5checksum matches exactly. + # Corresponds to the JSON property `md5checksums` + # @return [Array] + attr_accessor :md5checksums + + # The continuation token, which is used to page through large result sets. + # To get the next page of results, set this parameter to the value of + # `nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + # If present, return reference sets for which a prefix of any of # sourceAccessions # match any of these strings. Accession numbers typically have a main number @@ -2828,13 +2282,6 @@ module Google # @return [Array] attr_accessor :accessions - # The continuation token, which is used to page through large result sets. - # To get the next page of results, set this parameter to the value of - # `nextPageToken` from the previous response. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - # The maximum number of results to return in a single page. If unspecified, # defaults to 1024. The maximum value is 4096. # Corresponds to the JSON property `pageSize` @@ -2847,23 +2294,17 @@ module Google # @return [String] attr_accessor :assembly_id - # If present, return reference sets for which the - # md5checksum matches exactly. - # Corresponds to the JSON property `md5checksums` - # @return [Array] - attr_accessor :md5checksums - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @accessions = args[:accessions] if args.key?(:accessions) + @md5checksums = args[:md5checksums] if args.key?(:md5checksums) @page_token = args[:page_token] if args.key?(:page_token) + @accessions = args[:accessions] if args.key?(:accessions) @page_size = args[:page_size] if args.key?(:page_size) @assembly_id = args[:assembly_id] if args.key?(:assembly_id) - @md5checksums = args[:md5checksums] if args.key?(:md5checksums) end end @@ -2915,6 +2356,11 @@ module Google class MergeVariantsRequest include Google::Apis::Core::Hashable + # The variants to be merged with existing variants. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + # A mapping between info field keys and the InfoMergeOperations to # be performed on them. # Corresponds to the JSON property `infoMergeConfig` @@ -2926,10 +2372,38 @@ module Google # @return [String] attr_accessor :variant_set_id - # The variants to be merged with existing variants. - # Corresponds to the JSON property `variants` - # @return [Array] - attr_accessor :variants + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variants = args[:variants] if args.key?(:variants) + @info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config) + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + end + end + + # + class BatchCreateAnnotationsRequest + include Google::Apis::Core::Hashable + + # The annotations to be created. At most 4096 can be specified in a single + # request. + # Corresponds to the JSON property `annotations` + # @return [Array] + attr_accessor :annotations + + # A unique request ID which enables the server to detect duplicated requests. + # If provided, duplicated requests will result in the same response; if not + # provided, duplicated requests may result in duplicated data. For a given + # annotation set, callers should not reuse `request_id`s when writing + # different batches of annotations - behavior in this case is undefined. + # A common approach is to use a UUID. For batch jobs where worker crashes are + # a possibility, consider using some unique variant of a worker or run ID. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id def initialize(**args) update!(**args) @@ -2937,9 +2411,8 @@ module Google # Update properties of this object def update!(**args) - @info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config) - @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) - @variants = args[:variants] if args.key?(:variants) + @annotations = args[:annotations] if args.key?(:annotations) + @request_id = args[:request_id] if args.key?(:request_id) end end @@ -3018,45 +2491,6 @@ module Google class Read include Google::Apis::Core::Hashable - # A linear alignment can be represented by one CIGAR string. Describes the - # mapped position and local alignment of the read to the reference. - # Corresponds to the JSON property `alignment` - # @return [Google::Apis::GenomicsV1::LinearAlignment] - attr_accessor :alignment - - # The number of reads in the fragment (extension to SAM flag 0x1). - # Corresponds to the JSON property `numberReads` - # @return [Fixnum] - attr_accessor :number_reads - - # The server-generated read ID, unique across all reads. This is different - # from the `fragmentName`. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Whether this alignment is secondary. Equivalent to SAM flag 0x100. - # A secondary alignment represents an alternative to the primary alignment - # for this read. Aligners may return secondary alignments if a read can map - # ambiguously to multiple coordinates in the genome. By convention, each read - # has one and only one alignment where both `secondaryAlignment` - # and `supplementaryAlignment` are false. - # Corresponds to the JSON property `secondaryAlignment` - # @return [Boolean] - attr_accessor :secondary_alignment - alias_method :secondary_alignment?, :secondary_alignment - - # The fragment name. Equivalent to QNAME (query template name) in SAM. - # Corresponds to the JSON property `fragmentName` - # @return [String] - attr_accessor :fragment_name - - # The ID of the read group set this read belongs to. A read belongs to - # exactly one read group set. - # Corresponds to the JSON property `readGroupSetId` - # @return [String] - attr_accessor :read_group_set_id - # The fragment is a PCR or optical duplicate (SAM flag 0x400). # Corresponds to the JSON property `duplicateFragment` # @return [Boolean] @@ -3069,14 +2503,6 @@ module Google # @return [Fixnum] attr_accessor :read_number - # The ID of the read group this read belongs to. A read belongs to exactly - # one read group. This is a server-generated ID which is distinct from SAM's - # RG tag (for that value, see - # ReadGroup.name). - # Corresponds to the JSON property `readGroupId` - # @return [String] - attr_accessor :read_group_id - # The bases of the read sequence contained in this alignment record, # **without CIGAR operations applied** (equivalent to SEQ in SAM). # `alignedSequence` and `alignedQuality` may be @@ -3088,6 +2514,14 @@ module Google # @return [String] attr_accessor :aligned_sequence + # The ID of the read group this read belongs to. A read belongs to exactly + # one read group. This is a server-generated ID which is distinct from SAM's + # RG tag (for that value, see + # ReadGroup.name). + # Corresponds to the JSON property `readGroupId` + # @return [String] + attr_accessor :read_group_id + # A map of additional read alignment information. This must be of the form # map (string key mapping to a list of string values). # Corresponds to the JSON property `info` @@ -3148,22 +2582,55 @@ module Google # @return [Array] attr_accessor :aligned_quality + # A linear alignment can be represented by one CIGAR string. Describes the + # mapped position and local alignment of the read to the reference. + # Corresponds to the JSON property `alignment` + # @return [Google::Apis::GenomicsV1::LinearAlignment] + attr_accessor :alignment + + # The server-generated read ID, unique across all reads. This is different + # from the `fragmentName`. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The number of reads in the fragment (extension to SAM flag 0x1). + # Corresponds to the JSON property `numberReads` + # @return [Fixnum] + attr_accessor :number_reads + + # Whether this alignment is secondary. Equivalent to SAM flag 0x100. + # A secondary alignment represents an alternative to the primary alignment + # for this read. Aligners may return secondary alignments if a read can map + # ambiguously to multiple coordinates in the genome. By convention, each read + # has one and only one alignment where both `secondaryAlignment` + # and `supplementaryAlignment` are false. + # Corresponds to the JSON property `secondaryAlignment` + # @return [Boolean] + attr_accessor :secondary_alignment + alias_method :secondary_alignment?, :secondary_alignment + + # The fragment name. Equivalent to QNAME (query template name) in SAM. + # Corresponds to the JSON property `fragmentName` + # @return [String] + attr_accessor :fragment_name + + # The ID of the read group set this read belongs to. A read belongs to + # exactly one read group set. + # Corresponds to the JSON property `readGroupSetId` + # @return [String] + attr_accessor :read_group_set_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @alignment = args[:alignment] if args.key?(:alignment) - @number_reads = args[:number_reads] if args.key?(:number_reads) - @id = args[:id] if args.key?(:id) - @secondary_alignment = args[:secondary_alignment] if args.key?(:secondary_alignment) - @fragment_name = args[:fragment_name] if args.key?(:fragment_name) - @read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id) @duplicate_fragment = args[:duplicate_fragment] if args.key?(:duplicate_fragment) @read_number = args[:read_number] if args.key?(:read_number) - @read_group_id = args[:read_group_id] if args.key?(:read_group_id) @aligned_sequence = args[:aligned_sequence] if args.key?(:aligned_sequence) + @read_group_id = args[:read_group_id] if args.key?(:read_group_id) @info = args[:info] if args.key?(:info) @next_mate_position = args[:next_mate_position] if args.key?(:next_mate_position) @supplementary_alignment = args[:supplementary_alignment] if args.key?(:supplementary_alignment) @@ -3171,72 +2638,12 @@ module Google @fragment_length = args[:fragment_length] if args.key?(:fragment_length) @failed_vendor_quality_checks = args[:failed_vendor_quality_checks] if args.key?(:failed_vendor_quality_checks) @aligned_quality = args[:aligned_quality] if args.key?(:aligned_quality) - end - end - - # - class BatchCreateAnnotationsRequest - include Google::Apis::Core::Hashable - - # A unique request ID which enables the server to detect duplicated requests. - # If provided, duplicated requests will result in the same response; if not - # provided, duplicated requests may result in duplicated data. For a given - # annotation set, callers should not reuse `request_id`s when writing - # different batches of annotations - behavior in this case is undefined. - # A common approach is to use a UUID. For batch jobs where worker crashes are - # a possibility, consider using some unique variant of a worker or run ID. - # Corresponds to the JSON property `requestId` - # @return [String] - attr_accessor :request_id - - # The annotations to be created. At most 4096 can be specified in a single - # request. - # Corresponds to the JSON property `annotations` - # @return [Array] - attr_accessor :annotations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @request_id = args[:request_id] if args.key?(:request_id) - @annotations = args[:annotations] if args.key?(:annotations) - end - end - - # A single CIGAR operation. - class CigarUnit - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `operation` - # @return [String] - attr_accessor :operation - - # `referenceSequence` is only used at mismatches - # (`SEQUENCE_MISMATCH`) and deletions (`DELETE`). - # Filling this field replaces SAM's MD tag. If the relevant information is - # not available, this field is unset. - # Corresponds to the JSON property `referenceSequence` - # @return [String] - attr_accessor :reference_sequence - - # The number of genomic bases that the operation runs for. Required. - # Corresponds to the JSON property `operationLength` - # @return [Fixnum] - attr_accessor :operation_length - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation = args[:operation] if args.key?(:operation) - @reference_sequence = args[:reference_sequence] if args.key?(:reference_sequence) - @operation_length = args[:operation_length] if args.key?(:operation_length) + @alignment = args[:alignment] if args.key?(:alignment) + @id = args[:id] if args.key?(:id) + @number_reads = args[:number_reads] if args.key?(:number_reads) + @secondary_alignment = args[:secondary_alignment] if args.key?(:secondary_alignment) + @fragment_name = args[:fragment_name] if args.key?(:fragment_name) + @read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id) end end @@ -3250,10 +2657,10 @@ module Google class ReferenceSet include Google::Apis::Core::Hashable - # Free text description of this reference set. - # Corresponds to the JSON property `description` + # The server-generated reference set ID, unique across all reference sets. + # Corresponds to the JSON property `id` # @return [String] - attr_accessor :description + attr_accessor :id # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally # with a version number, for example `NC_000001.11`. @@ -3261,6 +2668,11 @@ module Google # @return [Array] attr_accessor :source_accessions + # Free text description of this reference set. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + # The URI from which the references were obtained. # Corresponds to the JSON property `sourceUri` # @return [String] @@ -3295,68 +2707,44 @@ module Google # @return [String] attr_accessor :md5checksum - # The server-generated reference set ID, unique across all reference sets. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) @source_accessions = args[:source_accessions] if args.key?(:source_accessions) + @description = args[:description] if args.key?(:description) @source_uri = args[:source_uri] if args.key?(:source_uri) @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id) @reference_ids = args[:reference_ids] if args.key?(:reference_ids) @assembly_id = args[:assembly_id] if args.key?(:assembly_id) @md5checksum = args[:md5checksum] if args.key?(:md5checksum) - @id = args[:id] if args.key?(:id) end end - # A transcript represents the assertion that a particular region of the - # reference genome may be transcribed as RNA. - class Transcript + # A single CIGAR operation. + class CigarUnit include Google::Apis::Core::Hashable - # The range of the coding sequence for this transcript, if any. To determine - # the exact ranges of coding sequence, intersect this range with those of the - # exons, if any. If there are any - # exons, the - # codingSequence must start - # and end within them. - # Note that in some cases, the reference genome will not exactly match the - # observed mRNA transcript e.g. due to variance in the source genome from - # reference. In these cases, - # exon.frame will not necessarily - # match the expected reference reading frame and coding exon reference bases - # cannot necessarily be concatenated to produce the original transcript mRNA. - # Corresponds to the JSON property `codingSequence` - # @return [Google::Apis::GenomicsV1::CodingSequence] - attr_accessor :coding_sequence + # The number of genomic bases that the operation runs for. Required. + # Corresponds to the JSON property `operationLength` + # @return [Fixnum] + attr_accessor :operation_length - # The annotation ID of the gene from which this transcript is transcribed. - # Corresponds to the JSON property `geneId` + # + # Corresponds to the JSON property `operation` # @return [String] - attr_accessor :gene_id + attr_accessor :operation - # The exons that compose - # this transcript. This field should be unset for genomes where transcript - # splicing does not occur, for example prokaryotes. - # Introns are regions of the transcript that are not included in the - # spliced RNA product. Though not explicitly modeled here, intron ranges can - # be deduced; all regions of this transcript that are not exons are introns. - # Exonic sequences do not necessarily code for a translational product - # (amino acids). Only the regions of exons bounded by the - # codingSequence correspond - # to coding DNA sequence. - # Exons are ordered by start position and may not overlap. - # Corresponds to the JSON property `exons` - # @return [Array] - attr_accessor :exons + # `referenceSequence` is only used at mismatches + # (`SEQUENCE_MISMATCH`) and deletions (`DELETE`). + # Filling this field replaces SAM's MD tag. If the relevant information is + # not available, this field is unset. + # Corresponds to the JSON property `referenceSequence` + # @return [String] + attr_accessor :reference_sequence def initialize(**args) update!(**args) @@ -3364,9 +2752,9 @@ module Google # Update properties of this object def update!(**args) - @coding_sequence = args[:coding_sequence] if args.key?(:coding_sequence) - @gene_id = args[:gene_id] if args.key?(:gene_id) - @exons = args[:exons] if args.key?(:exons) + @operation_length = args[:operation_length] if args.key?(:operation_length) + @operation = args[:operation] if args.key?(:operation) + @reference_sequence = args[:reference_sequence] if args.key?(:reference_sequence) end end @@ -3376,17 +2764,17 @@ module Google class AnnotationSet include Google::Apis::Core::Hashable + # The dataset to which this annotation set belongs. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + # The source URI describing the file from which this annotation set was # generated, if any. # Corresponds to the JSON property `sourceUri` # @return [String] attr_accessor :source_uri - # The dataset to which this annotation set belongs. - # Corresponds to the JSON property `datasetId` - # @return [String] - attr_accessor :dataset_id - # The display name for this annotation set. # Corresponds to the JSON property `name` # @return [String] @@ -3420,8 +2808,8 @@ module Google # Update properties of this object def update!(**args) - @source_uri = args[:source_uri] if args.key?(:source_uri) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @source_uri = args[:source_uri] if args.key?(:source_uri) @name = args[:name] if args.key?(:name) @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) @info = args[:info] if args.key?(:info) @@ -3430,15 +2818,63 @@ module Google end end + # A transcript represents the assertion that a particular region of the + # reference genome may be transcribed as RNA. + class Transcript + include Google::Apis::Core::Hashable + + # The annotation ID of the gene from which this transcript is transcribed. + # Corresponds to the JSON property `geneId` + # @return [String] + attr_accessor :gene_id + + # The exons that compose + # this transcript. This field should be unset for genomes where transcript + # splicing does not occur, for example prokaryotes. + # Introns are regions of the transcript that are not included in the + # spliced RNA product. Though not explicitly modeled here, intron ranges can + # be deduced; all regions of this transcript that are not exons are introns. + # Exonic sequences do not necessarily code for a translational product + # (amino acids). Only the regions of exons bounded by the + # codingSequence correspond + # to coding DNA sequence. + # Exons are ordered by start position and may not overlap. + # Corresponds to the JSON property `exons` + # @return [Array] + attr_accessor :exons + + # The range of the coding sequence for this transcript, if any. To determine + # the exact ranges of coding sequence, intersect this range with those of the + # exons, if any. If there are any + # exons, the + # codingSequence must start + # and end within them. + # Note that in some cases, the reference genome will not exactly match the + # observed mRNA transcript e.g. due to variance in the source genome from + # reference. In these cases, + # exon.frame will not necessarily + # match the expected reference reading frame and coding exon reference bases + # cannot necessarily be concatenated to produce the original transcript mRNA. + # Corresponds to the JSON property `codingSequence` + # @return [Google::Apis::GenomicsV1::CodingSequence] + attr_accessor :coding_sequence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gene_id = args[:gene_id] if args.key?(:gene_id) + @exons = args[:exons] if args.key?(:exons) + @coding_sequence = args[:coding_sequence] if args.key?(:coding_sequence) + end + end + # class Experiment include Google::Apis::Core::Hashable - # The sequencing center used as part of this experiment. - # Corresponds to the JSON property `sequencingCenter` - # @return [String] - attr_accessor :sequencing_center - # The platform unit used as part of this experiment, for example # flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the # @RG PU field in the SAM spec. @@ -3446,6 +2882,12 @@ module Google # @return [String] attr_accessor :platform_unit + # The instrument model used as part of this experiment. This maps to + # sequencing technology in the SAM spec. + # Corresponds to the JSON property `instrumentModel` + # @return [String] + attr_accessor :instrument_model + # A client-supplied library identifier; a library is a collection of DNA # fragments which have been prepared for sequencing from a sample. This # field is important for quality control as error or bias can be introduced @@ -3454,11 +2896,10 @@ module Google # @return [String] attr_accessor :library_id - # The instrument model used as part of this experiment. This maps to - # sequencing technology in the SAM spec. - # Corresponds to the JSON property `instrumentModel` + # The sequencing center used as part of this experiment. + # Corresponds to the JSON property `sequencingCenter` # @return [String] - attr_accessor :instrument_model + attr_accessor :sequencing_center def initialize(**args) update!(**args) @@ -3466,10 +2907,569 @@ module Google # Update properties of this object def update!(**args) - @sequencing_center = args[:sequencing_center] if args.key?(:sequencing_center) @platform_unit = args[:platform_unit] if args.key?(:platform_unit) - @library_id = args[:library_id] if args.key?(:library_id) @instrument_model = args[:instrument_model] if args.key?(:instrument_model) + @library_id = args[:library_id] if args.key?(:library_id) + @sequencing_center = args[:sequencing_center] if args.key?(:sequencing_center) + end + end + + # The dataset list response. + class ListDatasetsResponse + include Google::Apis::Core::Hashable + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of + # results. This field will be empty if there aren't any additional results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of matching Datasets. + # Corresponds to the JSON property `datasets` + # @return [Array] + attr_accessor :datasets + + 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) + @datasets = args[:datasets] if args.key?(:datasets) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # REQUIRED: The set of permissions to check for the 'resource'. + # Permissions with wildcards (such as '*' or 'storage.*') are not allowed. + # Allowed permissions are: + # * `genomics.datasets.create` + # * `genomics.datasets.delete` + # * `genomics.datasets.get` + # * `genomics.datasets.list` + # * `genomics.datasets.update` + # * `genomics.datasets.getIamPolicy` + # * `genomics.datasets.setIamPolicy` + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # + class Exon + include Google::Apis::Core::Hashable + + # The start position of the exon on this annotation's reference sequence, + # 0-based inclusive. Note that this is relative to the reference start, and + # **not** the containing annotation start. + # Corresponds to the JSON property `start` + # @return [Fixnum] + attr_accessor :start + + # The frame of this exon. Contains a value of 0, 1, or 2, which indicates + # the offset of the first coding base of the exon within the reading frame + # of the coding DNA sequence, if any. This field is dependent on the + # strandedness of this annotation (see + # Annotation.reverse_strand). + # For forward stranded annotations, this offset is relative to the + # exon.start. For reverse + # strand annotations, this offset is relative to the + # exon.end `- 1`. + # Unset if this exon does not intersect the coding sequence. Upon creation + # of a transcript, the frame must be populated for all or none of the + # coding exons. + # Corresponds to the JSON property `frame` + # @return [Fixnum] + attr_accessor :frame + + # The end position of the exon on this annotation's reference sequence, + # 0-based exclusive. Note that this is relative to the reference start, and + # *not* the containing annotation start. + # Corresponds to the JSON property `end` + # @return [Fixnum] + attr_accessor :end + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @start = args[:start] if args.key?(:start) + @frame = args[:frame] if args.key?(:frame) + @end = args[:end] if args.key?(:end) + end + end + + # The read group set export request. + class ExportReadGroupSetRequest + include Google::Apis::Core::Hashable + + # The reference names to export. If this is not specified, all reference + # sequences, including unmapped reads, are exported. + # Use `*` to export only unmapped reads. + # Corresponds to the JSON property `referenceNames` + # @return [Array] + attr_accessor :reference_names + + # Required. A Google Cloud Storage URI for the exported BAM file. + # The currently authenticated user must have write access to the new file. + # An error will be returned if the URI already contains data. + # Corresponds to the JSON property `exportUri` + # @return [String] + attr_accessor :export_uri + + # Required. The Google Cloud project ID that owns this + # export. The caller must have WRITE access to this project. + # 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) + @reference_names = args[:reference_names] if args.key?(:reference_names) + @export_uri = args[:export_uri] if args.key?(:export_uri) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # A call set is a collection of variant calls, typically for one sample. It + # belongs to a variant set. + # For more genomics resource definitions, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + class CallSet + include Google::Apis::Core::Hashable + + # The sample ID this call set corresponds to. + # Corresponds to the JSON property `sampleId` + # @return [String] + attr_accessor :sample_id + + # The call set name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A map of additional call set information. This must be of the form + # map (string key mapping to a list of string values). + # Corresponds to the JSON property `info` + # @return [Hash>] + attr_accessor :info + + # The IDs of the variant sets this call set belongs to. This field must + # have exactly length one, as a call set belongs to a single variant set. + # This field is repeated for compatibility with the + # [GA4GH 0.5.1 + # API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/ + # variants.avdl#L76). + # Corresponds to the JSON property `variantSetIds` + # @return [Array] + attr_accessor :variant_set_ids + + # The server-generated call set ID, unique across all call sets. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The date this call set was created in milliseconds from the epoch. + # Corresponds to the JSON property `created` + # @return [Fixnum] + attr_accessor :created + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sample_id = args[:sample_id] if args.key?(:sample_id) + @name = args[:name] if args.key?(:name) + @info = args[:info] if args.key?(:info) + @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) + @id = args[:id] if args.key?(:id) + @created = args[:created] if args.key?(:created) + end + end + + # + class SearchAnnotationSetsResponse + include Google::Apis::Core::Hashable + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of + # results. This field will be empty if there aren't any additional results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The matching annotation sets. + # Corresponds to the JSON property `annotationSets` + # @return [Array] + attr_accessor :annotation_sets + + 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) + @annotation_sets = args[:annotation_sets] if args.key?(:annotation_sets) + end + end + + # The variant data import request. + class ImportVariantsRequest + include Google::Apis::Core::Hashable + + # The format of the variant data being imported. If unspecified, defaults to + # to `VCF`. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # A mapping between info field keys and the InfoMergeOperations to + # be performed on them. This is plumbed down to the MergeVariantRequests + # generated by the resulting import job. + # Corresponds to the JSON property `infoMergeConfig` + # @return [Hash] + attr_accessor :info_merge_config + + # A list of URIs referencing variant files in Google Cloud Storage. URIs can + # include wildcards [as described + # here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + # Note that recursive wildcards ('**') are not supported. + # Corresponds to the JSON property `sourceUris` + # @return [Array] + attr_accessor :source_uris + + # Required. The variant set to which variant data should be imported. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # Convert reference names to the canonical representation. + # hg19 haploytypes (those reference names containing "_hap") + # are not modified in any way. + # All other reference names are modified according to the following rules: + # The reference name is capitalized. + # The "chr" prefix is dropped for all autosomes and sex chromsomes. + # For example "chr17" becomes "17" and "chrX" becomes "X". + # All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT". + # Corresponds to the JSON property `normalizeReferenceNames` + # @return [Boolean] + attr_accessor :normalize_reference_names + alias_method :normalize_reference_names?, :normalize_reference_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @format = args[:format] if args.key?(:format) + @info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config) + @source_uris = args[:source_uris] if args.key?(:source_uris) + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @normalize_reference_names = args[:normalize_reference_names] if args.key?(:normalize_reference_names) + end + end + + # + class VariantAnnotation + include Google::Apis::Core::Hashable + + # The set of conditions associated with this variant. + # A condition describes the way a variant influences human health. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # Effect of the variant on the coding sequence. + # Corresponds to the JSON property `effect` + # @return [String] + attr_accessor :effect + + # Google annotation IDs of the transcripts affected by this variant. These + # should be provided when the variant is created. + # Corresponds to the JSON property `transcriptIds` + # @return [Array] + attr_accessor :transcript_ids + + # Type has been adapted from ClinVar's list of variant types. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The alternate allele for this variant. If multiple alternate alleles + # exist at this location, create a separate variant for each one, as they + # may represent distinct conditions. + # Corresponds to the JSON property `alternateBases` + # @return [String] + attr_accessor :alternate_bases + + # Google annotation ID of the gene affected by this variant. This should + # be provided when the variant is created. + # Corresponds to the JSON property `geneId` + # @return [String] + attr_accessor :gene_id + + # Describes the clinical significance of a variant. + # It is adapted from the ClinVar controlled vocabulary for clinical + # significance described at: + # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ + # Corresponds to the JSON property `clinicalSignificance` + # @return [String] + attr_accessor :clinical_significance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conditions = args[:conditions] if args.key?(:conditions) + @effect = args[:effect] if args.key?(:effect) + @transcript_ids = args[:transcript_ids] if args.key?(:transcript_ids) + @type = args[:type] if args.key?(:type) + @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) + @gene_id = args[:gene_id] if args.key?(:gene_id) + @clinical_significance = args[:clinical_significance] if args.key?(:clinical_significance) + end + end + + # + class ListCoverageBucketsResponse + include Google::Apis::Core::Hashable + + # The continuation token, which is used to page through large result sets. + # Provide this value in a subsequent request to return the next page of + # results. This field will be empty if there aren't any additional results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The length of each coverage bucket in base pairs. Note that buckets at the + # end of a reference sequence may be shorter. This value is omitted if the + # bucket width is infinity (the default behaviour, with no range or + # `targetBucketWidth`). + # Corresponds to the JSON property `bucketWidth` + # @return [Fixnum] + attr_accessor :bucket_width + + # The coverage buckets. The list of buckets is sparse; a bucket with 0 + # overlapping reads is not returned. A bucket never crosses more than one + # reference sequence. Each bucket has width `bucketWidth`, unless + # its end is the end of the reference sequence. + # Corresponds to the JSON property `coverageBuckets` + # @return [Array] + attr_accessor :coverage_buckets + + 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) + @bucket_width = args[:bucket_width] if args.key?(:bucket_width) + @coverage_buckets = args[:coverage_buckets] if args.key?(:coverage_buckets) + end + end + + # The variant data export request. + class ExportVariantSetRequest + include Google::Apis::Core::Hashable + + # Required. The BigQuery table to export data to. + # If the table doesn't exist, it will be created. If it already exists, it + # will be overwritten. + # Corresponds to the JSON property `bigqueryTable` + # @return [String] + attr_accessor :bigquery_table + + # Required. The BigQuery dataset to export data to. This dataset must already + # exist. Note that this is distinct from the Genomics concept of "dataset". + # Corresponds to the JSON property `bigqueryDataset` + # @return [String] + attr_accessor :bigquery_dataset + + # The format for the exported data. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Required. The Google Cloud project ID that owns the destination + # BigQuery dataset. The caller must have WRITE access to this project. This + # project will also own the resulting export job. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # If provided, only variant call information from the specified call sets + # will be exported. By default all variant calls are exported. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bigquery_table = args[:bigquery_table] if args.key?(:bigquery_table) + @bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset) + @format = args[:format] if args.key?(:format) + @project_id = args[:project_id] if args.key?(:project_id) + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + end + end + + # + class SearchAnnotationsRequest + include Google::Apis::Core::Hashable + + # The start position of the range on the reference, 0-based inclusive. If + # specified, + # referenceId or + # referenceName + # must be specified. Defaults to 0. + # Corresponds to the JSON property `start` + # @return [Fixnum] + attr_accessor :start + + # Required. The annotation sets to search within. The caller must have + # `READ` access to these annotation sets. + # All queried annotation sets must have the same type. + # Corresponds to the JSON property `annotationSetIds` + # @return [Array] + attr_accessor :annotation_set_ids + + # The name of the reference to query, within the reference set associated + # with this query. + # Corresponds to the JSON property `referenceName` + # @return [String] + attr_accessor :reference_name + + # The ID of the reference to query. + # Corresponds to the JSON property `referenceId` + # @return [String] + attr_accessor :reference_id + + # The end position of the range on the reference, 0-based exclusive. If + # referenceId or + # referenceName + # must be specified, Defaults to the length of the reference. + # Corresponds to the JSON property `end` + # @return [Fixnum] + attr_accessor :end + + # The continuation token, which is used to page through large result sets. + # To get the next page of results, set this parameter to the value of + # `nextPageToken` from the previous response. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # The maximum number of results to return in a single page. If unspecified, + # defaults to 256. The maximum value is 2048. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @start = args[:start] if args.key?(:start) + @annotation_set_ids = args[:annotation_set_ids] if args.key?(:annotation_set_ids) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @reference_id = args[:reference_id] if args.key?(:reference_id) + @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 + + # An event that occurred during an Operation. + class OperationEvent + include Google::Apis::Core::Hashable + + # Optional time of when event finished. An event can have a start time and no + # finish time. If an event has a finish time, there must be a start time. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Optional time of when event started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Required description of event. + # 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) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @description = args[:description] if args.key?(:description) + end + end + + # + class CodingSequence + include Google::Apis::Core::Hashable + + # The end of the coding sequence on this annotation's reference sequence, + # 0-based exclusive. Note that this position is relative to the reference + # start, and *not* the containing annotation start. + # Corresponds to the JSON property `end` + # @return [Fixnum] + attr_accessor :end + + # The start of the coding sequence on this annotation's reference sequence, + # 0-based inclusive. Note that this position is relative to the reference + # start, and *not* the containing annotation start. + # Corresponds to the JSON property `start` + # @return [Fixnum] + attr_accessor :start + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end = args[:end] if args.key?(:end) + @start = args[:start] if args.key?(:start) end end end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 35f4548fd..c31aeea58 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -22,84 +22,6 @@ module Google module Apis module GenomicsV1 - class ListDatasetsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExportReadGroupSetRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Exon - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CallSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SearchAnnotationSetsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ImportVariantsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class VariantAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListCoverageBucketsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExportVariantSetRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SearchAnnotationsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OperationEvent - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CodingSequence - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SearchReferencesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,13 +52,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LinearAlignment + class SearchReferencesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SearchReferencesRequest + class LinearAlignment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -298,19 +220,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BatchCreateAnnotationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ReferenceBound class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class BatchCreateAnnotationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SearchCallSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -322,7 +244,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SearchCallSetsResponse + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -352,13 +274,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SearchReadsResponse + class ClinicalCondition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClinicalCondition + class SearchReadsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -388,12 +310,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Reference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SearchVariantSetsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -406,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Reference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SearchReferenceSetsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -424,19 +346,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Read - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BatchCreateAnnotationsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CigarUnit + class Read class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -448,7 +364,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Transcript + class CigarUnit class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -460,6 +376,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Transcript + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Experiment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -467,138 +389,81 @@ module Google end class ListDatasetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :datasets, as: 'datasets', class: Google::Apis::GenomicsV1::Dataset, decorator: Google::Apis::GenomicsV1::Dataset::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport end class TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class ExportReadGroupSetRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :project_id, as: 'projectId' - property :export_uri, as: 'exportUri' - collection :reference_names, as: 'referenceNames' - end + include Google::Apis::Core::JsonObjectSupport end class Exon - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end, :numeric_string => true, as: 'end' - property :frame, as: 'frame' - property :start, :numeric_string => true, as: 'start' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportReadGroupSetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CallSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :created, :numeric_string => true, as: 'created' - property :sample_id, as: 'sampleId' - property :name, as: 'name' - hash :info, as: 'info', :class => Array do - include Representable::JSON::Collection - items - end + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :variant_set_ids, as: 'variantSetIds' - property :id, as: 'id' - end + include Google::Apis::Core::JsonObjectSupport end class SearchAnnotationSetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :annotation_sets, as: 'annotationSets', class: Google::Apis::GenomicsV1::AnnotationSet, decorator: Google::Apis::GenomicsV1::AnnotationSet::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ImportVariantsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :format, as: 'format' - hash :info_merge_config, as: 'infoMergeConfig' - property :variant_set_id, as: 'variantSetId' - collection :source_uris, as: 'sourceUris' - property :normalize_reference_names, as: 'normalizeReferenceNames' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class VariantAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :alternate_bases, as: 'alternateBases' - property :gene_id, as: 'geneId' - property :clinical_significance, as: 'clinicalSignificance' - collection :conditions, as: 'conditions', class: Google::Apis::GenomicsV1::ClinicalCondition, decorator: Google::Apis::GenomicsV1::ClinicalCondition::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :effect, as: 'effect' - collection :transcript_ids, as: 'transcriptIds' - end + include Google::Apis::Core::JsonObjectSupport end class ListCoverageBucketsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - property :bucket_width, :numeric_string => true, as: 'bucketWidth' - collection :coverage_buckets, as: 'coverageBuckets', class: Google::Apis::GenomicsV1::CoverageBucket, decorator: Google::Apis::GenomicsV1::CoverageBucket::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ExportVariantSetRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :format, as: 'format' - property :bigquery_dataset, as: 'bigqueryDataset' - property :bigquery_table, as: 'bigqueryTable' - collection :call_set_ids, as: 'callSetIds' - property :project_id, as: 'projectId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SearchAnnotationsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' - property :start, :numeric_string => true, as: 'start' - collection :annotation_set_ids, as: 'annotationSetIds' - property :reference_name, as: 'referenceName' - property :reference_id, as: 'referenceId' - property :end, :numeric_string => true, as: 'end' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class OperationEvent - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :description, as: 'description' - property :end_time, as: 'endTime' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CodingSequence - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start, :numeric_string => true, as: 'start' - property :end, :numeric_string => true, as: 'end' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SearchReferencesResponse @@ -626,12 +491,12 @@ module Google class SearchAnnotationSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :dataset_ids, as: 'datasetIds' - collection :types, as: 'types' property :name, as: 'name' property :reference_set_id, as: 'referenceSetId' property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' + collection :dataset_ids, as: 'datasetIds' + collection :types, as: 'types' end end @@ -644,35 +509,35 @@ module Google end end - class LinearAlignment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation - - collection :cigar, as: 'cigar', class: Google::Apis::GenomicsV1::CigarUnit, decorator: Google::Apis::GenomicsV1::CigarUnit::Representation - - property :mapping_quality, as: 'mappingQuality' - end - end - class SearchReferencesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation collection :md5checksums, as: 'md5checksums' - collection :accessions, as: 'accessions' property :page_token, as: 'pageToken' - property :reference_set_id, as: 'referenceSetId' + collection :accessions, as: 'accessions' property :page_size, as: 'pageSize' + property :reference_set_id, as: 'referenceSetId' + end + end + + class LinearAlignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mapping_quality, as: 'mappingQuality' + collection :cigar, as: 'cigar', class: Google::Apis::GenomicsV1::CigarUnit, decorator: Google::Apis::GenomicsV1::CigarUnit::Representation + + property :position, as: 'position', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation + end end class Dataset # @private class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :name, as: 'name' property :project_id, as: 'projectId' property :id, as: 'id' + property :create_time, as: 'createTime' + property :name, as: 'name' end end @@ -686,7 +551,6 @@ module Google class ReadGroup # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' collection :programs, as: 'programs', class: Google::Apis::GenomicsV1::Program, decorator: Google::Apis::GenomicsV1::Program::Representation property :predicted_insert_size, as: 'predictedInsertSize' @@ -702,12 +566,14 @@ module Google items end + property :id, as: 'id' end end class ReadGroupSet # @private class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' property :dataset_id, as: 'datasetId' property :filename, as: 'filename' collection :read_groups, as: 'readGroups', class: Google::Apis::GenomicsV1::ReadGroup, decorator: Google::Apis::GenomicsV1::ReadGroup::Representation @@ -719,7 +585,6 @@ module Google items end - property :id, as: 'id' end end @@ -741,10 +606,10 @@ module Google class Entry # @private class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation - property :annotation, as: 'annotation', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation + property :status, as: 'status', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation + end end @@ -769,8 +634,8 @@ module Google class SearchCallSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' property :page_token, as: 'pageToken' + property :name, as: 'name' property :page_size, as: 'pageSize' collection :variant_set_ids, as: 'variantSetIds' end @@ -779,10 +644,10 @@ module Google class ImportReadGroupSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :dataset_id, as: 'datasetId' - collection :source_uris, as: 'sourceUris' property :reference_set_id, as: 'referenceSetId' property :partition_strategy, as: 'partitionStrategy' + property :dataset_id, as: 'datasetId' + collection :source_uris, as: 'sourceUris' end end @@ -799,13 +664,13 @@ module Google class SearchReadsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :read_group_set_ids, as: 'readGroupSetIds' collection :read_group_ids, as: 'readGroupIds' property :end, :numeric_string => true, as: 'end' property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' property :start, :numeric_string => true, as: 'start' property :reference_name, as: 'referenceName' + collection :read_group_set_ids, as: 'readGroupSetIds' end end @@ -822,8 +687,8 @@ module Google property :name, as: 'name' property :variant, as: 'variant', class: Google::Apis::GenomicsV1::VariantAnnotation, decorator: Google::Apis::GenomicsV1::VariantAnnotation::Representation - property :reference_id, as: 'referenceId' property :id, as: 'id' + property :reference_id, as: 'referenceId' property :reverse_strand, as: 'reverseStrand' property :reference_name, as: 'referenceName' property :type, as: 'type' @@ -850,12 +715,12 @@ module Google class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation + hash :metadata, as: 'metadata' property :done, as: 'done' hash :response, as: 'response' property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation - end end @@ -903,9 +768,9 @@ module Google class Status # @private class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' collection :details, as: 'details' property :code, as: 'code' + property :message, as: 'message' end end @@ -926,24 +791,32 @@ module Google class Range # @private class Representation < Google::Apis::Core::JsonRepresentation - property :end, :numeric_string => true, as: 'end' property :reference_name, as: 'referenceName' property :start, :numeric_string => true, as: 'start' + property :end, :numeric_string => true, as: 'end' end end class VariantSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :dataset_id, as: 'datasetId' - property :name, as: 'name' - property :reference_set_id, as: 'referenceSetId' collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation collection :reference_bounds, as: 'referenceBounds', class: Google::Apis::GenomicsV1::ReferenceBound, decorator: Google::Apis::GenomicsV1::ReferenceBound::Representation property :id, as: 'id' + property :description, as: 'description' + property :dataset_id, as: 'datasetId' + property :name, as: 'name' + property :reference_set_id, as: 'referenceSetId' + end + end + + class ReferenceBound + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :upper_bound, :numeric_string => true, as: 'upperBound' + property :reference_name, as: 'referenceName' end end @@ -955,18 +828,10 @@ module Google end end - class ReferenceBound + class SearchCallSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :reference_name, as: 'referenceName' - property :upper_bound, :numeric_string => true, as: 'upperBound' - end - end - - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation + collection :call_sets, as: 'callSets', class: Google::Apis::GenomicsV1::CallSet, decorator: Google::Apis::GenomicsV1::CallSet::Representation property :next_page_token, as: 'nextPageToken' end @@ -983,8 +848,8 @@ module Google end property :reference_bases, as: 'referenceBases' - collection :alternate_bases, as: 'alternateBases' collection :names, as: 'names' + collection :alternate_bases, as: 'alternateBases' property :end, :numeric_string => true, as: 'end' collection :filter, as: 'filter' collection :calls, as: 'calls', class: Google::Apis::GenomicsV1::VariantCall, decorator: Google::Apis::GenomicsV1::VariantCall::Representation @@ -996,11 +861,11 @@ module Google end end - class SearchCallSetsResponse + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' - collection :call_sets, as: 'callSets', class: Google::Apis::GenomicsV1::CallSet, decorator: Google::Apis::GenomicsV1::CallSet::Representation + collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation end end @@ -1008,41 +873,41 @@ module Google class SearchVariantsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :call_set_ids, as: 'callSetIds' + property :variant_name, as: 'variantName' + property :start, :numeric_string => true, as: 'start' property :reference_name, as: 'referenceName' collection :variant_set_ids, as: 'variantSetIds' property :end, :numeric_string => true, as: 'end' property :max_calls, as: 'maxCalls' property :page_token, as: 'pageToken' property :page_size, as: 'pageSize' - collection :call_set_ids, as: 'callSetIds' - property :start, :numeric_string => true, as: 'start' - property :variant_name, as: 'variantName' end end class OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation + property :start_time, as: 'startTime' + hash :request, as: 'request' hash :runtime_metadata, as: 'runtimeMetadata' hash :labels, as: 'labels' property :create_time, as: 'createTime' property :project_id, as: 'projectId' property :client_id, as: 'clientId' - property :end_time, as: 'endTime' collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation - property :start_time, as: 'startTime' - hash :request, as: 'request' + property :end_time, as: 'endTime' end end class SearchReadGroupSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :dataset_ids, as: 'datasetIds' - property :name, as: 'name' property :page_token, as: 'pageToken' + property :name, as: 'name' property :page_size, as: 'pageSize' + collection :dataset_ids, as: 'datasetIds' end end @@ -1055,23 +920,23 @@ module Google end end - class SearchReadsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :alignments, as: 'alignments', class: Google::Apis::GenomicsV1::Read, decorator: Google::Apis::GenomicsV1::Read::Representation - - end - end - class ClinicalCondition # @private class Representation < Google::Apis::Core::JsonRepresentation + property :omim_id, as: 'omimId' collection :external_ids, as: 'externalIds', class: Google::Apis::GenomicsV1::ExternalId, decorator: Google::Apis::GenomicsV1::ExternalId::Representation property :concept_id, as: 'conceptId' collection :names, as: 'names' - property :omim_id, as: 'omimId' + end + end + + class SearchReadsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :alignments, as: 'alignments', class: Google::Apis::GenomicsV1::Read, decorator: Google::Apis::GenomicsV1::Read::Representation + + property :next_page_token, as: 'nextPageToken' end end @@ -1079,18 +944,18 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' - property :command_line, as: 'commandLine' property :prev_program_id, as: 'prevProgramId' - property :id, as: 'id' + property :command_line, as: 'commandLine' property :version, as: 'version' + property :id, as: 'id' end end class ComputeEngine # @private class Representation < Google::Apis::Core::JsonRepresentation - property :machine_type, as: 'machineType' collection :disk_names, as: 'diskNames' + property :machine_type, as: 'machineType' property :instance_name, as: 'instanceName' property :zone, as: 'zone' end @@ -1099,9 +964,9 @@ module Google class CoverageBucket # @private class Representation < Google::Apis::Core::JsonRepresentation - property :mean_coverage, as: 'meanCoverage' property :range, as: 'range', class: Google::Apis::GenomicsV1::Range, decorator: Google::Apis::GenomicsV1::Range::Representation + property :mean_coverage, as: 'meanCoverage' end end @@ -1113,19 +978,6 @@ module Google end end - class Reference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :source_accessions, as: 'sourceAccessions' - property :ncbi_taxon_id, as: 'ncbiTaxonId' - property :source_uri, as: 'sourceUri' - property :name, as: 'name' - property :md5checksum, as: 'md5checksum' - property :id, as: 'id' - property :length, :numeric_string => true, as: 'length' - end - end - class SearchVariantSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1138,28 +990,41 @@ module Google class VariantSetMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :info, as: 'info', :class => Array do - include Representable::JSON::Collection - items - end - property :value, as: 'value' property :id, as: 'id' property :number, as: 'number' property :key, as: 'key' property :description, as: 'description' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + property :type, as: 'type' + end + end + + class Reference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :length, :numeric_string => true, as: 'length' + collection :source_accessions, as: 'sourceAccessions' + property :source_uri, as: 'sourceUri' + property :ncbi_taxon_id, as: 'ncbiTaxonId' + property :name, as: 'name' + property :md5checksum, as: 'md5checksum' end end class SearchReferenceSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :accessions, as: 'accessions' + collection :md5checksums, as: 'md5checksums' property :page_token, as: 'pageToken' + collection :accessions, as: 'accessions' property :page_size, as: 'pageSize' property :assembly_id, as: 'assemblyId' - collection :md5checksums, as: 'md5checksums' end end @@ -1174,27 +1039,29 @@ module Google class MergeVariantsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :info_merge_config, as: 'infoMergeConfig' - property :variant_set_id, as: 'variantSetId' collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation + hash :info_merge_config, as: 'infoMergeConfig' + property :variant_set_id, as: 'variantSetId' + end + end + + class BatchCreateAnnotationsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation + + property :request_id, as: 'requestId' end end class Read # @private class Representation < Google::Apis::Core::JsonRepresentation - property :alignment, as: 'alignment', class: Google::Apis::GenomicsV1::LinearAlignment, decorator: Google::Apis::GenomicsV1::LinearAlignment::Representation - - property :number_reads, as: 'numberReads' - property :id, as: 'id' - property :secondary_alignment, as: 'secondaryAlignment' - property :fragment_name, as: 'fragmentName' - property :read_group_set_id, as: 'readGroupSetId' property :duplicate_fragment, as: 'duplicateFragment' property :read_number, as: 'readNumber' - property :read_group_id, as: 'readGroupId' property :aligned_sequence, as: 'alignedSequence' + property :read_group_id, as: 'readGroupId' hash :info, as: 'info', :class => Array do include Representable::JSON::Collection items @@ -1207,57 +1074,44 @@ module Google property :fragment_length, as: 'fragmentLength' property :failed_vendor_quality_checks, as: 'failedVendorQualityChecks' collection :aligned_quality, as: 'alignedQuality' - end - end + property :alignment, as: 'alignment', class: Google::Apis::GenomicsV1::LinearAlignment, decorator: Google::Apis::GenomicsV1::LinearAlignment::Representation - class BatchCreateAnnotationsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :request_id, as: 'requestId' - collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation - - end - end - - class CigarUnit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation, as: 'operation' - property :reference_sequence, as: 'referenceSequence' - property :operation_length, :numeric_string => true, as: 'operationLength' + property :id, as: 'id' + property :number_reads, as: 'numberReads' + property :secondary_alignment, as: 'secondaryAlignment' + property :fragment_name, as: 'fragmentName' + property :read_group_set_id, as: 'readGroupSetId' end end class ReferenceSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' + property :id, as: 'id' collection :source_accessions, as: 'sourceAccessions' + property :description, as: 'description' property :source_uri, as: 'sourceUri' property :ncbi_taxon_id, as: 'ncbiTaxonId' collection :reference_ids, as: 'referenceIds' property :assembly_id, as: 'assemblyId' property :md5checksum, as: 'md5checksum' - property :id, as: 'id' end end - class Transcript + class CigarUnit # @private class Representation < Google::Apis::Core::JsonRepresentation - property :coding_sequence, as: 'codingSequence', class: Google::Apis::GenomicsV1::CodingSequence, decorator: Google::Apis::GenomicsV1::CodingSequence::Representation - - property :gene_id, as: 'geneId' - collection :exons, as: 'exons', class: Google::Apis::GenomicsV1::Exon, decorator: Google::Apis::GenomicsV1::Exon::Representation - + property :operation_length, :numeric_string => true, as: 'operationLength' + property :operation, as: 'operation' + property :reference_sequence, as: 'referenceSequence' end end class AnnotationSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :source_uri, as: 'sourceUri' property :dataset_id, as: 'datasetId' + property :source_uri, as: 'sourceUri' property :name, as: 'name' property :reference_set_id, as: 'referenceSetId' hash :info, as: 'info', :class => Array do @@ -1270,13 +1124,159 @@ module Google end end + class Transcript + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gene_id, as: 'geneId' + collection :exons, as: 'exons', class: Google::Apis::GenomicsV1::Exon, decorator: Google::Apis::GenomicsV1::Exon::Representation + + property :coding_sequence, as: 'codingSequence', class: Google::Apis::GenomicsV1::CodingSequence, decorator: Google::Apis::GenomicsV1::CodingSequence::Representation + + end + end + class Experiment # @private class Representation < Google::Apis::Core::JsonRepresentation - property :sequencing_center, as: 'sequencingCenter' property :platform_unit, as: 'platformUnit' - property :library_id, as: 'libraryId' property :instrument_model, as: 'instrumentModel' + property :library_id, as: 'libraryId' + property :sequencing_center, as: 'sequencingCenter' + end + end + + class ListDatasetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :datasets, as: 'datasets', class: Google::Apis::GenomicsV1::Dataset, decorator: Google::Apis::GenomicsV1::Dataset::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class Exon + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start, :numeric_string => true, as: 'start' + property :frame, as: 'frame' + property :end, :numeric_string => true, as: 'end' + end + end + + class ExportReadGroupSetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reference_names, as: 'referenceNames' + property :export_uri, as: 'exportUri' + property :project_id, as: 'projectId' + end + end + + class CallSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sample_id, as: 'sampleId' + property :name, as: 'name' + hash :info, as: 'info', :class => Array do + include Representable::JSON::Collection + items + end + + collection :variant_set_ids, as: 'variantSetIds' + property :id, as: 'id' + property :created, :numeric_string => true, as: 'created' + end + end + + class SearchAnnotationSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :annotation_sets, as: 'annotationSets', class: Google::Apis::GenomicsV1::AnnotationSet, decorator: Google::Apis::GenomicsV1::AnnotationSet::Representation + + end + end + + class ImportVariantsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :format, as: 'format' + hash :info_merge_config, as: 'infoMergeConfig' + collection :source_uris, as: 'sourceUris' + property :variant_set_id, as: 'variantSetId' + property :normalize_reference_names, as: 'normalizeReferenceNames' + end + end + + class VariantAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conditions, as: 'conditions', class: Google::Apis::GenomicsV1::ClinicalCondition, decorator: Google::Apis::GenomicsV1::ClinicalCondition::Representation + + property :effect, as: 'effect' + collection :transcript_ids, as: 'transcriptIds' + property :type, as: 'type' + property :alternate_bases, as: 'alternateBases' + property :gene_id, as: 'geneId' + property :clinical_significance, as: 'clinicalSignificance' + end + end + + class ListCoverageBucketsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :bucket_width, :numeric_string => true, as: 'bucketWidth' + collection :coverage_buckets, as: 'coverageBuckets', class: Google::Apis::GenomicsV1::CoverageBucket, decorator: Google::Apis::GenomicsV1::CoverageBucket::Representation + + end + end + + class ExportVariantSetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bigquery_table, as: 'bigqueryTable' + property :bigquery_dataset, as: 'bigqueryDataset' + property :format, as: 'format' + property :project_id, as: 'projectId' + collection :call_set_ids, as: 'callSetIds' + end + end + + class SearchAnnotationsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start, :numeric_string => true, as: 'start' + collection :annotation_set_ids, as: 'annotationSetIds' + property :reference_name, as: 'referenceName' + property :reference_id, as: 'referenceId' + property :end, :numeric_string => true, as: 'end' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end + end + + class OperationEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + property :description, as: 'description' + end + end + + class CodingSequence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end, :numeric_string => true, as: 'end' + property :start, :numeric_string => true, as: 'start' end end end diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index ea058660a..a1e60547a 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -47,15 +47,15 @@ module Google @batch_path = 'batch' end - # Deletes an annotation set. Caller must have WRITE permission - # for the associated annotation set. - # @param [String] annotation_set_id - # The ID of the annotation set to be deleted. + # Deletes an annotation. Caller must have WRITE permission for + # the associated annotation set. + # @param [String] annotation_id + # The ID of the annotation to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -68,13 +68,1184 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_annotationset(annotation_set_id, quota_user: nil, fields: nil, options: nil, &block) + def delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/annotations/{annotationId}', options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['annotationId'] = annotation_id unless annotation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new annotation. Caller must have WRITE permission + # for the associated annotation set. + # The following fields are required: + # * annotationSetId + # * referenceName or + # referenceId + # ### Transcripts + # For annotations of type TRANSCRIPT, the following fields of + # transcript must be provided: + # * exons.start + # * exons.end + # All other fields may be optionally specified, unless documented as being + # server-generated (for example, the `id` field). The annotated + # range must be no longer than 100Mbp (mega base pairs). See the + # Annotation resource + # for additional restrictions on each field. + # @param [Google::Apis::GenomicsV1::Annotation] annotation_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Annotation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/annotations', options) + command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation + command.request_object = annotation_object + command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation + command.response_class = Google::Apis::GenomicsV1::Annotation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates one or more new annotations atomically. All annotations must + # belong to the same annotation set. Caller must have WRITE + # permission for this annotation set. For optimal performance, batch + # positionally adjacent annotations together. + # If the request has a systemic issue, such as an attempt to write to + # an inaccessible annotation set, the entire RPC will fail accordingly. For + # lesser data issues, when possible an error will be isolated to the + # corresponding batch entry in the response; the remaining well formed + # annotations will be created normally. + # For details on the requirements for each individual annotation resource, + # see + # CreateAnnotation. + # @param [Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest] batch_create_annotations_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/annotations:batchCreate', options) + command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation + command.request_object = batch_create_annotations_request_object + command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for annotations that match the given criteria. Results are + # ordered by genomic coordinate (by reference sequence, then position). + # Annotations with equivalent genomic coordinates are returned in an + # unspecified order. This order is consistent, such that two queries for the + # same content (regardless of page size) yield annotations in the same order + # across their respective streams of paginated responses. Caller must have + # READ permission for the queried annotation sets. + # @param [Google::Apis::GenomicsV1::SearchAnnotationsRequest] search_annotations_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchAnnotationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/annotations/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation + command.request_object = search_annotations_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets an annotation. Caller must have READ permission + # for the associated annotation set. + # @param [String] annotation_id + # The ID of the annotation to be retrieved. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Annotation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/annotations/{annotationId}', options) + command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation + command.response_class = Google::Apis::GenomicsV1::Annotation + command.params['annotationId'] = annotation_id unless annotation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an annotation. Caller must have + # WRITE permission for the associated dataset. + # @param [String] annotation_id + # The ID of the annotation to be updated. + # @param [Google::Apis::GenomicsV1::Annotation] annotation_object + # @param [String] update_mask + # An optional mask specifying which fields to update. Mutable fields are + # name, + # variant, + # transcript, and + # info. If unspecified, all mutable + # fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Annotation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_id, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/annotations/{annotationId}', options) + command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation + command.request_object = annotation_object + command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation + command.response_class = Google::Apis::GenomicsV1::Annotation + command.params['annotationId'] = annotation_id unless annotation_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a variant set including all variants, call sets, and calls within. + # This is not reversible. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_set_id + # The ID of the variant set to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new variant set. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # The provided variant set must have a valid `datasetId` set - all other + # fields are optional. Note that the `id` field will be ignored, as this is + # assigned by the server. + # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/variantsets', options) + command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.request_object = variant_set_object + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports variant set data to an external destination. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_set_id + # Required. The ID of the variant set that contains variant data which + # should be exported. The caller must have READ access to this variant set. + # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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 export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options) + command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation + command.request_object = export_variant_set_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of all variant sets matching search criteria. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements + # [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0. + # 5.1/src/main/resources/avro/variantmethods.avdl#L49). + # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/variantsets/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation + command.request_object = search_variant_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse + 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 variant set by ID. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_set_id + # Required. The ID of the variant set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a variant set using patch semantics. + # For the definitions of variant sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_set_id + # The ID of the variant to be updated (must already exist). + # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. Supported fields: + # * metadata. + # * name. + # * description. + # Leaving `updateMask` unset is equivalent to specifying all mutable + # fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::VariantSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options) + command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.request_object = variant_set_object + command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation + command.response_class = Google::Apis::GenomicsV1::VariantSet + command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.params['name'] = name unless name.nil? + 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. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] page_token + # The standard list page token. + # @param [Fixnum] page_size + # The maximum number of results to return. If unspecified, defaults to + # 256. The maximum value is 2048. + # @param [String] filter + # A string for filtering Operations. + # The following filter fields are supported: + # * projectId: Required. Corresponds to + # OperationMetadata.projectId. + # * createTime: The time this job was created, in seconds from the + # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` + # operators. + # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only + # one status may be specified. + # * labels.key where key is a label key. + # Examples: + # * `projectId = my-project AND createTime >= 1432140000` + # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` + # * `projectId = my-project AND labels.color = *` + # * `projectId = my-project AND labels.color = red` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for reference sets which match the given criteria. + # For the definitions of references and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements + # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/ + # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71) + # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/referencesets/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation + command.request_object = search_reference_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse + 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 reference set. + # For the definitions of references and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements + # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5. + # 1/src/main/resources/avro/referencemethods.avdl#L83). + # @param [String] reference_set_id + # The ID of the reference set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReferenceSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReferenceSet + command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches for read group sets matching the criteria. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements + # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/ + # v0.5.1/src/main/resources/avro/readmethods.avdl#L135). + # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/readgroupsets/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation + command.request_object = search_read_group_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse + 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 read group set by ID. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] read_group_set_id + # The ID of the read group set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReadGroupSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReadGroupSet + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a read group set. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # This method supports patch semantics. + # @param [String] read_group_set_id + # The ID of the read group set to be updated. The caller must have WRITE + # permissions to the dataset associated with this read group set. + # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. Supported fields: + # * name. + # * referenceSetId. + # Leaving `updateMask` unset is equivalent to specifying all mutable + # fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ReadGroupSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options) + command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.request_object = read_group_set_object + command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation + command.response_class = Google::Apis::GenomicsV1::ReadGroupSet + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates read group sets by asynchronously importing the provided + # information. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # The caller must have WRITE permissions to the dataset. + # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import + # - Tags will be converted to strings - tag types are not preserved + # - Comments (`@CO`) in the input file header will not be preserved + # - Original header order of references (`@SQ`) will not be preserved + # - Any reverse stranded unmapped reads will be reverse complemented, and + # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed + # - Unmapped reads will be stripped of positional information (reference name + # and position) + # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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 import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/readgroupsets:import', options) + command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation + command.request_object = import_read_group_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + 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 read group set. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] read_group_set_id + # The ID of the read group set to be deleted. The caller must have WRITE + # permissions to the dataset associated with this read group set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports a read group set to a BAM file in Google Cloud Storage. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Note that currently there may be some differences between exported BAM + # files and the original BAM file at the time of import. See + # ImportReadGroupSets + # for caveats. + # @param [String] read_group_set_id + # Required. The ID of the read group set to export. The caller must have + # READ access to this read group set. + # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::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 export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options) + command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation + command.request_object = export_read_group_set_request_object + command.response_representation = Google::Apis::GenomicsV1::Operation::Representation + command.response_class = Google::Apis::GenomicsV1::Operation + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_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 fixed width coverage buckets for a read group set, each of which + # correspond to a range of a reference sequence. Each bucket summarizes + # coverage information across its corresponding genomic range. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Coverage is defined as the number of reads which are aligned to a given + # base in the reference sequence. Coverage buckets are available at several + # precomputed bucket widths, enabling retrieval of various coverage 'zoom + # levels'. The caller must have READ permissions for the target read group + # set. + # @param [String] read_group_set_id + # Required. The ID of the read group set over which coverage is requested. + # @param [Fixnum] end_ + # The end position of the range on the reference, 0-based exclusive. If + # specified, `referenceName` must also be specified. If unset or 0, defaults + # to the length of the reference. + # @param [String] page_token + # The continuation token, which is used to page through large result sets. + # To get the next page of results, set this parameter to the value of + # `nextPageToken` from the previous response. + # @param [Fixnum] page_size + # The maximum number of results to return in a single page. If unspecified, + # defaults to 1024. The maximum value is 2048. + # @param [Fixnum] start + # The start position of the range on the reference, 0-based inclusive. If + # specified, `referenceName` must also be specified. Defaults to 0. + # @param [Fixnum] target_bucket_width + # The desired width of each reported coverage bucket in base pairs. This + # will be rounded down to the nearest precomputed bucket width; the value + # of which is returned as `bucketWidth` in the response. Defaults + # to infinity (each bucket spans an entire reference sequence) or the length + # of the target range, if specified. The smallest precomputed + # `bucketWidth` is currently 2048 base pairs; this is subject to + # change. + # @param [String] reference_name + # The name of the reference to query, within the reference set associated + # with this query. Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_coverage_buckets(read_group_set_id, end_: nil, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, reference_name: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options) + command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse + command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? + command.query['end'] = end_ unless end_.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['start'] = start unless start.nil? + command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil? + command.query['referenceName'] = reference_name unless reference_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a list of reads for one or more read group sets. + # For the definitions of read group sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Reads search operates over a genomic coordinate space of reference sequence + # & position defined over the reference sequences to which the requested + # read group sets are aligned. + # If a target positional range is specified, search returns all reads whose + # alignment to the reference genome overlap the range. A query which + # specifies only read group set IDs yields all reads in those read group + # sets, including unmapped reads. + # All reads returned (including reads on subsequent pages) are ordered by + # genomic coordinate (by reference sequence, then position). Reads with + # equivalent genomic coordinates are returned in an unspecified order. This + # order is consistent, such that two queries for the same content (regardless + # of page size) yield reads in the same order across their respective streams + # of paginated responses. + # Implements + # [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/ + # src/main/resources/avro/readmethods.avdl#L85). + # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchReadsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchReadsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/reads/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation + command.request_object = search_reads_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse + 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 call set by ID. + # For the definitions of call sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] call_set_id + # The ID of the call set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/callsets/{callSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + command.params['callSetId'] = call_set_id unless call_set_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a call set. + # For the definitions of call sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # This method supports patch semantics. + # @param [String] call_set_id + # The ID of the call set to be updated. + # @param [Google::Apis::GenomicsV1::CallSet] call_set_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, the only + # mutable field is name. The only + # acceptable value is "name". If unspecified, all mutable fields will be + # updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options) + command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.request_object = call_set_object + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + command.params['callSetId'] = call_set_id unless call_set_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new call set. + # For the definitions of call sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [Google::Apis::GenomicsV1::CallSet] call_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::CallSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/callsets', options) + command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.request_object = call_set_object + command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation + command.response_class = Google::Apis::GenomicsV1::CallSet + 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 call set. + # For the definitions of call sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] call_set_id + # The ID of the call set to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options) + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.params['callSetId'] = call_set_id unless call_set_id.nil? + 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 list of call sets matching the criteria. + # For the definitions of call sets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements + # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5. + # 1/src/main/resources/avro/variantmethods.avdl#L178). + # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/callsets/search', options) + command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation + command.request_object = search_call_sets_request_object + command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse + 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 annotation set. Caller must have WRITE permission + # for the associated annotation set. + # @param [String] annotation_set_id + # The ID of the annotation set to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/annotationsets/{annotationSetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -84,11 +1255,11 @@ module Google # sets in the same order across their respective streams of paginated # responses. Caller must have READ permission for the queried datasets. # @param [Google::Apis::GenomicsV1::SearchAnnotationSetsRequest] search_annotation_sets_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -101,14 +1272,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotationsets/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsRequest::Representation command.request_object = search_annotation_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -116,11 +1287,11 @@ module Google # the associated dataset. # @param [String] annotation_set_id # The ID of the annotation set to be retrieved. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -133,13 +1304,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_annotation_set(annotation_set_id, quota_user: nil, fields: nil, options: nil, &block) + def get_annotation_set(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/annotationsets/{annotationSetId}', options) command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.response_class = Google::Apis::GenomicsV1::AnnotationSet command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -155,11 +1326,11 @@ module Google # source_uri, and # info. If unspecified, all # mutable fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -172,7 +1343,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) + def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/annotationsets/{annotationSetId}', options) command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.request_object = annotation_set_object @@ -180,8 +1351,8 @@ module Google command.response_class = Google::Apis::GenomicsV1::AnnotationSet command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -193,11 +1364,11 @@ module Google # All other fields may be optionally specified, unless documented as being # server-generated (for example, the `id` field). # @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -210,14 +1381,91 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_annotation_set(annotation_set_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def create_annotation_set(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotationsets', options) command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.request_object = annotation_set_object command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.response_class = Google::Apis::GenomicsV1::AnnotationSet - command.query['quotaUser'] = quota_user unless quota_user.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 variant by ID. + # For the definitions of variants and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] variant_id + # The ID of the variant. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Variant] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/variants/{variantId}', options) + command.response_representation = Google::Apis::GenomicsV1::Variant::Representation + command.response_class = Google::Apis::GenomicsV1::Variant + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a variant. + # For the definitions of variants and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # This method supports patch semantics. Returns the modified variant without + # its calls. + # @param [String] variant_id + # The ID of the variant to be updated. + # @param [Google::Apis::GenomicsV1::Variant] variant_object + # @param [String] update_mask + # An optional mask specifying which fields to update. At this time, mutable + # fields are names and + # info. Acceptable values are "names" and + # "info". If unspecified, all mutable fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Variant] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/variants/{variantId}', options) + command.request_representation = Google::Apis::GenomicsV1::Variant::Representation + command.request_object = variant_object + command.response_representation = Google::Apis::GenomicsV1::Variant::Representation + command.response_class = Google::Apis::GenomicsV1::Variant + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -304,11 +1552,11 @@ module Google # This may be the desired outcome, but it is up to the user to determine if # if that is indeed the case. # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -321,14 +1569,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def merge_variants(merge_variants_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants:merge', options) command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation command.request_object = merge_variants_request_object command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -348,11 +1596,11 @@ module Google # call-specific context. # Imported VCF headers are appended to the metadata already in a variant set. # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -365,14 +1613,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_variants(import_variants_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants:import', options) command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation command.request_object = import_variants_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -382,11 +1630,11 @@ module Google # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] variant_id # The ID of the variant to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -399,13 +1647,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_variant(variant_id, quota_user: nil, fields: nil, options: nil, &block) + def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/variants/{variantId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['variantId'] = variant_id unless variant_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -414,11 +1662,11 @@ module Google # [Fundamentals of Google # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::Variant] variant_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -431,14 +1679,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_variant(variant_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants', options) command.request_representation = Google::Apis::GenomicsV1::Variant::Representation command.request_object = variant_object command.response_representation = Google::Apis::GenomicsV1::Variant::Representation command.response_class = Google::Apis::GenomicsV1::Variant - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -450,11 +1698,11 @@ module Google # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5. # 1/src/main/resources/avro/variantmethods.avdl#L126). # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -467,91 +1715,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_variants(search_variants_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation command.request_object = search_variants_request_object command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Gets a variant by ID. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_id - # The ID of the variant. - # @param [String] quota_user - # Available 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::GenomicsV1::Variant] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Variant] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant(variant_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/variants/{variantId}', options) - command.response_representation = Google::Apis::GenomicsV1::Variant::Representation - command.response_class = Google::Apis::GenomicsV1::Variant - command.params['variantId'] = variant_id unless variant_id.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates a variant. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # This method supports patch semantics. Returns the modified variant without - # its calls. - # @param [String] variant_id - # The ID of the variant to be updated. - # @param [Google::Apis::GenomicsV1::Variant] variant_object - # @param [String] update_mask - # An optional mask specifying which fields to update. At this time, mutable - # fields are names and - # info. Acceptable values are "names" and - # "info". If unspecified, all mutable fields will be updated. - # @param [String] quota_user - # Available 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::GenomicsV1::Variant] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Variant] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant(variant_id, variant_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/variants/{variantId}', options) - command.request_representation = Google::Apis::GenomicsV1::Variant::Representation - command.request_object = variant_object - command.response_representation = Google::Apis::GenomicsV1::Variant::Representation - command.response_class = Google::Apis::GenomicsV1::Variant - command.params['variantId'] = variant_id unless variant_id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -563,11 +1734,11 @@ module Google # [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0. # 5.1/src/main/resources/avro/referencemethods.avdl#L146). # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -580,14 +1751,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_references(search_references_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/references/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation command.request_object = search_references_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -600,11 +1771,11 @@ module Google # src/main/resources/avro/referencemethods.avdl#L158). # @param [String] reference_id # The ID of the reference. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -617,13 +1788,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_reference(reference_id, quota_user: nil, fields: nil, options: nil, &block) + def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/references/{referenceId}', options) command.response_representation = Google::Apis::GenomicsV1::Reference::Representation command.response_class = Google::Apis::GenomicsV1::Reference command.params['referenceId'] = reference_id unless reference_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -649,11 +1820,11 @@ module Google # pairs). # @param [Fixnum] start_position # The start position (0-based) of this query. Defaults to 0. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -666,7 +1837,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_reference_bases(reference_id, end_position: nil, page_token: nil, page_size: nil, start_position: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_reference_bases(reference_id, end_position: nil, page_token: nil, page_size: nil, start_position: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options) command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListBasesResponse @@ -675,81 +1846,8 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['start'] = start_position unless start_position.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified dataset. Replaces any - # existing policy. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # See Setting a - # Policy for more information. - # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Format is - # `datasets/`. - # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::GenomicsV1::Policy::Representation - command.response_class = Google::Apis::GenomicsV1::Policy - command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new dataset. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [Google::Apis::GenomicsV1::Dataset] dataset_object - # @param [String] quota_user - # Available 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::GenomicsV1::Dataset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Dataset] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_dataset(dataset_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/datasets', options) - command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation - command.request_object = dataset_object - command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation - command.response_class = Google::Apis::GenomicsV1::Dataset - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -764,11 +1862,11 @@ module Google # REQUIRED: The resource for which policy is being specified. Format is # `datasets/`. # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -781,15 +1879,85 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::GenomicsV1::Policy::Representation command.response_class = Google::Apis::GenomicsV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Undeletes a dataset by restoring a dataset which was deleted via this API. + # For the definitions of datasets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # This operation is only possible for a week after the deletion occurred. + # @param [String] dataset_id + # The ID of the dataset to be undeleted. + # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options) + command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation + command.request_object = undelete_dataset_request_object + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.params['datasetId'] = dataset_id unless dataset_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a dataset by ID. + # For the definitions of datasets and other genomics resources, see + # [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # @param [String] dataset_id + # The ID of the dataset. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Dataset] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/datasets/{datasetId}', options) + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset + command.params['datasetId'] = dataset_id unless dataset_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -806,11 +1974,11 @@ module Google # mutable field is name. The only # acceptable value is "name". If unspecified, all mutable fields will be # updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -823,7 +1991,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) + def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options) command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation command.request_object = dataset_object @@ -831,78 +1999,8 @@ module Google command.response_class = Google::Apis::GenomicsV1::Dataset command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Undeletes a dataset by restoring a dataset which was deleted via this API. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # This operation is only possible for a week after the deletion occurred. - # @param [String] dataset_id - # The ID of the dataset to be undeleted. - # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::Dataset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Dataset] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options) - command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation - command.request_object = undelete_dataset_request_object - command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation - command.response_class = Google::Apis::GenomicsV1::Dataset - command.params['datasetId'] = dataset_id unless dataset_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 a dataset by ID. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] dataset_id - # The ID of the dataset. - # @param [String] quota_user - # Available 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::GenomicsV1::Dataset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Dataset] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_dataset(dataset_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/datasets/{datasetId}', options) - command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation - command.response_class = Google::Apis::GenomicsV1::Dataset - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -916,11 +2014,11 @@ module Google # REQUIRED: The resource for which policy is being specified. Format is # `datasets/`. # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -933,15 +2031,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -956,11 +2054,11 @@ module Google # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] dataset_id # The ID of the dataset to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -973,13 +2071,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_dataset(dataset_id, quota_user: nil, fields: nil, options: nil, &block) + def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -996,11 +2094,11 @@ module Google # defaults to 50. The maximum value is 1024. # @param [String] project_id # Required. The Google Cloud project ID to list datasets 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. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1013,1186 +2111,88 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_datasets(page_token: nil, page_size: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/datasets', options) command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['projectId'] = project_id unless project_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Exports variant set data to an external destination. - # For the definitions of variant sets and other genomics resources, see + # Sets the access control policy on the specified dataset. Replaces any + # existing policy. + # For the definitions of datasets and other genomics resources, see # [Fundamentals of Google # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_set_id - # Required. The ID of the variant set that contains variant data which - # should be exported. The caller must have READ access to this variant set. - # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object + # See Setting a + # Policy for more information. + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. Format is + # `datasets/`. + # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [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::GenomicsV1::Operation] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::Operation] + # @return [Google::Apis::GenomicsV1::Policy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def export_variant_set(variant_set_id, export_variant_set_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options) - command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation - command.request_object = export_variant_set_request_object - command.response_representation = Google::Apis::GenomicsV1::Operation::Representation - command.response_class = Google::Apis::GenomicsV1::Operation - command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? + def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::GenomicsV1::Policy::Representation + command.response_class = Google::Apis::GenomicsV1::Policy + command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns a list of all variant sets matching search criteria. - # For the definitions of variant sets and other genomics resources, see + # Creates a new dataset. + # For the definitions of datasets and other genomics resources, see # [Fundamentals of Google # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Implements - # [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0. - # 5.1/src/main/resources/avro/variantmethods.avdl#L49). - # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object + # @param [Google::Apis::GenomicsV1::Dataset] dataset_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 [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::GenomicsV1::SearchVariantSetsResponse] parsed result object + # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse] + # @return [Google::Apis::GenomicsV1::Dataset] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variant_sets(search_variant_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/variantsets/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation - command.request_object = search_variant_sets_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? + def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/datasets', options) + command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.request_object = dataset_object + command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation + command.response_class = Google::Apis::GenomicsV1::Dataset command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates a variant set using patch semantics. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_set_id - # The ID of the variant to be updated (must already exist). - # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object - # @param [String] update_mask - # An optional mask specifying which fields to update. Supported fields: - # * metadata. - # * name. - # * description. - # Leaving `updateMask` unset is equivalent to specifying all mutable - # fields. - # @param [String] quota_user - # Available 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::GenomicsV1::VariantSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::VariantSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options) - command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation - command.request_object = variant_set_object - command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation - command.response_class = Google::Apis::GenomicsV1::VariantSet - command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? - command.query['updateMask'] = update_mask unless update_mask.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 a variant set by ID. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_set_id - # Required. The ID of the variant set. - # @param [String] quota_user - # Available 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::GenomicsV1::VariantSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::VariantSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation - command.response_class = Google::Apis::GenomicsV1::VariantSet - command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a variant set including all variants, call sets, and calls within. - # This is not reversible. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] variant_set_id - # The ID of the variant set to be deleted. - # @param [String] quota_user - # Available 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::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_variantset(variant_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new variant set. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # The provided variant set must have a valid `datasetId` set - all other - # fields are optional. Note that the `id` field will be ignored, as this is - # assigned by the server. - # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object - # @param [String] quota_user - # Available 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::GenomicsV1::VariantSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::VariantSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_variantset(variant_set_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/variantsets', options) - command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation - command.request_object = variant_set_object - command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation - command.response_class = Google::Apis::GenomicsV1::VariantSet - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates one or more new annotations atomically. All annotations must - # belong to the same annotation set. Caller must have WRITE - # permission for this annotation set. For optimal performance, batch - # positionally adjacent annotations together. - # If the request has a systemic issue, such as an attempt to write to - # an inaccessible annotation set, the entire RPC will fail accordingly. For - # lesser data issues, when possible an error will be isolated to the - # corresponding batch entry in the response; the remaining well formed - # annotations will be created normally. - # For details on the requirements for each individual annotation resource, - # see - # CreateAnnotation. - # @param [Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest] batch_create_annotations_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::GenomicsV1::BatchCreateAnnotationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_create_annotations(batch_create_annotations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/annotations:batchCreate', options) - command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation - command.request_object = batch_create_annotations_request_object - command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Searches for annotations that match the given criteria. Results are - # ordered by genomic coordinate (by reference sequence, then position). - # Annotations with equivalent genomic coordinates are returned in an - # unspecified order. This order is consistent, such that two queries for the - # same content (regardless of page size) yield annotations in the same order - # across their respective streams of paginated responses. Caller must have - # READ permission for the queried annotation sets. - # @param [Google::Apis::GenomicsV1::SearchAnnotationsRequest] search_annotations_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::GenomicsV1::SearchAnnotationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::SearchAnnotationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotations(search_annotations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/annotations/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation - command.request_object = search_annotations_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Gets an annotation. Caller must have READ permission - # for the associated annotation set. - # @param [String] annotation_id - # The ID of the annotation to be retrieved. - # @param [String] quota_user - # Available 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::GenomicsV1::Annotation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Annotation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/annotations/{annotationId}', options) - command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation - command.response_class = Google::Apis::GenomicsV1::Annotation - command.params['annotationId'] = annotation_id unless annotation_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 - - # Updates an annotation. Caller must have - # WRITE permission for the associated dataset. - # @param [String] annotation_id - # The ID of the annotation to be updated. - # @param [Google::Apis::GenomicsV1::Annotation] annotation_object - # @param [String] update_mask - # An optional mask specifying which fields to update. Mutable fields are - # name, - # variant, - # transcript, and - # info. If unspecified, all mutable - # fields will be updated. - # @param [String] quota_user - # Available 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::GenomicsV1::Annotation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Annotation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_id, annotation_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/annotations/{annotationId}', options) - command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation - command.request_object = annotation_object - command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation - command.response_class = Google::Apis::GenomicsV1::Annotation - command.params['annotationId'] = annotation_id unless annotation_id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes an annotation. Caller must have WRITE permission for - # the associated annotation set. - # @param [String] annotation_id - # The ID of the annotation to be deleted. - # @param [String] quota_user - # Available 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::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_annotation(annotation_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/annotations/{annotationId}', options) - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - command.params['annotationId'] = annotation_id unless annotation_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 - - # Creates a new annotation. Caller must have WRITE permission - # for the associated annotation set. - # The following fields are required: - # * annotationSetId - # * referenceName or - # referenceId - # ### Transcripts - # For annotations of type TRANSCRIPT, the following fields of - # transcript must be provided: - # * exons.start - # * exons.end - # All other fields may be optionally specified, unless documented as being - # server-generated (for example, the `id` field). The annotated - # range must be no longer than 100Mbp (mega base pairs). See the - # Annotation resource - # for additional restrictions on each field. - # @param [Google::Apis::GenomicsV1::Annotation] annotation_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::GenomicsV1::Annotation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Annotation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_annotation(annotation_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/annotations', options) - command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation - command.request_object = annotation_object - command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation - command.response_class = Google::Apis::GenomicsV1::Annotation - 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. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The maximum number of results to return. If unspecified, defaults to - # 256. The maximum value is 2048. - # @param [String] filter - # A string for filtering Operations. - # The following filter fields are supported: - # * projectId: Required. Corresponds to - # OperationMetadata.projectId. - # * createTime: The time this job was created, in seconds from the - # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` - # operators. - # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only - # one status may be specified. - # * labels.key where key is a label key. - # Examples: - # * `projectId = my-project AND createTime >= 1432140000` - # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= - # 1432150000 AND status = RUNNING` - # * `projectId = my-project AND labels.color = *` - # * `projectId = my-project AND labels.color = red` - # @param [String] quota_user - # Available 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::GenomicsV1::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::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_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['filter'] = filter unless filter.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::GenomicsV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::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::GenomicsV1::Operation::Representation - command.response_class = Google::Apis::GenomicsV1::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 - - # Starts asynchronous cancellation on a long-running operation. The server makes - # a best effort to cancel the operation, but success is not guaranteed. Clients - # may use Operations.GetOperation or Operations.ListOperations to check whether - # the cancellation succeeded or the operation completed despite cancellation. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:cancel', options) - command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation - command.request_object = cancel_operation_request_object - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - 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 - - # Searches for reference sets which match the given criteria. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Implements - # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/ - # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71) - # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_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::GenomicsV1::SearchReferenceSetsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reference_sets(search_reference_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/referencesets/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation - command.request_object = search_reference_sets_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Gets a reference set. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Implements - # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5. - # 1/src/main/resources/avro/referencemethods.avdl#L83). - # @param [String] reference_set_id - # The ID of the reference set. - # @param [String] quota_user - # Available 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::GenomicsV1::ReferenceSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::ReferenceSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reference_set(reference_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation - command.response_class = Google::Apis::GenomicsV1::ReferenceSet - command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Exports a read group set to a BAM file in Google Cloud Storage. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Note that currently there may be some differences between exported BAM - # files and the original BAM file at the time of import. See - # ImportReadGroupSets - # for caveats. - # @param [String] read_group_set_id - # Required. The ID of the read group set to export. The caller must have - # READ access to this read group set. - # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_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::GenomicsV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::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 export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options) - command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation - command.request_object = export_read_group_set_request_object - command.response_representation = Google::Apis::GenomicsV1::Operation::Representation - command.response_class = Google::Apis::GenomicsV1::Operation - command.params['readGroupSetId'] = read_group_set_id unless read_group_set_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 - - # Searches for read group sets matching the criteria. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Implements - # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/ - # v0.5.1/src/main/resources/avro/readmethods.avdl#L135). - # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::SearchReadGroupSetsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_sets(search_read_group_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/readgroupsets/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation - command.request_object = search_read_group_sets_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Gets a read group set by ID. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] read_group_set_id - # The ID of the read group set. - # @param [String] quota_user - # Available 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::GenomicsV1::ReadGroupSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::ReadGroupSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_set(read_group_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation - command.response_class = Google::Apis::GenomicsV1::ReadGroupSet - command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates a read group set. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # This method supports patch semantics. - # @param [String] read_group_set_id - # The ID of the read group set to be updated. The caller must have WRITE - # permissions to the dataset associated with this read group set. - # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object - # @param [String] update_mask - # An optional mask specifying which fields to update. Supported fields: - # * name. - # * referenceSetId. - # Leaving `updateMask` unset is equivalent to specifying all mutable - # fields. - # @param [String] quota_user - # Available 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::GenomicsV1::ReadGroupSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::ReadGroupSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options) - command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation - command.request_object = read_group_set_object - command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation - command.response_class = Google::Apis::GenomicsV1::ReadGroupSet - command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates read group sets by asynchronously importing the provided - # information. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # The caller must have WRITE permissions to the dataset. - # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import - # - Tags will be converted to strings - tag types are not preserved - # - Comments (`@CO`) in the input file header will not be preserved - # - Original header order of references (`@SQ`) will not be preserved - # - Any reverse stranded unmapped reads will be reverse complemented, and - # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed - # - Unmapped reads will be stripped of positional information (reference name - # and position) - # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::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 import_read_group_sets(import_read_group_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/readgroupsets:import', options) - command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation - command.request_object = import_read_group_sets_request_object - command.response_representation = Google::Apis::GenomicsV1::Operation::Representation - command.response_class = Google::Apis::GenomicsV1::Operation - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a read group set. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] read_group_set_id - # The ID of the read group set to be deleted. The caller must have WRITE - # permissions to the dataset associated with this read group set. - # @param [String] quota_user - # Available 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::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_read_group_set(read_group_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Lists fixed width coverage buckets for a read group set, each of which - # correspond to a range of a reference sequence. Each bucket summarizes - # coverage information across its corresponding genomic range. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Coverage is defined as the number of reads which are aligned to a given - # base in the reference sequence. Coverage buckets are available at several - # precomputed bucket widths, enabling retrieval of various coverage 'zoom - # levels'. The caller must have READ permissions for the target read group - # set. - # @param [String] read_group_set_id - # Required. The ID of the read group set over which coverage is requested. - # @param [String] page_token - # The continuation token, which is used to page through large result sets. - # To get the next page of results, set this parameter to the value of - # `nextPageToken` from the previous response. - # @param [Fixnum] page_size - # The maximum number of results to return in a single page. If unspecified, - # defaults to 1024. The maximum value is 2048. - # @param [Fixnum] start - # The start position of the range on the reference, 0-based inclusive. If - # specified, `referenceName` must also be specified. Defaults to 0. - # @param [Fixnum] target_bucket_width - # The desired width of each reported coverage bucket in base pairs. This - # will be rounded down to the nearest precomputed bucket width; the value - # of which is returned as `bucketWidth` in the response. Defaults - # to infinity (each bucket spans an entire reference sequence) or the length - # of the target range, if specified. The smallest precomputed - # `bucketWidth` is currently 2048 base pairs; this is subject to - # change. - # @param [String] reference_name - # The name of the reference to query, within the reference set associated - # with this query. Optional. - # @param [Fixnum] end_ - # The end position of the range on the reference, 0-based exclusive. If - # specified, `referenceName` must also be specified. If unset or 0, defaults - # to the length of the reference. - # @param [String] quota_user - # Available 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::GenomicsV1::ListCoverageBucketsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_coverage_buckets(read_group_set_id, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, reference_name: nil, end_: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options) - command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse - command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['start'] = start unless start.nil? - command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil? - command.query['referenceName'] = reference_name unless reference_name.nil? - command.query['end'] = end_ unless end_.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 a list of reads for one or more read group sets. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Reads search operates over a genomic coordinate space of reference sequence - # & position defined over the reference sequences to which the requested - # read group sets are aligned. - # If a target positional range is specified, search returns all reads whose - # alignment to the reference genome overlap the range. A query which - # specifies only read group set IDs yields all reads in those read group - # sets, including unmapped reads. - # All reads returned (including reads on subsequent pages) are ordered by - # genomic coordinate (by reference sequence, then position). Reads with - # equivalent genomic coordinates are returned in an unspecified order. This - # order is consistent, such that two queries for the same content (regardless - # of page size) yield reads in the same order across their respective streams - # of paginated responses. - # Implements - # [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/ - # src/main/resources/avro/readmethods.avdl#L85). - # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::SearchReadsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::SearchReadsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_reads(search_reads_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/reads/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation - command.request_object = search_reads_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Updates a call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # This method supports patch semantics. - # @param [String] call_set_id - # The ID of the call set to be updated. - # @param [Google::Apis::GenomicsV1::CallSet] call_set_object - # @param [String] update_mask - # An optional mask specifying which fields to update. At this time, the only - # mutable field is name. The only - # acceptable value is "name". If unspecified, all mutable fields will be - # updated. - # @param [String] quota_user - # Available 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::GenomicsV1::CallSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::CallSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_id, call_set_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options) - command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation - command.request_object = call_set_object - command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation - command.response_class = Google::Apis::GenomicsV1::CallSet - command.params['callSetId'] = call_set_id unless call_set_id.nil? - command.query['updateMask'] = update_mask unless update_mask.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 a call set by ID. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] call_set_id - # The ID of the call set. - # @param [String] quota_user - # Available 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::GenomicsV1::CallSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::CallSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/callsets/{callSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation - command.response_class = Google::Apis::GenomicsV1::CallSet - command.params['callSetId'] = call_set_id unless call_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [Google::Apis::GenomicsV1::CallSet] call_set_object - # @param [String] quota_user - # Available 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::GenomicsV1::CallSet] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::CallSet] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_set(call_set_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/callsets', options) - command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation - command.request_object = call_set_object - command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation - command.response_class = Google::Apis::GenomicsV1::CallSet - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # @param [String] call_set_id - # The ID of the call set to be deleted. - # @param [String] quota_user - # Available 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::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_call_set(call_set_id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options) - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - command.params['callSetId'] = call_set_id unless call_set_id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Gets a list of call sets matching the criteria. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - # Implements - # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5. - # 1/src/main/resources/avro/variantmethods.avdl#L178). - # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object - # @param [String] quota_user - # Available 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::GenomicsV1::SearchCallSetsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_call_sets(search_call_sets_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/callsets/search', options) - command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation - command.request_object = search_call_sets_request_object - command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation - command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 919dc4d2e..0b76f50b6 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20170606' + REVISION = '20170626' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index b4fd36b8e..66ad73ee0 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20170526' + REVISION = '20170622' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index e3409e053..79d800b98 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -22,6 +22,200 @@ module Google module Apis module IamV1 + # The service account create request. + class CreateServiceAccountRequest + include Google::Apis::Core::Hashable + + # Required. The account id that is used to generate the service account + # email address and a stable unique id. It is unique within a project, + # must be 6-30 characters long, and match the regular expression + # `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # A service account in the Identity and Access Management API. + # To create a service account, specify the `project_id` and the `account_id` + # for the account. The `account_id` is unique within the project, and is used + # to generate the service account email address and a stable + # `unique_id`. + # If the account already exists, the account's resource name is returned + # in util::Status's ResourceInfo.resource_name in the format of + # projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can + # use the name in other methods to access the account. + # All other methods can identify the service account using the format + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # Using `-` as a wildcard for the project will infer the project from + # the account. The `account` value can be the `email` address or the + # `unique_id` of the service account. + # Corresponds to the JSON property `serviceAccount` + # @return [Google::Apis::IamV1::ServiceAccount] + attr_accessor :service_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @service_account = args[:service_account] if args.key?(:service_account) + end + end + + # The service account list response. + class ListServiceAccountsResponse + include Google::Apis::Core::Hashable + + # To retrieve the next page of results, set + # ListServiceAccountsRequest.page_token + # to this value. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of matching service accounts. + # Corresponds to the JSON property `accounts` + # @return [Array] + attr_accessor :accounts + + 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) + @accounts = args[:accounts] if args.key?(:accounts) + end + end + + # The grantable role query response. + class QueryGrantableRolesResponse + include Google::Apis::Core::Hashable + + # To retrieve the next page of results, set + # `QueryGrantableRolesRequest.page_token` to this value. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of matching roles. + # Corresponds to the JSON property `roles` + # @return [Array] + attr_accessor :roles + + 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) + @roles = args[:roles] if args.key?(:roles) + end + end + + # The service account sign blob request. + class SignBlobRequest + include Google::Apis::Core::Hashable + + # The bytes to sign. + # Corresponds to the JSON property `bytesToSign` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :bytes_to_sign + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign) + end + end + + # A role in the Identity and Access Management API. + class Role + include Google::Apis::Core::Hashable + + # Optional. A human-readable title for the role. Typically this + # is limited to 100 UTF-8 bytes. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The name of the role. + # When Role is used in CreateRole, the role name must not be set. + # When Role is used in output and other input such as UpdateRole, the role + # name is the complete path, e.g., roles/logging.viewer for curated roles + # and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A human-readable description for the role. + # 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) + @title = args[:title] if args.key?(:title) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::IamV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -79,6 +273,11 @@ module Google class ServiceAccount include Google::Apis::Core::Hashable + # @OutputOnly The unique and stable id of the service account. + # Corresponds to the JSON property `uniqueId` + # @return [String] + attr_accessor :unique_id + # @OutputOnly. The OAuth2 client id for the service account. # This is used in conjunction with the OAuth2 clientconfig API to make # three legged OAuth2 (3LO) flows to access the data of Google users. @@ -86,11 +285,6 @@ module Google # @return [String] attr_accessor :oauth2_client_id - # @OutputOnly The unique and stable id of the service account. - # Corresponds to the JSON property `uniqueId` - # @return [String] - attr_accessor :unique_id - # Optional. A user-specified description of the service account. Must be # fewer than 100 UTF-8 bytes. # Corresponds to the JSON property `displayName` @@ -103,6 +297,11 @@ module Google # @return [String] attr_accessor :etag + # @OutputOnly The email address of the service account. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + # The resource name of the service account in the following format: # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. # Requests using `-` as a wildcard for the project will infer the project @@ -114,11 +313,6 @@ module Google # @return [String] attr_accessor :name - # @OutputOnly The email address of the service account. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - # @OutputOnly The id of the project that owns the service account. # Corresponds to the JSON property `projectId` # @return [String] @@ -130,12 +324,12 @@ module Google # Update properties of this object def update!(**args) - @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) @unique_id = args[:unique_id] if args.key?(:unique_id) + @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) - @name = args[:name] if args.key?(:name) @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) end end @@ -194,6 +388,25 @@ module Google end end + # The service account keys list response. + class ListServiceAccountKeysResponse + include Google::Apis::Core::Hashable + + # The public keys for the service account. + # Corresponds to the JSON property `keys` + # @return [Array] + attr_accessor :keys + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @keys = args[:keys] if args.key?(:keys) + end + end + # Response message for `TestIamPermissions` method. class TestIamPermissionsResponse include Google::Apis::Core::Hashable @@ -214,25 +427,6 @@ module Google end end - # The service account keys list response. - class ListServiceAccountKeysResponse - include Google::Apis::Core::Hashable - - # The public keys for the service account. - # Corresponds to the JSON property `keys` - # @return [Array] - attr_accessor :keys - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @keys = args[:keys] if args.key?(:keys) - end - end - # Represents a service account key. # A service account has two sets of key-pairs: user-managed, and # system-managed. @@ -285,7 +479,8 @@ module Google attr_accessor :private_key_type # The private key data. Only provided in `CreateServiceAccountKey` - # responses. + # responses. Make sure to keep the private key data secure because it + # allows for the assertion of the service account identity. # Corresponds to the JSON property `privateKeyData` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -311,12 +506,6 @@ module Google class CreateServiceAccountKeyRequest include Google::Apis::Core::Hashable - # The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the - # default output format. - # Corresponds to the JSON property `privateKeyType` - # @return [String] - attr_accessor :private_key_type - # # Corresponds to the JSON property `includePublicKeyData` # @return [Boolean] @@ -330,15 +519,21 @@ module Google # @return [String] attr_accessor :key_algorithm + # The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the + # default output format. + # Corresponds to the JSON property `privateKeyType` + # @return [String] + attr_accessor :private_key_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @private_key_type = args[:private_key_type] if args.key?(:private_key_type) @include_public_key_data = args[:include_public_key_data] if args.key?(:include_public_key_data) @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm) + @private_key_type = args[:private_key_type] if args.key?(:private_key_type) end end @@ -394,24 +589,24 @@ module Google class SignJwtResponse include Google::Apis::Core::Hashable - # The id of the key used to sign the JWT. - # Corresponds to the JSON property `keyId` - # @return [String] - attr_accessor :key_id - # The signed JWT. # Corresponds to the JSON property `signedJwt` # @return [String] attr_accessor :signed_jwt + # The id of the key used to sign the JWT. + # Corresponds to the JSON property `keyId` + # @return [String] + attr_accessor :key_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @key_id = args[:key_id] if args.key?(:key_id) @signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt) + @key_id = args[:key_id] if args.key?(:key_id) end end @@ -464,7 +659,6 @@ module Google attr_accessor :version # Associates a list of `members` to a `role`. - # Multiple `bindings` must not be specified for the same `role`. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -527,12 +721,6 @@ module Google class BindingDelta include Google::Apis::Core::Hashable - # The action that was performed on a Binding. - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - # A single identity requesting access for a Cloud Platform resource. # Follows the same format of Binding.members. # Required @@ -547,15 +735,21 @@ module Google # @return [String] attr_accessor :role + # The action that was performed on a Binding. + # Required + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @action = args[:action] if args.key?(:action) @member = args[:member] if args.key?(:member) @role = args[:role] if args.key?(:role) + @action = args[:action] if args.key?(:action) end end @@ -577,200 +771,6 @@ module Google @binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas) end end - - # The service account list response. - class ListServiceAccountsResponse - include Google::Apis::Core::Hashable - - # To retrieve the next page of results, set - # ListServiceAccountsRequest.page_token - # to this value. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of matching service accounts. - # Corresponds to the JSON property `accounts` - # @return [Array] - attr_accessor :accounts - - 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) - @accounts = args[:accounts] if args.key?(:accounts) - end - end - - # The service account create request. - class CreateServiceAccountRequest - include Google::Apis::Core::Hashable - - # A service account in the Identity and Access Management API. - # To create a service account, specify the `project_id` and the `account_id` - # for the account. The `account_id` is unique within the project, and is used - # to generate the service account email address and a stable - # `unique_id`. - # If the account already exists, the account's resource name is returned - # in util::Status's ResourceInfo.resource_name in the format of - # projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can - # use the name in other methods to access the account. - # All other methods can identify the service account using the format - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # Using `-` as a wildcard for the project will infer the project from - # the account. The `account` value can be the `email` address or the - # `unique_id` of the service account. - # Corresponds to the JSON property `serviceAccount` - # @return [Google::Apis::IamV1::ServiceAccount] - attr_accessor :service_account - - # Required. The account id that is used to generate the service account - # email address and a stable unique id. It is unique within a project, - # must be 6-30 characters long, and match the regular expression - # `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. - # 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) - @service_account = args[:service_account] if args.key?(:service_account) - @account_id = args[:account_id] if args.key?(:account_id) - end - end - - # The grantable role query response. - class QueryGrantableRolesResponse - include Google::Apis::Core::Hashable - - # The list of matching roles. - # Corresponds to the JSON property `roles` - # @return [Array] - attr_accessor :roles - - # To retrieve the next page of results, set - # `QueryGrantableRolesRequest.page_token` to this value. - # 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) - @roles = args[:roles] if args.key?(:roles) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # The service account sign blob request. - class SignBlobRequest - include Google::Apis::Core::Hashable - - # The bytes to sign. - # Corresponds to the JSON property `bytesToSign` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :bytes_to_sign - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign) - end - end - - # A role in the Identity and Access Management API. - class Role - include Google::Apis::Core::Hashable - - # The name of the role. - # When Role is used in CreateRole, the role name must not be set. - # When Role is used in output and other input such as UpdateRole, the role - # name is the complete path, e.g., roles/logging.viewer for curated roles - # and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. A human-readable description for the role. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Optional. A human-readable title for the role. Typically this - # is limited to 100 UTF-8 bytes. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @description = args[:description] if args.key?(:description) - @title = args[:title] if args.key?(:title) - end - end - - # Request message for `SetIamPolicy` method. - class SetIamPolicyRequest - include Google::Apis::Core::Hashable - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::IamV1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - end - end end end end diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb index b16c75aee..a2c48e906 100644 --- a/generated/google/apis/iam_v1/representations.rb +++ b/generated/google/apis/iam_v1/representations.rb @@ -22,6 +22,42 @@ module Google module Apis module IamV1 + class CreateServiceAccountRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListServiceAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryGrantableRolesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignBlobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Role + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,13 +82,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class ListServiceAccountKeysResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListServiceAccountKeysResponse + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -118,40 +154,55 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListServiceAccountsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + class CreateServiceAccountRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation - include Google::Apis::Core::JsonObjectSupport + end end - class CreateServiceAccountRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + class ListServiceAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation - include Google::Apis::Core::JsonObjectSupport + end end class QueryGrantableRolesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation - include Google::Apis::Core::JsonObjectSupport + end end class SignBlobRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bytes_to_sign, :base64 => true, as: 'bytesToSign' + end end class Role - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + property :name, as: 'name' + property :description, as: 'description' + end end class SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Binding @@ -165,12 +216,12 @@ module Google class ServiceAccount # @private class Representation < Google::Apis::Core::JsonRepresentation - property :oauth2_client_id, as: 'oauth2ClientId' property :unique_id, as: 'uniqueId' + property :oauth2_client_id, as: 'oauth2ClientId' property :display_name, as: 'displayName' property :etag, :base64 => true, as: 'etag' - property :name, as: 'name' property :email, as: 'email' + property :name, as: 'name' property :project_id, as: 'projectId' end end @@ -190,13 +241,6 @@ module Google end end - class TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - class ListServiceAccountKeysResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -205,6 +249,13 @@ module Google end end + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + class ServiceAccountKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -221,9 +272,9 @@ module Google class CreateServiceAccountKeyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :private_key_type, as: 'privateKeyType' property :include_public_key_data, as: 'includePublicKeyData' property :key_algorithm, as: 'keyAlgorithm' + property :private_key_type, as: 'privateKeyType' end end @@ -245,8 +296,8 @@ module Google class SignJwtResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key_id, as: 'keyId' property :signed_jwt, as: 'signedJwt' + property :key_id, as: 'keyId' end end @@ -278,9 +329,9 @@ module Google class BindingDelta # @private class Representation < Google::Apis::Core::JsonRepresentation - property :action, as: 'action' property :member, as: 'member' property :role, as: 'role' + property :action, as: 'action' end end @@ -291,57 +342,6 @@ module Google end end - - class ListServiceAccountsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation - - end - end - - class CreateServiceAccountRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation - - property :account_id, as: 'accountId' - end - end - - class QueryGrantableRolesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class SignBlobRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bytes_to_sign, :base64 => true, as: 'bytesToSign' - end - end - - class Role - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :description, as: 'description' - property :title, as: 'title' - end - end - - class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation - - end - end end end end diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 416666241..3a9cd999f 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -49,72 +49,6 @@ module Google @batch_path = 'batch' end - # Returns the IAM access control policy for a - # ServiceAccount. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::IamV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::IamV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::IamV1::Policy::Representation - command.response_class = Google::Apis::IamV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets a ServiceAccount. - # @param [String] name - # The resource name of the service account in the following format: - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # Using `-` as a wildcard for the project will infer the project from - # the account. The `account` value can be the `email` address or the - # `unique_id` of the service account. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::IamV1::ServiceAccount] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_account(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation - command.response_class = Google::Apis::IamV1::ServiceAccount - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Updates a ServiceAccount. # Currently, only the following fields are updatable: # `display_name` . @@ -226,6 +160,43 @@ module Google execute_or_queue_command(command, &block) end + # Signs a blob using a service account's system-managed private key. + # @param [String] name + # The resource name of the service account in the following format: + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # Using `-` as a wildcard for the project will infer the project from + # the account. The `account` value can be the `email` address or the + # `unique_id` of the service account. + # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_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::IamV1::SignBlobResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::SignBlobResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:signBlob', options) + command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation + command.request_object = sign_blob_request_object + command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation + command.response_class = Google::Apis::IamV1::SignBlobResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists ServiceAccounts for a project. # @param [String] name # Required. The resource name of the project associated with the service @@ -267,14 +238,12 @@ module Google execute_or_queue_command(command, &block) end - # Signs a blob using a service account's system-managed private key. + # Creates a ServiceAccount + # and returns it. # @param [String] name - # The resource name of the service account in the following format: - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # Using `-` as a wildcard for the project will infer the project from - # the account. The `account` value can be the `email` address or the - # `unique_id` of the service account. - # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object + # Required. The resource name of the project associated with the service + # accounts, such as `projects/my-project-123`. + # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -284,20 +253,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object + # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::IamV1::SignBlobResponse] + # @return [Google::Apis::IamV1::ServiceAccount] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:signBlob', options) - command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation - command.request_object = sign_blob_request_object - command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation - command.response_class = Google::Apis::IamV1::SignBlobResponse + def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options) + command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation + command.request_object = create_service_account_request_object + command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.response_class = Google::Apis::IamV1::ServiceAccount command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -339,41 +308,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a ServiceAccount - # and returns it. - # @param [String] name - # Required. The resource name of the project associated with the service - # accounts, such as `projects/my-project-123`. - # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_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::IamV1::ServiceAccount] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::IamV1::ServiceAccount] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options) - command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation - command.request_object = create_service_account_request_object - command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation - command.response_class = Google::Apis::IamV1::ServiceAccount - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Signs a JWT using a service account's system-managed private key. # If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an # an expiry time of one hour by default. If you request an expiry time of @@ -414,6 +348,72 @@ module Google execute_or_queue_command(command, &block) end + # Returns the IAM access control policy for a + # ServiceAccount. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::IamV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::IamV1::Policy::Representation + command.response_class = Google::Apis::IamV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a ServiceAccount. + # @param [String] name + # The resource name of the service account in the following format: + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # Using `-` as a wildcard for the project will infer the project from + # the account. The `account` value can be the `email` address or the + # `unique_id` of the service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.response_class = Google::Apis::IamV1::ServiceAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a ServiceAccountKey # and returns it. # @param [String] name @@ -486,45 +486,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists ServiceAccountKeys. - # @param [String] name - # The resource name of the service account in the following format: - # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. - # Using `-` as a wildcard for the project, will infer the project from - # the account. The `account` value can be the `email` address or the - # `unique_id` of the service account. - # @param [Array, String] key_types - # Filters the types of keys the user wants to include in the list - # response. Duplicate key types are not allowed. If no key type - # is provided, all keys are returned. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/keys', options) - command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation - command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse - command.params['name'] = name unless name.nil? - command.query['keyTypes'] = key_types unless key_types.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 ServiceAccountKey # by key id. # @param [String] name @@ -564,6 +525,45 @@ module Google execute_or_queue_command(command, &block) end + # Lists ServiceAccountKeys. + # @param [String] name + # The resource name of the service account in the following format: + # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``. + # Using `-` as a wildcard for the project, will infer the project from + # the account. The `account` value can be the `email` address or the + # `unique_id` of the service account. + # @param [Array, String] key_types + # Filters the types of keys the user wants to include in the list + # response. Duplicate key types are not allowed. If no key type + # is provided, all keys are returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/keys', options) + command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation + command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse + command.params['name'] = name unless name.nil? + command.query['keyTypes'] = key_types unless key_types.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Queries roles that can be granted on a particular resource. # A role is grantable if it can be used as the role in a binding for a policy # for that resource. diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index a37f6a060..dd42f6dfb 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 = '20170425' + REVISION = '20170710' # 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/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 8e8f11067..c76bc56c2 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -476,6 +476,11 @@ module Google # @return [Array] attr_accessor :local_id + # Privileged caller can query users by specified phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [Array] + attr_accessor :phone_number + def initialize(**args) update!(**args) end @@ -486,6 +491,7 @@ module Google @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) + @phone_number = args[:phone_number] if args.key?(:phone_number) end end @@ -701,6 +707,11 @@ module Google # @return [String] attr_accessor :password + # Privileged caller can update user with specified phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + # The photo url of the user. # Corresponds to the JSON property `photoUrl` # @return [String] @@ -750,6 +761,7 @@ module Google @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) + @phone_number = args[:phone_number] if args.key?(:phone_number) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider = args[:provider] if args.key?(:provider) @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @@ -960,6 +972,11 @@ module Google # @return [String] attr_accessor :password + # Privileged caller can create user with specified phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + # The photo url of the user. # Corresponds to the JSON property `photoUrl` # @return [String] @@ -981,6 +998,7 @@ module Google @instance_id = args[:instance_id] if args.key?(:instance_id) @local_id = args[:local_id] if args.key?(:local_id) @password = args[:password] if args.key?(:password) + @phone_number = args[:phone_number] if args.key?(:phone_number) @photo_url = args[:photo_url] if args.key?(:photo_url) end end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 22f507d0a..0a7abef7f 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -354,6 +354,7 @@ module Google collection :email, as: 'email' property :id_token, as: 'idToken' collection :local_id, as: 'localId' + collection :phone_number, as: 'phoneNumber' end end @@ -409,6 +410,7 @@ module Google property :local_id, as: 'localId' property :oob_code, as: 'oobCode' property :password, as: 'password' + property :phone_number, as: 'phoneNumber' property :photo_url, as: 'photoUrl' collection :provider, as: 'provider' property :return_secure_token, as: 'returnSecureToken' @@ -474,6 +476,7 @@ module Google property :instance_id, as: 'instanceId' property :local_id, as: 'localId' property :password, as: 'password' + property :phone_number, as: 'phoneNumber' property :photo_url, as: 'photoUrl' end end diff --git a/generated/google/apis/kgsearch_v1/classes.rb b/generated/google/apis/kgsearch_v1/classes.rb index 9ca15782c..45cfb9991 100644 --- a/generated/google/apis/kgsearch_v1/classes.rb +++ b/generated/google/apis/kgsearch_v1/classes.rb @@ -27,21 +27,21 @@ module Google class SearchResponse include Google::Apis::Core::Hashable - # The local context applicable for the response. See more details at - # http://www.w3.org/TR/json-ld/#context-definitions. - # Corresponds to the JSON property `@context` + # The schema type of top-level JSON-LD object, e.g. ItemList. + # Corresponds to the JSON property `@type` # @return [Object] - attr_accessor :_context + attr_accessor :_type # The item list of search results. # Corresponds to the JSON property `itemListElement` # @return [Array] attr_accessor :item_list_element - # The schema type of top-level JSON-LD object, e.g. ItemList. - # Corresponds to the JSON property `@type` + # The local context applicable for the response. See more details at + # http://www.w3.org/TR/json-ld/#context-definitions. + # Corresponds to the JSON property `@context` # @return [Object] - attr_accessor :_type + attr_accessor :_context def initialize(**args) update!(**args) @@ -49,9 +49,9 @@ module Google # Update properties of this object def update!(**args) - @_context = args[:_context] if args.key?(:_context) - @item_list_element = args[:item_list_element] if args.key?(:item_list_element) @_type = args[:_type] if args.key?(:_type) + @item_list_element = args[:item_list_element] if args.key?(:item_list_element) + @_context = args[:_context] if args.key?(:_context) end end end diff --git a/generated/google/apis/kgsearch_v1/representations.rb b/generated/google/apis/kgsearch_v1/representations.rb index d433bdbf6..d5fad41e3 100644 --- a/generated/google/apis/kgsearch_v1/representations.rb +++ b/generated/google/apis/kgsearch_v1/representations.rb @@ -31,9 +31,9 @@ module Google class SearchResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :_context, as: '@context' - collection :item_list_element, as: 'itemListElement' property :_type, as: '@type' + collection :item_list_element, as: 'itemListElement' + property :_context, as: '@context' end end end diff --git a/generated/google/apis/kgsearch_v1/service.rb b/generated/google/apis/kgsearch_v1/service.rb index bddb0914c..16a5455b2 100644 --- a/generated/google/apis/kgsearch_v1/service.rb +++ b/generated/google/apis/kgsearch_v1/service.rb @@ -50,8 +50,6 @@ module Google # Searches Knowledge Graph for entities that match the constraints. # A list of matched entities will be returned in response, which will be in # JSON-LD format and compatible with http://schema.org - # @param [Boolean] indent - # Enables indenting of json results. # @param [Array, String] languages # The list of language codes (defined in ISO 693) to run the query with, # e.g. 'en'. @@ -69,6 +67,8 @@ module Google # Restricts returned entities with these types, e.g. Person # (as defined in http://schema.org/Person). If multiple types are specified, # returned entities will contain one or more of these types. + # @param [Boolean] indent + # Enables indenting of json results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -86,17 +86,17 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_entities(indent: nil, languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, fields: nil, quota_user: nil, options: nil, &block) + def search_entities(languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, indent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/entities:search', options) command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation command.response_class = Google::Apis::KgsearchV1::SearchResponse - command.query['indent'] = indent unless indent.nil? command.query['languages'] = languages unless languages.nil? command.query['ids'] = ids unless ids.nil? command.query['limit'] = limit unless limit.nil? command.query['prefix'] = prefix unless prefix.nil? command.query['query'] = query unless query.nil? command.query['types'] = types unless types.nil? + command.query['indent'] = indent unless indent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/language_v1.rb b/generated/google/apis/language_v1.rb index 0a56d8d5d..473c988e6 100644 --- a/generated/google/apis/language_v1.rb +++ b/generated/google/apis/language_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1 VERSION = 'V1' - REVISION = '20170601' + REVISION = '20170619' # 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/language_v1/classes.rb b/generated/google/apis/language_v1/classes.rb index f8be6b55b..f40f8025c 100644 --- a/generated/google/apis/language_v1/classes.rb +++ b/generated/google/apis/language_v1/classes.rb @@ -22,465 +22,12 @@ module Google module Apis module LanguageV1 - # The text annotations response message. - class AnnotateTextResponse - include Google::Apis::Core::Hashable - - # The language of the text, which will be the same as the language specified - # in the request or, if not specified, the automatically-detected language. - # See Document.language field for more details. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - # Sentences in the input document. Populated if the user enables - # AnnotateTextRequest.Features.extract_syntax. - # Corresponds to the JSON property `sentences` - # @return [Array] - attr_accessor :sentences - - # Tokens, along with their syntactic information, in the input document. - # Populated if the user enables - # AnnotateTextRequest.Features.extract_syntax. - # Corresponds to the JSON property `tokens` - # @return [Array] - attr_accessor :tokens - - # Entities, along with their semantic information, in the input document. - # Populated if the user enables - # AnnotateTextRequest.Features.extract_entities. - # Corresponds to the JSON property `entities` - # @return [Array] - attr_accessor :entities - - # Represents the feeling associated with the entire text or entities in - # the text. - # Corresponds to the JSON property `documentSentiment` - # @return [Google::Apis::LanguageV1::Sentiment] - attr_accessor :document_sentiment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language = args[:language] if args.key?(:language) - @sentences = args[:sentences] if args.key?(:sentences) - @tokens = args[:tokens] if args.key?(:tokens) - @entities = args[:entities] if args.key?(:entities) - @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) - end - end - - # The sentiment analysis request message. - class AnalyzeSentimentRequest - include Google::Apis::Core::Hashable - - # The encoding type used by the API to calculate sentence offsets. - # Corresponds to the JSON property `encodingType` - # @return [String] - attr_accessor :encoding_type - - # ################################################################ # - # Represents the input to API methods. - # Corresponds to the JSON property `document` - # @return [Google::Apis::LanguageV1::Document] - attr_accessor :document - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @encoding_type = args[:encoding_type] if args.key?(:encoding_type) - @document = args[:document] if args.key?(:document) - end - end - - # Represents dependency parse tree information for a token. (For more - # information on dependency labels, see - # http://www.aclweb.org/anthology/P13-2017 - class DependencyEdge - include Google::Apis::Core::Hashable - - # The parse label for the token. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - - # Represents the head of this token in the dependency tree. - # This is the index of the token which has an arc going to this token. - # The index is the position of the token in the array of tokens returned - # by the API method. If this token is a root token, then the - # `head_token_index` is its own index. - # Corresponds to the JSON property `headTokenIndex` - # @return [Fixnum] - attr_accessor :head_token_index - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label = args[:label] if args.key?(:label) - @head_token_index = args[:head_token_index] if args.key?(:head_token_index) - end - end - - # Represents an output piece of text. - class TextSpan - include Google::Apis::Core::Hashable - - # The content of the output text. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # The API calculates the beginning offset of the content in the original - # document according to the EncodingType specified in the API request. - # Corresponds to the JSON property `beginOffset` - # @return [Fixnum] - attr_accessor :begin_offset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @content = args[:content] if args.key?(:content) - @begin_offset = args[:begin_offset] if args.key?(:begin_offset) - end - end - - # Represents the smallest syntactic building block of the text. - class Token - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1::TextSpan] - attr_accessor :text - - # Represents dependency parse tree information for a token. (For more - # information on dependency labels, see - # http://www.aclweb.org/anthology/P13-2017 - # Corresponds to the JSON property `dependencyEdge` - # @return [Google::Apis::LanguageV1::DependencyEdge] - attr_accessor :dependency_edge - - # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. - # Corresponds to the JSON property `lemma` - # @return [String] - attr_accessor :lemma - - # Represents part of speech information for a token. Parts of speech - # are as defined in - # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf - # Corresponds to the JSON property `partOfSpeech` - # @return [Google::Apis::LanguageV1::PartOfSpeech] - attr_accessor :part_of_speech - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) - @lemma = args[:lemma] if args.key?(:lemma) - @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) - 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` that 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. - # - 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 - - # Represents a mention for an entity in the text. Currently, proper noun - # mentions are supported. - class EntityMention - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1::TextSpan] - attr_accessor :text - - # The type of the entity mention. - # 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) - @text = args[:text] if args.key?(:text) - @type = args[:type] if args.key?(:type) - end - end - - # All available features for sentiment, syntax, and semantic analysis. - # Setting each one to true will enable that specific analysis for the input. - class Features - include Google::Apis::Core::Hashable - - # Extract entities. - # Corresponds to the JSON property `extractEntities` - # @return [Boolean] - attr_accessor :extract_entities - alias_method :extract_entities?, :extract_entities - - # Extract syntax information. - # Corresponds to the JSON property `extractSyntax` - # @return [Boolean] - attr_accessor :extract_syntax - alias_method :extract_syntax?, :extract_syntax - - # Extract document-level sentiment. - # Corresponds to the JSON property `extractDocumentSentiment` - # @return [Boolean] - attr_accessor :extract_document_sentiment - alias_method :extract_document_sentiment?, :extract_document_sentiment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @extract_entities = args[:extract_entities] if args.key?(:extract_entities) - @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) - @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) - end - end - - # ################################################################ # - # Represents the input to API methods. - class Document - include Google::Apis::Core::Hashable - - # The language of the document (if not specified, the language is - # automatically detected). Both ISO and BCP-47 language codes are - # accepted.
- # [Language Support](/natural-language/docs/languages) - # lists currently supported languages for each API method. - # If the language (either specified by the caller or automatically detected) - # is not supported by the called API method, an `INVALID_ARGUMENT` error - # is returned. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - # Required. If the type is not set or is `TYPE_UNSPECIFIED`, - # returns an `INVALID_ARGUMENT` error. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The content of the input in string format. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - # The Google Cloud Storage URI where the file content is located. - # This URI must be of the form: gs://bucket_name/object_name. For more - # details, see https://cloud.google.com/storage/docs/reference-uris. - # NOTE: Cloud Storage object versioning is not supported. - # Corresponds to the JSON property `gcsContentUri` - # @return [String] - attr_accessor :gcs_content_uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language = args[:language] if args.key?(:language) - @type = args[:type] if args.key?(:type) - @content = args[:content] if args.key?(:content) - @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) - end - end - - # Represents a sentence in the input document. - class Sentence - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1::TextSpan] - attr_accessor :text - - # Represents the feeling associated with the entire text or entities in - # the text. - # Corresponds to the JSON property `sentiment` - # @return [Google::Apis::LanguageV1::Sentiment] - attr_accessor :sentiment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @sentiment = args[:sentiment] if args.key?(:sentiment) - end - end - - # The entity analysis request message. - class AnalyzeEntitiesRequest - include Google::Apis::Core::Hashable - - # The encoding type used by the API to calculate offsets. - # Corresponds to the JSON property `encodingType` - # @return [String] - attr_accessor :encoding_type - - # ################################################################ # - # Represents the input to API methods. - # Corresponds to the JSON property `document` - # @return [Google::Apis::LanguageV1::Document] - attr_accessor :document - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @encoding_type = args[:encoding_type] if args.key?(:encoding_type) - @document = args[:document] if args.key?(:document) - end - end - - # Represents the feeling associated with the entire text or entities in - # the text. - class Sentiment - include Google::Apis::Core::Hashable - - # Sentiment score between -1.0 (negative sentiment) and 1.0 - # (positive sentiment). - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # A non-negative number in the [0, +inf) range, which represents - # the absolute magnitude of sentiment regardless of score (positive or - # negative). - # Corresponds to the JSON property `magnitude` - # @return [Float] - attr_accessor :magnitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @score = args[:score] if args.key?(:score) - @magnitude = args[:magnitude] if args.key?(:magnitude) - end - end - # Represents part of speech information for a token. Parts of speech # are as defined in # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf class PartOfSpeech include Google::Apis::Core::Hashable - # The grammatical form. - # Corresponds to the JSON property `form` - # @return [String] - attr_accessor :form - - # The grammatical number. - # Corresponds to the JSON property `number` - # @return [String] - attr_accessor :number - - # The grammatical voice. - # Corresponds to the JSON property `voice` - # @return [String] - attr_accessor :voice - # The grammatical aspect. # Corresponds to the JSON property `aspect` # @return [String] @@ -526,15 +73,27 @@ module Google # @return [String] attr_accessor :reciprocity + # The grammatical form. + # Corresponds to the JSON property `form` + # @return [String] + attr_accessor :form + + # The grammatical number. + # Corresponds to the JSON property `number` + # @return [String] + attr_accessor :number + + # The grammatical voice. + # Corresponds to the JSON property `voice` + # @return [String] + attr_accessor :voice + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @form = args[:form] if args.key?(:form) - @number = args[:number] if args.key?(:number) - @voice = args[:voice] if args.key?(:voice) @aspect = args[:aspect] if args.key?(:aspect) @mood = args[:mood] if args.key?(:mood) @tag = args[:tag] if args.key?(:tag) @@ -544,6 +103,9 @@ module Google @case = args[:case] if args.key?(:case) @tense = args[:tense] if args.key?(:tense) @reciprocity = args[:reciprocity] if args.key?(:reciprocity) + @form = args[:form] if args.key?(:form) + @number = args[:number] if args.key?(:number) + @voice = args[:voice] if args.key?(:voice) end end @@ -638,6 +200,11 @@ module Google class AnalyzeSyntaxResponse include Google::Apis::Core::Hashable + # Tokens, along with their syntactic information, in the input document. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + # The language of the text, which will be the same as the language specified # in the request or, if not specified, the automatically-detected language. # See Document.language field for more details. @@ -650,20 +217,15 @@ module Google # @return [Array] attr_accessor :sentences - # Tokens, along with their syntactic information, in the input document. - # Corresponds to the JSON property `tokens` - # @return [Array] - attr_accessor :tokens - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @tokens = args[:tokens] if args.key?(:tokens) @language = args[:language] if args.key?(:language) @sentences = args[:sentences] if args.key?(:sentences) - @tokens = args[:tokens] if args.key?(:tokens) end end @@ -673,18 +235,6 @@ module Google class Entity include Google::Apis::Core::Hashable - # The entity type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata associated with the entity. - # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if - # available. The associated keys are "wikipedia_url" and "mid", respectively. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - # The salience score associated with the entity in the [0, 1.0] range. # The salience score for an entity provides information about the # importance or centrality of that entity to the entire document text. @@ -694,6 +244,18 @@ module Google # @return [Float] attr_accessor :salience + # Metadata associated with the entity. + # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if + # available. The associated keys are "wikipedia_url" and "mid", respectively. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The entity type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + # The mentions of this entity in the input document. The API currently # supports proper noun mentions. # Corresponds to the JSON property `mentions` @@ -711,9 +273,9 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) @salience = args[:salience] if args.key?(:salience) + @metadata = args[:metadata] if args.key?(:metadata) + @type = args[:type] if args.key?(:type) @mentions = args[:mentions] if args.key?(:mentions) @name = args[:name] if args.key?(:name) end @@ -724,6 +286,422 @@ module Google class AnnotateTextRequest include Google::Apis::Core::Hashable + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + # Corresponds to the JSON property `features` + # @return [Google::Apis::LanguageV1::Features] + attr_accessor :features + + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1::Document] + attr_accessor :document + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + @document = args[:document] if args.key?(:document) + end + end + + # The text annotations response message. + class AnnotateTextResponse + include Google::Apis::Core::Hashable + + # Sentences in the input document. Populated if the user enables + # AnnotateTextRequest.Features.extract_syntax. + # Corresponds to the JSON property `sentences` + # @return [Array] + attr_accessor :sentences + + # Tokens, along with their syntactic information, in the input document. + # Populated if the user enables + # AnnotateTextRequest.Features.extract_syntax. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + + # Entities, along with their semantic information, in the input document. + # Populated if the user enables + # AnnotateTextRequest.Features.extract_entities. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `documentSentiment` + # @return [Google::Apis::LanguageV1::Sentiment] + attr_accessor :document_sentiment + + # The language of the text, which will be the same as the language specified + # in the request or, if not specified, the automatically-detected language. + # See Document.language field for more details. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sentences = args[:sentences] if args.key?(:sentences) + @tokens = args[:tokens] if args.key?(:tokens) + @entities = args[:entities] if args.key?(:entities) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) + @language = args[:language] if args.key?(:language) + end + end + + # The sentiment analysis request message. + class AnalyzeSentimentRequest + include Google::Apis::Core::Hashable + + # The encoding type used by the API to calculate sentence offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1::Document] + attr_accessor :document + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + @document = args[:document] if args.key?(:document) + end + end + + # Represents dependency parse tree information for a token. (For more + # information on dependency labels, see + # http://www.aclweb.org/anthology/P13-2017 + class DependencyEdge + include Google::Apis::Core::Hashable + + # The parse label for the token. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # Represents the head of this token in the dependency tree. + # This is the index of the token which has an arc going to this token. + # The index is the position of the token in the array of tokens returned + # by the API method. If this token is a root token, then the + # `head_token_index` is its own index. + # Corresponds to the JSON property `headTokenIndex` + # @return [Fixnum] + attr_accessor :head_token_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label = args[:label] if args.key?(:label) + @head_token_index = args[:head_token_index] if args.key?(:head_token_index) + end + end + + # Represents an output piece of text. + class TextSpan + include Google::Apis::Core::Hashable + + # The content of the output text. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The API calculates the beginning offset of the content in the original + # document according to the EncodingType specified in the API request. + # Corresponds to the JSON property `beginOffset` + # @return [Fixnum] + attr_accessor :begin_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @begin_offset = args[:begin_offset] if args.key?(:begin_offset) + end + end + + # Represents the smallest syntactic building block of the text. + class Token + include Google::Apis::Core::Hashable + + # Represents part of speech information for a token. Parts of speech + # are as defined in + # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf + # Corresponds to the JSON property `partOfSpeech` + # @return [Google::Apis::LanguageV1::PartOfSpeech] + attr_accessor :part_of_speech + + # Represents dependency parse tree information for a token. (For more + # information on dependency labels, see + # http://www.aclweb.org/anthology/P13-2017 + # Corresponds to the JSON property `dependencyEdge` + # @return [Google::Apis::LanguageV1::DependencyEdge] + attr_accessor :dependency_edge + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1::TextSpan] + attr_accessor :text + + # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. + # Corresponds to the JSON property `lemma` + # @return [String] + attr_accessor :lemma + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) + @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) + @text = args[:text] if args.key?(:text) + @lemma = args[:lemma] if args.key?(:lemma) + 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` that 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. + # - 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 + + # Represents a mention for an entity in the text. Currently, proper noun + # mentions are supported. + class EntityMention + include Google::Apis::Core::Hashable + + # The type of the entity mention. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1::TextSpan] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @text = args[:text] if args.key?(:text) + end + end + + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + class Features + include Google::Apis::Core::Hashable + + # Extract entities. + # Corresponds to the JSON property `extractEntities` + # @return [Boolean] + attr_accessor :extract_entities + alias_method :extract_entities?, :extract_entities + + # Extract document-level sentiment. + # Corresponds to the JSON property `extractDocumentSentiment` + # @return [Boolean] + attr_accessor :extract_document_sentiment + alias_method :extract_document_sentiment?, :extract_document_sentiment + + # Extract syntax information. + # Corresponds to the JSON property `extractSyntax` + # @return [Boolean] + attr_accessor :extract_syntax + alias_method :extract_syntax?, :extract_syntax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @extract_entities = args[:extract_entities] if args.key?(:extract_entities) + @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) + @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) + end + end + + # ################################################################ # + # Represents the input to API methods. + class Document + include Google::Apis::Core::Hashable + + # The language of the document (if not specified, the language is + # automatically detected). Both ISO and BCP-47 language codes are + # accepted.
+ # [Language Support](/natural-language/docs/languages) + # lists currently supported languages for each API method. + # If the language (either specified by the caller or automatically detected) + # is not supported by the called API method, an `INVALID_ARGUMENT` error + # is returned. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The content of the input in string format. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Required. If the type is not set or is `TYPE_UNSPECIFIED`, + # returns an `INVALID_ARGUMENT` error. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The Google Cloud Storage URI where the file content is located. + # This URI must be of the form: gs://bucket_name/object_name. For more + # details, see https://cloud.google.com/storage/docs/reference-uris. + # NOTE: Cloud Storage object versioning is not supported. + # Corresponds to the JSON property `gcsContentUri` + # @return [String] + attr_accessor :gcs_content_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language = args[:language] if args.key?(:language) + @content = args[:content] if args.key?(:content) + @type = args[:type] if args.key?(:type) + @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) + end + end + + # Represents a sentence in the input document. + class Sentence + include Google::Apis::Core::Hashable + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1::TextSpan] + attr_accessor :text + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `sentiment` + # @return [Google::Apis::LanguageV1::Sentiment] + attr_accessor :sentiment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + @sentiment = args[:sentiment] if args.key?(:sentiment) + end + end + + # The entity analysis request message. + class AnalyzeEntitiesRequest + include Google::Apis::Core::Hashable + # The encoding type used by the API to calculate offsets. # Corresponds to the JSON property `encodingType` # @return [String] @@ -735,12 +713,6 @@ module Google # @return [Google::Apis::LanguageV1::Document] attr_accessor :document - # All available features for sentiment, syntax, and semantic analysis. - # Setting each one to true will enable that specific analysis for the input. - # Corresponds to the JSON property `features` - # @return [Google::Apis::LanguageV1::Features] - attr_accessor :features - def initialize(**args) update!(**args) end @@ -749,7 +721,35 @@ module Google def update!(**args) @encoding_type = args[:encoding_type] if args.key?(:encoding_type) @document = args[:document] if args.key?(:document) - @features = args[:features] if args.key?(:features) + end + end + + # Represents the feeling associated with the entire text or entities in + # the text. + class Sentiment + include Google::Apis::Core::Hashable + + # Sentiment score between -1.0 (negative sentiment) and 1.0 + # (positive sentiment). + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # A non-negative number in the [0, +inf) range, which represents + # the absolute magnitude of sentiment regardless of score (positive or + # negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @magnitude = args[:magnitude] if args.key?(:magnitude) end end end diff --git a/generated/google/apis/language_v1/representations.rb b/generated/google/apis/language_v1/representations.rb index ba3c47772..efc6fba94 100644 --- a/generated/google/apis/language_v1/representations.rb +++ b/generated/google/apis/language_v1/representations.rb @@ -22,6 +22,48 @@ module Google module Apis module LanguageV1 + class PartOfSpeech + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSyntaxRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSentimentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSyntaxResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Entity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateTextRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AnnotateTextResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -95,51 +137,89 @@ module Google end class PartOfSpeech - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aspect, as: 'aspect' + property :mood, as: 'mood' + property :tag, as: 'tag' + property :gender, as: 'gender' + property :person, as: 'person' + property :proper, as: 'proper' + property :case, as: 'case' + property :tense, as: 'tense' + property :reciprocity, as: 'reciprocity' + property :form, as: 'form' + property :number, as: 'number' + property :voice, as: 'voice' + end end class AnalyzeSyntaxRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encoding_type, as: 'encodingType' + property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation - include Google::Apis::Core::JsonObjectSupport + end end class AnalyzeSentimentResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation - include Google::Apis::Core::JsonObjectSupport + property :language, as: 'language' + collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation + + end end class AnalyzeEntitiesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language, as: 'language' + collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation - include Google::Apis::Core::JsonObjectSupport + end end class AnalyzeSyntaxResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation - include Google::Apis::Core::JsonObjectSupport + property :language, as: 'language' + collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation + + end end class Entity - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :salience, as: 'salience' + hash :metadata, as: 'metadata' + property :type, as: 'type' + collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation - include Google::Apis::Core::JsonObjectSupport + property :name, as: 'name' + end end class AnnotateTextRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :features, as: 'features', class: Google::Apis::LanguageV1::Features, decorator: Google::Apis::LanguageV1::Features::Representation - include Google::Apis::Core::JsonObjectSupport + property :encoding_type, as: 'encodingType' + property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation + + end end class AnnotateTextResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation @@ -148,6 +228,7 @@ module Google property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation + property :language, as: 'language' end end @@ -179,13 +260,13 @@ module Google class Token # @private class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation + property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1::PartOfSpeech, decorator: Google::Apis::LanguageV1::PartOfSpeech::Representation property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1::DependencyEdge, decorator: Google::Apis::LanguageV1::DependencyEdge::Representation - property :lemma, as: 'lemma' - property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1::PartOfSpeech, decorator: Google::Apis::LanguageV1::PartOfSpeech::Representation + property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation + property :lemma, as: 'lemma' end end @@ -201,9 +282,9 @@ module Google class EntityMention # @private class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation - property :type, as: 'type' end end @@ -211,8 +292,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :extract_entities, as: 'extractEntities' - property :extract_syntax, as: 'extractSyntax' property :extract_document_sentiment, as: 'extractDocumentSentiment' + property :extract_syntax, as: 'extractSyntax' end end @@ -220,8 +301,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :language, as: 'language' - property :type, as: 'type' property :content, as: 'content' + property :type, as: 'type' property :gcs_content_uri, as: 'gcsContentUri' end end @@ -252,87 +333,6 @@ module Google property :magnitude, as: 'magnitude' end end - - class PartOfSpeech - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :form, as: 'form' - property :number, as: 'number' - property :voice, as: 'voice' - property :aspect, as: 'aspect' - property :mood, as: 'mood' - property :tag, as: 'tag' - property :gender, as: 'gender' - property :person, as: 'person' - property :proper, as: 'proper' - property :case, as: 'case' - property :tense, as: 'tense' - property :reciprocity, as: 'reciprocity' - end - end - - class AnalyzeSyntaxRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :encoding_type, as: 'encodingType' - property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation - - end - end - - class AnalyzeSentimentResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation - - property :language, as: 'language' - collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation - - end - end - - class AnalyzeEntitiesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' - collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation - - end - end - - class AnalyzeSyntaxResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language, as: 'language' - collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation - - collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation - - end - end - - class Entity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :metadata, as: 'metadata' - property :salience, as: 'salience' - collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation - - property :name, as: 'name' - end - end - - class AnnotateTextRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :encoding_type, as: 'encodingType' - property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation - - property :features, as: 'features', class: Google::Apis::LanguageV1::Features, decorator: Google::Apis::LanguageV1::Features::Representation - - end - end end end end diff --git a/generated/google/apis/language_v1/service.rb b/generated/google/apis/language_v1/service.rb index 3bde2c3a3..cd9073e01 100644 --- a/generated/google/apis/language_v1/service.rb +++ b/generated/google/apis/language_v1/service.rb @@ -34,123 +34,30 @@ module Google # # @see https://cloud.google.com/natural-language/ class CloudNaturalLanguageService < 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 + # @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 + def initialize super('https://language.googleapis.com/', '') @batch_path = 'batch' end - # Analyzes the syntax of the text and provides sentence boundaries and - # tokenization along with part of speech tags, dependency trees, and other - # properties. - # @param [Google::Apis::LanguageV1::AnalyzeSyntaxRequest] analyze_syntax_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::LanguageV1::AnalyzeSyntaxResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1::AnalyzeSyntaxResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/documents:analyzeSyntax', options) - command.request_representation = Google::Apis::LanguageV1::AnalyzeSyntaxRequest::Representation - command.request_object = analyze_syntax_request_object - command.response_representation = Google::Apis::LanguageV1::AnalyzeSyntaxResponse::Representation - command.response_class = Google::Apis::LanguageV1::AnalyzeSyntaxResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Analyzes the sentiment of the provided text. - # @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_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::LanguageV1::AnalyzeSentimentResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1::AnalyzeSentimentResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/documents:analyzeSentiment', options) - command.request_representation = Google::Apis::LanguageV1::AnalyzeSentimentRequest::Representation - command.request_object = analyze_sentiment_request_object - command.response_representation = Google::Apis::LanguageV1::AnalyzeSentimentResponse::Representation - command.response_class = Google::Apis::LanguageV1::AnalyzeSentimentResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # A convenience method that provides all the features that analyzeSentiment, - # analyzeEntities, and analyzeSyntax provide in one call. - # @param [Google::Apis::LanguageV1::AnnotateTextRequest] annotate_text_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::LanguageV1::AnnotateTextResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1::AnnotateTextResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/documents:annotateText', options) - command.request_representation = Google::Apis::LanguageV1::AnnotateTextRequest::Representation - command.request_object = annotate_text_request_object - command.response_representation = Google::Apis::LanguageV1::AnnotateTextResponse::Representation - command.response_class = Google::Apis::LanguageV1::AnnotateTextResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Finds named entities (currently proper names and common nouns) in the text # along with entity types, salience, mentions for each entity, and # other properties. # @param [Google::Apis::LanguageV1::AnalyzeEntitiesRequest] analyze_entities_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -163,22 +70,115 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/documents:analyzeEntities', options) command.request_representation = Google::Apis::LanguageV1::AnalyzeEntitiesRequest::Representation command.request_object = analyze_entities_request_object command.response_representation = Google::Apis::LanguageV1::AnalyzeEntitiesResponse::Representation command.response_class = Google::Apis::LanguageV1::AnalyzeEntitiesResponse - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Analyzes the syntax of the text and provides sentence boundaries and + # tokenization along with part of speech tags, dependency trees, and other + # properties. + # @param [Google::Apis::LanguageV1::AnalyzeSyntaxRequest] analyze_syntax_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::LanguageV1::AnalyzeSyntaxResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1::AnalyzeSyntaxResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/documents:analyzeSyntax', options) + command.request_representation = Google::Apis::LanguageV1::AnalyzeSyntaxRequest::Representation + command.request_object = analyze_syntax_request_object + command.response_representation = Google::Apis::LanguageV1::AnalyzeSyntaxResponse::Representation + command.response_class = Google::Apis::LanguageV1::AnalyzeSyntaxResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Analyzes the sentiment of the provided text. + # @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_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::LanguageV1::AnalyzeSentimentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1::AnalyzeSentimentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/documents:analyzeSentiment', options) + command.request_representation = Google::Apis::LanguageV1::AnalyzeSentimentRequest::Representation + command.request_object = analyze_sentiment_request_object + command.response_representation = Google::Apis::LanguageV1::AnalyzeSentimentResponse::Representation + command.response_class = Google::Apis::LanguageV1::AnalyzeSentimentResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # A convenience method that provides all the features that analyzeSentiment, + # analyzeEntities, and analyzeSyntax provide in one call. + # @param [Google::Apis::LanguageV1::AnnotateTextRequest] annotate_text_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::LanguageV1::AnnotateTextResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1::AnnotateTextResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/documents:annotateText', options) + command.request_representation = Google::Apis::LanguageV1::AnnotateTextRequest::Representation + command.request_object = annotate_text_request_object + command.response_representation = Google::Apis::LanguageV1::AnnotateTextResponse::Representation + command.response_class = Google::Apis::LanguageV1::AnnotateTextResponse + 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? + command.query['key'] = key unless key.nil? end end end diff --git a/generated/google/apis/language_v1beta1.rb b/generated/google/apis/language_v1beta1.rb index 51e0438b6..e4cfa44a0 100644 --- a/generated/google/apis/language_v1beta1.rb +++ b/generated/google/apis/language_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta1 VERSION = 'V1beta1' - REVISION = '20170601' + REVISION = '20170619' # 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/language_v1beta1/classes.rb b/generated/google/apis/language_v1beta1/classes.rb index 4eef9ee25..0d06a37ae 100644 --- a/generated/google/apis/language_v1beta1/classes.rb +++ b/generated/google/apis/language_v1beta1/classes.rb @@ -22,6 +22,340 @@ module Google module Apis module LanguageV1beta1 + # Represents an output piece of text. + class TextSpan + include Google::Apis::Core::Hashable + + # The API calculates the beginning offset of the content in the original + # document according to the EncodingType specified in the API request. + # Corresponds to the JSON property `beginOffset` + # @return [Fixnum] + attr_accessor :begin_offset + + # The content of the output text. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @begin_offset = args[:begin_offset] if args.key?(:begin_offset) + @content = args[:content] if args.key?(:content) + end + end + + # Represents the smallest syntactic building block of the text. + class Token + include Google::Apis::Core::Hashable + + # Represents dependency parse tree information for a token. + # Corresponds to the JSON property `dependencyEdge` + # @return [Google::Apis::LanguageV1beta1::DependencyEdge] + attr_accessor :dependency_edge + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. + # Corresponds to the JSON property `lemma` + # @return [String] + attr_accessor :lemma + + # Represents part of speech information for a token. + # Corresponds to the JSON property `partOfSpeech` + # @return [Google::Apis::LanguageV1beta1::PartOfSpeech] + attr_accessor :part_of_speech + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) + @text = args[:text] if args.key?(:text) + @lemma = args[:lemma] if args.key?(:lemma) + @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) + 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` that 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. + # - 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + end + end + + # Represents a mention for an entity in the text. Currently, proper noun + # mentions are supported. + class EntityMention + include Google::Apis::Core::Hashable + + # The type of the entity mention. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @text = args[:text] if args.key?(:text) + end + end + + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + class Features + include Google::Apis::Core::Hashable + + # Extract entities. + # Corresponds to the JSON property `extractEntities` + # @return [Boolean] + attr_accessor :extract_entities + alias_method :extract_entities?, :extract_entities + + # Extract document-level sentiment. + # Corresponds to the JSON property `extractDocumentSentiment` + # @return [Boolean] + attr_accessor :extract_document_sentiment + alias_method :extract_document_sentiment?, :extract_document_sentiment + + # Extract syntax information. + # Corresponds to the JSON property `extractSyntax` + # @return [Boolean] + attr_accessor :extract_syntax + alias_method :extract_syntax?, :extract_syntax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @extract_entities = args[:extract_entities] if args.key?(:extract_entities) + @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) + @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) + end + end + + # ################################################################ # + # Represents the input to API methods. + class Document + include Google::Apis::Core::Hashable + + # The Google Cloud Storage URI where the file content is located. + # This URI must be of the form: gs://bucket_name/object_name. For more + # details, see https://cloud.google.com/storage/docs/reference-uris. + # NOTE: Cloud Storage object versioning is not supported. + # Corresponds to the JSON property `gcsContentUri` + # @return [String] + attr_accessor :gcs_content_uri + + # The language of the document (if not specified, the language is + # automatically detected). Both ISO and BCP-47 language codes are + # accepted.
+ # [Language Support](/natural-language/docs/languages) + # lists currently supported languages for each API method. + # If the language (either specified by the caller or automatically detected) + # is not supported by the called API method, an `INVALID_ARGUMENT` error + # is returned. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The content of the input in string format. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Required. If the type is not set or is `TYPE_UNSPECIFIED`, + # returns an `INVALID_ARGUMENT` error. + # 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) + @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) + @language = args[:language] if args.key?(:language) + @content = args[:content] if args.key?(:content) + @type = args[:type] if args.key?(:type) + end + end + + # Represents a sentence in the input document. + class Sentence + include Google::Apis::Core::Hashable + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `sentiment` + # @return [Google::Apis::LanguageV1beta1::Sentiment] + attr_accessor :sentiment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + @sentiment = args[:sentiment] if args.key?(:sentiment) + end + end + + # The entity analysis request message. + class AnalyzeEntitiesRequest + include Google::Apis::Core::Hashable + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1beta1::Document] + attr_accessor :document + + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + end + end + + # Represents the feeling associated with the entire text or entities in + # the text. + class Sentiment + include Google::Apis::Core::Hashable + + # Sentiment score between -1.0 (negative sentiment) and 1.0 + # (positive sentiment). + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # DEPRECATED FIELD - This field is being deprecated in + # favor of score. Please refer to our documentation at + # https://cloud.google.com/natural-language/docs for more information. + # Corresponds to the JSON property `polarity` + # @return [Float] + attr_accessor :polarity + + # A non-negative number in the [0, +inf) range, which represents + # the absolute magnitude of sentiment regardless of score (positive or + # negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @polarity = args[:polarity] if args.key?(:polarity) + @magnitude = args[:magnitude] if args.key?(:magnitude) + end + end + # Represents part of speech information for a token. class PartOfSpeech include Google::Apis::Core::Hashable @@ -233,17 +567,10 @@ module Google class Entity include Google::Apis::Core::Hashable - # The entity type. - # Corresponds to the JSON property `type` + # The representative name for the entity. + # Corresponds to the JSON property `name` # @return [String] - attr_accessor :type - - # Metadata associated with the entity. - # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if - # available. The associated keys are "wikipedia_url" and "mid", respectively. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata + attr_accessor :name # The salience score associated with the entity in the [0, 1.0] range. # The salience score for an entity provides information about the @@ -254,28 +581,35 @@ module Google # @return [Float] attr_accessor :salience + # Metadata associated with the entity. + # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if + # available. The associated keys are "wikipedia_url" and "mid", respectively. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The entity type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + # The mentions of this entity in the input document. The API currently # supports proper noun mentions. # Corresponds to the JSON property `mentions` # @return [Array] attr_accessor :mentions - # The representative name for the entity. - # 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) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @salience = args[:salience] if args.key?(:salience) - @mentions = args[:mentions] if args.key?(:mentions) @name = args[:name] if args.key?(:name) + @salience = args[:salience] if args.key?(:salience) + @metadata = args[:metadata] if args.key?(:metadata) + @type = args[:type] if args.key?(:type) + @mentions = args[:mentions] if args.key?(:mentions) end end @@ -284,6 +618,12 @@ module Google class AnnotateTextRequest include Google::Apis::Core::Hashable + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + # Corresponds to the JSON property `features` + # @return [Google::Apis::LanguageV1beta1::Features] + attr_accessor :features + # The encoding type used by the API to calculate offsets. # Corresponds to the JSON property `encodingType` # @return [String] @@ -295,21 +635,15 @@ module Google # @return [Google::Apis::LanguageV1beta1::Document] attr_accessor :document - # All available features for sentiment, syntax, and semantic analysis. - # Setting each one to true will enable that specific analysis for the input. - # Corresponds to the JSON property `features` - # @return [Google::Apis::LanguageV1beta1::Features] - attr_accessor :features - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @features = args[:features] if args.key?(:features) @encoding_type = args[:encoding_type] if args.key?(:encoding_type) @document = args[:document] if args.key?(:document) - @features = args[:features] if args.key?(:features) end end @@ -317,6 +651,19 @@ module Google class AnnotateTextResponse include Google::Apis::Core::Hashable + # Entities, along with their semantic information, in the input document. + # Populated if the user enables + # AnnotateTextRequest.Features.extract_entities. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `documentSentiment` + # @return [Google::Apis::LanguageV1beta1::Sentiment] + attr_accessor :document_sentiment + # The language of the text, which will be the same as the language specified # in the request or, if not specified, the automatically-detected language. # See Document.language field for more details. @@ -337,30 +684,17 @@ module Google # @return [Array] attr_accessor :tokens - # Entities, along with their semantic information, in the input document. - # Populated if the user enables - # AnnotateTextRequest.Features.extract_entities. - # Corresponds to the JSON property `entities` - # @return [Array] - attr_accessor :entities - - # Represents the feeling associated with the entire text or entities in - # the text. - # Corresponds to the JSON property `documentSentiment` - # @return [Google::Apis::LanguageV1beta1::Sentiment] - attr_accessor :document_sentiment - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) @language = args[:language] if args.key?(:language) @sentences = args[:sentences] if args.key?(:sentences) @tokens = args[:tokens] if args.key?(:tokens) - @entities = args[:entities] if args.key?(:entities) - @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) end end @@ -368,26 +702,26 @@ module Google class AnalyzeSentimentRequest include Google::Apis::Core::Hashable - # The encoding type used by the API to calculate sentence offsets for the - # sentence sentiment. - # Corresponds to the JSON property `encodingType` - # @return [String] - attr_accessor :encoding_type - # ################################################################ # # Represents the input to API methods. # Corresponds to the JSON property `document` # @return [Google::Apis::LanguageV1beta1::Document] attr_accessor :document + # The encoding type used by the API to calculate sentence offsets for the + # sentence sentiment. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @encoding_type = args[:encoding_type] if args.key?(:encoding_type) @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) end end @@ -419,340 +753,6 @@ module Google @head_token_index = args[:head_token_index] if args.key?(:head_token_index) end end - - # Represents an output piece of text. - class TextSpan - include Google::Apis::Core::Hashable - - # The API calculates the beginning offset of the content in the original - # document according to the EncodingType specified in the API request. - # Corresponds to the JSON property `beginOffset` - # @return [Fixnum] - attr_accessor :begin_offset - - # The content of the output text. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @begin_offset = args[:begin_offset] if args.key?(:begin_offset) - @content = args[:content] if args.key?(:content) - end - end - - # Represents the smallest syntactic building block of the text. - class Token - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1beta1::TextSpan] - attr_accessor :text - - # Represents dependency parse tree information for a token. - # Corresponds to the JSON property `dependencyEdge` - # @return [Google::Apis::LanguageV1beta1::DependencyEdge] - attr_accessor :dependency_edge - - # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. - # Corresponds to the JSON property `lemma` - # @return [String] - attr_accessor :lemma - - # Represents part of speech information for a token. - # Corresponds to the JSON property `partOfSpeech` - # @return [Google::Apis::LanguageV1beta1::PartOfSpeech] - attr_accessor :part_of_speech - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) - @lemma = args[:lemma] if args.key?(:lemma) - @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) - 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` that 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. - # - 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 - - # 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 - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @message = args[:message] if args.key?(:message) - @details = args[:details] if args.key?(:details) - @code = args[:code] if args.key?(:code) - end - end - - # Represents a mention for an entity in the text. Currently, proper noun - # mentions are supported. - class EntityMention - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1beta1::TextSpan] - attr_accessor :text - - # The type of the entity mention. - # 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) - @text = args[:text] if args.key?(:text) - @type = args[:type] if args.key?(:type) - end - end - - # All available features for sentiment, syntax, and semantic analysis. - # Setting each one to true will enable that specific analysis for the input. - class Features - include Google::Apis::Core::Hashable - - # Extract entities. - # Corresponds to the JSON property `extractEntities` - # @return [Boolean] - attr_accessor :extract_entities - alias_method :extract_entities?, :extract_entities - - # Extract syntax information. - # Corresponds to the JSON property `extractSyntax` - # @return [Boolean] - attr_accessor :extract_syntax - alias_method :extract_syntax?, :extract_syntax - - # Extract document-level sentiment. - # Corresponds to the JSON property `extractDocumentSentiment` - # @return [Boolean] - attr_accessor :extract_document_sentiment - alias_method :extract_document_sentiment?, :extract_document_sentiment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @extract_entities = args[:extract_entities] if args.key?(:extract_entities) - @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) - @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) - end - end - - # ################################################################ # - # Represents the input to API methods. - class Document - include Google::Apis::Core::Hashable - - # The Google Cloud Storage URI where the file content is located. - # This URI must be of the form: gs://bucket_name/object_name. For more - # details, see https://cloud.google.com/storage/docs/reference-uris. - # NOTE: Cloud Storage object versioning is not supported. - # Corresponds to the JSON property `gcsContentUri` - # @return [String] - attr_accessor :gcs_content_uri - - # The language of the document (if not specified, the language is - # automatically detected). Both ISO and BCP-47 language codes are - # accepted.
- # [Language Support](/natural-language/docs/languages) - # lists currently supported languages for each API method. - # If the language (either specified by the caller or automatically detected) - # is not supported by the called API method, an `INVALID_ARGUMENT` error - # is returned. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - # Required. If the type is not set or is `TYPE_UNSPECIFIED`, - # returns an `INVALID_ARGUMENT` error. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The content of the input in string format. - # Corresponds to the JSON property `content` - # @return [String] - attr_accessor :content - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) - @language = args[:language] if args.key?(:language) - @type = args[:type] if args.key?(:type) - @content = args[:content] if args.key?(:content) - end - end - - # Represents a sentence in the input document. - class Sentence - include Google::Apis::Core::Hashable - - # Represents an output piece of text. - # Corresponds to the JSON property `text` - # @return [Google::Apis::LanguageV1beta1::TextSpan] - attr_accessor :text - - # Represents the feeling associated with the entire text or entities in - # the text. - # Corresponds to the JSON property `sentiment` - # @return [Google::Apis::LanguageV1beta1::Sentiment] - attr_accessor :sentiment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @sentiment = args[:sentiment] if args.key?(:sentiment) - end - end - - # The entity analysis request message. - class AnalyzeEntitiesRequest - include Google::Apis::Core::Hashable - - # The encoding type used by the API to calculate offsets. - # Corresponds to the JSON property `encodingType` - # @return [String] - attr_accessor :encoding_type - - # ################################################################ # - # Represents the input to API methods. - # Corresponds to the JSON property `document` - # @return [Google::Apis::LanguageV1beta1::Document] - attr_accessor :document - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @encoding_type = args[:encoding_type] if args.key?(:encoding_type) - @document = args[:document] if args.key?(:document) - end - end - - # Represents the feeling associated with the entire text or entities in - # the text. - class Sentiment - include Google::Apis::Core::Hashable - - # DEPRECATED FIELD - This field is being deprecated in - # favor of score. Please refer to our documentation at - # https://cloud.google.com/natural-language/docs for more information. - # Corresponds to the JSON property `polarity` - # @return [Float] - attr_accessor :polarity - - # Sentiment score between -1.0 (negative sentiment) and 1.0 - # (positive sentiment). - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # A non-negative number in the [0, +inf) range, which represents - # the absolute magnitude of sentiment regardless of score (positive or - # negative). - # Corresponds to the JSON property `magnitude` - # @return [Float] - attr_accessor :magnitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @polarity = args[:polarity] if args.key?(:polarity) - @score = args[:score] if args.key?(:score) - @magnitude = args[:magnitude] if args.key?(:magnitude) - end - end end end end diff --git a/generated/google/apis/language_v1beta1/representations.rb b/generated/google/apis/language_v1beta1/representations.rb index e7e3ad283..ed7e40d7a 100644 --- a/generated/google/apis/language_v1beta1/representations.rb +++ b/generated/google/apis/language_v1beta1/representations.rb @@ -22,6 +22,60 @@ module Google module Apis module LanguageV1beta1 + class TextSpan + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Token + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntityMention + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Features + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sentence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sentiment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PartOfSpeech class Representation < Google::Apis::Core::JsonRepresentation; end @@ -83,57 +137,89 @@ module Google end class TextSpan - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :begin_offset, as: 'beginOffset' + property :content, as: 'content' + end end class Token - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation - include Google::Apis::Core::JsonObjectSupport + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation + + property :lemma, as: 'lemma' + property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation + + end end class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :code, as: 'code' + property :message, as: 'message' + end end class EntityMention - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Features - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :extract_entities, as: 'extractEntities' + property :extract_document_sentiment, as: 'extractDocumentSentiment' + property :extract_syntax, as: 'extractSyntax' + end end class Document - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_content_uri, as: 'gcsContentUri' + property :language, as: 'language' + property :content, as: 'content' + property :type, as: 'type' + end end class Sentence - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation - include Google::Apis::Core::JsonObjectSupport + property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation + + end end class AnalyzeEntitiesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation - include Google::Apis::Core::JsonObjectSupport + property :encoding_type, as: 'encodingType' + end end class Sentiment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :polarity, as: 'polarity' + property :magnitude, as: 'magnitude' + end end class PartOfSpeech @@ -197,47 +283,47 @@ module Google class Entity # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :metadata, as: 'metadata' + property :name, as: 'name' property :salience, as: 'salience' + hash :metadata, as: 'metadata' + property :type, as: 'type' collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation - property :name, as: 'name' end end class AnnotateTextRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation + property :encoding_type, as: 'encodingType' property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation - property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation - end end class AnnotateTextResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation + + property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation + property :language, as: 'language' collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation - collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation - - property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation - end end class AnalyzeSentimentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :encoding_type, as: 'encodingType' property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation + property :encoding_type, as: 'encodingType' end end @@ -248,92 +334,6 @@ module Google property :head_token_index, as: 'headTokenIndex' end end - - class TextSpan - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :begin_offset, as: 'beginOffset' - property :content, as: 'content' - end - end - - class Token - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation - - property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation - - property :lemma, as: 'lemma' - property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation - - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' - collection :details, as: 'details' - property :code, as: 'code' - end - end - - class EntityMention - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation - - property :type, as: 'type' - end - end - - class Features - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :extract_entities, as: 'extractEntities' - property :extract_syntax, as: 'extractSyntax' - property :extract_document_sentiment, as: 'extractDocumentSentiment' - end - end - - class Document - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :gcs_content_uri, as: 'gcsContentUri' - property :language, as: 'language' - property :type, as: 'type' - property :content, as: 'content' - end - end - - class Sentence - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation - - property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation - - end - end - - class AnalyzeEntitiesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :encoding_type, as: 'encodingType' - property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation - - end - end - - class Sentiment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :polarity, as: 'polarity' - property :score, as: 'score' - property :magnitude, as: 'magnitude' - end - end end end end diff --git a/generated/google/apis/language_v1beta1/service.rb b/generated/google/apis/language_v1beta1/service.rb index 959c15cc1..36f91796e 100644 --- a/generated/google/apis/language_v1beta1/service.rb +++ b/generated/google/apis/language_v1beta1/service.rb @@ -49,108 +49,15 @@ module Google @batch_path = 'batch' end - # Analyzes the sentiment of the provided text. - # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_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::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options) - command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation - command.request_object = analyze_sentiment_request_object - command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation - command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # A convenience method that provides all the features that analyzeSentiment, - # analyzeEntities, and analyzeSyntax provide in one call. - # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_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::LanguageV1beta1::AnnotateTextResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1beta1::AnnotateTextResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/documents:annotateText', options) - command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation - command.request_object = annotate_text_request_object - command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation - command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Finds named entities (currently proper names and common nouns) in the text - # along with entity types, salience, mentions for each entity, and - # other properties. - # @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_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::LanguageV1beta1::AnalyzeEntitiesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options) - command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation - command.request_object = analyze_entities_request_object - command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation - command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Analyzes the syntax of the text and provides sentence boundaries and # tokenization along with part of speech tags, dependency trees, and other # properties. # @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -163,14 +70,107 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options) command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation command.request_object = analyze_syntax_request_object command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Analyzes the sentiment of the provided text. + # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_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::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation + command.request_object = analyze_sentiment_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # A convenience method that provides all the features that analyzeSentiment, + # analyzeEntities, and analyzeSyntax provide in one call. + # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_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::LanguageV1beta1::AnnotateTextResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnnotateTextResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:annotateText', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation + command.request_object = annotate_text_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Finds named entities (currently proper names and common nouns) in the text + # along with entity types, salience, mentions for each entity, and + # other properties. + # @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_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::LanguageV1beta1::AnalyzeEntitiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation + command.request_object = analyze_entities_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index cfc046c97..f7c879aad 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -25,19 +25,19 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20170605' + REVISION = '20170710' - # 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' + # Submit log data for your projects + AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write' # 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' + # Administrate log data for your projects + AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index 0edac23ff..41bba587e 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -22,345 +22,6 @@ module Google module Apis module LoggingV2 - # A common proto for logging HTTP requests. Only contains semantics defined by - # the HTTP specification. Product-specific logging information MUST be defined - # in a separate message. - class HttpRequest - include Google::Apis::Core::Hashable - - # The request processing latency on the server, from the time the request was - # received until the response was sent. - # Corresponds to the JSON property `latency` - # @return [String] - attr_accessor :latency - - # 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 number of HTTP response bytes inserted into cache. Set only when a cache - # fill was attempted. - # Corresponds to the JSON property `cacheFillBytes` - # @return [Fixnum] - attr_accessor :cache_fill_bytes - - # The request method. Examples: "GET", "HEAD", "PUT", "POST". - # Corresponds to the JSON property `requestMethod` - # @return [String] - attr_accessor :request_method - - # The size of the HTTP request message in bytes, including the request headers - # and the request body. - # Corresponds to the JSON property `requestSize` - # @return [Fixnum] - attr_accessor :request_size - - # 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 [Fixnum] - attr_accessor :response_size - - # 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 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 IP address (IPv4 or IPv6) of the origin server that the request was sent - # to. - # Corresponds to the JSON property `serverIp` - # @return [String] - attr_accessor :server_ip - - # Whether or not a cache lookup was attempted. - # Corresponds to the JSON property `cacheLookup` - # @return [Boolean] - attr_accessor :cache_lookup - alias_method :cache_lookup?, :cache_lookup - - # 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 `cacheValidatedWithOriginServer` - # @return [Boolean] - attr_accessor :cache_validated_with_origin_server - alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server - - # The response code indicating the status of response. Examples: 200, 404. - # Corresponds to the JSON property `status` - # @return [Fixnum] - attr_accessor :status - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @latency = args[:latency] if args.key?(:latency) - @user_agent = args[:user_agent] if args.key?(:user_agent) - @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes) - @request_method = args[:request_method] if args.key?(:request_method) - @request_size = args[:request_size] if args.key?(:request_size) - @response_size = args[:response_size] if args.key?(:response_size) - @request_url = args[:request_url] if args.key?(:request_url) - @remote_ip = args[:remote_ip] if args.key?(:remote_ip) - @server_ip = args[:server_ip] if args.key?(:server_ip) - @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup) - @cache_hit = args[:cache_hit] if args.key?(:cache_hit) - @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server) - @status = args[:status] if args.key?(:status) - @referer = args[:referer] if args.key?(:referer) - end - end - - # Result returned from ListSinks. - class ListSinksResponse - include Google::Apis::Core::Hashable - - # If there might be more results than appear in this response, then - # nextPageToken is included. To get the next set of results, call the same - # method again using the value of nextPageToken as pageToken. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A list of sinks. - # Corresponds to the JSON property `sinks` - # @return [Array] - attr_accessor :sinks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @sinks = args[:sinks] if args.key?(:sinks) - 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 - - # A human-readable description for the label. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The type of data that can be assigned to the label. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @description = args[:description] if args.key?(:description) - @value_type = args[:value_type] if args.key?(:value_type) - end - end - - # An object that describes the schema of a MonitoredResource object using a type - # name and a set of labels. For example, the monitored resource descriptor for - # Google Compute Engine VM instances has a type of "gce_instance" and specifies - # the use of the labels "instance_id" and "zone" to identify particular VM - # instances.Different APIs can support different monitored resource types. APIs - # generally provide a list method that returns the monitored resource - # descriptors used by the API. - class MonitoredResourceDescriptor - include Google::Apis::Core::Hashable - - # Optional. The resource name of the monitored resource descriptor: "projects/` - # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of - # the type field in this object and `project_id` is a project ID that provides - # API-specific context for accessing the type. APIs that do not use project - # information can use the resource name format "monitoredResourceDescriptors/` - # type`". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. A concise name for the monitored resource type that might be - # displayed in user interfaces. It should be a Title Cased Noun Phrase, without - # any article or other determiners. For example, "Google Cloud SQL Database". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Optional. A detailed description of the monitored resource type that might be - # used in documentation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The monitored resource type. For example, the type " - # cloudsql_database" represents databases in Google Cloud SQL. The maximum - # length of this value is 256 characters. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels "database_id" and "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) - @name = args[:name] if args.key?(:name) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @type = args[:type] if args.key?(:type) - @labels = args[:labels] if args.key?(:labels) - end - end - - # Additional information about the source code location that produced the log - # entry. - class LogEntrySourceLocation - include Google::Apis::Core::Hashable - - # Optional. 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 - - # Optional. Human-readable name of the function or method being invoked, with - # optional context such as the class or package name. This information may be - # 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 `function` - # @return [String] - attr_accessor :function - - # Optional. Line within the source file. 1-based; 0 indicates no line number - # available. - # Corresponds to the JSON property `line` - # @return [Fixnum] - attr_accessor :line - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file = args[:file] if args.key?(:file) - @function = args[:function] if args.key?(:function) - @line = args[:line] if args.key?(:line) - 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 might be more results than those appearing in this response, then - # nextPageToken is included. To get the next set of results, call this method - # again using the value of nextPageToken as pageToken.If a value for - # next_page_token appears and the entries field is empty, it means that the - # search found no log entries so far but it did not have time to search all the - # possible log entries. Retry the method with this value for page_token to - # continue the search. Alternatively, consider speeding up the search by - # changing your filter to specify a single log name or resource type, or to - # narrow the time range of the search. - # 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 - - # 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::LoggingV2::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 - # Result returned from ListLogMetrics. class ListLogMetricsResponse include Google::Apis::Core::Hashable @@ -388,29 +49,77 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for Empty is empty JSON object ``. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # An individual entry in a log. class LogEntry include Google::Apis::Core::Hashable + # Optional. The time the event described by the log entry occurred. If omitted + # in a new log entry, Stackdriver Logging will insert the time the log entry is + # received. Stackdriver Logging might reject log entries whose time stamps are + # more than a couple of hours in the future. Log entries with time stamps in the + # past are accepted. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # Output only. The time the log entry was received by Stackdriver Logging. + # Corresponds to the JSON property `receiveTimestamp` + # @return [String] + attr_accessor :receive_timestamp + + # Required. The resource name of the log to which this log entry belongs: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/ + # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must + # be less than 512 characters long and can only include the following characters: + # upper and lower case alphanumeric characters, forward-slash, underscore, + # hyphen, and period.For backward compatibility, if log_name begins with a + # forward-slash, such as /projects/..., then the log entry is ingested as usual + # but the forward-slash is removed. Listing the log entry will not show the + # leading slash and filtering for a log name with a leading slash will never + # return any results. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::LoggingV2::MonitoredResource] + attr_accessor :resource + + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::LoggingV2::HttpRequest] + attr_accessor :http_request + + # 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 + + # Additional information about a potentially long-running operation with which a + # log entry is associated. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::LoggingV2::LogEntryOperation] + attr_accessor :operation + # Optional. A unique identifier for the log entry. If you provide a value, then # Stackdriver Logging considers other log entries in the same project, with the # same timestamp, and with the same insert_id to be duplicates which can be @@ -421,12 +130,6 @@ module Google # @return [String] attr_accessor :insert_id - # Additional information about a potentially long-running operation with which a - # log entry is associated. - # Corresponds to the JSON property `operation` - # @return [Google::Apis::LoggingV2::LogEntryOperation] - attr_accessor :operation - # The log entry payload, represented as a Unicode string (UTF-8). # Corresponds to the JSON property `textPayload` # @return [String] @@ -464,66 +167,38 @@ module Google # @return [Google::Apis::LoggingV2::LogEntrySourceLocation] attr_accessor :source_location - # Output only. The time the log entry was received by Stackdriver Logging. - # Corresponds to the JSON property `receiveTimestamp` - # @return [String] - attr_accessor :receive_timestamp + def initialize(**args) + update!(**args) + end - # Optional. The time the event described by the log entry occurred. If omitted - # in a new log entry, Stackdriver Logging will insert the time the log entry is - # received. Stackdriver Logging might reject log entries whose time stamps are - # more than a couple of hours in the future. Log entries with time stamps in the - # past are accepted. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp + # Update properties of this object + def update!(**args) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp) + @log_name = args[:log_name] if args.key?(:log_name) + @resource = args[:resource] if args.key?(:resource) + @http_request = args[:http_request] if args.key?(:http_request) + @json_payload = args[:json_payload] if args.key?(:json_payload) + @operation = args[:operation] if args.key?(:operation) + @insert_id = args[:insert_id] if args.key?(:insert_id) + @text_payload = args[:text_payload] if args.key?(:text_payload) + @proto_payload = args[:proto_payload] if args.key?(:proto_payload) + @trace = args[:trace] if args.key?(:trace) + @labels = args[:labels] if args.key?(:labels) + @severity = args[:severity] if args.key?(:severity) + @source_location = args[:source_location] if args.key?(:source_location) + end + end - # Required. The resource name of the log to which this log entry belongs: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/ - # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must - # be less than 512 characters long and can only include the following characters: - # upper and lower case alphanumeric characters, forward-slash, underscore, - # hyphen, and period.For backward compatibility, if log_name begins with a - # forward-slash, such as /projects/..., then the log entry is ingested as usual - # but the forward-slash is removed. Listing the log entry will not show the - # leading slash and filtering for a log name with a leading slash will never - # return any results. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - # A common proto for logging HTTP requests. Only contains semantics defined by - # the HTTP specification. Product-specific logging information MUST be defined - # in a separate message. - # Corresponds to the JSON property `httpRequest` - # @return [Google::Apis::LoggingV2::HttpRequest] - attr_accessor :http_request - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - # Corresponds to the JSON property `resource` - # @return [Google::Apis::LoggingV2::MonitoredResource] - attr_accessor :resource - - # 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 + # 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) @@ -531,20 +206,6 @@ module Google # Update properties of this object def update!(**args) - @insert_id = args[:insert_id] if args.key?(:insert_id) - @operation = args[:operation] if args.key?(:operation) - @text_payload = args[:text_payload] if args.key?(:text_payload) - @proto_payload = args[:proto_payload] if args.key?(:proto_payload) - @trace = args[:trace] if args.key?(:trace) - @labels = args[:labels] if args.key?(:labels) - @severity = args[:severity] if args.key?(:severity) - @source_location = args[:source_location] if args.key?(:source_location) - @receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @log_name = args[:log_name] if args.key?(:log_name) - @http_request = args[:http_request] if args.key?(:http_request) - @resource = args[:resource] if args.key?(:resource) - @json_payload = args[:json_payload] if args.key?(:json_payload) end end @@ -588,13 +249,6 @@ module Google class ListLogEntriesRequest include Google::Apis::Core::Hashable - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of next_page_token in the response - # indicates that more results might be available. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size - # Optional. How the results should be sorted. Presently, the only permitted # values are "timestamp asc" (default) and "timestamp desc". The first option # returns entries in order of increasing values of LogEntry.timestamp (oldest @@ -616,14 +270,6 @@ module Google # @return [Array] attr_accessor :resource_names - # Deprecated. Use resource_names instead. One or more project identifiers or - # project numbers from which to retrieve log entries. Example: "my-project-1A". - # If present, these project identifiers are converted to resource name format - # and added to the list of resources in resource_names. - # Corresponds to the JSON property `projectIds` - # @return [Array] - attr_accessor :project_ids - # Optional. A filter that chooses which log entries to return. See Advanced Logs # Filters. Only log entries that match the filter are returned. An empty filter # matches all log entries in the resources listed in resource_names. Referencing @@ -633,6 +279,14 @@ module Google # @return [String] attr_accessor :filter + # Deprecated. Use resource_names instead. One or more project identifiers or + # project numbers from which to retrieve log entries. Example: "my-project-1A". + # If present, these project identifiers are converted to resource name format + # and added to the list of resources in resource_names. + # Corresponds to the JSON property `projectIds` + # @return [Array] + attr_accessor :project_ids + # Optional. If present, then retrieve the next batch of results from the # preceding call to this method. page_token must be the value of next_page_token # from the previous response. The values of other method parameters should be @@ -641,18 +295,25 @@ module Google # @return [String] attr_accessor :page_token + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of next_page_token in the response + # indicates that more results might be available. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @page_size = args[:page_size] if args.key?(:page_size) @order_by = args[:order_by] if args.key?(:order_by) @resource_names = args[:resource_names] if args.key?(:resource_names) - @project_ids = args[:project_ids] if args.key?(:project_ids) @filter = args[:filter] if args.key?(:filter) + @project_ids = args[:project_ids] if args.key?(:project_ids) @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -661,6 +322,41 @@ module Google class RequestLog include Google::Apis::Core::Hashable + # Latency of the request. + # Corresponds to the JSON property `latency` + # @return [String] + attr_accessor :latency + + # Origin IP address. + # Corresponds to the JSON property `ip` + # @return [String] + attr_accessor :ip + + # Application that handled this request. + # Corresponds to the JSON property `appId` + # @return [String] + attr_accessor :app_id + + # App Engine release version. + # Corresponds to the JSON property `appEngineRelease` + # @return [String] + attr_accessor :app_engine_release + + # Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # An indication of the relative cost of serving this request. + # Corresponds to the JSON property `cost` + # @return [Float] + attr_accessor :cost + + # An identifier for the instance that handled the request. + # Corresponds to the JSON property `instanceId` + # @return [String] + attr_accessor :instance_id + # Number of CPU megacycles used to process request. # Corresponds to the JSON property `megaCycles` # @return [Fixnum] @@ -722,16 +418,16 @@ module Google # @return [Array] attr_accessor :line - # Referrer URL of request. - # Corresponds to the JSON property `referrer` - # @return [String] - attr_accessor :referrer - # 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 + # Referrer URL of request. + # Corresponds to the JSON property `referrer` + # @return [String] + attr_accessor :referrer + # 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. @@ -748,10 +444,10 @@ module Google # @return [String] attr_accessor :nickname - # HTTP response status code. Example: 200, 404. - # Corresponds to the JSON property `status` - # @return [Fixnum] - attr_accessor :status + # Time this request spent in the pending request queue. + # Corresponds to the JSON property `pendingTime` + # @return [String] + attr_accessor :pending_time # 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? @@ -761,10 +457,10 @@ module Google # @return [String] attr_accessor :resource - # Time this request spent in the pending request queue. - # Corresponds to the JSON property `pendingTime` - # @return [String] - attr_accessor :pending_time + # HTTP response status code. Example: 200, 404. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status # Task name of the request, in the case of an offline request. # Corresponds to the JSON property `taskName` @@ -782,17 +478,17 @@ module Google # @return [Fixnum] attr_accessor :instance_index - # Internet host and port number of the resource being requested. - # Corresponds to the JSON property `host` - # @return [String] - attr_accessor :host - # Whether this request is finished or active. # Corresponds to the JSON property `finished` # @return [Boolean] attr_accessor :finished alias_method :finished?, :finished + # Internet host and port number of the resource being requested. + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + # HTTP version of request. Example: "HTTP/1.1". # Corresponds to the JSON property `httpVersion` # @return [String] @@ -803,47 +499,19 @@ module Google # @return [String] attr_accessor :start_time - # Latency of the request. - # Corresponds to the JSON property `latency` - # @return [String] - attr_accessor :latency - - # Origin IP address. - # Corresponds to the JSON property `ip` - # @return [String] - attr_accessor :ip - - # Application that handled this request. - # Corresponds to the JSON property `appId` - # @return [String] - attr_accessor :app_id - - # App Engine release version. - # Corresponds to the JSON property `appEngineRelease` - # @return [String] - attr_accessor :app_engine_release - - # Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". - # Corresponds to the JSON property `method` - # @return [String] - attr_accessor :method_prop - - # An indication of the relative cost of serving this request. - # Corresponds to the JSON property `cost` - # @return [Float] - attr_accessor :cost - - # An identifier for the instance that handled the request. - # Corresponds to the JSON property `instanceId` - # @return [String] - attr_accessor :instance_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @latency = args[:latency] if args.key?(:latency) + @ip = args[:ip] if args.key?(:ip) + @app_id = args[:app_id] if args.key?(:app_id) + @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @cost = args[:cost] if args.key?(:cost) + @instance_id = args[:instance_id] if args.key?(:instance_id) @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles) @first = args[:first] if args.key?(:first) @version_id = args[:version_id] if args.key?(:version_id) @@ -855,27 +523,20 @@ module Google @response_size = args[:response_size] if args.key?(:response_size) @trace_id = args[:trace_id] if args.key?(:trace_id) @line = args[:line] if args.key?(:line) - @referrer = args[:referrer] if args.key?(:referrer) @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name) + @referrer = args[:referrer] if args.key?(:referrer) @request_id = args[:request_id] if args.key?(:request_id) @nickname = args[:nickname] if args.key?(:nickname) - @status = args[:status] if args.key?(:status) - @resource = args[:resource] if args.key?(:resource) @pending_time = args[:pending_time] if args.key?(:pending_time) + @resource = args[:resource] if args.key?(:resource) + @status = args[:status] if args.key?(:status) @task_name = args[:task_name] if args.key?(:task_name) @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry) @instance_index = args[:instance_index] if args.key?(:instance_index) - @host = args[:host] if args.key?(:host) @finished = args[:finished] if args.key?(:finished) + @host = args[:host] if args.key?(:host) @http_version = args[:http_version] if args.key?(:http_version) @start_time = args[:start_time] if args.key?(:start_time) - @latency = args[:latency] if args.key?(:latency) - @ip = args[:ip] if args.key?(:ip) - @app_id = args[:app_id] if args.key?(:app_id) - @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) - @method_prop = args[:method_prop] if args.key?(:method_prop) - @cost = args[:cost] if args.key?(:cost) - @instance_id = args[:instance_id] if args.key?(:instance_id) end end @@ -883,6 +544,11 @@ module Google 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 might be more results than those appearing in this response, then # nextPageToken is included. To get the next set of results, call this method # again using the value of nextPageToken as pageToken. @@ -890,19 +556,14 @@ module Google # @return [String] attr_accessor :next_page_token - # A list of resource descriptors. - # Corresponds to the JSON property `resourceDescriptors` - # @return [Array] - attr_accessor :resource_descriptors - 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) @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 @@ -934,11 +595,74 @@ module Google 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 + + # Additional information about a potentially long-running operation with which a + # log entry is associated. + class LogEntryOperation + include Google::Apis::Core::Hashable + + # Optional. 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 + + # 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. 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 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) + @first = args[:first] if args.key?(:first) + @producer = args[:producer] if args.key?(:producer) + @last = args[:last] if args.key?(:last) + end + end + # Describes a logs-based metric. The value of the metric is the number of log # entries that match a logs filter in a given time interval. class LogMetric include Google::Apis::Core::Hashable + # Output only. The API version that created or updated this metric. The version + # also dictates the syntax of the filter expression. When a value for this field + # is missing, the default value of V2 should be assumed. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + # Required. An advanced logs filter which is used to match log entries. Example: # "resource.type=gae_app AND severity>=ERROR" # The maximum length of the filter is 20000 characters. @@ -964,79 +688,16 @@ module Google # @return [String] attr_accessor :description - # Output only. The API version that created or updated this metric. The version - # also dictates the syntax of the filter expression. When a value for this field - # is missing, the default value of V2 should be assumed. - # 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) + @version = args[:version] if args.key?(:version) @filter = args[:filter] if args.key?(:filter) @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) - @version = args[:version] if args.key?(:version) - end - end - - # Additional information about a potentially long-running operation with which a - # log entry is associated. - class LogEntryOperation - include Google::Apis::Core::Hashable - - # 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 - - # Optional. 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 - - # Optional. 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @last = args[:last] if args.key?(:last) - @id = args[:id] if args.key?(:id) - @producer = args[:producer] if args.key?(:producer) - @first = args[:first] if args.key?(:first) - 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 @@ -1088,6 +749,21 @@ module Google class LogSink include Google::Apis::Core::Hashable + # Optional. The log entry format to use for this sink's exported log entries. + # The v2 format is used by default. The v1 format is deprecated and should be + # used only as part of a migration effort to v2. See Migration to the v2 API. + # Corresponds to the JSON property `outputVersionFormat` + # @return [String] + attr_accessor :output_version_format + + # Required. The client-assigned sink identifier, unique within the project. + # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 + # characters and can include only the following characters: upper and lower-case + # alphanumeric characters, underscores, hyphens, and periods. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Optional. This field applies only to sinks owned by organizations and folders. # If the field is false, the default, only the logs owned by the sink's parent # resource are available for export. If the field is true, then logs from all @@ -1105,15 +781,6 @@ module Google attr_accessor :include_children alias_method :include_children?, :include_children - # Optional. An advanced logs filter. The only exported log entries are those - # that are in the resource owning the sink and that match the filter. The filter - # must use the log entry format specified by the output_version_format parameter. - # For example, in the v2 format: - # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR - # Corresponds to the JSON property `filter` - # @return [String] - attr_accessor :filter - # Required. The export destination: # "storage.googleapis.com/[GCS_BUCKET]" # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" @@ -1125,6 +792,15 @@ module Google # @return [String] attr_accessor :destination + # Optional. An advanced logs filter. The only exported log entries are those + # that are in the resource owning the sink and that match the filter. The filter + # must use the log entry format specified by the output_version_format parameter. + # For example, in the v2 format: + # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + # Optional. The time at which this sink will stop exporting log entries. Log # entries are exported only if their timestamp is earlier than the end time. If # this field is not supplied, there is no end time. If both a start time and an @@ -1153,35 +829,20 @@ module Google # @return [String] attr_accessor :writer_identity - # Optional. The log entry format to use for this sink's exported log entries. - # The v2 format is used by default. The v1 format is deprecated and should be - # used only as part of a migration effort to v2. See Migration to the v2 API. - # Corresponds to the JSON property `outputVersionFormat` - # @return [String] - attr_accessor :output_version_format - - # Required. The client-assigned sink identifier, unique within the project. - # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 - # characters and can include only the following characters: upper and lower-case - # alphanumeric characters, underscores, hyphens, and periods. - # 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) + @output_version_format = args[:output_version_format] if args.key?(:output_version_format) + @name = args[:name] if args.key?(:name) @include_children = args[:include_children] if args.key?(:include_children) - @filter = args[:filter] if args.key?(:filter) @destination = args[:destination] if args.key?(:destination) + @filter = args[:filter] if args.key?(:filter) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @writer_identity = args[:writer_identity] if args.key?(:writer_identity) - @output_version_format = args[:output_version_format] if args.key?(:output_version_format) - @name = args[:name] if args.key?(:name) end end @@ -1189,19 +850,6 @@ module Google class WriteLogEntriesRequest include Google::Apis::Core::Hashable - # Optional. A default log resource name that is assigned to all log entries in - # entries that do not specify a value for log_name: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - # Required. The log entries to write. Values supplied for the fields log_name, # resource, and labels in this entries.write request are inserted into those log # entries in this list that do not provide their own values.Stackdriver Logging @@ -1216,6 +864,19 @@ module Google # @return [Array] attr_accessor :entries + # Optional. A default log resource name that is assigned to all log entries in + # entries that do not specify a value for log_name: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + # Optional. Whether valid entries should be written even if some other entries # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not # written, then the response status is the error associated with one of the @@ -1255,8 +916,8 @@ module Google # Update properties of this object def update!(**args) - @log_name = args[:log_name] if args.key?(:log_name) @entries = args[:entries] if args.key?(:entries) + @log_name = args[:log_name] if args.key?(:log_name) @partial_success = args[:partial_success] if args.key?(:partial_success) @labels = args[:labels] if args.key?(:labels) @resource = args[:resource] if args.key?(:resource) @@ -1267,6 +928,12 @@ module Google class ListLogsResponse include Google::Apis::Core::Hashable + # A list of log names. For example, "projects/my-project/syslog" or " + # organizations/123/cloudresourcemanager.googleapis.com%2Factivity". + # Corresponds to the JSON property `logNames` + # @return [Array] + attr_accessor :log_names + # If there might be more results than those appearing in this response, then # nextPageToken is included. To get the next set of results, call this method # again using the value of nextPageToken as pageToken. @@ -1274,11 +941,32 @@ module Google # @return [String] attr_accessor :next_page_token - # A list of log names. For example, "projects/my-project/syslog" or " - # organizations/123/cloudresourcemanager.googleapis.com%2Factivity". - # Corresponds to the JSON property `logNames` - # @return [Array] - attr_accessor :log_names + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_names = args[:log_names] if args.key?(:log_names) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Result returned from ListSinks. + class ListSinksResponse + include Google::Apis::Core::Hashable + + # If there might be more results than appear in this response, then + # nextPageToken is included. To get the next set of results, call the same + # method again using the value of nextPageToken as pageToken. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of sinks. + # Corresponds to the JSON property `sinks` + # @return [Array] + attr_accessor :sinks def initialize(**args) update!(**args) @@ -1287,7 +975,319 @@ module Google # Update properties of this object def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @log_names = args[:log_names] if args.key?(:log_names) + @sinks = args[:sinks] if args.key?(:sinks) + end + end + + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. + 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 size of the HTTP request message in bytes, including the request headers + # and the request body. + # Corresponds to the JSON property `requestSize` + # @return [Fixnum] + attr_accessor :request_size + + # 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 [Fixnum] + attr_accessor :response_size + + # 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 IP address (IPv4 or IPv6) of the origin server that the request was sent + # to. + # Corresponds to the JSON property `serverIp` + # @return [String] + attr_accessor :server_ip + + # 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 + + # Whether or not a cache lookup was attempted. + # Corresponds to the JSON property `cacheLookup` + # @return [Boolean] + attr_accessor :cache_lookup + alias_method :cache_lookup?, :cache_lookup + + # 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 `cacheValidatedWithOriginServer` + # @return [Boolean] + attr_accessor :cache_validated_with_origin_server + alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server + + # The response code indicating the status of response. Examples: 200, 404. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # 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 + + # The request processing latency on the server, from the time the request was + # received until the response was sent. + # Corresponds to the JSON property `latency` + # @return [String] + attr_accessor :latency + + # 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 number of HTTP response bytes inserted into cache. Set only when a cache + # fill was attempted. + # Corresponds to the JSON property `cacheFillBytes` + # @return [Fixnum] + attr_accessor :cache_fill_bytes + + 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_size = args[:request_size] if args.key?(:request_size) + @response_size = args[:response_size] if args.key?(:response_size) + @request_url = args[:request_url] if args.key?(:request_url) + @server_ip = args[:server_ip] if args.key?(:server_ip) + @remote_ip = args[:remote_ip] if args.key?(:remote_ip) + @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup) + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server) + @status = args[:status] if args.key?(:status) + @referer = args[:referer] if args.key?(:referer) + @latency = args[:latency] if args.key?(:latency) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes) + 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 + + # A human-readable description for the label. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The type of data that can be assigned to the label. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @description = args[:description] if args.key?(:description) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + + # An object that describes the schema of a MonitoredResource object using a type + # name and a set of labels. For example, the monitored resource descriptor for + # Google Compute Engine VM instances has a type of "gce_instance" and specifies + # the use of the labels "instance_id" and "zone" to identify particular VM + # instances.Different APIs can support different monitored resource types. APIs + # generally provide a list method that returns the monitored resource + # descriptors used by the API. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # Required. A set of labels used to describe instances of this monitored + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels "database_id" and "zone". + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Optional. The resource name of the monitored resource descriptor: "projects/` + # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of + # the type field in this object and `project_id` is a project ID that provides + # API-specific context for accessing the type. APIs that do not use project + # information can use the resource name format "monitoredResourceDescriptors/` + # type`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A detailed description of the monitored resource type that might be + # used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A concise name for the monitored resource type that might be + # displayed in user interfaces. It should be a Title Cased Noun Phrase, without + # any article or other determiners. For example, "Google Cloud SQL Database". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The monitored resource type. For example, the type " + # cloudsql_database" represents databases in Google Cloud SQL. The maximum + # length of this value is 256 characters. + # 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) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @type = args[:type] if args.key?(:type) + end + end + + # Additional information about the source code location that produced the log + # entry. + class LogEntrySourceLocation + include Google::Apis::Core::Hashable + + # Optional. 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 + + # Optional. Human-readable name of the function or method being invoked, with + # optional context such as the class or package name. This information may be + # 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 `function` + # @return [String] + attr_accessor :function + + # Optional. Line within the source file. 1-based; 0 indicates no line number + # available. + # Corresponds to the JSON property `line` + # @return [Fixnum] + attr_accessor :line + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file = args[:file] if args.key?(:file) + @function = args[:function] if args.key?(:function) + @line = args[:line] if args.key?(:line) + end + end + + # Result returned from ListLogEntries. + class ListLogEntriesResponse + include Google::Apis::Core::Hashable + + # If there might be more results than those appearing in this response, then + # nextPageToken is included. To get the next set of results, call this method + # again using the value of nextPageToken as pageToken.If a value for + # next_page_token appears and the entries field is empty, it means that the + # search found no log entries so far but it did not have time to search all the + # possible log entries. Retry the method with this value for page_token to + # continue the search. Alternatively, consider speeding up the search by + # changing your filter to specify a single log name or resource type, or to + # narrow the time range of the search. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of log entries. + # 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @entries = args[:entries] if args.key?(:entries) + end + end + + # Application log line emitted while processing a request. + class LogLine + include Google::Apis::Core::Hashable + + # App-provided log message. + # Corresponds to the JSON property `logMessage` + # @return [String] + attr_accessor :log_message + + # Severity of this log entry. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Specifies a location in a source code file. + # Corresponds to the JSON property `sourceLocation` + # @return [Google::Apis::LoggingV2::SourceLocation] + attr_accessor :source_location + + # Approximate time when this log entry was made. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_message = args[:log_message] if args.key?(:log_message) + @severity = args[:severity] if args.key?(:severity) + @source_location = args[:source_location] if args.key?(:source_location) + @time = args[:time] if args.key?(:time) end end end diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index 7f51a17a6..3108fa20b 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -22,61 +22,19 @@ module Google module Apis module LoggingV2 - class HttpRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListSinksResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LabelDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MonitoredResourceDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogEntrySourceLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListLogEntriesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogLine - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListLogMetricsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Empty + class LogEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LogEntry + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -112,7 +70,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LogMetric + class WriteLogEntriesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -124,7 +82,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class WriteLogEntriesResponse + class LogMetric class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -154,83 +112,46 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class HttpRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latency, as: 'latency' - property :user_agent, as: 'userAgent' - property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes' - property :request_method, as: 'requestMethod' - property :request_size, :numeric_string => true, as: 'requestSize' - property :response_size, :numeric_string => true, as: 'responseSize' - property :request_url, as: 'requestUrl' - property :remote_ip, as: 'remoteIp' - property :server_ip, as: 'serverIp' - property :cache_lookup, as: 'cacheLookup' - property :cache_hit, as: 'cacheHit' - property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer' - property :status, as: 'status' - property :referer, as: 'referer' - end + class ListSinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class ListSinksResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation + class HttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class LabelDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :description, as: 'description' - property :value_type, as: 'valueType' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class MonitoredResourceDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :display_name, as: 'displayName' - property :description, as: 'description' - property :type, as: 'type' - collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class LogEntrySourceLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :file, as: 'file' - property :function, as: 'function' - property :line, :numeric_string => true, as: 'line' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ListLogEntriesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :next_page_token, as: 'nextPageToken' - end + include Google::Apis::Core::JsonObjectSupport 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::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ListLogMetricsResponse @@ -242,18 +163,20 @@ module Google end end - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class LogEntry # @private class Representation < Google::Apis::Core::JsonRepresentation - property :insert_id, as: 'insertId' + property :timestamp, as: 'timestamp' + property :receive_timestamp, as: 'receiveTimestamp' + property :log_name, as: 'logName' + property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation + + property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation + + hash :json_payload, as: 'jsonPayload' property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation + property :insert_id, as: 'insertId' property :text_payload, as: 'textPayload' hash :proto_payload, as: 'protoPayload' property :trace, as: 'trace' @@ -261,14 +184,12 @@ module Google property :severity, as: 'severity' property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation - property :receive_timestamp, as: 'receiveTimestamp' - property :timestamp, as: 'timestamp' - property :log_name, as: 'logName' - property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation + end + end - property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation - - hash :json_payload, as: 'jsonPayload' + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation end end @@ -284,18 +205,25 @@ module Google class ListLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :page_size, as: 'pageSize' property :order_by, as: 'orderBy' collection :resource_names, as: 'resourceNames' - collection :project_ids, as: 'projectIds' property :filter, as: 'filter' + collection :project_ids, as: 'projectIds' property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' end end class RequestLog # @private class Representation < Google::Apis::Core::JsonRepresentation + property :latency, as: 'latency' + property :ip, as: 'ip' + property :app_id, as: 'appId' + property :app_engine_release, as: 'appEngineRelease' + property :method_prop, as: 'method' + property :cost, as: 'cost' + property :instance_id, as: 'instanceId' property :mega_cycles, :numeric_string => true, as: 'megaCycles' property :first, as: 'first' property :version_id, as: 'versionId' @@ -309,36 +237,29 @@ module Google property :trace_id, as: 'traceId' collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation - property :referrer, as: 'referrer' property :task_queue_name, as: 'taskQueueName' + property :referrer, as: 'referrer' property :request_id, as: 'requestId' property :nickname, as: 'nickname' - property :status, as: 'status' - property :resource, as: 'resource' property :pending_time, as: 'pendingTime' + property :resource, as: 'resource' + property :status, as: 'status' property :task_name, as: 'taskName' property :url_map_entry, as: 'urlMapEntry' property :instance_index, as: 'instanceIndex' - property :host, as: 'host' property :finished, as: 'finished' + property :host, as: 'host' property :http_version, as: 'httpVersion' property :start_time, as: 'startTime' - property :latency, as: 'latency' - property :ip, as: 'ip' - property :app_id, as: 'appId' - property :app_engine_release, as: 'appEngineRelease' - property :method_prop, as: 'method' - property :cost, as: 'cost' - property :instance_id, as: 'instanceId' end end class ListMonitoredResourceDescriptorsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::Representation + property :next_page_token, as: 'nextPageToken' end end @@ -350,29 +271,29 @@ module Google end end - class LogMetric + class WriteLogEntriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :filter, as: 'filter' - property :name, as: 'name' - property :description, as: 'description' - property :version, as: 'version' end end class LogEntryOperation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :last, as: 'last' property :id, as: 'id' - property :producer, as: 'producer' property :first, as: 'first' + property :producer, as: 'producer' + property :last, as: 'last' end end - class WriteLogEntriesResponse + class LogMetric # @private class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + property :filter, as: 'filter' + property :name, as: 'name' + property :description, as: 'description' end end @@ -387,23 +308,23 @@ module Google class LogSink # @private class Representation < Google::Apis::Core::JsonRepresentation + property :output_version_format, as: 'outputVersionFormat' + property :name, as: 'name' property :include_children, as: 'includeChildren' - property :filter, as: 'filter' property :destination, as: 'destination' + property :filter, as: 'filter' property :end_time, as: 'endTime' property :start_time, as: 'startTime' property :writer_identity, as: 'writerIdentity' - property :output_version_format, as: 'outputVersionFormat' - property :name, as: 'name' end end class WriteLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :log_name, as: 'logName' collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation + property :log_name, as: 'logName' property :partial_success, as: 'partialSuccess' hash :labels, as: 'labels' property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation @@ -414,8 +335,87 @@ module Google class ListLogsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :log_names, as: 'logNames' + property :next_page_token, as: 'nextPageToken' + end + end + + class ListSinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation + + end + end + + class HttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_method, as: 'requestMethod' + property :request_size, :numeric_string => true, as: 'requestSize' + property :response_size, :numeric_string => true, as: 'responseSize' + property :request_url, as: 'requestUrl' + property :server_ip, as: 'serverIp' + property :remote_ip, as: 'remoteIp' + property :cache_lookup, as: 'cacheLookup' + property :cache_hit, as: 'cacheHit' + property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer' + property :status, as: 'status' + property :referer, as: 'referer' + property :latency, as: 'latency' + property :user_agent, as: 'userAgent' + property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes' + end + end + + class LabelDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :description, as: 'description' + property :value_type, as: 'valueType' + end + end + + class MonitoredResourceDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation + + property :name, as: 'name' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :type, as: 'type' + end + end + + class LogEntrySourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file, as: 'file' + property :function, as: 'function' + property :line, :numeric_string => true, as: 'line' + end + end + + class ListLogEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation + + end + end + + class LogLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_message, as: 'logMessage' + property :severity, as: 'severity' + property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation + + property :time, as: 'time' end end end diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index dcb45bd95..a82f80e02 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -47,96 +47,9 @@ module Google @batch_path = 'batch' end - # Deletes all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+logName}', options) - command.response_representation = Google::Apis::LoggingV2::Empty::Representation - command.response_class = Google::Apis::LoggingV2::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 the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListLogsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::ListLogsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListLogsResponse - command.params['parent'] = parent unless parent.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 - - # Deletes a sink. If the sink has a unique writer_identity, then that service - # account is also deleted. + # Gets a sink. # @param [String] sink_name - # Required. The full resource name of the sink to delete, including the parent - # resource and the sink identifier: + # Required. The resource name of the sink: # "projects/[PROJECT_ID]/sinks/[SINK_ID]" # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" @@ -151,18 +64,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2::Empty] + # @return [Google::Apis::LoggingV2::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 delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+sinkName}', options) - command.response_representation = Google::Apis::LoggingV2::Empty::Representation - command.response_class = Google::Apis::LoggingV2::Empty + def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+sinkName}', options) + command.response_representation = Google::Apis::LoggingV2::LogSink::Representation + command.response_class = Google::Apis::LoggingV2::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? @@ -214,41 +127,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets a sink. - # @param [String] sink_name - # Required. The resource name of the sink: - # "projects/[PROJECT_ID]/sinks/[SINK_ID]" - # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - # "folders/[FOLDER_ID]/sinks/[SINK_ID]" - # 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::LoggingV2::LogSink] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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, 'v2/{+sinkName}', options) - command.response_representation = Google::Apis::LoggingV2::LogSink::Representation - command.response_class = Google::Apis::LoggingV2::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 - # Updates a sink. If the named sink doesn't exist, then this method is identical # to sinks.create. If the named sink does exist, then this method replaces the # following fields in the existing sink with values from the new sink: @@ -357,6 +235,128 @@ module Google execute_or_queue_command(command, &block) end + # Deletes a sink. If the sink has a unique writer_identity, then that service + # account is also deleted. + # @param [String] sink_name + # Required. The full resource name of the sink to delete, including the parent + # resource and the sink identifier: + # "projects/[PROJECT_ID]/sinks/[SINK_ID]" + # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + # "folders/[FOLDER_ID]/sinks/[SINK_ID]" + # 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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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, 'v2/{+sinkName}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 + + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+logName}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLogsResponse + command.params['parent'] = parent unless parent.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 + # Deletes a logs-based metric. # @param [String] metric_name # The resource name of the metric to delete: @@ -388,48 +388,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists logs-based metrics. - # @param [String] parent - # Required. The name of the project containing the metrics: - # "projects/[PROJECT_ID]" - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListLogMetricsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/metrics', options) - command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse - command.params['parent'] = parent unless parent.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Gets a logs-based metric. # @param [String] metric_name # The resource name of the desired metric: @@ -461,6 +419,48 @@ module Google execute_or_queue_command(command, &block) end + # Lists logs-based metrics. + # @param [String] parent + # Required. The name of the project containing the metrics: + # "projects/[PROJECT_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListLogMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/metrics', options) + command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse + command.params['parent'] = parent unless parent.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 + # Creates or updates a logs-based metric. # @param [String] metric_name # The resource name of the metric to update: @@ -533,18 +533,14 @@ module Google execute_or_queue_command(command, &block) end - # Deletes all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. + # Gets a sink. + # @param [String] sink_name + # Required. The resource name of the sink: + # "projects/[PROJECT_ID]/sinks/[SINK_ID]" + # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + # "folders/[FOLDER_ID]/sinks/[SINK_ID]" + # 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 @@ -554,65 +550,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object + # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2::Empty] + # @return [Google::Apis::LoggingV2::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 delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+logName}', options) - command.response_representation = Google::Apis::LoggingV2::Empty::Representation - command.response_class = Google::Apis::LoggingV2::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 the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListLogsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::ListLogsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListLogsResponse - command.params['parent'] = parent unless parent.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? + def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+sinkName}', options) + command.response_representation = Google::Apis::LoggingV2::LogSink::Representation + command.response_class = Google::Apis::LoggingV2::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) @@ -663,41 +613,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets a sink. - # @param [String] sink_name - # Required. The resource name of the sink: - # "projects/[PROJECT_ID]/sinks/[SINK_ID]" - # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - # "folders/[FOLDER_ID]/sinks/[SINK_ID]" - # 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::LoggingV2::LogSink] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+sinkName}', options) - command.response_representation = Google::Apis::LoggingV2::LogSink::Representation - command.response_class = Google::Apis::LoggingV2::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 - # Updates a sink. If the named sink doesn't exist, then this method is identical # to sinks.create. If the named sink does exist, then this method replaces the # following fields in the existing sink with values from the new sink: @@ -843,45 +758,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+logName}', options) - command.response_representation = Google::Apis::LoggingV2::Empty::Representation - command.response_class = Google::Apis::LoggingV2::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 the logs in projects, organizations, folders, or billing accounts. Only # logs that have entries are listed. # @param [String] parent @@ -916,7 +792,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_folder_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse @@ -928,6 +804,45 @@ module Google execute_or_queue_command(command, &block) end + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+logName}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 + # Deletes a sink. If the sink has a unique writer_identity, then that service # account is also deleted. # @param [String] sink_name @@ -965,51 +880,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists sinks. - # @param [String] parent - # Required. The parent resource whose sinks are to be listed: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListSinksResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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_folder_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/sinks', options) - command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListSinksResponse - command.params['parent'] = parent unless parent.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 # Required. The resource name of the sink: @@ -1045,6 +915,51 @@ module Google execute_or_queue_command(command, &block) end + # Lists sinks. + # @param [String] parent + # Required. The parent resource whose sinks are to be listed: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListSinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_folder_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/sinks', options) + command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListSinksResponse + command.params['parent'] = parent unless parent.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 a sink. If the named sink doesn't exist, then this method is identical # to sinks.create. If the named sink does exist, then this method replaces the # following fields in the existing sink with values from the new sink: @@ -1153,6 +1068,91 @@ module Google execute_or_queue_command(command, &block) end + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+logName}', options) + command.response_representation = Google::Apis::LoggingV2::Empty::Representation + command.response_class = Google::Apis::LoggingV2::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 the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_folder_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLogsResponse + command.params['parent'] = parent unless parent.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 + # Lists the descriptors for monitored resource types used by Stackdriver Logging. # @param [String] page_token # Optional. If present, then retrieve the next batch of results from the @@ -1191,64 +1191,16 @@ module Google execute_or_queue_command(command, &block) end - # Lists the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListLogsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::ListLogsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListLogsResponse - command.params['parent'] = parent unless parent.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 all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. + # Deletes a sink. If the sink has a unique writer_identity, then that service + # account is also deleted. + # @param [String] sink_name + # Required. The full resource name of the sink to delete, including the parent + # resource and the sink identifier: + # "projects/[PROJECT_ID]/sinks/[SINK_ID]" + # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + # "folders/[FOLDER_ID]/sinks/[SINK_ID]" + # 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 @@ -1266,56 +1218,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+logName}', options) + def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+sinkName}', options) command.response_representation = Google::Apis::LoggingV2::Empty::Representation command.response_class = Google::Apis::LoggingV2::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] parent - # Required. The parent resource whose sinks are to be listed: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::LoggingV2::ListSinksResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2::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_organization_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/{+parent}/sinks', options) - command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation - command.response_class = Google::Apis::LoggingV2::ListSinksResponse - command.params['parent'] = parent unless parent.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? + 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) @@ -1356,6 +1263,51 @@ module Google execute_or_queue_command(command, &block) end + # Lists sinks. + # @param [String] parent + # Required. The parent resource whose sinks are to be listed: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListSinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_organization_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/sinks', options) + command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListSinksResponse + command.params['parent'] = parent unless parent.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 a sink. If the named sink doesn't exist, then this method is identical # to sinks.create. If the named sink does exist, then this method replaces the # following fields in the existing sink with values from the new sink: @@ -1464,16 +1416,18 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a sink. If the sink has a unique writer_identity, then that service - # account is also deleted. - # @param [String] sink_name - # Required. The full resource name of the sink to delete, including the parent - # resource and the sink identifier: - # "projects/[PROJECT_ID]/sinks/[SINK_ID]" - # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - # "folders/[FOLDER_ID]/sinks/[SINK_ID]" - # Example: "projects/my-project-id/sinks/my-sink-id". + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1491,11 +1445,57 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/{+sinkName}', options) + def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+logName}', options) command.response_representation = Google::Apis::LoggingV2::Empty::Representation command.response_class = Google::Apis::LoggingV2::Empty - command.params['sinkName'] = sink_name unless sink_name.nil? + 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 the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLogsResponse + command.params['parent'] = parent unless parent.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) diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index e721502a3..02960f8a2 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -25,19 +25,19 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20170605' + REVISION = '20170710' - # 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' + # Submit log data for your projects + AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write' # 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' + # Administrate log data for your projects + AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index f49a1281e..b5979dd99 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -22,815 +22,10 @@ module Google module Apis module LoggingV2beta1 - # The parameters to WriteLogEntries. - class WriteLogEntriesRequest - include Google::Apis::Core::Hashable - - # Optional. Whether valid entries should be written even if some other entries - # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not - # written, then the response status is the error associated with one of the - # failed entries and the response includes error details keyed by the entries' - # zero-based index in the entries.write method. - # Corresponds to the JSON property `partialSuccess` - # @return [Boolean] - attr_accessor :partial_success - alias_method :partial_success?, :partial_success - - # Optional. Default labels that are added to the labels field of all log entries - # in entries. If a log entry already has a label with the same key as a label in - # this parameter, then the log entry's label is not changed. See LogEntry. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - # Corresponds to the JSON property `resource` - # @return [Google::Apis::LoggingV2beta1::MonitoredResource] - attr_accessor :resource - - # Optional. A default log resource name that is assigned to all log entries in - # entries that do not specify a value for log_name: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - # Required. The log entries to write. Values supplied for the fields log_name, - # resource, and labels in this entries.write request are inserted into those log - # entries in this list that do not provide their own values.Stackdriver Logging - # also creates and inserts values for timestamp and insert_id if the entries do - # not provide them. The created insert_id for the N'th entry in this list will - # be greater than earlier entries and less than later entries. Otherwise, the - # order of log entries in this list does not matter.To improve throughput and to - # avoid exceeding the quota limit for calls to entries.write, you should write - # multiple log entries at once rather than calling this method for each - # individual log entry. - # 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) - @partial_success = args[:partial_success] if args.key?(:partial_success) - @labels = args[:labels] if args.key?(:labels) - @resource = args[:resource] if args.key?(:resource) - @log_name = args[:log_name] if args.key?(:log_name) - @entries = args[:entries] if args.key?(:entries) - end - end - - # Describes a sink used to export log entries to one of the following - # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a - # Cloud Pub/Sub topic. A logs filter controls which log entries are exported. - # The sink must be created within a project, organization, billing account, or - # folder. - class LogSink - include Google::Apis::Core::Hashable - - # Optional. This field applies only to sinks owned by organizations and folders. - # If the field is false, the default, only the logs owned by the sink's parent - # resource are available for export. If the field is true, then logs from all - # the projects, folders, and billing accounts contained in the sink's parent - # resource are also available for export. Whether a particular log entry from - # the children is exported depends on the sink's filter expression. For example, - # if this field is true, then the filter resource.type=gce_instance would export - # all Compute Engine VM instance log entries from all projects in the sink's - # parent. To only export entries from certain child projects, filter on the - # project part of the log name: - # logName:("projects/test-project1/" OR "projects/test-project2/") AND - # resource.type=gce_instance - # Corresponds to the JSON property `includeChildren` - # @return [Boolean] - attr_accessor :include_children - alias_method :include_children?, :include_children - - # Required. The export destination: - # "storage.googleapis.com/[GCS_BUCKET]" - # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" - # "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - # The sink's writer_identity, set when the sink is created, must have permission - # to write to the destination or else the log entries are not exported. For more - # information, see Exporting Logs With Sinks. - # Corresponds to the JSON property `destination` - # @return [String] - attr_accessor :destination - - # Optional. An advanced logs filter. The only exported log entries are those - # that are in the resource owning the sink and that match the filter. The filter - # must use the log entry format specified by the output_version_format parameter. - # For example, in the v2 format: - # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR - # Corresponds to the JSON property `filter` - # @return [String] - attr_accessor :filter - - # Optional. The time at which this sink will stop exporting log entries. Log - # entries are exported only if their timestamp is earlier than the end time. If - # this field is not supplied, there is no end time. If both a start time and an - # end time are provided, then the end time must be later than the start time. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Output only. An IAM identity—a service account or group—under - # which Stackdriver Logging writes the exported log entries to the sink's - # destination. This field is set by sinks.create and sinks.update, based on the - # setting of unique_writer_identity in those methods.Until you grant this - # identity write-access to the destination, log entry exports from this sink - # will fail. For more information, see Granting access for a resource. Consult - # the destination service's documentation to determine the appropriate IAM roles - # to assign to the identity. - # Corresponds to the JSON property `writerIdentity` - # @return [String] - attr_accessor :writer_identity - - # Optional. The time at which this sink will begin exporting log entries. Log - # entries are exported only if their timestamp is not earlier than the start - # time. The default value of this field is the time the sink is created or - # updated. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Optional. The log entry format to use for this sink's exported log entries. - # The v2 format is used by default. The v1 format is deprecated and should be - # used only as part of a migration effort to v2. See Migration to the v2 API. - # Corresponds to the JSON property `outputVersionFormat` - # @return [String] - attr_accessor :output_version_format - - # Required. The client-assigned sink identifier, unique within the project. - # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 - # characters and can include only the following characters: upper and lower-case - # alphanumeric characters, underscores, hyphens, and periods. - # 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) - @include_children = args[:include_children] if args.key?(:include_children) - @destination = args[:destination] if args.key?(:destination) - @filter = args[:filter] if args.key?(:filter) - @end_time = args[:end_time] if args.key?(:end_time) - @writer_identity = args[:writer_identity] if args.key?(:writer_identity) - @start_time = args[:start_time] if args.key?(:start_time) - @output_version_format = args[:output_version_format] if args.key?(:output_version_format) - @name = args[:name] if args.key?(:name) - end - end - - # Result returned from ListLogs. - class ListLogsResponse - include Google::Apis::Core::Hashable - - # If there might be more results than those appearing in this response, then - # nextPageToken is included. To get the next set 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 - - # A list of log names. For example, "projects/my-project/syslog" or " - # organizations/123/cloudresourcemanager.googleapis.com%2Factivity". - # Corresponds to the JSON property `logNames` - # @return [Array] - attr_accessor :log_names - - 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) - @log_names = args[:log_names] if args.key?(:log_names) - end - end - - # A common proto for logging HTTP requests. Only contains semantics defined by - # the HTTP specification. Product-specific logging information MUST be defined - # in a separate message. - class HttpRequest - include Google::Apis::Core::Hashable - - # 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 request processing latency on the server, from the time the request was - # received until the response was sent. - # Corresponds to the JSON property `latency` - # @return [String] - attr_accessor :latency - - # The number of HTTP response bytes inserted into cache. Set only when a cache - # fill was attempted. - # Corresponds to the JSON property `cacheFillBytes` - # @return [Fixnum] - attr_accessor :cache_fill_bytes - - # The request method. Examples: "GET", "HEAD", "PUT", "POST". - # Corresponds to the JSON property `requestMethod` - # @return [String] - attr_accessor :request_method - - # 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 [Fixnum] - attr_accessor :response_size - - # The size of the HTTP request message in bytes, including the request headers - # and the request body. - # Corresponds to the JSON property `requestSize` - # @return [Fixnum] - attr_accessor :request_size - - # 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 IP address (IPv4 or IPv6) of the origin server that the request was sent - # to. - # Corresponds to the JSON property `serverIp` - # @return [String] - attr_accessor :server_ip - - # 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 - - # Whether or not a cache lookup was attempted. - # Corresponds to the JSON property `cacheLookup` - # @return [Boolean] - attr_accessor :cache_lookup - alias_method :cache_lookup?, :cache_lookup - - # 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 `cacheValidatedWithOriginServer` - # @return [Boolean] - attr_accessor :cache_validated_with_origin_server - alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server - - # The response code indicating the status of response. Examples: 200, 404. - # Corresponds to the JSON property `status` - # @return [Fixnum] - attr_accessor :status - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @user_agent = args[:user_agent] if args.key?(:user_agent) - @latency = args[:latency] if args.key?(:latency) - @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes) - @request_method = args[:request_method] if args.key?(:request_method) - @response_size = args[:response_size] if args.key?(:response_size) - @request_size = args[:request_size] if args.key?(:request_size) - @request_url = args[:request_url] if args.key?(:request_url) - @server_ip = args[:server_ip] if args.key?(:server_ip) - @remote_ip = args[:remote_ip] if args.key?(:remote_ip) - @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup) - @cache_hit = args[:cache_hit] if args.key?(:cache_hit) - @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server) - @status = args[:status] if args.key?(:status) - @referer = args[:referer] if args.key?(:referer) - 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 might be more results than appear in this response, then - # nextPageToken is included. To get the next set of results, call the same - # 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 - - # A description of a label. - class LabelDescriptor - include Google::Apis::Core::Hashable - - # The type of data that can be assigned to the label. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - # The label key. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # 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) - @value_type = args[:value_type] if args.key?(:value_type) - @key = args[:key] if args.key?(:key) - @description = args[:description] if args.key?(:description) - end - end - - # An object that describes the schema of a MonitoredResource object using a type - # name and a set of labels. For example, the monitored resource descriptor for - # Google Compute Engine VM instances has a type of "gce_instance" and specifies - # the use of the labels "instance_id" and "zone" to identify particular VM - # instances.Different APIs can support different monitored resource types. APIs - # generally provide a list method that returns the monitored resource - # descriptors used by the API. - class MonitoredResourceDescriptor - include Google::Apis::Core::Hashable - - # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels "database_id" and "zone". - # Corresponds to the JSON property `labels` - # @return [Array] - attr_accessor :labels - - # Optional. The resource name of the monitored resource descriptor: "projects/` - # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of - # the type field in this object and `project_id` is a project ID that provides - # API-specific context for accessing the type. APIs that do not use project - # information can use the resource name format "monitoredResourceDescriptors/` - # type`". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. A concise name for the monitored resource type that might be - # displayed in user interfaces. It should be a Title Cased Noun Phrase, without - # any article or other determiners. For example, "Google Cloud SQL Database". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Optional. A detailed description of the monitored resource type that might be - # used in documentation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The monitored resource type. For example, the type " - # cloudsql_database" represents databases in Google Cloud SQL. The maximum - # length of this value is 256 characters. - # 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) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @type = args[:type] if args.key?(:type) - end - end - - # Additional information about the source code location that produced the log - # entry. - class LogEntrySourceLocation - include Google::Apis::Core::Hashable - - # Optional. 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 - - # Optional. Human-readable name of the function or method being invoked, with - # optional context such as the class or package name. This information may be - # 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 `function` - # @return [String] - attr_accessor :function - - # Optional. Line within the source file. 1-based; 0 indicates no line number - # available. - # Corresponds to the JSON property `line` - # @return [Fixnum] - attr_accessor :line - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file = args[:file] if args.key?(:file) - @function = args[:function] if args.key?(:function) - @line = args[:line] if args.key?(:line) - 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 might be more results than those appearing in this response, then - # nextPageToken is included. To get the next set of results, call this method - # again using the value of nextPageToken as pageToken.If a value for - # next_page_token appears and the entries field is empty, it means that the - # search found no log entries so far but it did not have time to search all the - # possible log entries. Retry the method with this value for page_token to - # continue the search. Alternatively, consider speeding up the search by - # changing your filter to specify a single log name or resource type, or to - # narrow the time range of the search. - # 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 - - # Application log line emitted while processing a request. - class LogLine - include Google::Apis::Core::Hashable - - # 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 - - # Approximate time when this log entry was made. - # Corresponds to the JSON property `time` - # @return [String] - attr_accessor :time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @time = args[:time] if args.key?(:time) - end - end - - # Result returned from ListLogMetrics. - class ListLogMetricsResponse - include Google::Apis::Core::Hashable - - # If there might be more results than appear in this response, then - # nextPageToken is included. To get the next set 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 - - # A list of logs-based metrics. - # Corresponds to the JSON property `metrics` - # @return [Array] - attr_accessor :metrics - - 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) - @metrics = args[:metrics] if args.key?(:metrics) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for Empty is empty JSON object ``. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # An individual entry in a log. - class LogEntry - include Google::Apis::Core::Hashable - - # 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 - - # Optional. Resource name of the trace associated with the log entry, if any. If - # it contains a relative resource name, the name is assumed to be relative to // - # tracing.googleapis.com. Example: projects/my-projectid/traces/ - # 06796866738c859f2f19b7cfb3214824 - # Corresponds to the JSON property `trace` - # @return [String] - attr_accessor :trace - - # Optional. The severity of the log entry. The default value is LogSeverity. - # DEFAULT. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - # Additional information about the source code location that produced the log - # entry. - # Corresponds to the JSON property `sourceLocation` - # @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation] - attr_accessor :source_location - - # Optional. The time the event described by the log entry occurred. If omitted - # in a new log entry, Stackdriver Logging will insert the time the log entry is - # received. Stackdriver Logging might reject log entries whose time stamps are - # more than a couple of hours in the future. Log entries with time stamps in the - # past are accepted. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - # Output only. The time the log entry was received by Stackdriver Logging. - # Corresponds to the JSON property `receiveTimestamp` - # @return [String] - attr_accessor :receive_timestamp - - # Required. The resource name of the log to which this log entry belongs: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/ - # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must - # be less than 512 characters long and can only include the following characters: - # upper and lower case alphanumeric characters, forward-slash, underscore, - # hyphen, and period.For backward compatibility, if log_name begins with a - # forward-slash, such as /projects/..., then the log entry is ingested as usual - # but the forward-slash is removed. Listing the log entry will not show the - # leading slash and filtering for a log name with a leading slash will never - # return any results. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - # Corresponds to the JSON property `resource` - # @return [Google::Apis::LoggingV2beta1::MonitoredResource] - attr_accessor :resource - - # A common proto for logging HTTP requests. Only contains semantics defined by - # the HTTP specification. Product-specific logging information MUST be defined - # in a separate message. - # Corresponds to the JSON property `httpRequest` - # @return [Google::Apis::LoggingV2beta1::HttpRequest] - attr_accessor :http_request - - # 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 - - # 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 - - # Optional. A unique identifier for the log entry. If you provide a value, then - # Stackdriver Logging considers other log entries in the same project, with the - # same timestamp, and with the same insert_id to be duplicates which can be - # removed. If omitted in new log entries, then Stackdriver Logging will insert - # its own unique identifier. The insert_id is used to order log entries that - # have the same timestamp value. - # Corresponds to the JSON property `insertId` - # @return [String] - attr_accessor :insert_id - - # 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 protocol buffer. Some Google Cloud - # Platform services use this field for their log entry payloads. - # Corresponds to the JSON property `protoPayload` - # @return [Hash] - attr_accessor :proto_payload - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @trace = args[:trace] if args.key?(:trace) - @severity = args[:severity] if args.key?(:severity) - @source_location = args[:source_location] if args.key?(:source_location) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp) - @log_name = args[:log_name] if args.key?(:log_name) - @resource = args[:resource] if args.key?(:resource) - @http_request = args[:http_request] if args.key?(:http_request) - @json_payload = args[:json_payload] if args.key?(:json_payload) - @operation = args[:operation] if args.key?(:operation) - @insert_id = args[:insert_id] if args.key?(:insert_id) - @text_payload = args[:text_payload] if args.key?(:text_payload) - @proto_payload = args[:proto_payload] if args.key?(:proto_payload) - end - end - - # Specifies a location in a source code file. - class SourceLocation - include Google::Apis::Core::Hashable - - # Line within the source file. - # Corresponds to the JSON property `line` - # @return [Fixnum] - attr_accessor :line - - # 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 - - # 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) - @line = args[:line] if args.key?(:line) - @file = args[:file] if args.key?(:file) - @function_name = args[:function_name] if args.key?(:function_name) - end - end - # The parameters to ListLogEntries. class ListLogEntriesRequest include Google::Apis::Core::Hashable - # Optional. A filter that chooses which log entries to return. See Advanced Logs - # Filters. Only log entries that match the filter are returned. An empty filter - # matches all log entries in the resources listed in resource_names. Referencing - # a parent resource that is not listed in resource_names will cause the filter - # to return no results. The maximum length of the filter is 20000 characters. - # Corresponds to the JSON property `filter` - # @return [String] - attr_accessor :filter - - # Deprecated. Use resource_names instead. One or more project identifiers or - # project numbers from which to retrieve log entries. Example: "my-project-1A". - # If present, these project identifiers are converted to resource name format - # and added to the list of resources in resource_names. - # Corresponds to the JSON property `projectIds` - # @return [Array] - attr_accessor :project_ids - - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. page_token must be the value of next_page_token - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of next_page_token in the response - # indicates that more results might be available. - # Corresponds to the JSON property `pageSize` - # @return [Fixnum] - attr_accessor :page_size - # Optional. How the results should be sorted. Presently, the only permitted # values are "timestamp asc" (default) and "timestamp desc". The first option # returns entries in order of increasing values of LogEntry.timestamp (oldest @@ -852,18 +47,50 @@ module Google # @return [Array] attr_accessor :resource_names + # Deprecated. Use resource_names instead. One or more project identifiers or + # project numbers from which to retrieve log entries. Example: "my-project-1A". + # If present, these project identifiers are converted to resource name format + # and added to the list of resources in resource_names. + # Corresponds to the JSON property `projectIds` + # @return [Array] + attr_accessor :project_ids + + # Optional. A filter that chooses which log entries to return. See Advanced Logs + # Filters. Only log entries that match the filter are returned. An empty filter + # matches all log entries in the resources listed in resource_names. Referencing + # a parent resource that is not listed in resource_names will cause the filter + # to return no results. The maximum length of the filter is 20000 characters. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. page_token must be the value of next_page_token + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of next_page_token in the response + # indicates that more results might be available. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @filter = args[:filter] if args.key?(:filter) - @project_ids = args[:project_ids] if args.key?(:project_ids) - @page_token = args[:page_token] if args.key?(:page_token) - @page_size = args[:page_size] if args.key?(:page_size) @order_by = args[:order_by] if args.key?(:order_by) @resource_names = args[:resource_names] if args.key?(:resource_names) + @project_ids = args[:project_ids] if args.key?(:project_ids) + @filter = args[:filter] if args.key?(:filter) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -872,6 +99,54 @@ module Google class RequestLog include Google::Apis::Core::Hashable + # Origin IP address. + # Corresponds to the JSON property `ip` + # @return [String] + attr_accessor :ip + + # Application that handled this request. + # Corresponds to the JSON property `appId` + # @return [String] + attr_accessor :app_id + + # App Engine release version. + # Corresponds to the JSON property `appEngineRelease` + # @return [String] + attr_accessor :app_engine_release + + # Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # An indication of the relative cost of serving this request. + # Corresponds to the JSON property `cost` + # @return [Float] + attr_accessor :cost + + # An identifier for the instance that handled the request. + # Corresponds to the JSON property `instanceId` + # @return [String] + attr_accessor :instance_id + + # Number of CPU megacycles used to process request. + # Corresponds to the JSON property `megaCycles` + # @return [Fixnum] + attr_accessor :mega_cycles + + # Whether this is the first RequestLog entry for this request. If an active + # request has several RequestLog entries written to Stackdriver Logging, then + # this field will be set for one of them. + # Corresponds to the JSON property `first` + # @return [Boolean] + attr_accessor :first + alias_method :first?, :first + + # Version of the application that handled this request. + # Corresponds to the JSON property `versionId` + # @return [String] + attr_accessor :version_id + # Module of the application that handled this request. # Corresponds to the JSON property `moduleId` # @return [String] @@ -975,17 +250,17 @@ module Google # @return [Fixnum] attr_accessor :instance_index - # Internet host and port number of the resource being requested. - # Corresponds to the JSON property `host` - # @return [String] - attr_accessor :host - # Whether this request is finished or active. # Corresponds to the JSON property `finished` # @return [Boolean] attr_accessor :finished alias_method :finished?, :finished + # Internet host and port number of the resource being requested. + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + # HTTP version of request. Example: "HTTP/1.1". # Corresponds to the JSON property `httpVersion` # @return [String] @@ -1001,60 +276,21 @@ module Google # @return [String] attr_accessor :latency - # Origin IP address. - # Corresponds to the JSON property `ip` - # @return [String] - attr_accessor :ip - - # Application that handled this request. - # Corresponds to the JSON property `appId` - # @return [String] - attr_accessor :app_id - - # App Engine release version. - # Corresponds to the JSON property `appEngineRelease` - # @return [String] - attr_accessor :app_engine_release - - # Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". - # Corresponds to the JSON property `method` - # @return [String] - attr_accessor :method_prop - - # An indication of the relative cost of serving this request. - # Corresponds to the JSON property `cost` - # @return [Float] - attr_accessor :cost - - # An identifier for the instance that handled the request. - # Corresponds to the JSON property `instanceId` - # @return [String] - attr_accessor :instance_id - - # Number of CPU megacycles used to process request. - # Corresponds to the JSON property `megaCycles` - # @return [Fixnum] - attr_accessor :mega_cycles - - # Whether this is the first RequestLog entry for this request. If an active - # request has several RequestLog entries written to Stackdriver Logging, then - # this field will be set for one of them. - # Corresponds to the JSON property `first` - # @return [Boolean] - attr_accessor :first - alias_method :first?, :first - - # Version of the application that handled this request. - # Corresponds to the JSON property `versionId` - # @return [String] - attr_accessor :version_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @ip = args[:ip] if args.key?(:ip) + @app_id = args[:app_id] if args.key?(:app_id) + @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @cost = args[:cost] if args.key?(:cost) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles) + @first = args[:first] if args.key?(:first) + @version_id = args[:version_id] if args.key?(:version_id) @module_id = args[:module_id] if args.key?(:module_id) @end_time = args[:end_time] if args.key?(:end_time) @user_agent = args[:user_agent] if args.key?(:user_agent) @@ -1073,20 +309,11 @@ module Google @task_name = args[:task_name] if args.key?(:task_name) @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry) @instance_index = args[:instance_index] if args.key?(:instance_index) - @host = args[:host] if args.key?(:host) @finished = args[:finished] if args.key?(:finished) + @host = args[:host] if args.key?(:host) @http_version = args[:http_version] if args.key?(:http_version) @start_time = args[:start_time] if args.key?(:start_time) @latency = args[:latency] if args.key?(:latency) - @ip = args[:ip] if args.key?(:ip) - @app_id = args[:app_id] if args.key?(:app_id) - @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) - @method_prop = args[:method_prop] if args.key?(:method_prop) - @cost = args[:cost] if args.key?(:cost) - @instance_id = args[:instance_id] if args.key?(:instance_id) - @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles) - @first = args[:first] if args.key?(:first) - @version_id = args[:version_id] if args.key?(:version_id) end end @@ -1122,26 +349,26 @@ module Google 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 + # 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 + 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) + @repository = args[:repository] if args.key?(:repository) end end @@ -1150,6 +377,13 @@ module Google class LogMetric include Google::Apis::Core::Hashable + # Required. An advanced logs filter which is used to match log entries. Example: + # "resource.type=gae_app AND severity>=ERROR" + # The maximum length of the filter is 20000 characters. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + # Required. The client-assigned metric identifier. Examples: "error_count", " # nginx/requests".Metric identifiers are limited to 100 characters and can # include only the following characters: A-Z, a-z, 0-9, and the special @@ -1175,23 +409,16 @@ module Google # @return [String] attr_accessor :version - # Required. An advanced logs filter which is used to match log entries. Example: - # "resource.type=gae_app AND severity>=ERROR" - # The maximum length of the filter is 20000 characters. - # 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) + @filter = args[:filter] if args.key?(:filter) @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) @version = args[:version] if args.key?(:version) - @filter = args[:filter] if args.key?(:filter) end end @@ -1213,6 +440,12 @@ module Google class LogEntryOperation include Google::Apis::Core::Hashable + # 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. An arbitrary producer identifier. The combination of id and producer # must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", # "github.com/MyProject/MyApplication". @@ -1220,12 +453,6 @@ module Google # @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] @@ -1244,8 +471,8 @@ module Google # Update properties of this object def update!(**args) - @producer = args[:producer] if args.key?(:producer) @first = args[:first] if args.key?(:first) + @producer = args[:producer] if args.key?(:producer) @last = args[:last] if args.key?(:last) @id = args[:id] if args.key?(:id) end @@ -1266,13 +493,6 @@ module Google class MonitoredResource include Google::Apis::Core::Hashable - # Required. The monitored resource type. This field must match the type field of - # a MonitoredResourceDescriptor object. For example, the type of a Compute - # Engine VM instance is gce_instance. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - # Required. Values for all of the labels listed in the associated monitored # resource descriptor. For example, Compute Engine VM instances use the labels " # project_id", "instance_id", and "zone". @@ -1280,14 +500,794 @@ module Google # @return [Hash] attr_accessor :labels + # Required. The monitored resource type. This field must match the type field of + # a MonitoredResourceDescriptor object. For example, the type of a Compute + # Engine VM instance is gce_instance. + # 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) + @labels = args[:labels] if args.key?(:labels) + @type = args[:type] if args.key?(:type) + end + end + + # The parameters to WriteLogEntries. + class WriteLogEntriesRequest + include Google::Apis::Core::Hashable + + # Optional. Default labels that are added to the labels field of all log entries + # in entries. If a log entry already has a label with the same key as a label in + # this parameter, then the log entry's label is not changed. See LogEntry. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::LoggingV2beta1::MonitoredResource] + attr_accessor :resource + + # Required. The log entries to write. Values supplied for the fields log_name, + # resource, and labels in this entries.write request are inserted into those log + # entries in this list that do not provide their own values.Stackdriver Logging + # also creates and inserts values for timestamp and insert_id if the entries do + # not provide them. The created insert_id for the N'th entry in this list will + # be greater than earlier entries and less than later entries. Otherwise, the + # order of log entries in this list does not matter.To improve throughput and to + # avoid exceeding the quota limit for calls to entries.write, you should write + # multiple log entries at once rather than calling this method for each + # individual log entry. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Optional. A default log resource name that is assigned to all log entries in + # entries that do not specify a value for log_name: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + # Optional. Whether valid entries should be written even if some other entries + # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not + # written, then the response status is the error associated with one of the + # failed entries and the response includes error details keyed by the entries' + # zero-based index in the entries.write method. + # Corresponds to the JSON property `partialSuccess` + # @return [Boolean] + attr_accessor :partial_success + alias_method :partial_success?, :partial_success + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @labels = args[:labels] if args.key?(:labels) + @resource = args[:resource] if args.key?(:resource) + @entries = args[:entries] if args.key?(:entries) + @log_name = args[:log_name] if args.key?(:log_name) + @partial_success = args[:partial_success] if args.key?(:partial_success) + end + end + + # Describes a sink used to export log entries to one of the following + # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a + # Cloud Pub/Sub topic. A logs filter controls which log entries are exported. + # The sink must be created within a project, organization, billing account, or + # folder. + class LogSink + include Google::Apis::Core::Hashable + + # Optional. This field applies only to sinks owned by organizations and folders. + # If the field is false, the default, only the logs owned by the sink's parent + # resource are available for export. If the field is true, then logs from all + # the projects, folders, and billing accounts contained in the sink's parent + # resource are also available for export. Whether a particular log entry from + # the children is exported depends on the sink's filter expression. For example, + # if this field is true, then the filter resource.type=gce_instance would export + # all Compute Engine VM instance log entries from all projects in the sink's + # parent. To only export entries from certain child projects, filter on the + # project part of the log name: + # logName:("projects/test-project1/" OR "projects/test-project2/") AND + # resource.type=gce_instance + # Corresponds to the JSON property `includeChildren` + # @return [Boolean] + attr_accessor :include_children + alias_method :include_children?, :include_children + + # Required. The export destination: + # "storage.googleapis.com/[GCS_BUCKET]" + # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + # "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" + # The sink's writer_identity, set when the sink is created, must have permission + # to write to the destination or else the log entries are not exported. For more + # information, see Exporting Logs With Sinks. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # Optional. An advanced logs filter. The only exported log entries are those + # that are in the resource owning the sink and that match the filter. The filter + # must use the log entry format specified by the output_version_format parameter. + # For example, in the v2 format: + # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. The time at which this sink will stop exporting log entries. Log + # entries are exported only if their timestamp is earlier than the end time. If + # this field is not supplied, there is no end time. If both a start time and an + # end time are provided, then the end time must be later than the start time. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Optional. The time at which this sink will begin exporting log entries. Log + # entries are exported only if their timestamp is not earlier than the start + # time. The default value of this field is the time the sink is created or + # updated. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Output only. An IAM identity—a service account or group—under + # which Stackdriver Logging writes the exported log entries to the sink's + # destination. This field is set by sinks.create and sinks.update, based on the + # setting of unique_writer_identity in those methods.Until you grant this + # identity write-access to the destination, log entry exports from this sink + # will fail. For more information, see Granting access for a resource. Consult + # the destination service's documentation to determine the appropriate IAM roles + # to assign to the identity. + # Corresponds to the JSON property `writerIdentity` + # @return [String] + attr_accessor :writer_identity + + # Optional. The log entry format to use for this sink's exported log entries. + # The v2 format is used by default. The v1 format is deprecated and should be + # used only as part of a migration effort to v2. See Migration to the v2 API. + # Corresponds to the JSON property `outputVersionFormat` + # @return [String] + attr_accessor :output_version_format + + # Required. The client-assigned sink identifier, unique within the project. + # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 + # characters and can include only the following characters: upper and lower-case + # alphanumeric characters, underscores, hyphens, and periods. + # 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) + @include_children = args[:include_children] if args.key?(:include_children) + @destination = args[:destination] if args.key?(:destination) + @filter = args[:filter] if args.key?(:filter) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @writer_identity = args[:writer_identity] if args.key?(:writer_identity) + @output_version_format = args[:output_version_format] if args.key?(:output_version_format) + @name = args[:name] if args.key?(:name) + end + end + + # Result returned from ListLogs. + class ListLogsResponse + include Google::Apis::Core::Hashable + + # If there might be more results than those appearing in this response, then + # nextPageToken is included. To get the next set 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 + + # A list of log names. For example, "projects/my-project/syslog" or " + # organizations/123/cloudresourcemanager.googleapis.com%2Factivity". + # Corresponds to the JSON property `logNames` + # @return [Array] + attr_accessor :log_names + + 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) + @log_names = args[:log_names] if args.key?(:log_names) + end + end + + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. + class HttpRequest + include Google::Apis::Core::Hashable + + # Whether or not a cache lookup was attempted. + # Corresponds to the JSON property `cacheLookup` + # @return [Boolean] + attr_accessor :cache_lookup + alias_method :cache_lookup?, :cache_lookup + + # 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 `cacheValidatedWithOriginServer` + # @return [Boolean] + attr_accessor :cache_validated_with_origin_server + alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server + + # The response code indicating the status of response. Examples: 200, 404. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # 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 + + # 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 request processing latency on the server, from the time the request was + # received until the response was sent. + # Corresponds to the JSON property `latency` + # @return [String] + attr_accessor :latency + + # The number of HTTP response bytes inserted into cache. Set only when a cache + # fill was attempted. + # Corresponds to the JSON property `cacheFillBytes` + # @return [Fixnum] + attr_accessor :cache_fill_bytes + + # The request method. Examples: "GET", "HEAD", "PUT", "POST". + # Corresponds to the JSON property `requestMethod` + # @return [String] + attr_accessor :request_method + + # 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 [Fixnum] + attr_accessor :response_size + + # The size of the HTTP request message in bytes, including the request headers + # and the request body. + # Corresponds to the JSON property `requestSize` + # @return [Fixnum] + attr_accessor :request_size + + # 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 IP address (IPv4 or IPv6) of the origin server that the request was sent + # to. + # Corresponds to the JSON property `serverIp` + # @return [String] + attr_accessor :server_ip + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup) + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server) + @status = args[:status] if args.key?(:status) + @referer = args[:referer] if args.key?(:referer) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @latency = args[:latency] if args.key?(:latency) + @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes) + @request_method = args[:request_method] if args.key?(:request_method) + @response_size = args[:response_size] if args.key?(:response_size) + @request_size = args[:request_size] if args.key?(:request_size) + @request_url = args[:request_url] if args.key?(:request_url) + @server_ip = args[:server_ip] if args.key?(:server_ip) + @remote_ip = args[:remote_ip] if args.key?(:remote_ip) + 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 might be more results than appear in this response, then + # nextPageToken is included. To get the next set of results, call the same + # 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 + + # A description of a label. + class LabelDescriptor + include Google::Apis::Core::Hashable + + # The type of data that can be assigned to the label. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # The label key. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # 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) + @value_type = args[:value_type] if args.key?(:value_type) + @key = args[:key] if args.key?(:key) + @description = args[:description] if args.key?(:description) + end + end + + # An object that describes the schema of a MonitoredResource object using a type + # name and a set of labels. For example, the monitored resource descriptor for + # Google Compute Engine VM instances has a type of "gce_instance" and specifies + # the use of the labels "instance_id" and "zone" to identify particular VM + # instances.Different APIs can support different monitored resource types. APIs + # generally provide a list method that returns the monitored resource + # descriptors used by the API. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # Optional. A detailed description of the monitored resource type that might be + # used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A concise name for the monitored resource type that might be + # displayed in user interfaces. It should be a Title Cased Noun Phrase, without + # any article or other determiners. For example, "Google Cloud SQL Database". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The monitored resource type. For example, the type " + # cloudsql_database" represents databases in Google Cloud SQL. The maximum + # length of this value is 256 characters. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required. A set of labels used to describe instances of this monitored + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels "database_id" and "zone". + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Optional. The resource name of the monitored resource descriptor: "projects/` + # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of + # the type field in this object and `project_id` is a project ID that provides + # API-specific context for accessing the type. APIs that do not use project + # information can use the resource name format "monitoredResourceDescriptors/` + # type`". + # 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) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) @type = args[:type] if args.key?(:type) @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + end + end + + # Additional information about the source code location that produced the log + # entry. + class LogEntrySourceLocation + include Google::Apis::Core::Hashable + + # Optional. 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 + + # Optional. Human-readable name of the function or method being invoked, with + # optional context such as the class or package name. This information may be + # 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 `function` + # @return [String] + attr_accessor :function + + # Optional. Line within the source file. 1-based; 0 indicates no line number + # available. + # Corresponds to the JSON property `line` + # @return [Fixnum] + attr_accessor :line + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file = args[:file] if args.key?(:file) + @function = args[:function] if args.key?(:function) + @line = args[:line] if args.key?(:line) + end + end + + # Result returned from ListLogEntries. + class ListLogEntriesResponse + include Google::Apis::Core::Hashable + + # If there might be more results than those appearing in this response, then + # nextPageToken is included. To get the next set of results, call this method + # again using the value of nextPageToken as pageToken.If a value for + # next_page_token appears and the entries field is empty, it means that the + # search found no log entries so far but it did not have time to search all the + # possible log entries. Retry the method with this value for page_token to + # continue the search. Alternatively, consider speeding up the search by + # changing your filter to specify a single log name or resource type, or to + # narrow the time range of the search. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of log entries. + # 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @entries = args[:entries] if args.key?(:entries) + end + end + + # Application log line emitted while processing a request. + class LogLine + include Google::Apis::Core::Hashable + + # App-provided log message. + # Corresponds to the JSON property `logMessage` + # @return [String] + attr_accessor :log_message + + # Severity of this log entry. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Specifies a location in a source code file. + # Corresponds to the JSON property `sourceLocation` + # @return [Google::Apis::LoggingV2beta1::SourceLocation] + attr_accessor :source_location + + # Approximate time when this log entry was made. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_message = args[:log_message] if args.key?(:log_message) + @severity = args[:severity] if args.key?(:severity) + @source_location = args[:source_location] if args.key?(:source_location) + @time = args[:time] if args.key?(:time) + 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 might be more results than appear in this response, then + # nextPageToken is included. To get the next set 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 + + # An individual entry in a log. + class LogEntry + include Google::Apis::Core::Hashable + + # Optional. The time the event described by the log entry occurred. If omitted + # in a new log entry, Stackdriver Logging will insert the time the log entry is + # received. Stackdriver Logging might reject log entries whose time stamps are + # more than a couple of hours in the future. Log entries with time stamps in the + # past are accepted. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # Output only. The time the log entry was received by Stackdriver Logging. + # Corresponds to the JSON property `receiveTimestamp` + # @return [String] + attr_accessor :receive_timestamp + + # Required. The resource name of the log to which this log entry belongs: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/ + # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must + # be less than 512 characters long and can only include the following characters: + # upper and lower case alphanumeric characters, forward-slash, underscore, + # hyphen, and period.For backward compatibility, if log_name begins with a + # forward-slash, such as /projects/..., then the log entry is ingested as usual + # but the forward-slash is removed. Listing the log entry will not show the + # leading slash and filtering for a log name with a leading slash will never + # return any results. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::LoggingV2beta1::HttpRequest] + attr_accessor :http_request + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::LoggingV2beta1::MonitoredResource] + attr_accessor :resource + + # 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 + + # 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 + + # Optional. A unique identifier for the log entry. If you provide a value, then + # Stackdriver Logging considers other log entries in the same project, with the + # same timestamp, and with the same insert_id to be duplicates which can be + # removed. If omitted in new log entries, then Stackdriver Logging will insert + # its own unique identifier. The insert_id is used to order log entries that + # have the same timestamp value. + # Corresponds to the JSON property `insertId` + # @return [String] + attr_accessor :insert_id + + # 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 protocol buffer. Some Google Cloud + # Platform services use this field for their log entry payloads. + # Corresponds to the JSON property `protoPayload` + # @return [Hash] + attr_accessor :proto_payload + + # 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 + + # Optional. Resource name of the trace associated with the log entry, if any. If + # it contains a relative resource name, the name is assumed to be relative to // + # tracing.googleapis.com. Example: projects/my-projectid/traces/ + # 06796866738c859f2f19b7cfb3214824 + # Corresponds to the JSON property `trace` + # @return [String] + attr_accessor :trace + + # Optional. The severity of the log entry. The default value is LogSeverity. + # DEFAULT. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Additional information about the source code location that produced the log + # entry. + # Corresponds to the JSON property `sourceLocation` + # @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation] + attr_accessor :source_location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp) + @log_name = args[:log_name] if args.key?(:log_name) + @http_request = args[:http_request] if args.key?(:http_request) + @resource = args[:resource] if args.key?(:resource) + @json_payload = args[:json_payload] if args.key?(:json_payload) + @operation = args[:operation] if args.key?(:operation) + @insert_id = args[:insert_id] if args.key?(:insert_id) + @text_payload = args[:text_payload] if args.key?(:text_payload) + @proto_payload = args[:proto_payload] if args.key?(:proto_payload) + @labels = args[:labels] if args.key?(:labels) + @trace = args[:trace] if args.key?(:trace) + @severity = args[:severity] if args.key?(:severity) + @source_location = args[:source_location] if args.key?(:source_location) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for Empty is empty JSON object ``. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # 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 + + # 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 + + # Line within the source file. + # Corresponds to the JSON property `line` + # @return [Fixnum] + attr_accessor :line + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file = args[:file] if args.key?(:file) + @function_name = args[:function_name] if args.key?(:function_name) + @line = args[:line] if args.key?(:line) end end end diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index 55f4b9612..82da9c88e 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -22,6 +22,54 @@ module Google module Apis module LoggingV2beta1 + class ListLogEntriesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequestLog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListMonitoredResourceDescriptorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LogMetric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WriteLogEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LogEntryOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MonitoredResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WriteLogEntriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,13 +136,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Empty + class LogEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LogEntry + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -107,63 +155,118 @@ module Google end class ListLogEntriesRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :order_by, as: 'orderBy' + collection :resource_names, as: 'resourceNames' + collection :project_ids, as: 'projectIds' + property :filter, as: 'filter' + property :page_token, as: 'pageToken' + property :page_size, as: 'pageSize' + end end class RequestLog - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip, as: 'ip' + property :app_id, as: 'appId' + property :app_engine_release, as: 'appEngineRelease' + property :method_prop, as: 'method' + property :cost, as: 'cost' + property :instance_id, as: 'instanceId' + property :mega_cycles, :numeric_string => true, as: 'megaCycles' + property :first, as: 'first' + property :version_id, as: 'versionId' + property :module_id, as: 'moduleId' + property :end_time, as: 'endTime' + property :user_agent, as: 'userAgent' + property :was_loading_request, as: 'wasLoadingRequest' + collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation - include Google::Apis::Core::JsonObjectSupport + property :response_size, :numeric_string => true, as: 'responseSize' + property :trace_id, as: 'traceId' + collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation + + property :referrer, as: 'referrer' + property :task_queue_name, as: 'taskQueueName' + property :request_id, as: 'requestId' + property :nickname, as: 'nickname' + property :status, as: 'status' + property :resource, as: 'resource' + property :pending_time, as: 'pendingTime' + property :task_name, as: 'taskName' + property :url_map_entry, as: 'urlMapEntry' + property :instance_index, as: 'instanceIndex' + property :finished, as: 'finished' + property :host, as: 'host' + property :http_version, as: 'httpVersion' + property :start_time, as: 'startTime' + property :latency, as: 'latency' + end end class ListMonitoredResourceDescriptorsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation - include Google::Apis::Core::JsonObjectSupport + end end class SourceReference - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :revision_id, as: 'revisionId' + property :repository, as: 'repository' + end end class LogMetric - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :name, as: 'name' + property :description, as: 'description' + property :version, as: 'version' + end end class WriteLogEntriesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class LogEntryOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :first, as: 'first' + property :producer, as: 'producer' + property :last, as: 'last' + property :id, as: 'id' + end end class MonitoredResource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :type, as: 'type' + end end class WriteLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :partial_success, as: 'partialSuccess' hash :labels, as: 'labels' property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation - property :log_name, as: 'logName' collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation + property :log_name, as: 'logName' + property :partial_success, as: 'partialSuccess' end end @@ -174,8 +277,8 @@ module Google property :destination, as: 'destination' property :filter, as: 'filter' property :end_time, as: 'endTime' - property :writer_identity, as: 'writerIdentity' property :start_time, as: 'startTime' + property :writer_identity, as: 'writerIdentity' property :output_version_format, as: 'outputVersionFormat' property :name, as: 'name' end @@ -192,6 +295,11 @@ module Google class HttpRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cache_lookup, as: 'cacheLookup' + property :cache_hit, as: 'cacheHit' + property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer' + property :status, as: 'status' + property :referer, as: 'referer' property :user_agent, as: 'userAgent' property :latency, as: 'latency' property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes' @@ -201,11 +309,6 @@ module Google property :request_url, as: 'requestUrl' property :server_ip, as: 'serverIp' property :remote_ip, as: 'remoteIp' - property :cache_lookup, as: 'cacheLookup' - property :cache_hit, as: 'cacheHit' - property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer' - property :status, as: 'status' - property :referer, as: 'referer' end end @@ -230,12 +333,12 @@ module Google class MonitoredResourceDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :type, as: 'type' collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation property :name, as: 'name' - property :display_name, as: 'displayName' - property :description, as: 'description' - property :type, as: 'type' end end @@ -251,17 +354,17 @@ module Google class ListLogEntriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation - property :next_page_token, as: 'nextPageToken' end end class LogLine # @private class Representation < Google::Apis::Core::JsonRepresentation - property :severity, as: 'severity' property :log_message, as: 'logMessage' + property :severity, as: 'severity' property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::SourceLocation::Representation property :time, as: 'time' @@ -271,9 +374,33 @@ module Google class ListLogMetricsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2beta1::LogMetric, decorator: Google::Apis::LoggingV2beta1::LogMetric::Representation + property :next_page_token, as: 'nextPageToken' + end + end + + class LogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :timestamp, as: 'timestamp' + property :receive_timestamp, as: 'receiveTimestamp' + property :log_name, as: 'logName' + property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation + + property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation + + hash :json_payload, as: 'jsonPayload' + property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation + + property :insert_id, as: 'insertId' + property :text_payload, as: 'textPayload' + hash :proto_payload, as: 'protoPayload' + hash :labels, as: 'labels' + property :trace, as: 'trace' + property :severity, as: 'severity' + property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2beta1::LogEntrySourceLocation::Representation + end end @@ -283,139 +410,12 @@ module Google end end - class LogEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :trace, as: 'trace' - property :severity, as: 'severity' - property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2beta1::LogEntrySourceLocation::Representation - - property :timestamp, as: 'timestamp' - property :receive_timestamp, as: 'receiveTimestamp' - property :log_name, as: 'logName' - property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation - - property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation - - hash :json_payload, as: 'jsonPayload' - property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation - - property :insert_id, as: 'insertId' - property :text_payload, as: 'textPayload' - hash :proto_payload, as: 'protoPayload' - end - end - class SourceLocation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :line, :numeric_string => true, as: 'line' property :file, as: 'file' property :function_name, as: 'functionName' - end - end - - class ListLogEntriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :filter, as: 'filter' - collection :project_ids, as: 'projectIds' - property :page_token, as: 'pageToken' - property :page_size, as: 'pageSize' - property :order_by, as: 'orderBy' - collection :resource_names, as: 'resourceNames' - end - end - - class RequestLog - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :module_id, as: 'moduleId' - property :end_time, as: 'endTime' - property :user_agent, as: 'userAgent' - property :was_loading_request, as: 'wasLoadingRequest' - collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation - - property :response_size, :numeric_string => true, as: 'responseSize' - property :trace_id, as: 'traceId' - collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation - - property :referrer, as: 'referrer' - property :task_queue_name, as: 'taskQueueName' - property :request_id, as: 'requestId' - property :nickname, as: 'nickname' - property :status, as: 'status' - property :resource, as: 'resource' - property :pending_time, as: 'pendingTime' - property :task_name, as: 'taskName' - property :url_map_entry, as: 'urlMapEntry' - property :instance_index, as: 'instanceIndex' - property :host, as: 'host' - property :finished, as: 'finished' - property :http_version, as: 'httpVersion' - property :start_time, as: 'startTime' - property :latency, as: 'latency' - property :ip, as: 'ip' - property :app_id, as: 'appId' - property :app_engine_release, as: 'appEngineRelease' - property :method_prop, as: 'method' - property :cost, as: 'cost' - property :instance_id, as: 'instanceId' - property :mega_cycles, :numeric_string => true, as: 'megaCycles' - property :first, as: 'first' - property :version_id, as: 'versionId' - end - end - - class ListMonitoredResourceDescriptorsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation - - end - end - - class SourceReference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :repository, as: 'repository' - property :revision_id, as: 'revisionId' - end - end - - class LogMetric - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :description, as: 'description' - property :version, as: 'version' - property :filter, as: 'filter' - end - end - - class WriteLogEntriesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class LogEntryOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :producer, as: 'producer' - property :first, as: 'first' - property :last, as: 'last' - property :id, as: 'id' - end - end - - class MonitoredResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :labels, as: 'labels' + property :line, :numeric_string => true, as: 'line' end end end diff --git a/generated/google/apis/logging_v2beta1/service.rb b/generated/google/apis/logging_v2beta1/service.rb index 2087a9da8..178dce974 100644 --- a/generated/google/apis/logging_v2beta1/service.rb +++ b/generated/google/apis/logging_v2beta1/service.rb @@ -47,91 +47,6 @@ module Google @batch_path = 'batch' end - # Lists the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::ListLogsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse - command.params['parent'] = parent unless parent.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 - - # Deletes all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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_billing_account_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 the descriptors for monitored resource types used by Stackdriver Logging. # @param [String] page_token # Optional. If present, then retrieve the next batch of results from the @@ -170,52 +85,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::ListLogsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse - command.params['parent'] = parent unless parent.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 all the log entries in a log. The log reappears if it receives new # entries. Log entries written shortly before the delete operation might not be # deleted. @@ -255,6 +124,52 @@ module Google execute_or_queue_command(command, &block) end + # Lists the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse + command.params['parent'] = parent unless parent.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 + # Lists log entries. Use this method to retrieve log entries from Stackdriver # Logging. For ways to export log entries, see Exporting Logs. # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object @@ -316,18 +231,16 @@ module Google execute_or_queue_command(command, &block) end - # Deletes all the log entries in a log. The log reappears if it receives new - # entries. Log entries written shortly before the delete operation might not be - # deleted. - # @param [String] log_name - # Required. The resource name of the log to delete: - # "projects/[PROJECT_ID]/logs/[LOG_ID]" - # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - # "folders/[FOLDER_ID]/logs/[LOG_ID]" - # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" - # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% - # 2Factivity". For more information about log names, see LogEntry. + # Deletes a sink. If the sink has a unique writer_identity, then that service + # account is also deleted. + # @param [String] sink_name + # Required. The full resource name of the sink to delete, including the parent + # resource and the sink identifier: + # "projects/[PROJECT_ID]/sinks/[SINK_ID]" + # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + # "folders/[FOLDER_ID]/sinks/[SINK_ID]" + # 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 @@ -345,33 +258,24 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2beta1/{+logName}', options) + 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['logName'] = log_name unless log_name.nil? + 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 the logs in projects, organizations, folders, or billing accounts. Only - # logs that have entries are listed. - # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" - # @param [String] page_token - # Optional. If present, then retrieve the next batch of results from the - # preceding call to this method. pageToken must be the value of nextPageToken - # from the previous response. The values of other method parameters should be - # identical to those in the previous call. - # @param [Fixnum] page_size - # Optional. The maximum number of results to return from this request. Non- - # positive values are ignored. The presence of nextPageToken in the response - # indicates that more results might be available. + # Gets a sink. + # @param [String] sink_name + # Required. The resource name of the sink: + # "projects/[PROJECT_ID]/sinks/[SINK_ID]" + # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + # "folders/[FOLDER_ID]/sinks/[SINK_ID]" + # 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 @@ -381,21 +285,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object + # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] + # @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 list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) - command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation - command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse - command.params['parent'] = parent unless parent.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? + 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) @@ -446,41 +348,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets a sink. - # @param [String] sink_name - # Required. The resource name of the sink: - # "projects/[PROJECT_ID]/sinks/[SINK_ID]" - # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - # "folders/[FOLDER_ID]/sinks/[SINK_ID]" - # 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 - # Updates a sink. If the named sink doesn't exist, then this method is identical # to sinks.create. If the named sink does exist, then this method replaces the # following fields in the existing sink with values from the new sink: @@ -589,16 +456,18 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a sink. If the sink has a unique writer_identity, then that service - # account is also deleted. - # @param [String] sink_name - # Required. The full resource name of the sink to delete, including the parent - # resource and the sink identifier: - # "projects/[PROJECT_ID]/sinks/[SINK_ID]" - # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - # "folders/[FOLDER_ID]/sinks/[SINK_ID]" - # Example: "projects/my-project-id/sinks/my-sink-id". + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -616,19 +485,65 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options) + 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['sinkName'] = sink_name unless sink_name.nil? + 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 - # Deletes a logs-based metric. + # Lists the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse + command.params['parent'] = parent unless parent.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 metric to delete: + # The resource name of the desired metric: # "projects/[PROJECT_ID]/metrics/[METRIC_ID]" # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -639,18 +554,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object + # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::LoggingV2beta1::Empty] + # @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 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 + 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? @@ -699,37 +614,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets a logs-based metric. - # @param [String] metric_name - # The resource name of the desired metric: - # "projects/[PROJECT_ID]/metrics/[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 or updates a logs-based metric. # @param [String] metric_name # The resource name of the metric to update: @@ -801,6 +685,122 @@ module Google 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: + # "projects/[PROJECT_ID]/metrics/[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 + + # Deletes all the log entries in a log. The log reappears if it receives new + # entries. Log entries written shortly before the delete operation might not be + # deleted. + # @param [String] log_name + # Required. The resource name of the log to delete: + # "projects/[PROJECT_ID]/logs/[LOG_ID]" + # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + # "folders/[FOLDER_ID]/logs/[LOG_ID]" + # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog" + # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com% + # 2Factivity". For more information about log names, see LogEntry. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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_billing_account_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 the logs in projects, organizations, folders, or billing accounts. Only + # logs that have entries are listed. + # @param [String] parent + # Required. The resource name that owns the logs: + # "projects/[PROJECT_ID]" + # "organizations/[ORGANIZATION_ID]" + # "billingAccounts/[BILLING_ACCOUNT_ID]" + # "folders/[FOLDER_ID]" + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. pageToken must be the value of nextPageToken + # from the previous response. The values of other method parameters should be + # identical to those in the previous call. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Non- + # positive values are ignored. The presence of nextPageToken in the response + # indicates that more results might be available. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::ListLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse + command.params['parent'] = parent unless parent.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 protected diff --git a/generated/google/apis/manufacturers_v1.rb b/generated/google/apis/manufacturers_v1.rb index 359c78a01..9a7abcab5 100644 --- a/generated/google/apis/manufacturers_v1.rb +++ b/generated/google/apis/manufacturers_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/manufacturers/ module ManufacturersV1 VERSION = 'V1' - REVISION = '20170412' + REVISION = '20170703' # Manage your product listings for Google Manufacturer Center AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter' diff --git a/generated/google/apis/manufacturers_v1/classes.rb b/generated/google/apis/manufacturers_v1/classes.rb index 3c56e5469..03df0e89f 100644 --- a/generated/google/apis/manufacturers_v1/classes.rb +++ b/generated/google/apis/manufacturers_v1/classes.rb @@ -22,6 +22,211 @@ module Google module Apis module ManufacturersV1 + # The capacity of a product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#capacity. + class Capacity + include Google::Apis::Core::Hashable + + # The unit of the capacity, i.e., MB, GB, or TB. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The numeric value of the capacity. + # Corresponds to the JSON property `value` + # @return [Fixnum] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + + # + class ListProductsResponse + include Google::Apis::Core::Hashable + + # The token for the retrieval of the next page of product statuses. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of the 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @products = args[:products] if args.key?(:products) + end + end + + # A product detail of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#productdetail. + class ProductDetail + include Google::Apis::Core::Hashable + + # A short section name that can be reused between multiple product details. + # Corresponds to the JSON property `sectionName` + # @return [String] + attr_accessor :section_name + + # The name of the attribute. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The value of the attribute. + # Corresponds to the JSON property `attributeValue` + # @return [String] + attr_accessor :attribute_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @section_name = args[:section_name] if args.key?(:section_name) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @attribute_value = args[:attribute_value] if args.key?(:attribute_value) + end + end + + # A feature description of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#featuredesc. + class FeatureDescription + include Google::Apis::Core::Hashable + + # An image. + # Corresponds to the JSON property `image` + # @return [Google::Apis::ManufacturersV1::Image] + attr_accessor :image + + # A short description of the feature. + # Corresponds to the JSON property `headline` + # @return [String] + attr_accessor :headline + + # A detailed description of the feature. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image = args[:image] if args.key?(:image) + @headline = args[:headline] if args.key?(:headline) + @text = args[:text] if args.key?(:text) + end + end + + # Product issue. + class Issue + include Google::Apis::Core::Hashable + + # The server-generated type of the issue, for example, + # “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # If present, the attribute that triggered the issue. For more information + # about attributes, see + # https://support.google.com/manufacturers/answer/6124116. + # Corresponds to the JSON property `attribute` + # @return [String] + attr_accessor :attribute + + # The timestamp when this issue appeared. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # The severity of the issue. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Description of the issue. + # 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) + @type = args[:type] if args.key?(:type) + @attribute = args[:attribute] if args.key?(:attribute) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @severity = args[:severity] if args.key?(:severity) + @description = args[:description] if args.key?(:description) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A price. + class Price + include Google::Apis::Core::Hashable + + # The numeric value of the price. + # Corresponds to the JSON property `amount` + # @return [String] + attr_accessor :amount + + # The currency in which the price is denoted. + # Corresponds to the JSON property `currency` + # @return [String] + attr_accessor :currency + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @currency = args[:currency] if args.key?(:currency) + end + end + # An image. class Image include Google::Apis::Core::Hashable @@ -62,53 +267,6 @@ module Google class Attributes include Google::Apis::Core::Hashable - # The size system of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#sizesystem. - # Corresponds to the JSON property `sizeSystem` - # @return [String] - attr_accessor :size_system - - # The theme of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#theme. - # Corresponds to the JSON property `theme` - # @return [String] - attr_accessor :theme - - # The pattern of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#pattern. - # Corresponds to the JSON property `pattern` - # @return [String] - attr_accessor :pattern - - # An image. - # Corresponds to the JSON property `imageLink` - # @return [Google::Apis::ManufacturersV1::Image] - attr_accessor :image_link - - # The category of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#producttype. - # Corresponds to the JSON property `productType` - # @return [Array] - attr_accessor :product_type - - # The format of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#format. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - - # The additional images of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#addlimage. - # Corresponds to the JSON property `additionalImageLink` - # @return [Array] - attr_accessor :additional_image_link - - # The videos of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#video. - # Corresponds to the JSON property `videoLink` - # @return [Array] - attr_accessor :video_link - # The color of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#color. # Corresponds to the JSON property `color` @@ -162,29 +320,29 @@ module Google # @return [String] attr_accessor :brand - # The material of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#material. - # Corresponds to the JSON property `material` - # @return [String] - attr_accessor :material - # The disclosure date of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#disclosure. # Corresponds to the JSON property `disclosureDate` # @return [String] attr_accessor :disclosure_date + # The material of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#material. + # Corresponds to the JSON property `material` + # @return [String] + attr_accessor :material + # The scent of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#scent. # Corresponds to the JSON property `scent` # @return [String] attr_accessor :scent - # The target age group of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#agegroup. - # Corresponds to the JSON property `ageGroup` + # The flavor of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#flavor. + # Corresponds to the JSON property `flavor` # @return [String] - attr_accessor :age_group + attr_accessor :flavor # The details of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#productdetail. @@ -192,17 +350,11 @@ module Google # @return [Array] attr_accessor :product_detail - # The flavor of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#flavor. - # Corresponds to the JSON property `flavor` + # The target age group of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#agegroup. + # Corresponds to the JSON property `ageGroup` # @return [String] - attr_accessor :flavor - - # The URL of the detail page of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#productpage. - # Corresponds to the JSON property `productPageUrl` - # @return [String] - attr_accessor :product_page_url + attr_accessor :age_group # The Manufacturer Part Number (MPN) of the product. For more information, # see https://support.google.com/manufacturers/answer/6124116#mpn. @@ -210,24 +362,30 @@ module Google # @return [String] attr_accessor :mpn + # The URL of the detail page of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#productpage. + # Corresponds to the JSON property `productPageUrl` + # @return [String] + attr_accessor :product_page_url + # The release date of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#release. # Corresponds to the JSON property `releaseDate` # @return [String] attr_accessor :release_date - # The Global Trade Item Number (GTIN) of the product. For more information, - # see https://support.google.com/manufacturers/answer/6124116#gtin. - # Corresponds to the JSON property `gtin` - # @return [Array] - attr_accessor :gtin - # The item group id of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#itemgroupid. # Corresponds to the JSON property `itemGroupId` # @return [String] attr_accessor :item_group_id + # The Global Trade Item Number (GTIN) of the product. For more information, + # see https://support.google.com/manufacturers/answer/6124116#gtin. + # Corresponds to the JSON property `gtin` + # @return [Array] + attr_accessor :gtin + # The name of the group of products related to the product. For more # information, see # https://support.google.com/manufacturers/answer/6124116#productline. @@ -253,20 +411,59 @@ module Google # @return [String] attr_accessor :gender + # The size system of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#sizesystem. + # Corresponds to the JSON property `sizeSystem` + # @return [String] + attr_accessor :size_system + + # The theme of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#theme. + # Corresponds to the JSON property `theme` + # @return [String] + attr_accessor :theme + + # The pattern of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#pattern. + # Corresponds to the JSON property `pattern` + # @return [String] + attr_accessor :pattern + + # An image. + # Corresponds to the JSON property `imageLink` + # @return [Google::Apis::ManufacturersV1::Image] + attr_accessor :image_link + + # The category of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#producttype. + # Corresponds to the JSON property `productType` + # @return [Array] + attr_accessor :product_type + + # The format of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#format. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # The additional images of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#addlimage. + # Corresponds to the JSON property `additionalImageLink` + # @return [Array] + attr_accessor :additional_image_link + + # The videos of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116#video. + # Corresponds to the JSON property `videoLink` + # @return [Array] + attr_accessor :video_link + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @size_system = args[:size_system] if args.key?(:size_system) - @theme = args[:theme] if args.key?(:theme) - @pattern = args[:pattern] if args.key?(:pattern) - @image_link = args[:image_link] if args.key?(:image_link) - @product_type = args[:product_type] if args.key?(:product_type) - @format = args[:format] if args.key?(:format) - @additional_image_link = args[:additional_image_link] if args.key?(:additional_image_link) - @video_link = args[:video_link] if args.key?(:video_link) @color = args[:color] if args.key?(:color) @product_name = args[:product_name] if args.key?(:product_name) @size_type = args[:size_type] if args.key?(:size_type) @@ -276,21 +473,29 @@ module Google @title = args[:title] if args.key?(:title) @count = args[:count] if args.key?(:count) @brand = args[:brand] if args.key?(:brand) - @material = args[:material] if args.key?(:material) @disclosure_date = args[:disclosure_date] if args.key?(:disclosure_date) + @material = args[:material] if args.key?(:material) @scent = args[:scent] if args.key?(:scent) - @age_group = args[:age_group] if args.key?(:age_group) - @product_detail = args[:product_detail] if args.key?(:product_detail) @flavor = args[:flavor] if args.key?(:flavor) - @product_page_url = args[:product_page_url] if args.key?(:product_page_url) + @product_detail = args[:product_detail] if args.key?(:product_detail) + @age_group = args[:age_group] if args.key?(:age_group) @mpn = args[:mpn] if args.key?(:mpn) + @product_page_url = args[:product_page_url] if args.key?(:product_page_url) @release_date = args[:release_date] if args.key?(:release_date) - @gtin = args[:gtin] if args.key?(:gtin) @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @gtin = args[:gtin] if args.key?(:gtin) @product_line = args[:product_line] if args.key?(:product_line) @capacity = args[:capacity] if args.key?(:capacity) @description = args[:description] if args.key?(:description) @gender = args[:gender] if args.key?(:gender) + @size_system = args[:size_system] if args.key?(:size_system) + @theme = args[:theme] if args.key?(:theme) + @pattern = args[:pattern] if args.key?(:pattern) + @image_link = args[:image_link] if args.key?(:image_link) + @product_type = args[:product_type] if args.key?(:product_type) + @format = args[:format] if args.key?(:format) + @additional_image_link = args[:additional_image_link] if args.key?(:additional_image_link) + @video_link = args[:video_link] if args.key?(:video_link) end end @@ -299,24 +504,24 @@ module Google class Count include Google::Apis::Core::Hashable - # The numeric value of the number of products in a package. - # Corresponds to the JSON property `value` - # @return [Fixnum] - attr_accessor :value - # The unit in which these products are counted. # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit + # The numeric value of the number of products in a package. + # Corresponds to the JSON property `value` + # @return [Fixnum] + attr_accessor :value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @value = args[:value] if args.key?(:value) @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -324,52 +529,6 @@ module Google class Product include Google::Apis::Core::Hashable - # Attributes of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116. - # Corresponds to the JSON property `manuallyProvidedAttributes` - # @return [Google::Apis::ManufacturersV1::Attributes] - attr_accessor :manually_provided_attributes - - # The content language of the product as a two-letter ISO 639-1 language code - # (for example, en). - # @OutputOnly - # Corresponds to the JSON property `contentLanguage` - # @return [String] - attr_accessor :content_language - - # The target country of the product as a CLDR territory code (for example, - # US). - # @OutputOnly - # Corresponds to the JSON property `targetCountry` - # @return [String] - attr_accessor :target_country - - # Name in the format ``target_country`:`content_language`:`product_id``. - # `target_country` - The target country of the product as a CLDR territory - # code (for example, US). - # `content_language` - The content language of the product as a two-letter - # ISO 639-1 language code (for example, en). - # `product_id` - The ID of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116# - # id. - # @OutputOnly - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A server-generated list of issues associated with the product. - # @OutputOnly - # Corresponds to the JSON property `issues` - # @return [Array] - attr_accessor :issues - - # Names of the attributes of the product deleted manually via the - # Manufacturer Center UI. - # @OutputOnly - # Corresponds to the JSON property `manuallyDeletedAttributes` - # @return [Array] - attr_accessor :manually_deleted_attributes - # Attributes of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116. # Corresponds to the JSON property `finalAttributes` @@ -396,208 +555,68 @@ module Google # @return [String] attr_accessor :parent + # Attributes of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116. + # Corresponds to the JSON property `manuallyProvidedAttributes` + # @return [Google::Apis::ManufacturersV1::Attributes] + attr_accessor :manually_provided_attributes + + # The target country of the product as a CLDR territory code (for example, + # US). + # @OutputOnly + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The content language of the product as a two-letter ISO 639-1 language code + # (for example, en). + # @OutputOnly + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Name in the format ``target_country`:`content_language`:`product_id``. + # `target_country` - The target country of the product as a CLDR territory + # code (for example, US). + # `content_language` - The content language of the product as a two-letter + # ISO 639-1 language code (for example, en). + # `product_id` - The ID of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116# + # id. + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A server-generated list of issues associated with the product. + # @OutputOnly + # Corresponds to the JSON property `issues` + # @return [Array] + attr_accessor :issues + + # Names of the attributes of the product deleted manually via the + # Manufacturer Center UI. + # @OutputOnly + # Corresponds to the JSON property `manuallyDeletedAttributes` + # @return [Array] + attr_accessor :manually_deleted_attributes + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @manually_provided_attributes = args[:manually_provided_attributes] if args.key?(:manually_provided_attributes) - @content_language = args[:content_language] if args.key?(:content_language) - @target_country = args[:target_country] if args.key?(:target_country) - @name = args[:name] if args.key?(:name) - @issues = args[:issues] if args.key?(:issues) - @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) @final_attributes = args[:final_attributes] if args.key?(:final_attributes) @product_id = args[:product_id] if args.key?(:product_id) @uploaded_attributes = args[:uploaded_attributes] if args.key?(:uploaded_attributes) @parent = args[:parent] if args.key?(:parent) - end - end - - # The capacity of a product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#capacity. - class Capacity - include Google::Apis::Core::Hashable - - # The numeric value of the capacity. - # Corresponds to the JSON property `value` - # @return [Fixnum] - attr_accessor :value - - # The unit of the capacity, i.e., MB, GB, or TB. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @value = args[:value] if args.key?(:value) - @unit = args[:unit] if args.key?(:unit) - end - end - - # - class ListProductsResponse - include Google::Apis::Core::Hashable - - # List of the products. - # Corresponds to the JSON property `products` - # @return [Array] - attr_accessor :products - - # The token for the retrieval of the next page of product statuses. - # 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) - @products = args[:products] if args.key?(:products) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A product detail of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#productdetail. - class ProductDetail - include Google::Apis::Core::Hashable - - # The value of the attribute. - # Corresponds to the JSON property `attributeValue` - # @return [String] - attr_accessor :attribute_value - - # A short section name that can be reused between multiple product details. - # Corresponds to the JSON property `sectionName` - # @return [String] - attr_accessor :section_name - - # The name of the attribute. - # Corresponds to the JSON property `attributeName` - # @return [String] - attr_accessor :attribute_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @attribute_value = args[:attribute_value] if args.key?(:attribute_value) - @section_name = args[:section_name] if args.key?(:section_name) - @attribute_name = args[:attribute_name] if args.key?(:attribute_name) - end - end - - # Product issue. - class Issue - include Google::Apis::Core::Hashable - - # Description of the issue. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The server-generated type of the issue, for example, - # “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # If present, the attribute that triggered the issue. For more information - # about attributes, see - # https://support.google.com/manufacturers/answer/6124116. - # Corresponds to the JSON property `attribute` - # @return [String] - attr_accessor :attribute - - # The timestamp when this issue appeared. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - # The severity of the issue. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @type = args[:type] if args.key?(:type) - @attribute = args[:attribute] if args.key?(:attribute) - @timestamp = args[:timestamp] if args.key?(:timestamp) - @severity = args[:severity] if args.key?(:severity) - end - end - - # A feature description of the product. For more information, see - # https://support.google.com/manufacturers/answer/6124116#featuredesc. - class FeatureDescription - include Google::Apis::Core::Hashable - - # A detailed description of the feature. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # An image. - # Corresponds to the JSON property `image` - # @return [Google::Apis::ManufacturersV1::Image] - attr_accessor :image - - # A short description of the feature. - # Corresponds to the JSON property `headline` - # @return [String] - attr_accessor :headline - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @image = args[:image] if args.key?(:image) - @headline = args[:headline] if args.key?(:headline) - end - end - - # A price. - class Price - include Google::Apis::Core::Hashable - - # The numeric value of the price. - # Corresponds to the JSON property `amount` - # @return [String] - attr_accessor :amount - - # The currency in which the price is denoted. - # Corresponds to the JSON property `currency` - # @return [String] - attr_accessor :currency - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @amount = args[:amount] if args.key?(:amount) - @currency = args[:currency] if args.key?(:currency) + @manually_provided_attributes = args[:manually_provided_attributes] if args.key?(:manually_provided_attributes) + @target_country = args[:target_country] if args.key?(:target_country) + @content_language = args[:content_language] if args.key?(:content_language) + @name = args[:name] if args.key?(:name) + @issues = args[:issues] if args.key?(:issues) + @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) end end end diff --git a/generated/google/apis/manufacturers_v1/representations.rb b/generated/google/apis/manufacturers_v1/representations.rb index 99c5f7754..1e67ced67 100644 --- a/generated/google/apis/manufacturers_v1/representations.rb +++ b/generated/google/apis/manufacturers_v1/representations.rb @@ -22,6 +22,48 @@ module Google module Apis module ManufacturersV1 + class Capacity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListProductsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FeatureDescription + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Issue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Price + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end @@ -47,39 +89,64 @@ module Google end class Capacity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, :numeric_string => true, as: 'value' + end end class ListProductsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ProductDetail - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Issue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :section_name, as: 'sectionName' + property :attribute_name, as: 'attributeName' + property :attribute_value, as: 'attributeValue' + end end class FeatureDescription - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation - include Google::Apis::Core::JsonObjectSupport + property :headline, as: 'headline' + property :text, as: 'text' + end + end + + class Issue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :attribute, as: 'attribute' + property :timestamp, as: 'timestamp' + property :severity, as: 'severity' + property :description, as: 'description' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class Price - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount' + property :currency, as: 'currency' + end end class Image @@ -94,16 +161,6 @@ module Google class Attributes # @private class Representation < Google::Apis::Core::JsonRepresentation - property :size_system, as: 'sizeSystem' - property :theme, as: 'theme' - property :pattern, as: 'pattern' - property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation - - collection :product_type, as: 'productType' - property :format, as: 'format' - collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation - - collection :video_link, as: 'videoLink' property :color, as: 'color' property :product_name, as: 'productName' property :size_type, as: 'sizeType' @@ -116,106 +173,61 @@ module Google property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation property :brand, as: 'brand' - property :material, as: 'material' property :disclosure_date, as: 'disclosureDate' + property :material, as: 'material' property :scent, as: 'scent' - property :age_group, as: 'ageGroup' + property :flavor, as: 'flavor' collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation - property :flavor, as: 'flavor' - property :product_page_url, as: 'productPageUrl' + property :age_group, as: 'ageGroup' property :mpn, as: 'mpn' + property :product_page_url, as: 'productPageUrl' property :release_date, as: 'releaseDate' - collection :gtin, as: 'gtin' property :item_group_id, as: 'itemGroupId' + collection :gtin, as: 'gtin' property :product_line, as: 'productLine' property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation property :description, as: 'description' property :gender, as: 'gender' + property :size_system, as: 'sizeSystem' + property :theme, as: 'theme' + property :pattern, as: 'pattern' + property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation + + collection :product_type, as: 'productType' + property :format, as: 'format' + collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation + + collection :video_link, as: 'videoLink' end end class Count # @private class Representation < Google::Apis::Core::JsonRepresentation - property :value, :numeric_string => true, as: 'value' property :unit, as: 'unit' + property :value, :numeric_string => true, as: 'value' end end class Product # @private class Representation < Google::Apis::Core::JsonRepresentation - property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation - - property :content_language, as: 'contentLanguage' - property :target_country, as: 'targetCountry' - property :name, as: 'name' - collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation - - collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes' property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation property :product_id, as: 'productId' property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation property :parent, as: 'parent' - end - end + property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation - class Capacity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :value, :numeric_string => true, as: 'value' - property :unit, as: 'unit' - end - end + property :target_country, as: 'targetCountry' + property :content_language, as: 'contentLanguage' + property :name, as: 'name' + collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation - class ListProductsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ProductDetail - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :attribute_value, as: 'attributeValue' - property :section_name, as: 'sectionName' - property :attribute_name, as: 'attributeName' - end - end - - class Issue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :type, as: 'type' - property :attribute, as: 'attribute' - property :timestamp, as: 'timestamp' - property :severity, as: 'severity' - end - end - - class FeatureDescription - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :text, as: 'text' - property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation - - property :headline, as: 'headline' - end - end - - class Price - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :amount, as: 'amount' - property :currency, as: 'currency' + collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes' end end end diff --git a/generated/google/apis/manufacturers_v1/service.rb b/generated/google/apis/manufacturers_v1/service.rb index 14c7408db..03c28c793 100644 --- a/generated/google/apis/manufacturers_v1/service.rb +++ b/generated/google/apis/manufacturers_v1/service.rb @@ -47,15 +47,19 @@ module Google @batch_path = 'batch' end - # Lists all the products in a Manufacturer Center account. + # Deletes the product from a Manufacturer Center account. # @param [String] parent # Parent ID in the format `accounts/`account_id``. # `account_id` - The ID of the Manufacturer Center account. - # @param [String] page_token - # The token returned by the previous request. - # @param [Fixnum] page_size - # Maximum number of product statuses to return in the response, used for - # paging. + # @param [String] name + # Name in the format ``target_country`:`content_language`:`product_id``. + # `target_country` - The target country of the product as a CLDR territory + # code (for example, US). + # `content_language` - The content language of the product as a two-letter + # ISO 639-1 language code (for example, en). + # `product_id` - The ID of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116# + # id. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -65,21 +69,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ManufacturersV1::ListProductsResponse] parsed result object + # @yieldparam result [Google::Apis::ManufacturersV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ManufacturersV1::ListProductsResponse] + # @return [Google::Apis::ManufacturersV1::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 list_account_products(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/products', options) - command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation - command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse + def delete_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+parent}/products/{+name}', options) + command.response_representation = Google::Apis::ManufacturersV1::Empty::Representation + command.response_class = Google::Apis::ManufacturersV1::Empty command.params['parent'] = parent unless parent.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -87,6 +90,9 @@ module Google # Gets the product from a Manufacturer Center account, including product # issues. + # A recently updated product takes some time to be processed before any + # changes are visible. While some issues may be available once the product + # has been processed, other issues may take days to appear. # @param [String] parent # Parent ID in the format `accounts/`account_id``. # `account_id` - The ID of the Manufacturer Center account. @@ -126,6 +132,97 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Lists all the products in a Manufacturer Center account. + # @param [String] parent + # Parent ID in the format `accounts/`account_id``. + # `account_id` - The ID of the Manufacturer Center account. + # @param [String] page_token + # The token returned by the previous request. + # @param [Fixnum] page_size + # Maximum number of product statuses to return in the response, used for + # paging. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::ManufacturersV1::ListProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ManufacturersV1::ListProductsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_products(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/products', options) + command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation + command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse + command.params['parent'] = parent unless parent.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 + + # Inserts or updates the product in a Manufacturer Center account. + # The checks at upload time are minimal. All required attributes need to be + # present for a product to be valid. Issues may show up later + # after the API has accepted an update for a product and it is possible to + # overwrite an existing valid product with an invalid product. To detect + # this, you should retrieve the product and check it for issues once the + # updated version is available. + # Inserted or updated products first need to be processed before they can be + # retrieved. Until then, new products will be unavailable, and retrieval + # of updated products will return the original state of the product. + # @param [String] parent + # Parent ID in the format `accounts/`account_id``. + # `account_id` - The ID of the Manufacturer Center account. + # @param [String] name + # Name in the format ``target_country`:`content_language`:`product_id``. + # `target_country` - The target country of the product as a CLDR territory + # code (for example, US). + # `content_language` - The content language of the product as a two-letter + # ISO 639-1 language code (for example, en). + # `product_id` - The ID of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116# + # id. + # @param [Google::Apis::ManufacturersV1::Product] product_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::ManufacturersV1::Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ManufacturersV1::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 update_account_product(parent, name, product_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+parent}/products/{+name}', options) + command.request_representation = Google::Apis::ManufacturersV1::Product::Representation + command.request_object = product_object + command.response_representation = Google::Apis::ManufacturersV1::Product::Representation + command.response_class = Google::Apis::ManufacturersV1::Product + command.params['parent'] = parent unless parent.nil? + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 782594e74..c2c05b3aa 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20170612' + REVISION = '20170707' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 580488720..aaf3edec4 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -22,6 +22,238 @@ module Google module Apis module MlV1 + # Options for manually scaling a model. + class GoogleCloudMlV1ManualScaling + include Google::Apis::Core::Hashable + + # The number of nodes to allocate for this model. These nodes are always up, + # starting from the time the model is deployed, so the cost of operating + # this model will be proportional to `nodes` * number of hours since + # last billing cycle plus the cost for each prediction performed. + # Corresponds to the JSON property `nodes` + # @return [Fixnum] + attr_accessor :nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nodes = args[:nodes] if args.key?(:nodes) + end + end + + # Associates `members` with a `role`. + class GoogleIamV1Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::MlV1::GoogleTypeExpr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` or `joe@example.com`. + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Represents results of a training job. Output only. + class GoogleCloudMlV1TrainingOutput + include Google::Apis::Core::Hashable + + # Results for individual Hyperparameter trials. + # Only set for hyperparameter tuning jobs. + # Corresponds to the JSON property `trials` + # @return [Array] + attr_accessor :trials + + # The number of hyperparameter tuning trials that completed successfully. + # Only set for hyperparameter tuning jobs. + # Corresponds to the JSON property `completedTrialCount` + # @return [Fixnum] + attr_accessor :completed_trial_count + + # Whether this job is a hyperparameter tuning job. + # Corresponds to the JSON property `isHyperparameterTuningJob` + # @return [Boolean] + attr_accessor :is_hyperparameter_tuning_job + alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job + + # The amount of ML units consumed by the job. + # Corresponds to the JSON property `consumedMLUnits` + # @return [Float] + attr_accessor :consumed_ml_units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @trials = args[:trials] if args.key?(:trials) + @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count) + @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job) + @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units) + end + end + + # Options for automatically scaling a model. + class GoogleCloudMlV1beta1AutoScaling + include Google::Apis::Core::Hashable + + # Optional. The minimum number of nodes to allocate for this model. These + # nodes are always up, starting from the time the model is deployed, so the + # cost of operating this model will be at least + # `rate` * `min_nodes` * number of hours since last billing cycle, + # where `rate` is the cost per node-hour as documented in + # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), + # even if no predictions are performed. There is additional cost for each + # prediction performed. + # Unlike manual scaling, if the load gets too heavy for the nodes + # that are up, the service will automatically add nodes to handle the + # increased load as well as scale back as traffic drops, always maintaining + # at least `min_nodes`. You will be charged for the time in which additional + # nodes are used. + # If not specified, `min_nodes` defaults to 0, in which case, when traffic + # to a model stops (and after a cool-down period), nodes will be shut down + # and no charges will be incurred until traffic to the model resumes. + # Corresponds to the JSON property `minNodes` + # @return [Fixnum] + attr_accessor :min_nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_nodes = args[:min_nodes] if args.key?(:min_nodes) + end + end + + # A rule to be applied in a Policy. + class GoogleIamV1Rule + include Google::Apis::Core::Hashable + + # Human-readable description of the rule. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Additional restrictions that must be met + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries + # that match the LOG action. + # Corresponds to the JSON property `logConfig` + # @return [Array] + attr_accessor :log_config + + # If one or more 'in' clauses are specified, the rule matches if + # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + # Corresponds to the JSON property `in` + # @return [Array] + attr_accessor :in + + # A permission is a string of form '..' + # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, + # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Required + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # If one or more 'not_in' clauses are specified, the rule matches + # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. + # The format for in and not_in entries is the same as for members in a + # Binding (see google/iam/v1/policy.proto). + # Corresponds to the JSON property `notIn` + # @return [Array] + attr_accessor :not_in + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @conditions = args[:conditions] if args.key?(:conditions) + @log_config = args[:log_config] if args.key?(:log_config) + @in = args[:in] if args.key?(:in) + @permissions = args[:permissions] if args.key?(:permissions) + @action = args[:action] if args.key?(:action) + @not_in = args[:not_in] if args.key?(:not_in) + end + end + + # Options for counters + class GoogleIamV1LogConfigCounterOptions + include Google::Apis::Core::Hashable + + # The field value to attribute. + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + # The metric to update. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field = args[:field] if args.key?(:field) + @metric = args[:metric] if args.key?(:metric) + end + end + # Request for predictions to be issued against a trained model. # The body of the request is a single JSON object with a single top-level # field: @@ -249,24 +481,24 @@ module Google class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric include Google::Apis::Core::Hashable - # The global training step for this metric. - # Corresponds to the JSON property `trainingStep` - # @return [Fixnum] - attr_accessor :training_step - # The objective value at this training step. # Corresponds to the JSON property `objectiveValue` # @return [Float] attr_accessor :objective_value + # The global training step for this metric. + # Corresponds to the JSON property `trainingStep` + # @return [Fixnum] + attr_accessor :training_step + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @training_step = args[:training_step] if args.key?(:training_step) @objective_value = args[:objective_value] if args.key?(:objective_value) + @training_step = args[:training_step] if args.key?(:training_step) end end @@ -279,6 +511,12 @@ module Google # @return [String] attr_accessor :log_name + # True if the log is for a permission of type DATA_READ or ADMIN_READ. + # Corresponds to the JSON property `isReadPermissionType` + # @return [Boolean] + attr_accessor :is_read_permission_type + alias_method :is_read_permission_type?, :is_read_permission_type + def initialize(**args) update!(**args) end @@ -286,6 +524,7 @@ module Google # Update properties of this object def update!(**args) @log_name = args[:log_name] if args.key?(:log_name) + @is_read_permission_type = args[:is_read_permission_type] if args.key?(:is_read_permission_type) end end @@ -298,27 +537,6 @@ module Google class GoogleCloudMlV1Version include Google::Apis::Core::Hashable - # Options for manually scaling a model. - # Corresponds to the JSON property `manualScaling` - # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling] - attr_accessor :manual_scaling - - # Output only. The state of a version. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Required.The name specified for the version when it was created. - # The version name must be unique within the model it is created in. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Options for automatically scaling a model. - # Corresponds to the JSON property `automaticScaling` - # @return [Google::Apis::MlV1::GoogleCloudMlV1AutomaticScaling] - attr_accessor :automatic_scaling - # Optional. The Google Cloud ML runtime version to use for this deployment. # If not set, Google Cloud ML will choose a version. # Corresponds to the JSON property `runtimeVersion` @@ -339,7 +557,7 @@ module Google # create the version. See the # [overview of model # deployment](/ml-engine/docs/concepts/deployment-overview) for more - # informaiton. + # information. # When passing Version to # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models. # versions/create) @@ -351,6 +569,11 @@ module Google # @return [String] attr_accessor :deployment_uri + # Options for automatically scaling a model. + # Corresponds to the JSON property `autoScaling` + # @return [Google::Apis::MlV1::GoogleCloudMlV1AutoScaling] + attr_accessor :auto_scaling + # Output only. If true, this version will be used to handle prediction # requests that do not specify a version. # You can change the default version by calling @@ -366,22 +589,44 @@ module Google # @return [String] attr_accessor :create_time + # Output only. The state of a version. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Options for manually scaling a model. + # Corresponds to the JSON property `manualScaling` + # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling] + attr_accessor :manual_scaling + + # Required.The name specified for the version when it was created. + # The version name must be unique within the model it is created in. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The details of a failure or a cancellation. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) - @state = args[:state] if args.key?(:state) - @name = args[:name] if args.key?(:name) - @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling) @runtime_version = args[:runtime_version] if args.key?(:runtime_version) @last_use_time = args[:last_use_time] if args.key?(:last_use_time) @description = args[:description] if args.key?(:description) @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri) + @auto_scaling = args[:auto_scaling] if args.key?(:auto_scaling) @is_default = args[:is_default] if args.key?(:is_default) @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) + @name = args[:name] if args.key?(:name) + @error_message = args[:error_message] if args.key?(:error_message) end end @@ -389,26 +634,6 @@ module Google class GoogleCloudMlV1ParameterSpec include Google::Apis::Core::Hashable - # Optional. How the parameter should be scaled to the hypercube. - # Leave unset for categorical parameters. - # Some kind of scaling is strongly recommended for real or integral - # parameters (e.g., `UNIT_LINEAR_SCALE`). - # Corresponds to the JSON property `scaleType` - # @return [String] - attr_accessor :scale_type - - # Required if typeis `DOUBLE` or `INTEGER`. This field - # should be unset if type is `CATEGORICAL`. This value should be integers if - # type is `INTEGER`. - # Corresponds to the JSON property `maxValue` - # @return [Float] - attr_accessor :max_value - - # Required. The type of the parameter. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - # Required if type is `CATEGORICAL`. The list of possible categories. # Corresponds to the JSON property `categoricalValues` # @return [Array] @@ -436,19 +661,39 @@ module Google # @return [Array] attr_accessor :discrete_values + # Required if typeis `DOUBLE` or `INTEGER`. This field + # should be unset if type is `CATEGORICAL`. This value should be integers if + # type is `INTEGER`. + # Corresponds to the JSON property `maxValue` + # @return [Float] + attr_accessor :max_value + + # Optional. How the parameter should be scaled to the hypercube. + # Leave unset for categorical parameters. + # Some kind of scaling is strongly recommended for real or integral + # parameters (e.g., `UNIT_LINEAR_SCALE`). + # Corresponds to the JSON property `scaleType` + # @return [String] + attr_accessor :scale_type + + # Required. The type of the parameter. + # 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) - @scale_type = args[:scale_type] if args.key?(:scale_type) - @max_value = args[:max_value] if args.key?(:max_value) - @type = args[:type] if args.key?(:type) @categorical_values = args[:categorical_values] if args.key?(:categorical_values) @parameter_name = args[:parameter_name] if args.key?(:parameter_name) @min_value = args[:min_value] if args.key?(:min_value) @discrete_values = args[:discrete_values] if args.key?(:discrete_values) + @max_value = args[:max_value] if args.key?(:max_value) + @scale_type = args[:scale_type] if args.key?(:scale_type) + @type = args[:type] if args.key?(:type) end end @@ -495,18 +740,18 @@ module Google # @return [String] attr_accessor :output_path - # Use this field if you want to specify a Google Cloud Storage path for - # the model to use. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - # Optional. The maximum number of workers to be used for parallel processing. # Defaults to 10 if not specified. # Corresponds to the JSON property `maxWorkerCount` # @return [Fixnum] attr_accessor :max_worker_count + # Use this field if you want to specify a Google Cloud Storage path for + # the model to use. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + # Required. The format of the input data files. # Corresponds to the JSON property `dataFormat` # @return [String] @@ -537,8 +782,8 @@ module Google @version_name = args[:version_name] if args.key?(:version_name) @model_name = args[:model_name] if args.key?(:model_name) @output_path = args[:output_path] if args.key?(:output_path) - @uri = args[:uri] if args.key?(:uri) @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count) + @uri = args[:uri] if args.key?(:uri) @data_format = args[:data_format] if args.key?(:data_format) @runtime_version = args[:runtime_version] if args.key?(:runtime_version) @input_paths = args[:input_paths] if args.key?(:input_paths) @@ -552,25 +797,6 @@ module Google class GoogleTypeExpr include Google::Apis::Core::Hashable - # An optional title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - # Textual representation of an expression in # Common Expression Language syntax. # The application context of the containing message determines which @@ -579,16 +805,35 @@ module Google # @return [String] attr_accessor :expression + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # 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) - @title = args[:title] if args.key?(:title) - @location = args[:location] if args.key?(:location) - @description = args[:description] if args.key?(:description) @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + @description = args[:description] if args.key?(:description) end end @@ -612,11 +857,6 @@ module Google class GoogleIamV1AuditLogConfig include Google::Apis::Core::Hashable - # The log type that this config enables. - # Corresponds to the JSON property `logType` - # @return [String] - attr_accessor :log_type - # Specifies the identities that do not cause logging for this type of # permission. # Follows the same format of Binding.members. @@ -624,14 +864,19 @@ module Google # @return [Array] attr_accessor :exempted_members + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @log_type = args[:log_type] if args.key?(:log_type) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) end end @@ -639,16 +884,6 @@ module Google class GoogleCloudMlV1OperationMetadata include Google::Apis::Core::Hashable - # Represents a version of the model. - # Each version is a trained model deployed in the cloud, ready to handle - # prediction requests. A model can have multiple versions. You can get - # information about all of the versions of a given model by calling - # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. - # versions/list). - # Corresponds to the JSON property `version` - # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] - attr_accessor :version - # The time operation processing completed. # Corresponds to the JSON property `endTime` # @return [String] @@ -680,19 +915,29 @@ module Google # @return [String] attr_accessor :model_name + # Represents a version of the model. + # Each version is a trained model deployed in the cloud, ready to handle + # prediction requests. A model can have multiple versions. You can get + # information about all of the versions of a given model by calling + # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. + # versions/list). + # Corresponds to the JSON property `version` + # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] + attr_accessor :version + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @version = args[:version] if args.key?(:version) @end_time = args[:end_time] if args.key?(:end_time) @operation_type = args[:operation_type] if args.key?(:operation_type) @start_time = args[:start_time] if args.key?(:start_time) @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested) @create_time = args[:create_time] if args.key?(:create_time) @model_name = args[:model_name] if args.key?(:model_name) + @version = args[:version] if args.key?(:version) end end @@ -761,6 +1006,18 @@ module Google class GoogleCloudMlV1HyperparameterSpec include Google::Apis::Core::Hashable + # Optional. How many training trials should be attempted to optimize + # the specified hyperparameters. + # Defaults to one. + # Corresponds to the JSON property `maxTrials` + # @return [Fixnum] + attr_accessor :max_trials + + # Required. The set of parameters to tune. + # Corresponds to the JSON property `params` + # @return [Array] + attr_accessor :params + # Optional. The number of training trials to run concurrently. # You can reduce the time it takes to perform hyperparameter tuning by adding # trials in parallel. However, each trail only benefits from the information @@ -773,13 +1030,6 @@ module Google # @return [Fixnum] attr_accessor :max_parallel_trials - # Required. The type of goal to use for tuning. Available types are - # `MAXIMIZE` and `MINIMIZE`. - # Defaults to `MAXIMIZE`. - # Corresponds to the JSON property `goal` - # @return [String] - attr_accessor :goal - # Optional. The Tensorflow summary tag name to use for optimizing trials. For # current versions of Tensorflow, this tag name should exactly match what is # shown in Tensorboard, including all scopes. For versions of Tensorflow @@ -789,17 +1039,12 @@ module Google # @return [String] attr_accessor :hyperparameter_metric_tag - # Required. The set of parameters to tune. - # Corresponds to the JSON property `params` - # @return [Array] - attr_accessor :params - - # Optional. How many training trials should be attempted to optimize - # the specified hyperparameters. - # Defaults to one. - # Corresponds to the JSON property `maxTrials` - # @return [Fixnum] - attr_accessor :max_trials + # Required. The type of goal to use for tuning. Available types are + # `MAXIMIZE` and `MINIMIZE`. + # Defaults to `MAXIMIZE`. + # Corresponds to the JSON property `goal` + # @return [String] + attr_accessor :goal def initialize(**args) update!(**args) @@ -807,11 +1052,11 @@ module Google # Update properties of this object def update!(**args) - @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials) - @goal = args[:goal] if args.key?(:goal) - @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag) - @params = args[:params] if args.key?(:params) @max_trials = args[:max_trials] if args.key?(:max_trials) + @params = args[:params] if args.key?(:params) + @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials) + @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag) + @goal = args[:goal] if args.key?(:goal) end end @@ -951,6 +1196,68 @@ module Google end end + # Represents a machine learning solution. + # A model can have multiple versions, each of which is a deployed, trained + # model ready to receive prediction requests. The model itself is just a + # container. + class GoogleCloudMlV1Model + include Google::Apis::Core::Hashable + + # Optional. The list of regions where the model is going to be deployed. + # Currently only one region per model is supported. + # Defaults to 'us-central1' if nothing is set. + # Note: + # * No matter where a model is deployed, it can always be accessed by + # users from anywhere, both for online and batch prediction. + # * The region for a batch prediction job is set by the region field when + # submitting the batch prediction job and does not take its value from + # this field. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + # Required. The name specified for the model when it was created. + # The model name must be unique within the project it is created in. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The description specified for the model when it was created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. If true, enables StackDriver Logging for online prediction. + # Default is false. + # Corresponds to the JSON property `onlinePredictionLogging` + # @return [Boolean] + attr_accessor :online_prediction_logging + alias_method :online_prediction_logging?, :online_prediction_logging + + # Represents a version of the model. + # Each version is a trained model deployed in the cloud, ready to handle + # prediction requests. A model can have multiple versions. You can get + # information about all of the versions of a given model by calling + # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. + # versions/list). + # Corresponds to the JSON property `defaultVersion` + # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] + attr_accessor :default_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @regions = args[:regions] if args.key?(:regions) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging) + @default_version = args[:default_version] if args.key?(:default_version) + end + end + # Specifies the audit configuration for a service. # The configuration determines which permission types are logged, and what # identities, if any, are exempted from logging. @@ -1031,68 +1338,6 @@ module Google end end - # Represents a machine learning solution. - # A model can have multiple versions, each of which is a deployed, trained - # model ready to receive prediction requests. The model itself is just a - # container. - class GoogleCloudMlV1Model - include Google::Apis::Core::Hashable - - # Optional. The list of regions where the model is going to be deployed. - # Currently only one region per model is supported. - # Defaults to 'us-central1' if nothing is set. - # Note: - # * No matter where a model is deployed, it can always be accessed by - # users from anywhere, both for online and batch prediction. - # * The region for a batch prediction job is set by the region field when - # submitting the batch prediction job and does not take its value from - # this field. - # Corresponds to the JSON property `regions` - # @return [Array] - attr_accessor :regions - - # Required. The name specified for the model when it was created. - # The model name must be unique within the project it is created in. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. The description specified for the model when it was created. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Optional. If true, enables StackDriver Logging for online prediction. - # Default is false. - # Corresponds to the JSON property `onlinePredictionLogging` - # @return [Boolean] - attr_accessor :online_prediction_logging - alias_method :online_prediction_logging?, :online_prediction_logging - - # Represents a version of the model. - # Each version is a trained model deployed in the cloud, ready to handle - # prediction requests. A model can have multiple versions. You can get - # information about all of the versions of a given model by calling - # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. - # versions/list). - # Corresponds to the JSON property `defaultVersion` - # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] - attr_accessor :default_version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @regions = args[:regions] if args.key?(:regions) - @name = args[:name] if args.key?(:name) - @description = args[:description] if args.key?(:description) - @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging) - @default_version = args[:default_version] if args.key?(:default_version) - end - end - # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: @@ -1116,25 +1361,25 @@ module Google class GoogleCloudMlV1ListVersionsResponse include Google::Apis::Core::Hashable - # The list of versions. - # Corresponds to the JSON property `versions` - # @return [Array] - attr_accessor :versions - # Optional. Pass this token as the `page_token` field of the request for a # subsequent call. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token + # The list of versions. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + 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) + @versions = args[:versions] if args.key?(:versions) end end @@ -1180,7 +1425,7 @@ module Google # The number of nodes to allocate for this model. These nodes are always up, # starting from the time the model is deployed, so the cost of operating # this model will be proportional to `nodes` * number of hours since - # last billing cycle. + # last billing cycle plus the cost for each prediction performed. # Corresponds to the JSON property `nodes` # @return [Fixnum] attr_accessor :nodes @@ -1196,14 +1441,26 @@ module Google end # Specifies what kind of log the caller must write + # Increment a streamz counter with the specified metric and field names. + # Metric names should start with a '/', generally be lowercase-only, + # and end in "_count". Field names should not contain an initial slash. + # The actual exported metric names will have "/iam/policy" prepended. + # Field names correspond to IAM request parameters and field values are + # their respective values. + # At present the only supported field names are + # - "iam_principal", corresponding to IAMContext.principal; + # - "" (empty string), resulting in one aggretated counter with no field. + # Examples: + # counter ` metric: "/debug_access_count" field: "iam_principal" ` + # ==> increment counter /iam/policy/backend_debug_access_count + # `iam_principal=[value of IAMContext.principal]` + # At this time we do not support: + # * multiple field names (though this may be supported in the future) + # * decrementing the counter + # * incrementing it by anything other than 1 class GoogleIamV1LogConfig include Google::Apis::Core::Hashable - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions] - attr_accessor :counter - # Write a Data Access (Gin) log # Corresponds to the JSON property `dataAccess` # @return [Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions] @@ -1214,15 +1471,54 @@ module Google # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions] attr_accessor :cloud_audit + # Options for counters + # Corresponds to the JSON property `counter` + # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions] + attr_accessor :counter + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @counter = args[:counter] if args.key?(:counter) @data_access = args[:data_access] if args.key?(:data_access) @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) + @counter = args[:counter] if args.key?(:counter) + end + end + + # Options for automatically scaling a model. + class GoogleCloudMlV1AutoScaling + include Google::Apis::Core::Hashable + + # Optional. The minimum number of nodes to allocate for this model. These + # nodes are always up, starting from the time the model is deployed, so the + # cost of operating this model will be at least + # `rate` * `min_nodes` * number of hours since last billing cycle, + # where `rate` is the cost per node-hour as documented in + # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), + # even if no predictions are performed. There is additional cost for each + # prediction performed. + # Unlike manual scaling, if the load gets too heavy for the nodes + # that are up, the service will automatically add nodes to handle the + # increased load as well as scale back as traffic drops, always maintaining + # at least `min_nodes`. You will be charged for the time in which additional + # nodes are used. + # If not specified, `min_nodes` defaults to 0, in which case, when traffic + # to a model stops (and after a cool-down period), nodes will be shut down + # and no charges will be incurred until traffic to the model resumes. + # Corresponds to the JSON property `minNodes` + # @return [Fixnum] + attr_accessor :min_nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_nodes = args[:min_nodes] if args.key?(:min_nodes) end end @@ -1280,8 +1576,8 @@ module Google # @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. + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details @@ -1302,25 +1598,25 @@ module Google class GoogleCloudMlV1ListModelsResponse include Google::Apis::Core::Hashable + # The list of models. + # Corresponds to the JSON property `models` + # @return [Array] + attr_accessor :models + # Optional. Pass this token as the `page_token` field of the request for a # subsequent call. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The list of models. - # Corresponds to the JSON property `models` - # @return [Array] - attr_accessor :models - 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) @models = args[:models] if args.key?(:models) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1328,6 +1624,71 @@ module Google class GoogleCloudMlV1TrainingInput include Google::Apis::Core::Hashable + # Required. The Google Compute Engine region to run the training job in. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Optional. Specifies the type of virtual machine to use for your training + # job's worker nodes. + # The supported values are the same as those described in the entry for + # `masterType`. + # This value must be present when `scaleTier` is set to `CUSTOM` and + # `workerCount` is greater than zero. + # Corresponds to the JSON property `workerType` + # @return [String] + attr_accessor :worker_type + + # Optional. Command line arguments to pass to the program. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # Optional. Specifies the type of virtual machine to use for your training + # job's parameter server. + # The supported values are the same as those described in the entry for + # `master_type`. + # This value must be present when `scaleTier` is set to `CUSTOM` and + # `parameter_server_count` is greater than zero. + # Corresponds to the JSON property `parameterServerType` + # @return [String] + attr_accessor :parameter_server_type + + # Required. Specifies the machine types, the number of replicas for workers + # and parameter servers. + # Corresponds to the JSON property `scaleTier` + # @return [String] + attr_accessor :scale_tier + + # Optional. A Google Cloud Storage path in which to store training outputs + # and other data needed for training. This path is passed to your TensorFlow + # program as the 'job_dir' command-line argument. The benefit of specifying + # this field is that Cloud ML validates the path for use in training. + # Corresponds to the JSON property `jobDir` + # @return [String] + attr_accessor :job_dir + + # Represents a set of hyperparameters to optimize. + # Corresponds to the JSON property `hyperparameters` + # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec] + attr_accessor :hyperparameters + + # Optional. The number of parameter server replicas to use for the training + # job. Each replica in the cluster will be of the type specified in + # `parameter_server_type`. + # This value can only be used when `scale_tier` is set to `CUSTOM`.If you + # set this value, you must also set `parameter_server_type`. + # Corresponds to the JSON property `parameterServerCount` + # @return [Fixnum] + attr_accessor :parameter_server_count + + # Required. The Google Cloud Storage location of the packages with + # the training program and any additional dependencies. + # The maximum number of package URIs is 100. + # Corresponds to the JSON property `packageUris` + # @return [Array] + attr_accessor :package_uris + # Optional. The number of worker replicas to use for the training job. Each # replica in the cluster will be of the type specified in `worker_type`. # This value can only be used when `scale_tier` is set to `CUSTOM`. If you @@ -1397,90 +1758,25 @@ module Google # @return [String] attr_accessor :python_module - # Required. The Google Compute Engine region to run the training job in. - # Corresponds to the JSON property `region` - # @return [String] - attr_accessor :region - - # Optional. Command line arguments to pass to the program. - # Corresponds to the JSON property `args` - # @return [Array] - attr_accessor :args - - # Optional. Specifies the type of virtual machine to use for your training - # job's worker nodes. - # The supported values are the same as those described in the entry for - # `masterType`. - # This value must be present when `scaleTier` is set to `CUSTOM` and - # `workerCount` is greater than zero. - # Corresponds to the JSON property `workerType` - # @return [String] - attr_accessor :worker_type - - # Optional. Specifies the type of virtual machine to use for your training - # job's parameter server. - # The supported values are the same as those described in the entry for - # `master_type`. - # This value must be present when `scaleTier` is set to `CUSTOM` and - # `parameter_server_count` is greater than zero. - # Corresponds to the JSON property `parameterServerType` - # @return [String] - attr_accessor :parameter_server_type - - # Required. Specifies the machine types, the number of replicas for workers - # and parameter servers. - # Corresponds to the JSON property `scaleTier` - # @return [String] - attr_accessor :scale_tier - - # Optional. A Google Cloud Storage path in which to store training outputs - # and other data needed for training. This path is passed to your TensorFlow - # program as the 'job_dir' command-line argument. The benefit of specifying - # this field is that Cloud ML validates the path for use in training. - # Corresponds to the JSON property `jobDir` - # @return [String] - attr_accessor :job_dir - - # Represents a set of hyperparameters to optimize. - # Corresponds to the JSON property `hyperparameters` - # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec] - attr_accessor :hyperparameters - - # Optional. The number of parameter server replicas to use for the training - # job. Each replica in the cluster will be of the type specified in - # `parameter_server_type`. - # This value can only be used when `scale_tier` is set to `CUSTOM`.If you - # set this value, you must also set `parameter_server_type`. - # Corresponds to the JSON property `parameterServerCount` - # @return [Fixnum] - attr_accessor :parameter_server_count - - # Required. The Google Cloud Storage location of the packages with - # the training program and any additional dependencies. - # The maximum number of package URIs is 100. - # Corresponds to the JSON property `packageUris` - # @return [Array] - attr_accessor :package_uris - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @worker_count = args[:worker_count] if args.key?(:worker_count) - @master_type = args[:master_type] if args.key?(:master_type) - @runtime_version = args[:runtime_version] if args.key?(:runtime_version) - @python_module = args[:python_module] if args.key?(:python_module) @region = args[:region] if args.key?(:region) - @args = args[:args] if args.key?(:args) @worker_type = args[:worker_type] if args.key?(:worker_type) + @args = args[:args] if args.key?(:args) @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type) @scale_tier = args[:scale_tier] if args.key?(:scale_tier) @job_dir = args[:job_dir] if args.key?(:job_dir) @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters) @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count) @package_uris = args[:package_uris] if args.key?(:package_uris) + @worker_count = args[:worker_count] if args.key?(:worker_count) + @master_type = args[:master_type] if args.key?(:master_type) + @runtime_version = args[:runtime_version] if args.key?(:runtime_version) + @python_module = args[:python_module] if args.key?(:python_module) end end @@ -1488,6 +1784,26 @@ module Google class GoogleCloudMlV1Job include Google::Apis::Core::Hashable + # Output only. The detailed state of a job. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Represents input parameters for a prediction job. + # Corresponds to the JSON property `predictionInput` + # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput] + attr_accessor :prediction_input + + # Output only. The details of a failure or a cancellation. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # Required. The user-specified id of the job. + # Corresponds to the JSON property `jobId` + # @return [String] + attr_accessor :job_id + # Output only. When the job processing was completed. # Corresponds to the JSON property `endTime` # @return [String] @@ -1518,42 +1834,22 @@ module Google # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput] attr_accessor :training_input - # Represents input parameters for a prediction job. - # Corresponds to the JSON property `predictionInput` - # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput] - attr_accessor :prediction_input - - # Output only. The detailed state of a job. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Output only. The details of a failure or a cancellation. - # Corresponds to the JSON property `errorMessage` - # @return [String] - attr_accessor :error_message - - # Required. The user-specified id of the job. - # Corresponds to the JSON property `jobId` - # @return [String] - attr_accessor :job_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @state = args[:state] if args.key?(:state) + @prediction_input = args[:prediction_input] if args.key?(:prediction_input) + @error_message = args[:error_message] if args.key?(:error_message) + @job_id = args[:job_id] if args.key?(:job_id) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @prediction_output = args[:prediction_output] if args.key?(:prediction_output) @training_output = args[:training_output] if args.key?(:training_output) @create_time = args[:create_time] if args.key?(:create_time) @training_input = args[:training_input] if args.key?(:training_input) - @prediction_input = args[:prediction_input] if args.key?(:prediction_input) - @state = args[:state] if args.key?(:state) - @error_message = args[:error_message] if args.key?(:error_message) - @job_id = args[:job_id] if args.key?(:job_id) end end @@ -1588,12 +1884,6 @@ module Google class GoogleApiHttpBody include Google::Apis::Core::Hashable - # Application specific response metadata. Must be set in the first response - # for streaming APIs. - # Corresponds to the JSON property `extensions` - # @return [Array>] - attr_accessor :extensions - # HTTP body binary data. # Corresponds to the JSON property `data` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -1605,15 +1895,21 @@ module Google # @return [String] attr_accessor :content_type + # Application specific response metadata. Must be set in the first response + # for streaming APIs. + # Corresponds to the JSON property `extensions` + # @return [Array>] + attr_accessor :extensions + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @extensions = args[:extensions] if args.key?(:extensions) @data = args[:data] if args.key?(:data) @content_type = args[:content_type] if args.key?(:content_type) + @extensions = args[:extensions] if args.key?(:extensions) end end @@ -1626,22 +1922,6 @@ module Google class GoogleCloudMlV1beta1Version include Google::Apis::Core::Hashable - # Options for automatically scaling a model. - # Corresponds to the JSON property `automaticScaling` - # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1AutomaticScaling] - attr_accessor :automatic_scaling - - # Optional. The Google Cloud ML runtime version to use for this deployment. - # If not set, Google Cloud ML will choose a version. - # Corresponds to the JSON property `runtimeVersion` - # @return [String] - attr_accessor :runtime_version - - # Output only. The time the version was last used for prediction. - # Corresponds to the JSON property `lastUseTime` - # @return [String] - attr_accessor :last_use_time - # Optional. The description specified for the version when it was created. # Corresponds to the JSON property `description` # @return [String] @@ -1651,7 +1931,7 @@ module Google # create the version. See the # [overview of model # deployment](/ml-engine/docs/concepts/deployment-overview) for more - # informaiton. + # information. # When passing Version to # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects. # models.versions/create) @@ -1663,6 +1943,11 @@ module Google # @return [String] attr_accessor :deployment_uri + # Options for automatically scaling a model. + # Corresponds to the JSON property `autoScaling` + # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1AutoScaling] + attr_accessor :auto_scaling + # Output only. If true, this version will be used to handle prediction # requests that do not specify a version. # You can change the default version by calling @@ -1678,38 +1963,55 @@ module Google # @return [String] attr_accessor :create_time - # Options for manually scaling a model. - # Corresponds to the JSON property `manualScaling` - # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling] - attr_accessor :manual_scaling - # Output only. The state of a version. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state + # Options for manually scaling a model. + # Corresponds to the JSON property `manualScaling` + # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling] + attr_accessor :manual_scaling + # Required.The name specified for the version when it was created. # The version name must be unique within the model it is created in. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Output only. The details of a failure or a cancellation. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # Optional. The Google Cloud ML runtime version to use for this deployment. + # If not set, Google Cloud ML will choose a version. + # Corresponds to the JSON property `runtimeVersion` + # @return [String] + attr_accessor :runtime_version + + # Output only. The time the version was last used for prediction. + # Corresponds to the JSON property `lastUseTime` + # @return [String] + attr_accessor :last_use_time + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling) - @runtime_version = args[:runtime_version] if args.key?(:runtime_version) - @last_use_time = args[:last_use_time] if args.key?(:last_use_time) @description = args[:description] if args.key?(:description) @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri) + @auto_scaling = args[:auto_scaling] if args.key?(:auto_scaling) @is_default = args[:is_default] if args.key?(:is_default) @create_time = args[:create_time] if args.key?(:create_time) - @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) @state = args[:state] if args.key?(:state) + @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) @name = args[:name] if args.key?(:name) + @error_message = args[:error_message] if args.key?(:error_message) + @runtime_version = args[:runtime_version] if args.key?(:runtime_version) + @last_use_time = args[:last_use_time] if args.key?(:last_use_time) end end @@ -1765,11 +2067,6 @@ module Google class GoogleCloudMlV1HyperparameterOutput include Google::Apis::Core::Hashable - # An observed value of a metric. - # Corresponds to the JSON property `finalMetric` - # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric] - attr_accessor :final_metric - # The hyperparameters given to this trial. # Corresponds to the JSON property `hyperparameters` # @return [Hash] @@ -1785,16 +2082,21 @@ module Google # @return [Array] attr_accessor :all_metrics + # An observed value of a metric. + # Corresponds to the JSON property `finalMetric` + # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric] + attr_accessor :final_metric + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @final_metric = args[:final_metric] if args.key?(:final_metric) @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters) @trial_id = args[:trial_id] if args.key?(:trial_id) @all_metrics = args[:all_metrics] if args.key?(:all_metrics) + @final_metric = args[:final_metric] if args.key?(:final_metric) end end @@ -1802,6 +2104,15 @@ module Google class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of @@ -1832,57 +2143,14 @@ module Google # @return [Google::Apis::MlV1::GoogleIamV1Policy] attr_accessor :policy - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # paths: "bindings, etag" - # This field is only used by Cloud IAM. - # Corresponds to the JSON property `updateMask` - # @return [String] - attr_accessor :update_mask - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @policy = args[:policy] if args.key?(:policy) @update_mask = args[:update_mask] if args.key?(:update_mask) - end - end - - # Options for automatically scaling a model. - class GoogleCloudMlV1AutomaticScaling - include Google::Apis::Core::Hashable - - # Optional. The minimum number of nodes to allocate for this model. These - # nodes are always up, starting from the time the model is deployed, so the - # cost of operating this model will be at least - # `rate` * `min_nodes` * number of hours since last billing cycle, - # where `rate` is the cost per node-hour as documented in - # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), - # even if no predictions are performed. There is additional cost for each - # prediction performed. - # Unlike manual scaling, if the load gets too heavy for the nodes - # that are up, the service will automatically add nodes to handle the - # increased load as well as scale back as traffic drops, always maintaining - # at least `min_nodes`. You will be charged for the time in which additional - # nodes are used. - # If not specified, `min_nodes` defaults to 0, in which case, when traffic - # to a model stops (and after a cool-down period), nodes will be shut down - # and no charges will be incurred until traffic to the model resumes. - # Corresponds to the JSON property `minNodes` - # @return [Fixnum] - attr_accessor :min_nodes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min_nodes = args[:min_nodes] if args.key?(:min_nodes) + @policy = args[:policy] if args.key?(:policy) end end @@ -1890,36 +2158,36 @@ module Google class GoogleCloudMlV1PredictionOutput include Google::Apis::Core::Hashable - # The number of data instances which resulted in errors. - # Corresponds to the JSON property `errorCount` - # @return [Fixnum] - attr_accessor :error_count + # Node hours used by the batch prediction job. + # Corresponds to the JSON property `nodeHours` + # @return [Float] + attr_accessor :node_hours # The output Google Cloud Storage location provided at the job creation time. # Corresponds to the JSON property `outputPath` # @return [String] attr_accessor :output_path - # Node hours used by the batch prediction job. - # Corresponds to the JSON property `nodeHours` - # @return [Float] - attr_accessor :node_hours - # The number of generated predictions. # Corresponds to the JSON property `predictionCount` # @return [Fixnum] attr_accessor :prediction_count + # The number of data instances which resulted in errors. + # Corresponds to the JSON property `errorCount` + # @return [Fixnum] + attr_accessor :error_count + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @error_count = args[:error_count] if args.key?(:error_count) - @output_path = args[:output_path] if args.key?(:output_path) @node_hours = args[:node_hours] if args.key?(:node_hours) + @output_path = args[:output_path] if args.key?(:output_path) @prediction_count = args[:prediction_count] if args.key?(:prediction_count) + @error_count = args[:error_count] if args.key?(:error_count) end end @@ -1952,6 +2220,22 @@ module Google class GoogleIamV1Policy include Google::Apis::Core::Hashable + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + # `etag` is used for optimistic concurrency control as a way to help # prevent simultaneous updates of a policy from overwriting each other. # It is strongly suggested that systems make use of the `etag` in the @@ -1985,68 +2269,18 @@ module Google # @return [Array] attr_accessor :rules - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - # Specifies cloud audit logging configuration for this policy. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. - # `bindings` with no members will result in an error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) @version = args[:version] if args.key?(:version) @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) - end - end - - # Options for automatically scaling a model. - class GoogleCloudMlV1beta1AutomaticScaling - include Google::Apis::Core::Hashable - - # Optional. The minimum number of nodes to allocate for this model. These - # nodes are always up, starting from the time the model is deployed, so the - # cost of operating this model will be at least - # `rate` * `min_nodes` * number of hours since last billing cycle, - # where `rate` is the cost per node-hour as documented in - # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), - # even if no predictions are performed. There is additional cost for each - # prediction performed. - # Unlike manual scaling, if the load gets too heavy for the nodes - # that are up, the service will automatically add nodes to handle the - # increased load as well as scale back as traffic drops, always maintaining - # at least `min_nodes`. You will be charged for the time in which additional - # nodes are used. - # If not specified, `min_nodes` defaults to 0, in which case, when traffic - # to a model stops (and after a cool-down period), nodes will be shut down - # and no charges will be incurred until traffic to the model resumes. - # Corresponds to the JSON property `minNodes` - # @return [Fixnum] - attr_accessor :min_nodes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min_nodes = args[:min_nodes] if args.key?(:min_nodes) + @etag = args[:etag] if args.key?(:etag) + @iam_owned = args[:iam_owned] if args.key?(:iam_owned) + @rules = args[:rules] if args.key?(:rules) end end @@ -2054,24 +2288,24 @@ module Google class GoogleLongrunningListOperationsResponse 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 + # 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) - @operations = args[:operations] if args.key?(:operations) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) end end @@ -2089,17 +2323,17 @@ module Google # @return [String] attr_accessor :svc - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - # Trusted attributes supplied by any service that owns resources and uses # the IAM system for access control. # Corresponds to the JSON property `sys` # @return [String] attr_accessor :sys + # DEPRECATED. Use 'values' instead. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + # The objects of the condition. This is mutually exclusive with 'value'. # Corresponds to the JSON property `values` # @return [Array] @@ -2118,210 +2352,12 @@ module Google def update!(**args) @op = args[:op] if args.key?(:op) @svc = args[:svc] if args.key?(:svc) - @value = args[:value] if args.key?(:value) @sys = args[:sys] if args.key?(:sys) + @value = args[:value] if args.key?(:value) @values = args[:values] if args.key?(:values) @iam = args[:iam] if args.key?(:iam) end end - - # Options for manually scaling a model. - class GoogleCloudMlV1ManualScaling - include Google::Apis::Core::Hashable - - # The number of nodes to allocate for this model. These nodes are always up, - # starting from the time the model is deployed, so the cost of operating - # this model will be proportional to `nodes` * number of hours since - # last billing cycle plus the cost for each prediction performed. - # Corresponds to the JSON property `nodes` - # @return [Fixnum] - attr_accessor :nodes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @nodes = args[:nodes] if args.key?(:nodes) - end - end - - # Associates `members` with a `role`. - class GoogleIamV1Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` or `joe@example.com`. - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" - # Corresponds to the JSON property `condition` - # @return [Google::Apis::MlV1::GoogleTypeExpr] - attr_accessor :condition - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - @condition = args[:condition] if args.key?(:condition) - end - end - - # Represents results of a training job. Output only. - class GoogleCloudMlV1TrainingOutput - include Google::Apis::Core::Hashable - - # The number of hyperparameter tuning trials that completed successfully. - # Only set for hyperparameter tuning jobs. - # Corresponds to the JSON property `completedTrialCount` - # @return [Fixnum] - attr_accessor :completed_trial_count - - # Whether this job is a hyperparameter tuning job. - # Corresponds to the JSON property `isHyperparameterTuningJob` - # @return [Boolean] - attr_accessor :is_hyperparameter_tuning_job - alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job - - # The amount of ML units consumed by the job. - # Corresponds to the JSON property `consumedMLUnits` - # @return [Float] - attr_accessor :consumed_ml_units - - # Results for individual Hyperparameter trials. - # Only set for hyperparameter tuning jobs. - # Corresponds to the JSON property `trials` - # @return [Array] - attr_accessor :trials - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count) - @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job) - @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units) - @trials = args[:trials] if args.key?(:trials) - end - end - - # A rule to be applied in a Policy. - class GoogleIamV1Rule - include Google::Apis::Core::Hashable - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries is the same as for members in a - # Binding (see google/iam/v1/policy.proto). - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_config = args[:log_config] if args.key?(:log_config) - @in = args[:in] if args.key?(:in) - @permissions = args[:permissions] if args.key?(:permissions) - @action = args[:action] if args.key?(:action) - @not_in = args[:not_in] if args.key?(:not_in) - @description = args[:description] if args.key?(:description) - @conditions = args[:conditions] if args.key?(:conditions) - end - end - - # Options for counters - class GoogleIamV1LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric = args[:metric] if args.key?(:metric) - @field = args[:field] if args.key?(:field) - end - end end end end diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index 9fd56452e..7983a94e0 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -22,6 +22,42 @@ module Google module Apis module MlV1 + class GoogleCloudMlV1ManualScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1TrainingOutput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1beta1AutoScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1Rule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1LogConfigCounterOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1PredictRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,13 +148,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleIamV1AuditConfig + class GoogleCloudMlV1Model class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1Model + class GoogleIamV1AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -160,6 +196,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudMlV1AutoScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleRpcStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,12 +262,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1AutomaticScaling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudMlV1PredictionOutput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -238,12 +274,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudMlV1beta1AutomaticScaling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleLongrunningListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -257,33 +287,61 @@ module Google end class GoogleCloudMlV1ManualScaling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nodes, as: 'nodes' + end end class GoogleIamV1Binding - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::MlV1::GoogleTypeExpr, decorator: Google::Apis::MlV1::GoogleTypeExpr::Representation - include Google::Apis::Core::JsonObjectSupport + collection :members, as: 'members' + property :role, as: 'role' + end end class GoogleCloudMlV1TrainingOutput - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation - include Google::Apis::Core::JsonObjectSupport + property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount' + property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob' + property :consumed_ml_units, as: 'consumedMLUnits' + end + end + + class GoogleCloudMlV1beta1AutoScaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_nodes, as: 'minNodes' + end end class GoogleIamV1Rule - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + collection :conditions, as: 'conditions', class: Google::Apis::MlV1::GoogleIamV1Condition, decorator: Google::Apis::MlV1::GoogleIamV1Condition::Representation - include Google::Apis::Core::JsonObjectSupport + collection :log_config, as: 'logConfig', class: Google::Apis::MlV1::GoogleIamV1LogConfig, decorator: Google::Apis::MlV1::GoogleIamV1LogConfig::Representation + + collection :in, as: 'in' + collection :permissions, as: 'permissions' + property :action, as: 'action' + collection :not_in, as: 'notIn' + end end class GoogleIamV1LogConfigCounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field, as: 'field' + property :metric, as: 'metric' + end end class GoogleCloudMlV1PredictRequest @@ -297,8 +355,8 @@ module Google class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric # @private class Representation < Google::Apis::Core::JsonRepresentation - property :training_step, :numeric_string => true, as: 'trainingStep' property :objective_value, as: 'objectiveValue' + property :training_step, :numeric_string => true, as: 'trainingStep' end end @@ -306,37 +364,39 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :log_name, as: 'logName' + property :is_read_permission_type, as: 'isReadPermissionType' end end class GoogleCloudMlV1Version # @private class Representation < Google::Apis::Core::JsonRepresentation - property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation - - property :state, as: 'state' - property :name, as: 'name' - property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::MlV1::GoogleCloudMlV1AutomaticScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1AutomaticScaling::Representation - property :runtime_version, as: 'runtimeVersion' property :last_use_time, as: 'lastUseTime' property :description, as: 'description' property :deployment_uri, as: 'deploymentUri' + property :auto_scaling, as: 'autoScaling', class: Google::Apis::MlV1::GoogleCloudMlV1AutoScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1AutoScaling::Representation + property :is_default, as: 'isDefault' property :create_time, as: 'createTime' + property :state, as: 'state' + property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation + + property :name, as: 'name' + property :error_message, as: 'errorMessage' end end class GoogleCloudMlV1ParameterSpec # @private class Representation < Google::Apis::Core::JsonRepresentation - property :scale_type, as: 'scaleType' - property :max_value, as: 'maxValue' - property :type, as: 'type' collection :categorical_values, as: 'categoricalValues' property :parameter_name, as: 'parameterName' property :min_value, as: 'minValue' collection :discrete_values, as: 'discreteValues' + property :max_value, as: 'maxValue' + property :scale_type, as: 'scaleType' + property :type, as: 'type' end end @@ -353,8 +413,8 @@ module Google property :version_name, as: 'versionName' property :model_name, as: 'modelName' property :output_path, as: 'outputPath' - property :uri, as: 'uri' property :max_worker_count, :numeric_string => true, as: 'maxWorkerCount' + property :uri, as: 'uri' property :data_format, as: 'dataFormat' property :runtime_version, as: 'runtimeVersion' collection :input_paths, as: 'inputPaths' @@ -364,32 +424,32 @@ module Google class GoogleTypeExpr # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - property :location, as: 'location' - property :description, as: 'description' property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + property :description, as: 'description' end end class GoogleIamV1AuditLogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :log_type, as: 'logType' collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' end end class GoogleCloudMlV1OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation - property :end_time, as: 'endTime' property :operation_type, as: 'operationType' property :start_time, as: 'startTime' property :is_cancellation_requested, as: 'isCancellationRequested' property :create_time, as: 'createTime' property :model_name, as: 'modelName' + property :version, as: 'version', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation + end end @@ -410,12 +470,12 @@ module Google class GoogleCloudMlV1HyperparameterSpec # @private class Representation < Google::Apis::Core::JsonRepresentation - property :max_parallel_trials, as: 'maxParallelTrials' - property :goal, as: 'goal' - property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag' + property :max_trials, as: 'maxTrials' collection :params, as: 'params', class: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec::Representation - property :max_trials, as: 'maxTrials' + property :max_parallel_trials, as: 'maxParallelTrials' + property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag' + property :goal, as: 'goal' end end @@ -446,16 +506,6 @@ module Google end end - class GoogleIamV1AuditConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :service, as: 'service' - collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MlV1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::MlV1::GoogleIamV1AuditLogConfig::Representation - - end - end - class GoogleCloudMlV1Model # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -468,6 +518,16 @@ module Google end end + class GoogleIamV1AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :service, as: 'service' + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MlV1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::MlV1::GoogleIamV1AuditLogConfig::Representation + + end + end + class GoogleProtobufEmpty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -477,9 +537,9 @@ module Google class GoogleCloudMlV1ListVersionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :versions, as: 'versions', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -506,12 +566,19 @@ module Google class GoogleIamV1LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :counter, as: 'counter', class: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions::Representation - property :data_access, as: 'dataAccess', class: Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions::Representation property :cloud_audit, as: 'cloudAudit', class: Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions::Representation + property :counter, as: 'counter', class: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions, decorator: Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions::Representation + + end + end + + class GoogleCloudMlV1AutoScaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_nodes, as: 'minNodes' end end @@ -527,22 +594,18 @@ module Google class GoogleCloudMlV1ListModelsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :models, as: 'models', class: Google::Apis::MlV1::GoogleCloudMlV1Model, decorator: Google::Apis::MlV1::GoogleCloudMlV1Model::Representation + property :next_page_token, as: 'nextPageToken' end end class GoogleCloudMlV1TrainingInput # @private class Representation < Google::Apis::Core::JsonRepresentation - property :worker_count, :numeric_string => true, as: 'workerCount' - property :master_type, as: 'masterType' - property :runtime_version, as: 'runtimeVersion' - property :python_module, as: 'pythonModule' property :region, as: 'region' - collection :args, as: 'args' property :worker_type, as: 'workerType' + collection :args, as: 'args' property :parameter_server_type, as: 'parameterServerType' property :scale_tier, as: 'scaleTier' property :job_dir, as: 'jobDir' @@ -550,12 +613,21 @@ module Google property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount' collection :package_uris, as: 'packageUris' + property :worker_count, :numeric_string => true, as: 'workerCount' + property :master_type, as: 'masterType' + property :runtime_version, as: 'runtimeVersion' + property :python_module, as: 'pythonModule' end end class GoogleCloudMlV1Job # @private class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation + + property :error_message, as: 'errorMessage' + property :job_id, as: 'jobId' property :end_time, as: 'endTime' property :start_time, as: 'startTime' property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation @@ -565,38 +637,34 @@ module Google property :create_time, as: 'createTime' property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation - property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation - - property :state, as: 'state' - property :error_message, as: 'errorMessage' - property :job_id, as: 'jobId' end end class GoogleApiHttpBody # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :extensions, as: 'extensions' property :data, :base64 => true, as: 'data' property :content_type, as: 'contentType' + collection :extensions, as: 'extensions' end end class GoogleCloudMlV1beta1Version # @private class Representation < Google::Apis::Core::JsonRepresentation - property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1AutomaticScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1AutomaticScaling::Representation - - property :runtime_version, as: 'runtimeVersion' - property :last_use_time, as: 'lastUseTime' property :description, as: 'description' property :deployment_uri, as: 'deploymentUri' + property :auto_scaling, as: 'autoScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1AutoScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1AutoScaling::Representation + property :is_default, as: 'isDefault' property :create_time, as: 'createTime' + property :state, as: 'state' property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation - property :state, as: 'state' property :name, as: 'name' + property :error_message, as: 'errorMessage' + property :runtime_version, as: 'runtimeVersion' + property :last_use_time, as: 'lastUseTime' end end @@ -618,69 +686,55 @@ module Google class GoogleCloudMlV1HyperparameterOutput # @private class Representation < Google::Apis::Core::JsonRepresentation - property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation - hash :hyperparameters, as: 'hyperparameters' property :trial_id, as: 'trialId' collection :all_metrics, as: 'allMetrics', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation + property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation + end end class GoogleIamV1SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :update_mask, as: 'updateMask' property :policy, as: 'policy', class: Google::Apis::MlV1::GoogleIamV1Policy, decorator: Google::Apis::MlV1::GoogleIamV1Policy::Representation - property :update_mask, as: 'updateMask' - end - end - - class GoogleCloudMlV1AutomaticScaling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :min_nodes, as: 'minNodes' end end class GoogleCloudMlV1PredictionOutput # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error_count, :numeric_string => true, as: 'errorCount' - property :output_path, as: 'outputPath' property :node_hours, as: 'nodeHours' + property :output_path, as: 'outputPath' property :prediction_count, :numeric_string => true, as: 'predictionCount' + property :error_count, :numeric_string => true, as: 'errorCount' end end class GoogleIamV1Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::MlV1::GoogleIamV1Rule, decorator: Google::Apis::MlV1::GoogleIamV1Rule::Representation - property :version, as: 'version' collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MlV1::GoogleIamV1AuditConfig, decorator: Google::Apis::MlV1::GoogleIamV1AuditConfig::Representation collection :bindings, as: 'bindings', class: Google::Apis::MlV1::GoogleIamV1Binding, decorator: Google::Apis::MlV1::GoogleIamV1Binding::Representation - end - end + property :etag, :base64 => true, as: 'etag' + property :iam_owned, as: 'iamOwned' + collection :rules, as: 'rules', class: Google::Apis::MlV1::GoogleIamV1Rule, decorator: Google::Apis::MlV1::GoogleIamV1Rule::Representation - class GoogleCloudMlV1beta1AutomaticScaling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :min_nodes, as: 'minNodes' end end class GoogleLongrunningListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::MlV1::GoogleLongrunningOperation, decorator: Google::Apis::MlV1::GoogleLongrunningOperation::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -689,63 +743,12 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :op, as: 'op' property :svc, as: 'svc' - property :value, as: 'value' property :sys, as: 'sys' + property :value, as: 'value' collection :values, as: 'values' property :iam, as: 'iam' end end - - class GoogleCloudMlV1ManualScaling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :nodes, as: 'nodes' - end - end - - class GoogleIamV1Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - property :condition, as: 'condition', class: Google::Apis::MlV1::GoogleTypeExpr, decorator: Google::Apis::MlV1::GoogleTypeExpr::Representation - - end - end - - class GoogleCloudMlV1TrainingOutput - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount' - property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob' - property :consumed_ml_units, as: 'consumedMLUnits' - collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation - - end - end - - class GoogleIamV1Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :log_config, as: 'logConfig', class: Google::Apis::MlV1::GoogleIamV1LogConfig, decorator: Google::Apis::MlV1::GoogleIamV1LogConfig::Representation - - collection :in, as: 'in' - collection :permissions, as: 'permissions' - property :action, as: 'action' - collection :not_in, as: 'notIn' - property :description, as: 'description' - collection :conditions, as: 'conditions', class: Google::Apis::MlV1::GoogleIamV1Condition, decorator: Google::Apis::MlV1::GoogleIamV1Condition::Representation - - end - end - - class GoogleIamV1LogConfigCounterOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' - property :field, as: 'field' - end - end end end end diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index ce4b1cae6..e70b70bdb 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -53,7 +53,6 @@ module Google # for training the model with Google Cloud Machine Learning. # @param [String] name # Required. The project name. - # Authorization: requires `Viewer` role on the specified project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -85,7 +84,7 @@ module Google # **** REMOVE FROM GENERATED DOCUMENTATION # @param [String] name # Required. The resource name of a model or a version. - # Authorization: requires `Viewer` role on the parent project. + # Authorization: requires the `predict` permission on the specified resource. # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -116,381 +115,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists the jobs in the project. - # @param [String] parent - # Required. The name of the project for which to list jobs. - # Authorization: requires `Viewer` role on the specified project. - # @param [Fixnum] page_size - # Optional. The number of jobs to retrieve per "page" of results. If there - # are more remaining results than this number, the response message will - # contain a valid value in the `next_page_token` field. - # The default value is 20, and the maximum page size is 100. - # @param [String] filter - # Optional. Specifies the subset of jobs to retrieve. - # @param [String] page_token - # Optional. A page token to request the next page of results. - # You get the token from the `next_page_token` field of the response from - # the previous call. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_jobs(parent, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/jobs', options) - command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation - command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse - command.params['parent'] = parent unless parent.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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Describes a job. - # @param [String] name - # Required. The name of the job to get the description of. - # Authorization: requires `Viewer` role on the parent project. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleCloudMlV1Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation - command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a training or a batch prediction job. - # @param [String] parent - # Required. The project name. - # Authorization: requires `Editor` role on the specified project. - # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleCloudMlV1Job] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/jobs', options) - command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation - command.request_object = google_cloud_ml_v1__job_object - command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation - command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Cancels a running job. - # @param [String] name - # Required. The name of the job to cancel. - # Authorization: requires `Editor` role on the parent project. - # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleProtobufEmpty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:cancel', options) - command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation - command.request_object = google_cloud_ml_v1__cancel_job_request_object - command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MlV1::GoogleLongrunningListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/operations', options) - command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.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 the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleLongrunningOperation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleProtobufEmpty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:cancel', options) - command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleProtobufEmpty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_project_model_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest::Representation - command.request_object = google_iam_v1__test_iam_permissions_request_object - command.response_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a model. - # You can only delete a model if there are no versions in it. You can delete - # versions by calling - # [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models. - # versions/delete). - # @param [String] name - # Required. The name of the model. - # Authorization: requires `Editor` role on the parent project. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleLongrunningOperation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Lists the models in a project. # Each project can contain multiple models, and each model can have multiple # versions. # @param [String] parent # Required. The name of the project whose models are to be listed. - # Authorization: requires `Viewer` role on the specified project. # @param [String] page_token # Optional. A page token to request the next page of results. # You get the token from the `next_page_token` field of the response from @@ -571,7 +200,6 @@ module Google # versions/create). # @param [String] parent # Required. The project name. - # Authorization: requires `Editor` role on the specified project. # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -640,7 +268,6 @@ module Google # been deployed). # @param [String] name # Required. The name of the model. - # Authorization: requires `Viewer` role on the parent project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -668,17 +295,52 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a model version. - # Each model can have multiple versions deployed and in use at any given - # time. Use this method to remove a single version. - # Note: You cannot delete the version that is set as the default version - # of the model unless it is the only remaining version. + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_project_model_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest::Representation + command.request_object = google_iam_v1__test_iam_permissions_request_object + command.response_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a model. + # You can only delete a model if there are no versions in it. You can delete + # versions by calling + # [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models. + # versions/delete). # @param [String] name - # Required. The name of the version. You can get the names of all the - # versions of a model by calling - # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. - # versions/list). - # Authorization: requires `Editor` role on the parent project. + # Required. The name of the model. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -696,7 +358,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation @@ -706,87 +368,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets basic information about all the versions of a model. - # If you expect that a model has a lot of versions, or if you need to handle - # only a limited number of results at a time, you can request that the list - # be retrieved in batches (called pages): - # @param [String] parent - # Required. The name of the model for which to list the version. - # Authorization: requires `Viewer` role on the parent project. - # @param [String] page_token - # Optional. A page token to request the next page of results. - # You get the token from the `next_page_token` field of the response from - # the previous call. - # @param [Fixnum] page_size - # Optional. The number of versions to retrieve per "page" of results. If - # there are more remaining results than this number, the response message - # will contain a valid value in the `next_page_token` field. - # The default value is 20, and the maximum page size is 100. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/versions', options) - command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation - command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse - command.params['parent'] = parent unless parent.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 information about a model version. - # Models can have multiple versions. You can call - # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. - # versions/list) - # to get the same information that this method returns for all of the - # versions of a model. - # @param [String] name - # Required. The name of the version. - # Authorization: requires `Viewer` role on the parent project. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation - command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Creates a new version of a model from a trained TensorFlow model. # If the version created in the cloud by this call is the first deployed # version of the specified model, it will be made the default version of the @@ -797,7 +378,6 @@ module Google # models.versions/setDefault). # @param [String] parent # Required. The name of the model. - # Authorization: requires `Editor` role on the parent project. # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -839,7 +419,7 @@ module Google # can get the names of all the versions of a model by calling # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. # versions/list). - # Authorization: requires `Editor` role on the parent project. + # Authorization: `ml.models.update` permission is required on the parent model. # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -869,6 +449,413 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Deletes a model version. + # Each model can have multiple versions deployed and in use at any given + # time. Use this method to remove a single version. + # Note: You cannot delete the version that is set as the default version + # of the model unless it is the only remaining version. + # @param [String] name + # Required. The name of the version. You can get the names of all the + # versions of a model by calling + # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. + # versions/list). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a model version. + # Models can have multiple versions. You can call + # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. + # versions/list) + # to get the same information that this method returns for all of the + # versions of a model. + # @param [String] name + # Required. The name of the 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::MlV1::GoogleCloudMlV1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets basic information about all the versions of a model. + # If you expect that a model has a lot of versions, or if you need to handle + # only a limited number of results at a time, you can request that the list + # be retrieved in batches (called pages): + # @param [String] parent + # Required. The name of the model for which to list the version. + # @param [Fixnum] page_size + # Optional. The number of versions to retrieve per "page" of results. If + # there are more remaining results than this number, the response message + # will contain a valid value in the `next_page_token` field. + # The default value is 20, and the maximum page size is 100. + # @param [String] page_token + # Optional. A page token to request the next page of results. + # You get the token from the `next_page_token` field of the response from + # the previous call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_model_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/versions', options) + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::MlV1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse + 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['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a training or a batch prediction job. + # @param [String] parent + # Required. The project name. + # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/jobs', options) + command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + command.request_object = google_cloud_ml_v1__job_object + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Cancels a running job. + # @param [String] name + # Required. The name of the job to cancel. + # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation + command.request_object = google_cloud_ml_v1__cancel_job_request_object + command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Describes a job. + # @param [String] name + # Required. The name of the job to get the description of. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::MlV1::GoogleCloudMlV1Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the jobs in the project. + # @param [String] parent + # Required. The name of the project for which to list jobs. + # @param [String] page_token + # Optional. A page token to request the next page of results. + # You get the token from the `next_page_token` field of the response from + # the previous call. + # @param [Fixnum] page_size + # Optional. The number of jobs to retrieve per "page" of results. If there + # are more remaining results than this number, the response message will + # contain a valid value in the `next_page_token` field. + # The default value is 20, and the maximum page size is 100. + # @param [String] filter + # Optional. Specifies the subset of jobs 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/jobs', options) + command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation + command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 2b4baca63..7606b8f71 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,19 +27,19 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20170606' + REVISION = '20170710' + + # View and write monitoring data for all of your Google and third-party Cloud and API projects + AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring' # Publish metric data to your Google Cloud projects AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write' - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - # View monitoring data for all of your Google Cloud and third-party projects AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read' - # View and write monitoring data for all of your Google and third-party Cloud and API projects - AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring' + # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 936c8da26..e8748463a 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -22,6 +22,680 @@ module Google module Apis module MonitoringV3 + # The range of the population values. + class Range + include Google::Apis::Core::Hashable + + # The minimum of the population values. + # Corresponds to the JSON property `min` + # @return [Float] + attr_accessor :min + + # The maximum of the population values. + # Corresponds to the JSON property `max` + # @return [Float] + attr_accessor :max + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min = args[:min] if args.key?(:min) + @max = args[:max] if args.key?(:max) + end + end + + # The ListGroups response. + class ListGroupsResponse + include Google::Apis::Core::Hashable + + # The groups that match the specified filters. + # Corresponds to the JSON property `group` + # @return [Array] + attr_accessor :group + + # If there are more results than have been returned, then this field is set to a + # non-empty value. To see the additional results, use that value as pageToken in + # the next call to this method. + # 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) + @group = args[:group] if args.key?(:group) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The CreateCollectdTimeSeries request. + class CreateCollectdTimeSeriesRequest + include Google::Apis::Core::Hashable + + # The version of collectd that collected the data. Example: "5.3.0-192.el6". + # Corresponds to the JSON property `collectdVersion` + # @return [String] + attr_accessor :collectd_version + + # The collectd payloads representing the time series data. You must not include + # more than a single point for each time series, so no two payloads can have the + # same values for all of the fields plugin, plugin_instance, type, and + # type_instance. + # Corresponds to the JSON property `collectdPayloads` + # @return [Array] + attr_accessor :collectd_payloads + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::MonitoringV3::MonitoredResource] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collectd_version = args[:collectd_version] if args.key?(:collectd_version) + @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads) + @resource = args[:resource] if args.key?(:resource) + end + end + + # The ListGroupMembers response. + class ListGroupMembersResponse + include Google::Apis::Core::Hashable + + # A set of monitored resources in the group. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # If there are more results than have been returned, then this field is set to a + # non-empty value. To see the additional results, use that value as pageToken in + # the next call to this method. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total number of elements matching this request. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @members = args[:members] if args.key?(:members) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_size = args[:total_size] if args.key?(:total_size) + end + end + + # The ListMonitoredResourceDescriptors response. + class ListMonitoredResourceDescriptorsResponse + include Google::Apis::Core::Hashable + + # If there are more results than have been returned, then this field is set to a + # non-empty value. To see the additional results, use that value as pageToken in + # the next call to this method. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The monitored resource descriptors that are available to this project and that + # match filter, if present. + # Corresponds to the JSON property `resourceDescriptors` + # @return [Array] + attr_accessor :resource_descriptors + + 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) + @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors) + end + end + + # A collection of data points that describes the time-varying values of a metric. + # A time series is identified by a combination of a fully-specified monitored + # resource and a fully-specified metric. This type is used for both listing and + # creating time series. + class TimeSeries + include Google::Apis::Core::Hashable + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + # Corresponds to the JSON property `resource` + # @return [Google::Apis::MonitoringV3::MonitoredResource] + attr_accessor :resource + + # The metric kind of the time series. When listing time series, this metric kind + # might be different from the metric kind of the associated metric if this time + # series is an alignment or reduction of other time series.When creating a time + # series, this field is optional. If present, it must be the same as the metric + # kind of the associated metric. If the associated metric's descriptor must be + # auto-created, then this field specifies the metric kind of the new descriptor + # and must be either GAUGE (the default) or CUMULATIVE. + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + # The data points of this time series. When listing time series, the order of + # the points is specified by the list method.When creating a time series, this + # field must contain exactly one point and the point's type must be the same as + # the value type of the associated metric. If the associated metric's descriptor + # must be auto-created, then the value type of the descriptor is determined by + # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. + # Corresponds to the JSON property `points` + # @return [Array] + attr_accessor :points + + # A specific metric, identified by specifying values for all of the labels of a + # MetricDescriptor. + # Corresponds to the JSON property `metric` + # @return [Google::Apis::MonitoringV3::Metric] + attr_accessor :metric + + # The value type of the time series. When listing time series, this value type + # might be different from the value type of the associated metric if this time + # series is an alignment or reduction of other time series.When creating a time + # series, this field is optional. If present, it must be the same as the type of + # the data in the points field. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] if args.key?(:resource) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @points = args[:points] if args.key?(:points) + @metric = args[:metric] if args.key?(:metric) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + + # The CreateTimeSeries request. + class CreateTimeSeriesRequest + include Google::Apis::Core::Hashable + + # The new data to be added to a list of time series. Adds at most one data point + # to each of several time series. The new data point must be more recent than + # any other point in its time series. Each TimeSeries value must fully specify a + # unique time series by supplying all label values for the metric and the + # monitored resource. + # Corresponds to the JSON property `timeSeries` + # @return [Array] + attr_accessor :time_series + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @time_series = args[:time_series] if args.key?(:time_series) + end + end + + # Distribution contains summary statistics for a population of values. It + # optionally contains a histogram representing the distribution of those values + # across a set of buckets.The summary statistics are the count, mean, sum of the + # squared deviation from the mean, the minimum, and the maximum of the set of + # population of values. The histogram is based on a sequence of buckets and + # gives a count of values that fall into each bucket. The boundaries of the + # buckets are given either explicitly or by formulas for buckets of fixed or + # exponentially increasing widths.Although it is not forbidden, it is generally + # a bad idea to include non-finite values (infinities or NaNs) in the population + # of values, as this will render the mean and sum_of_squared_deviation fields + # meaningless. + class Distribution + include Google::Apis::Core::Hashable + + # Required in the Stackdriver Monitoring API v3. The values for each bucket + # specified in bucket_options. The sum of the values in bucketCounts must equal + # the value in the count field of the Distribution object. The order of the + # bucket counts follows the numbering schemes described for the three bucket + # types. The underflow bucket has number 0; the finite buckets, if any, have + # numbers 1 through N-2; and the overflow bucket has number N-1. The size of + # bucket_counts must not be greater than N. If the size is less than N, then the + # remaining buckets are assigned values of zero. + # Corresponds to the JSON property `bucketCounts` + # @return [Array] + attr_accessor :bucket_counts + + # BucketOptions describes the bucket boundaries used to create a histogram for + # the distribution. The buckets can be in a linear sequence, an exponential + # sequence, or each bucket can be specified explicitly. BucketOptions does not + # include the number of values in each bucket.A bucket has an inclusive lower + # bound and exclusive upper bound for the values that are counted for that + # bucket. The upper bound of a bucket must be strictly greater than the lower + # bound. The sequence of N buckets for a distribution consists of an underflow + # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an + # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of + # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets + # span the whole range of finite values: lower bound of the underflow bucket is - + # infinity and the upper bound of the overflow bucket is +infinity. The finite + # buckets are so-called because both bounds are finite. + # Corresponds to the JSON property `bucketOptions` + # @return [Google::Apis::MonitoringV3::BucketOptions] + attr_accessor :bucket_options + + # The sum of squared deviations from the mean of the values in the population. + # For values x_i this is: + # Sum[i=1..n]((x_i - mean)^2) + # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition + # describes Welford's method for accumulating this sum in one pass.If count is + # zero then this field must be zero. + # Corresponds to the JSON property `sumOfSquaredDeviation` + # @return [Float] + attr_accessor :sum_of_squared_deviation + + # The range of the population values. + # Corresponds to the JSON property `range` + # @return [Google::Apis::MonitoringV3::Range] + attr_accessor :range + + # The number of values in the population. Must be non-negative. This value must + # equal the sum of the values in bucket_counts if a histogram is provided. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # The arithmetic mean of the values in the population. If count is zero then + # this field must be zero. + # Corresponds to the JSON property `mean` + # @return [Float] + attr_accessor :mean + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts) + @bucket_options = args[:bucket_options] if args.key?(:bucket_options) + @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation) + @range = args[:range] if args.key?(:range) + @count = args[:count] if args.key?(:count) + @mean = args[:mean] if args.key?(:mean) + end + end + + # An object representing a resource that can be used for monitoring, logging, + # billing, or other purposes. Examples include virtual machine instances, + # databases, and storage devices such as disks. The type field identifies a + # MonitoredResourceDescriptor object that describes the resource's schema. + # Information in the labels field identifies the actual resource and its + # attributes according to the schema. For example, a particular Compute Engine + # VM instance could be represented by the following object, because the + # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " + # zone": + # ` "type": "gce_instance", + # "labels": ` "instance_id": "12345678901234", + # "zone": "us-central1-a" `` + class MonitoredResource + include Google::Apis::Core::Hashable + + # Required. Values for all of the labels listed in the associated monitored + # resource descriptor. For example, Compute Engine VM instances use the labels " + # project_id", "instance_id", and "zone". + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Required. The monitored resource type. This field must match the type field of + # a MonitoredResourceDescriptor object. For example, the type of a Compute + # Engine VM instance is gce_instance. + # 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) + @labels = args[:labels] if args.key?(:labels) + @type = args[:type] if args.key?(:type) + end + end + + # The ListMetricDescriptors response. + class ListMetricDescriptorsResponse + include Google::Apis::Core::Hashable + + # If there are more results than have been returned, then this field is set to a + # non-empty value. To see the additional results, use that value as pageToken in + # the next call to this method. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The metric descriptors that are available to the project and that match the + # value of filter, if present. + # Corresponds to the JSON property `metricDescriptors` + # @return [Array] + attr_accessor :metric_descriptors + + 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) + @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors) + end + end + + # An object that describes the schema of a MonitoredResource object using a type + # name and a set of labels. For example, the monitored resource descriptor for + # Google Compute Engine VM instances has a type of "gce_instance" and specifies + # the use of the labels "instance_id" and "zone" to identify particular VM + # instances.Different APIs can support different monitored resource types. APIs + # generally provide a list method that returns the monitored resource + # descriptors used by the API. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # Required. The monitored resource type. For example, the type " + # cloudsql_database" represents databases in Google Cloud SQL. The maximum + # length of this value is 256 characters. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required. A set of labels used to describe instances of this monitored + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels "database_id" and "zone". + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Optional. The resource name of the monitored resource descriptor: "projects/` + # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of + # the type field in this object and `project_id` is a project ID that provides + # API-specific context for accessing the type. APIs that do not use project + # information can use the resource name format "monitoredResourceDescriptors/` + # type`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A detailed description of the monitored resource type that might be + # used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A concise name for the monitored resource type that might be + # displayed in user interfaces. It should be a Title Cased Noun Phrase, without + # any article or other determiners. For example, "Google Cloud SQL Database". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + + # A single strongly-typed value. + class TypedValue + include Google::Apis::Core::Hashable + + # A 64-bit double-precision floating-point number. Its magnitude is + # approximately ±10±300 and it has 16 significant + # digits of precision. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # A 64-bit integer. Its range is approximately ±9.2x1018. + # Corresponds to the JSON property `int64Value` + # @return [Fixnum] + attr_accessor :int64_value + + # Distribution contains summary statistics for a population of values. It + # optionally contains a histogram representing the distribution of those values + # across a set of buckets.The summary statistics are the count, mean, sum of the + # squared deviation from the mean, the minimum, and the maximum of the set of + # population of values. The histogram is based on a sequence of buckets and + # gives a count of values that fall into each bucket. The boundaries of the + # buckets are given either explicitly or by formulas for buckets of fixed or + # exponentially increasing widths.Although it is not forbidden, it is generally + # a bad idea to include non-finite values (infinities or NaNs) in the population + # of values, as this will render the mean and sum_of_squared_deviation fields + # meaningless. + # Corresponds to the JSON property `distributionValue` + # @return [Google::Apis::MonitoringV3::Distribution] + attr_accessor :distribution_value + + # A variable-length string value. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + # A Boolean value: true or false. + # Corresponds to the JSON property `boolValue` + # @return [Boolean] + attr_accessor :bool_value + alias_method :bool_value?, :bool_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @double_value = args[:double_value] if args.key?(:double_value) + @int64_value = args[:int64_value] if args.key?(:int64_value) + @distribution_value = args[:distribution_value] if args.key?(:distribution_value) + @string_value = args[:string_value] if args.key?(:string_value) + @bool_value = args[:bool_value] if args.key?(:bool_value) + end + end + + # A collection of data points sent from a collectd-based plugin. See the + # collectd documentation for more information. + class CollectdPayload + include Google::Apis::Core::Hashable + + # The measurement type instance. Example: "used". + # Corresponds to the JSON property `typeInstance` + # @return [String] + attr_accessor :type_instance + + # The measurement type. Example: "memory". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The measurement metadata. Example: "process_id" -> 12345 + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The name of the plugin. Example: "disk". + # Corresponds to the JSON property `plugin` + # @return [String] + attr_accessor :plugin + + # The instance name of the plugin Example: "hdcl". + # Corresponds to the JSON property `pluginInstance` + # @return [String] + attr_accessor :plugin_instance + + # The end time of the interval. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The start time of the interval. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The measured values during this time interval. Each value must have a + # different dataSourceName. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type_instance = args[:type_instance] if args.key?(:type_instance) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @plugin = args[:plugin] if args.key?(:plugin) + @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @values = args[:values] if args.key?(:values) + end + end + + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + class Linear + include Google::Apis::Core::Hashable + + # Must be greater than 0. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + + # Must be greater than 0. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + # Lower bound of the first bucket. + # Corresponds to the JSON property `offset` + # @return [Float] + attr_accessor :offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @width = args[:width] if args.key?(:width) + @offset = args[:offset] if args.key?(:offset) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for Empty is empty JSON object ``. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A protocol buffer option, which can be attached to a message, field, + # enumeration, etc. + class Option + include Google::Apis::Core::Hashable + + # The option's value packed in an Any message. If the value is a primitive, the + # corresponding wrapper type defined in google/protobuf/wrappers.proto should be + # used. If the value is an enum, it should be stored as an int32 value using the + # google.protobuf.Int32Value type. + # Corresponds to the JSON property `value` + # @return [Hash] + attr_accessor :value + + # The option's name. For protobuf built-in options (options defined in + # descriptor.proto), this is the short name. For example, "map_entry". For + # custom options, it should be the fully-qualified name. For example, "google. + # api.http". + # 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) + @value = args[:value] if args.key?(:value) + @name = args[:name] if args.key?(:name) + end + end + # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at @@ -83,11 +757,6 @@ module Google class Exponential include Google::Apis::Core::Hashable - # Must be greater than 1. - # Corresponds to the JSON property `growthFactor` - # @return [Float] - attr_accessor :growth_factor - # Must be greater than 0. # Corresponds to the JSON property `scale` # @return [Float] @@ -98,15 +767,20 @@ module Google # @return [Fixnum] attr_accessor :num_finite_buckets + # Must be greater than 1. + # Corresponds to the JSON property `growthFactor` + # @return [Float] + attr_accessor :growth_factor + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @growth_factor = args[:growth_factor] if args.key?(:growth_factor) @scale = args[:scale] if args.key?(:scale) @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) + @growth_factor = args[:growth_factor] if args.key?(:growth_factor) end end @@ -142,26 +816,26 @@ module Google class Metric include Google::Apis::Core::Hashable - # An existing metric type, see google.api.MetricDescriptor. For example, custom. - # googleapis.com/invoice/paid/amount. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - # The set of label values that uniquely identify this metric. All labels listed # in the MetricDescriptor must be assigned values. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels + # An existing metric type, see google.api.MetricDescriptor. For example, custom. + # googleapis.com/invoice/paid/amount. + # 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) - @type = args[:type] if args.key?(:type) @labels = args[:labels] if args.key?(:labels) + @type = args[:type] if args.key?(:type) end end @@ -169,16 +843,16 @@ module Google class Field include Google::Apis::Core::Hashable - # The field JSON name. - # Corresponds to the JSON property `jsonName` - # @return [String] - attr_accessor :json_name - # The field type. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # The field JSON name. + # Corresponds to the JSON property `jsonName` + # @return [String] + attr_accessor :json_name + # The protocol buffer options. # Corresponds to the JSON property `options` # @return [Array] @@ -228,8 +902,8 @@ module Google # Update properties of this object def update!(**args) - @json_name = args[:json_name] if args.key?(:json_name) @kind = args[:kind] if args.key?(:kind) + @json_name = args[:json_name] if args.key?(:json_name) @options = args[:options] if args.key?(:options) @oneof_index = args[:oneof_index] if args.key?(:oneof_index) @cardinality = args[:cardinality] if args.key?(:cardinality) @@ -245,11 +919,6 @@ module Google class LabelDescriptor include Google::Apis::Core::Hashable - # The label key. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - # A human-readable description for the label. # Corresponds to the JSON property `description` # @return [String] @@ -260,15 +929,20 @@ module Google # @return [String] attr_accessor :value_type + # The label key. + # 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) - @key = args[:key] if args.key?(:key) @description = args[:description] if args.key?(:description) @value_type = args[:value_type] if args.key?(:value_type) + @key = args[:key] if args.key?(:key) end end @@ -322,6 +996,21 @@ module Google class Group include Google::Apis::Core::Hashable + # The name of the group's parent, if it has one. The format is "projects/` + # project_id_or_number`/groups/`group_id`". For groups with no parent, + # parentName is the empty string, "". + # Corresponds to the JSON property `parentName` + # @return [String] + attr_accessor :parent_name + + # Output only. The name of this group. The format is "projects/` + # project_id_or_number`/groups/`group_id`". When creating a group, this field is + # ignored and a new name is created consisting of the project specified in the + # call to CreateGroup and a unique `group_id` that is generated automatically. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # A user-assigned name for this group, used only for display purposes. # Corresponds to the JSON property `displayName` # @return [String] @@ -339,32 +1028,17 @@ module Google # @return [String] attr_accessor :filter - # Output only. The name of this group. The format is "projects/` - # project_id_or_number`/groups/`group_id`". When creating a group, this field is - # ignored and a new name is created consisting of the project specified in the - # call to CreateGroup and a unique `group_id` that is generated automatically. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The name of the group's parent, if it has one. The format is "projects/` - # project_id_or_number`/groups/`group_id`". For groups with no parent, - # parentName is the empty string, "". - # Corresponds to the JSON property `parentName` - # @return [String] - attr_accessor :parent_name - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @parent_name = args[:parent_name] if args.key?(:parent_name) + @name = args[:name] if args.key?(:name) @display_name = args[:display_name] if args.key?(:display_name) @is_cluster = args[:is_cluster] if args.key?(:is_cluster) @filter = args[:filter] if args.key?(:filter) - @name = args[:name] if args.key?(:name) - @parent_name = args[:parent_name] if args.key?(:parent_name) end end @@ -392,17 +1066,17 @@ module Google # @return [Array] attr_accessor :oneofs - # The source syntax. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax - # SourceContext represents information about the source of a protobuf element, # like the file in which it is defined. # Corresponds to the JSON property `sourceContext` # @return [Google::Apis::MonitoringV3::SourceContext] attr_accessor :source_context + # The source syntax. + # Corresponds to the JSON property `syntax` + # @return [String] + attr_accessor :syntax + def initialize(**args) update!(**args) end @@ -413,8 +1087,8 @@ module Google @fields = args[:fields] if args.key?(:fields) @name = args[:name] if args.key?(:name) @oneofs = args[:oneofs] if args.key?(:oneofs) - @syntax = args[:syntax] if args.key?(:syntax) @source_context = args[:source_context] if args.key?(:source_context) + @syntax = args[:syntax] if args.key?(:syntax) end end @@ -444,16 +1118,6 @@ module Google # @return [Google::Apis::MonitoringV3::Exponential] attr_accessor :exponential_buckets - # Specifies a linear sequence of buckets that all have the same width (except - # overflow and underflow). Each bucket represents a constant absolute - # uncertainty on the specific value in the bucket.There are num_finite_buckets + - # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- - # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) - # . - # Corresponds to the JSON property `linearBuckets` - # @return [Google::Apis::MonitoringV3::Linear] - attr_accessor :linear_buckets - # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at @@ -464,6 +1128,16 @@ module Google # @return [Google::Apis::MonitoringV3::Explicit] attr_accessor :explicit_buckets + # Specifies a linear sequence of buckets that all have the same width (except + # overflow and underflow). Each bucket represents a constant absolute + # uncertainty on the specific value in the bucket.There are num_finite_buckets + + # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- + # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) + # . + # Corresponds to the JSON property `linearBuckets` + # @return [Google::Apis::MonitoringV3::Linear] + attr_accessor :linear_buckets + def initialize(**args) update!(**args) end @@ -471,8 +1145,8 @@ module Google # Update properties of this object def update!(**args) @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) - @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) + @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) end end @@ -480,6 +1154,11 @@ module Google class CollectdValue include Google::Apis::Core::Hashable + # The type of measurement. + # Corresponds to the JSON property `dataSourceType` + # @return [String] + attr_accessor :data_source_type + # The data source for the collectd value. For example there are two data sources # for network measurements: "rx" and "tx". # Corresponds to the JSON property `dataSourceName` @@ -491,10 +1170,28 @@ module Google # @return [Google::Apis::MonitoringV3::TypedValue] attr_accessor :value - # The type of measurement. - # Corresponds to the JSON property `dataSourceType` + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_source_type = args[:data_source_type] if args.key?(:data_source_type) + @data_source_name = args[:data_source_name] if args.key?(:data_source_name) + @value = args[:value] if args.key?(:value) + end + end + + # SourceContext represents information about the source of a protobuf element, + # like the file in which it is defined. + class SourceContext + include Google::Apis::Core::Hashable + + # The path-qualified name of the .proto file that contained the associated + # protobuf element. For example: "google/protobuf/source_context.proto". + # Corresponds to the JSON property `fileName` # @return [String] - attr_accessor :data_source_type + attr_accessor :file_name def initialize(**args) update!(**args) @@ -502,9 +1199,7 @@ module Google # Update properties of this object def update!(**args) - @data_source_name = args[:data_source_name] if args.key?(:data_source_name) - @value = args[:value] if args.key?(:value) - @data_source_type = args[:data_source_type] if args.key?(:data_source_type) + @file_name = args[:file_name] if args.key?(:file_name) end end @@ -514,33 +1209,6 @@ module Google class MetricDescriptor include Google::Apis::Core::Hashable - # The resource name of the metric descriptor. Depending on the implementation, - # the name typically includes: (1) the parent resource name that defines the - # scope of the metric type or of its data; and (2) the metric's URL-encoded type, - # which also appears in the type field of this descriptor. For example, - # following is the resource name of a custom metric within the GCP project my- - # project-id: - # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% - # 2Fpaid%2Famount" - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The metric type, including its DNS name prefix. The type is not URL-encoded. - # All user-defined custom metric types have the DNS name custom.googleapis.com. - # Metric types should use a natural hierarchical grouping. For example: - # "custom.googleapis.com/invoice/paid/amount" - # "appengine.googleapis.com/http/server/response_latencies" - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Whether the measurement is an integer, a floating-point number, etc. Some - # combinations of metric_kind and value_type might not be supported. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - # Whether the metric records instantaneous values, changes to a value, etc. Some # combinations of metric_kind and value_type might not be supported. # Corresponds to the JSON property `metricKind` @@ -617,715 +1285,47 @@ module Google # @return [Array] attr_accessor :labels + # The resource name of the metric descriptor. Depending on the implementation, + # the name typically includes: (1) the parent resource name that defines the + # scope of the metric type or of its data; and (2) the metric's URL-encoded type, + # which also appears in the type field of this descriptor. For example, + # following is the resource name of a custom metric within the GCP project my- + # project-id: + # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% + # 2Fpaid%2Famount" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The metric type, including its DNS name prefix. The type is not URL-encoded. + # All user-defined custom metric types have the DNS name custom.googleapis.com. + # Metric types should use a natural hierarchical grouping. For example: + # "custom.googleapis.com/invoice/paid/amount" + # "appengine.googleapis.com/http/server/response_latencies" + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Whether the measurement is an integer, a floating-point number, etc. Some + # combinations of metric_kind and value_type might not be supported. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - @value_type = args[:value_type] if args.key?(:value_type) @metric_kind = args[:metric_kind] if args.key?(:metric_kind) @display_name = args[:display_name] if args.key?(:display_name) @description = args[:description] if args.key?(:description) @unit = args[:unit] if args.key?(:unit) @labels = args[:labels] if args.key?(:labels) - end - end - - # SourceContext represents information about the source of a protobuf element, - # like the file in which it is defined. - class SourceContext - include Google::Apis::Core::Hashable - - # The path-qualified name of the .proto file that contained the associated - # protobuf element. For example: "google/protobuf/source_context.proto". - # Corresponds to the JSON property `fileName` - # @return [String] - attr_accessor :file_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file_name = args[:file_name] if args.key?(:file_name) - end - end - - # The range of the population values. - class Range - include Google::Apis::Core::Hashable - - # The minimum of the population values. - # Corresponds to the JSON property `min` - # @return [Float] - attr_accessor :min - - # The maximum of the population values. - # Corresponds to the JSON property `max` - # @return [Float] - attr_accessor :max - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min = args[:min] if args.key?(:min) - @max = args[:max] if args.key?(:max) - end - end - - # The ListGroups response. - class ListGroupsResponse - include Google::Apis::Core::Hashable - - # The groups that match the specified filters. - # Corresponds to the JSON property `group` - # @return [Array] - attr_accessor :group - - # If there are more results than have been returned, then this field is set to a - # non-empty value. To see the additional results, use that value as pageToken in - # the next call to this method. - # 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) - @group = args[:group] if args.key?(:group) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # The ListGroupMembers response. - class ListGroupMembersResponse - include Google::Apis::Core::Hashable - - # A set of monitored resources in the group. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # If there are more results than have been returned, then this field is set to a - # non-empty value. To see the additional results, use that value as pageToken in - # the next call to this method. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The total number of elements matching this request. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @total_size = args[:total_size] if args.key?(:total_size) - end - end - - # The CreateCollectdTimeSeries request. - class CreateCollectdTimeSeriesRequest - include Google::Apis::Core::Hashable - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - # Corresponds to the JSON property `resource` - # @return [Google::Apis::MonitoringV3::MonitoredResource] - attr_accessor :resource - - # The collectd payloads representing the time series data. You must not include - # more than a single point for each time series, so no two payloads can have the - # same values for all of the fields plugin, plugin_instance, type, and - # type_instance. - # Corresponds to the JSON property `collectdPayloads` - # @return [Array] - attr_accessor :collectd_payloads - - # The version of collectd that collected the data. Example: "5.3.0-192.el6". - # Corresponds to the JSON property `collectdVersion` - # @return [String] - attr_accessor :collectd_version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource = args[:resource] if args.key?(:resource) - @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads) - @collectd_version = args[:collectd_version] if args.key?(:collectd_version) - end - end - - # The ListMonitoredResourceDescriptors response. - class ListMonitoredResourceDescriptorsResponse - include Google::Apis::Core::Hashable - - # The monitored resource descriptors that are available to this project and that - # match filter, if present. - # Corresponds to the JSON property `resourceDescriptors` - # @return [Array] - attr_accessor :resource_descriptors - - # If there are more results than have been returned, then this field is set to a - # non-empty value. To see the additional results, use that value as pageToken in - # the next call to this method. - # 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 collection of data points that describes the time-varying values of a metric. - # A time series is identified by a combination of a fully-specified monitored - # resource and a fully-specified metric. This type is used for both listing and - # creating time series. - class TimeSeries - include Google::Apis::Core::Hashable - - # A specific metric, identified by specifying values for all of the labels of a - # MetricDescriptor. - # Corresponds to the JSON property `metric` - # @return [Google::Apis::MonitoringV3::Metric] - attr_accessor :metric - - # The data points of this time series. When listing time series, the order of - # the points is specified by the list method.When creating a time series, this - # field must contain exactly one point and the point's type must be the same as - # the value type of the associated metric. If the associated metric's descriptor - # must be auto-created, then the value type of the descriptor is determined by - # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. - # Corresponds to the JSON property `points` - # @return [Array] - attr_accessor :points - - # The value type of the time series. When listing time series, this value type - # might be different from the value type of the associated metric if this time - # series is an alignment or reduction of other time series.When creating a time - # series, this field is optional. If present, it must be the same as the type of - # the data in the points field. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - # Corresponds to the JSON property `resource` - # @return [Google::Apis::MonitoringV3::MonitoredResource] - attr_accessor :resource - - # The metric kind of the time series. When listing time series, this metric kind - # might be different from the metric kind of the associated metric if this time - # series is an alignment or reduction of other time series.When creating a time - # series, this field is optional. If present, it must be the same as the metric - # kind of the associated metric. If the associated metric's descriptor must be - # auto-created, then this field specifies the metric kind of the new descriptor - # and must be either GAUGE (the default) or CUMULATIVE. - # Corresponds to the JSON property `metricKind` - # @return [String] - attr_accessor :metric_kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric = args[:metric] if args.key?(:metric) - @points = args[:points] if args.key?(:points) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) @value_type = args[:value_type] if args.key?(:value_type) - @resource = args[:resource] if args.key?(:resource) - @metric_kind = args[:metric_kind] if args.key?(:metric_kind) - end - end - - # The CreateTimeSeries request. - class CreateTimeSeriesRequest - include Google::Apis::Core::Hashable - - # The new data to be added to a list of time series. Adds at most one data point - # to each of several time series. The new data point must be more recent than - # any other point in its time series. Each TimeSeries value must fully specify a - # unique time series by supplying all label values for the metric and the - # monitored resource. - # Corresponds to the JSON property `timeSeries` - # @return [Array] - attr_accessor :time_series - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @time_series = args[:time_series] if args.key?(:time_series) - end - end - - # Distribution contains summary statistics for a population of values. It - # optionally contains a histogram representing the distribution of those values - # across a set of buckets.The summary statistics are the count, mean, sum of the - # squared deviation from the mean, the minimum, and the maximum of the set of - # population of values. The histogram is based on a sequence of buckets and - # gives a count of values that fall into each bucket. The boundaries of the - # buckets are given either explicitly or by formulas for buckets of fixed or - # exponentially increasing widths.Although it is not forbidden, it is generally - # a bad idea to include non-finite values (infinities or NaNs) in the population - # of values, as this will render the mean and sum_of_squared_deviation fields - # meaningless. - class Distribution - include Google::Apis::Core::Hashable - - # The range of the population values. - # Corresponds to the JSON property `range` - # @return [Google::Apis::MonitoringV3::Range] - attr_accessor :range - - # The number of values in the population. Must be non-negative. This value must - # equal the sum of the values in bucket_counts if a histogram is provided. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - # The arithmetic mean of the values in the population. If count is zero then - # this field must be zero. - # Corresponds to the JSON property `mean` - # @return [Float] - attr_accessor :mean - - # Required in the Stackdriver Monitoring API v3. The values for each bucket - # specified in bucket_options. The sum of the values in bucketCounts must equal - # the value in the count field of the Distribution object. The order of the - # bucket counts follows the numbering schemes described for the three bucket - # types. The underflow bucket has number 0; the finite buckets, if any, have - # numbers 1 through N-2; and the overflow bucket has number N-1. The size of - # bucket_counts must not be greater than N. If the size is less than N, then the - # remaining buckets are assigned values of zero. - # Corresponds to the JSON property `bucketCounts` - # @return [Array] - attr_accessor :bucket_counts - - # BucketOptions describes the bucket boundaries used to create a histogram for - # the distribution. The buckets can be in a linear sequence, an exponential - # sequence, or each bucket can be specified explicitly. BucketOptions does not - # include the number of values in each bucket.A bucket has an inclusive lower - # bound and exclusive upper bound for the values that are counted for that - # bucket. The upper bound of a bucket must be strictly greater than the lower - # bound. The sequence of N buckets for a distribution consists of an underflow - # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an - # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of - # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets - # span the whole range of finite values: lower bound of the underflow bucket is - - # infinity and the upper bound of the overflow bucket is +infinity. The finite - # buckets are so-called because both bounds are finite. - # Corresponds to the JSON property `bucketOptions` - # @return [Google::Apis::MonitoringV3::BucketOptions] - attr_accessor :bucket_options - - # The sum of squared deviations from the mean of the values in the population. - # For values x_i this is: - # Sum[i=1..n]((x_i - mean)^2) - # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition - # describes Welford's method for accumulating this sum in one pass.If count is - # zero then this field must be zero. - # Corresponds to the JSON property `sumOfSquaredDeviation` - # @return [Float] - attr_accessor :sum_of_squared_deviation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @range = args[:range] if args.key?(:range) - @count = args[:count] if args.key?(:count) - @mean = args[:mean] if args.key?(:mean) - @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts) - @bucket_options = args[:bucket_options] if args.key?(:bucket_options) - @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation) - end - end - - # An object representing a resource that can be used for monitoring, logging, - # billing, or other purposes. Examples include virtual machine instances, - # databases, and storage devices such as disks. The type field identifies a - # MonitoredResourceDescriptor object that describes the resource's schema. - # Information in the labels field identifies the actual resource and its - # attributes according to the schema. For example, a particular Compute Engine - # VM instance could be represented by the following object, because the - # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " - # zone": - # ` "type": "gce_instance", - # "labels": ` "instance_id": "12345678901234", - # "zone": "us-central1-a" `` - class MonitoredResource - include Google::Apis::Core::Hashable - - # Required. The monitored resource type. This field must match the type field of - # a MonitoredResourceDescriptor object. For example, the type of a Compute - # Engine VM instance is gce_instance. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Required. Values for all of the labels listed in the associated monitored - # resource descriptor. For example, Compute Engine VM instances use the labels " - # project_id", "instance_id", and "zone". - # 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 - - # The ListMetricDescriptors response. - class ListMetricDescriptorsResponse - include Google::Apis::Core::Hashable - - # The metric descriptors that are available to the project and that match the - # value of filter, if present. - # Corresponds to the JSON property `metricDescriptors` - # @return [Array] - attr_accessor :metric_descriptors - - # If there are more results than have been returned, then this field is set to a - # non-empty value. To see the additional results, use that value as pageToken in - # the next call to this method. - # 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) - @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # An object that describes the schema of a MonitoredResource object using a type - # name and a set of labels. For example, the monitored resource descriptor for - # Google Compute Engine VM instances has a type of "gce_instance" and specifies - # the use of the labels "instance_id" and "zone" to identify particular VM - # instances.Different APIs can support different monitored resource types. APIs - # generally provide a list method that returns the monitored resource - # descriptors used by the API. - class MonitoredResourceDescriptor - include Google::Apis::Core::Hashable - - # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels "database_id" and "zone". - # Corresponds to the JSON property `labels` - # @return [Array] - attr_accessor :labels - - # Optional. The resource name of the monitored resource descriptor: "projects/` - # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of - # the type field in this object and `project_id` is a project ID that provides - # API-specific context for accessing the type. APIs that do not use project - # information can use the resource name format "monitoredResourceDescriptors/` - # type`". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optional. A concise name for the monitored resource type that might be - # displayed in user interfaces. It should be a Title Cased Noun Phrase, without - # any article or other determiners. For example, "Google Cloud SQL Database". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Optional. A detailed description of the monitored resource type that might be - # used in documentation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The monitored resource type. For example, the type " - # cloudsql_database" represents databases in Google Cloud SQL. The maximum - # length of this value is 256 characters. - # 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) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @type = args[:type] if args.key?(:type) - end - end - - # A single strongly-typed value. - class TypedValue - include Google::Apis::Core::Hashable - - # A 64-bit double-precision floating-point number. Its magnitude is - # approximately ±10±300 and it has 16 significant - # digits of precision. - # Corresponds to the JSON property `doubleValue` - # @return [Float] - attr_accessor :double_value - - # A 64-bit integer. Its range is approximately ±9.2x1018. - # Corresponds to the JSON property `int64Value` - # @return [Fixnum] - attr_accessor :int64_value - - # Distribution contains summary statistics for a population of values. It - # optionally contains a histogram representing the distribution of those values - # across a set of buckets.The summary statistics are the count, mean, sum of the - # squared deviation from the mean, the minimum, and the maximum of the set of - # population of values. The histogram is based on a sequence of buckets and - # gives a count of values that fall into each bucket. The boundaries of the - # buckets are given either explicitly or by formulas for buckets of fixed or - # exponentially increasing widths.Although it is not forbidden, it is generally - # a bad idea to include non-finite values (infinities or NaNs) in the population - # of values, as this will render the mean and sum_of_squared_deviation fields - # meaningless. - # Corresponds to the JSON property `distributionValue` - # @return [Google::Apis::MonitoringV3::Distribution] - attr_accessor :distribution_value - - # A Boolean value: true or false. - # Corresponds to the JSON property `boolValue` - # @return [Boolean] - attr_accessor :bool_value - alias_method :bool_value?, :bool_value - - # A variable-length string value. - # 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) - @double_value = args[:double_value] if args.key?(:double_value) - @int64_value = args[:int64_value] if args.key?(:int64_value) - @distribution_value = args[:distribution_value] if args.key?(:distribution_value) - @bool_value = args[:bool_value] if args.key?(:bool_value) - @string_value = args[:string_value] if args.key?(:string_value) - end - end - - # A collection of data points sent from a collectd-based plugin. See the - # collectd documentation for more information. - class CollectdPayload - include Google::Apis::Core::Hashable - - # The measurement type instance. Example: "used". - # Corresponds to the JSON property `typeInstance` - # @return [String] - attr_accessor :type_instance - - # The measurement metadata. Example: "process_id" -> 12345 - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The measurement type. Example: "memory". - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The name of the plugin. Example: "disk". - # Corresponds to the JSON property `plugin` - # @return [String] - attr_accessor :plugin - - # The instance name of the plugin Example: "hdcl". - # Corresponds to the JSON property `pluginInstance` - # @return [String] - attr_accessor :plugin_instance - - # The end time of the interval. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The start time of the interval. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # The measured values during this time interval. Each value must have a - # different dataSourceName. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type_instance = args[:type_instance] if args.key?(:type_instance) - @metadata = args[:metadata] if args.key?(:metadata) - @type = args[:type] if args.key?(:type) - @plugin = args[:plugin] if args.key?(:plugin) - @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance) - @end_time = args[:end_time] if args.key?(:end_time) - @start_time = args[:start_time] if args.key?(:start_time) - @values = args[:values] if args.key?(:values) - end - end - - # Specifies a linear sequence of buckets that all have the same width (except - # overflow and underflow). Each bucket represents a constant absolute - # uncertainty on the specific value in the bucket.There are num_finite_buckets + - # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- - # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) - # . - class Linear - include Google::Apis::Core::Hashable - - # Must be greater than 0. - # Corresponds to the JSON property `width` - # @return [Float] - attr_accessor :width - - # Lower bound of the first bucket. - # Corresponds to the JSON property `offset` - # @return [Float] - attr_accessor :offset - - # Must be greater than 0. - # Corresponds to the JSON property `numFiniteBuckets` - # @return [Fixnum] - attr_accessor :num_finite_buckets - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @width = args[:width] if args.key?(:width) - @offset = args[:offset] if args.key?(:offset) - @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for Empty is empty JSON object ``. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A protocol buffer option, which can be attached to a message, field, - # enumeration, etc. - class Option - include Google::Apis::Core::Hashable - - # The option's name. For protobuf built-in options (options defined in - # descriptor.proto), this is the short name. For example, "map_entry". For - # custom options, it should be the fully-qualified name. For example, "google. - # api.http". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The option's value packed in an Any message. If the value is a primitive, the - # corresponding wrapper type defined in google/protobuf/wrappers.proto should be - # used. If the value is an enum, it should be stored as an int32 value using the - # google.protobuf.Int32Value type. - # Corresponds to the JSON property `value` - # @return [Hash] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @value = args[:value] if args.key?(:value) end end end diff --git a/generated/google/apis/monitoring_v3/representations.rb b/generated/google/apis/monitoring_v3/representations.rb index c3ab434d1..a8360cf54 100644 --- a/generated/google/apis/monitoring_v3/representations.rb +++ b/generated/google/apis/monitoring_v3/representations.rb @@ -22,90 +22,6 @@ module Google module Apis module MonitoringV3 - class Explicit - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TimeInterval - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Exponential - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Point - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Metric - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Field - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LabelDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListTimeSeriesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Group - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Type - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CollectdValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MetricDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SourceContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Range class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,13 +34,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListGroupMembersResponse + class CreateCollectdTimeSeriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateCollectdTimeSeriesRequest + class ListGroupMembersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -202,6 +118,253 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Explicit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TimeInterval + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Exponential + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Point + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Field + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LabelDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTimeSeriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Group + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Type + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BucketOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectdValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Range + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min, as: 'min' + property :max, as: 'max' + end + end + + class ListGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CreateCollectdTimeSeriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :collectd_version, as: 'collectdVersion' + collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation + + property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + end + end + + class ListGroupMembersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' + end + end + + class ListMonitoredResourceDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::MonitoringV3::MonitoredResourceDescriptor, decorator: Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation + + end + end + + class TimeSeries + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation + + property :metric_kind, as: 'metricKind' + collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation + + property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation + + property :value_type, as: 'valueType' + end + end + + class CreateTimeSeriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation + + end + end + + class Distribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bucket_counts, as: 'bucketCounts' + property :bucket_options, as: 'bucketOptions', class: Google::Apis::MonitoringV3::BucketOptions, decorator: Google::Apis::MonitoringV3::BucketOptions::Representation + + property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' + property :range, as: 'range', class: Google::Apis::MonitoringV3::Range, decorator: Google::Apis::MonitoringV3::Range::Representation + + property :count, :numeric_string => true, as: 'count' + property :mean, as: 'mean' + end + end + + class MonitoredResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :type, as: 'type' + end + end + + class ListMetricDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :metric_descriptors, as: 'metricDescriptors', class: Google::Apis::MonitoringV3::MetricDescriptor, decorator: Google::Apis::MonitoringV3::MetricDescriptor::Representation + + end + end + + class MonitoredResourceDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation + + property :name, as: 'name' + property :description, as: 'description' + property :display_name, as: 'displayName' + end + end + + class TypedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :double_value, as: 'doubleValue' + property :int64_value, :numeric_string => true, as: 'int64Value' + property :distribution_value, as: 'distributionValue', class: Google::Apis::MonitoringV3::Distribution, decorator: Google::Apis::MonitoringV3::Distribution::Representation + + property :string_value, as: 'stringValue' + property :bool_value, as: 'boolValue' + end + end + + class CollectdPayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type_instance, as: 'typeInstance' + property :type, as: 'type' + hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation + + property :plugin, as: 'plugin' + property :plugin_instance, as: 'pluginInstance' + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation + + end + end + + class Linear + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_finite_buckets, as: 'numFiniteBuckets' + property :width, as: 'width' + property :offset, as: 'offset' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Option + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :value, as: 'value' + property :name, as: 'name' + end + end + class Explicit # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -220,9 +383,9 @@ module Google class Exponential # @private class Representation < Google::Apis::Core::JsonRepresentation - property :growth_factor, as: 'growthFactor' property :scale, as: 'scale' property :num_finite_buckets, as: 'numFiniteBuckets' + property :growth_factor, as: 'growthFactor' end end @@ -239,16 +402,16 @@ module Google class Metric # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' hash :labels, as: 'labels' + property :type, as: 'type' end end class Field # @private class Representation < Google::Apis::Core::JsonRepresentation - property :json_name, as: 'jsonName' property :kind, as: 'kind' + property :json_name, as: 'jsonName' collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation property :oneof_index, as: 'oneofIndex' @@ -264,9 +427,9 @@ module Google class LabelDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' property :description, as: 'description' property :value_type, as: 'valueType' + property :key, as: 'key' end end @@ -282,11 +445,11 @@ module Google class Group # @private class Representation < Google::Apis::Core::JsonRepresentation + property :parent_name, as: 'parentName' + property :name, as: 'name' property :display_name, as: 'displayName' property :is_cluster, as: 'isCluster' property :filter, as: 'filter' - property :name, as: 'name' - property :parent_name, as: 'parentName' end end @@ -299,9 +462,9 @@ module Google property :name, as: 'name' collection :oneofs, as: 'oneofs' - property :syntax, as: 'syntax' property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation + property :syntax, as: 'syntax' end end @@ -310,35 +473,20 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::MonitoringV3::Exponential, decorator: Google::Apis::MonitoringV3::Exponential::Representation - property :linear_buckets, as: 'linearBuckets', class: Google::Apis::MonitoringV3::Linear, decorator: Google::Apis::MonitoringV3::Linear::Representation - property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::MonitoringV3::Explicit, decorator: Google::Apis::MonitoringV3::Explicit::Representation + property :linear_buckets, as: 'linearBuckets', class: Google::Apis::MonitoringV3::Linear, decorator: Google::Apis::MonitoringV3::Linear::Representation + end end class CollectdValue # @private class Representation < Google::Apis::Core::JsonRepresentation + property :data_source_type, as: 'dataSourceType' property :data_source_name, as: 'dataSourceName' property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation - property :data_source_type, as: 'dataSourceType' - end - end - - class MetricDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :type, as: 'type' - property :value_type, as: 'valueType' - property :metric_kind, as: 'metricKind' - property :display_name, as: 'displayName' - property :description, as: 'description' - property :unit, as: 'unit' - collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation - end end @@ -349,166 +497,18 @@ module Google end end - class Range + class MetricDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation - property :min, as: 'min' - property :max, as: 'max' - end - end - - class ListGroupsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ListGroupMembersResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation - - property :next_page_token, as: 'nextPageToken' - property :total_size, as: 'totalSize' - end - end - - class CreateCollectdTimeSeriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation - - collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation - - property :collectd_version, as: 'collectdVersion' - end - end - - class ListMonitoredResourceDescriptorsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::MonitoringV3::MonitoredResourceDescriptor, decorator: Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class TimeSeries - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation - - collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation - - property :value_type, as: 'valueType' - property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation - property :metric_kind, as: 'metricKind' - end - end - - class CreateTimeSeriesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation - - end - end - - class Distribution - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :range, as: 'range', class: Google::Apis::MonitoringV3::Range, decorator: Google::Apis::MonitoringV3::Range::Representation - - property :count, :numeric_string => true, as: 'count' - property :mean, as: 'mean' - collection :bucket_counts, as: 'bucketCounts' - property :bucket_options, as: 'bucketOptions', class: Google::Apis::MonitoringV3::BucketOptions, decorator: Google::Apis::MonitoringV3::BucketOptions::Representation - - property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' - end - end - - class MonitoredResource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - hash :labels, as: 'labels' - end - end - - class ListMetricDescriptorsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :metric_descriptors, as: 'metricDescriptors', class: Google::Apis::MonitoringV3::MetricDescriptor, decorator: Google::Apis::MonitoringV3::MetricDescriptor::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class MonitoredResourceDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :description, as: 'description' + property :unit, as: 'unit' collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation property :name, as: 'name' - property :display_name, as: 'displayName' - property :description, as: 'description' property :type, as: 'type' - end - end - - class TypedValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :double_value, as: 'doubleValue' - property :int64_value, :numeric_string => true, as: 'int64Value' - property :distribution_value, as: 'distributionValue', class: Google::Apis::MonitoringV3::Distribution, decorator: Google::Apis::MonitoringV3::Distribution::Representation - - property :bool_value, as: 'boolValue' - property :string_value, as: 'stringValue' - end - end - - class CollectdPayload - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type_instance, as: 'typeInstance' - hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation - - property :type, as: 'type' - property :plugin, as: 'plugin' - property :plugin_instance, as: 'pluginInstance' - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation - - end - end - - class Linear - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :width, as: 'width' - property :offset, as: 'offset' - property :num_finite_buckets, as: 'numFiniteBuckets' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class Option - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - hash :value, as: 'value' + property :value_type, as: 'valueType' end end end diff --git a/generated/google/apis/monitoring_v3/service.rb b/generated/google/apis/monitoring_v3/service.rb index a33ef9c9f..83ed09433 100644 --- a/generated/google/apis/monitoring_v3/service.rb +++ b/generated/google/apis/monitoring_v3/service.rb @@ -49,253 +49,6 @@ module Google @batch_path = 'batch' end - # Deletes an existing group. - # @param [String] name - # The group to delete. The format is "projects/`project_id_or_number`/groups/` - # group_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::MonitoringV3::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::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_group(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v3/{+name}', options) - command.response_representation = Google::Apis::MonitoringV3::Empty::Representation - command.response_class = Google::Apis::MonitoringV3::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists the existing groups. - # @param [String] name - # The project whose groups are to be listed. The format is "projects/` - # project_id_or_number`". - # @param [String] page_token - # If this field is not empty then it must contain the nextPageToken value - # returned by a previous call to this method. Using this field causes the method - # to return additional results from the previous method call. - # @param [Fixnum] page_size - # A positive number that is the maximum number of results to return. - # @param [String] ancestors_of_group - # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns - # groups that are ancestors of the specified group. The groups are returned in - # order, starting with the immediate parent and ending with the most distant - # ancestor. If the specified group has no immediate parent, the results are - # empty. - # @param [String] children_of_group - # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns - # groups whose parentName field contains the group name. If no groups have this - # parent, the results are empty. - # @param [String] descendants_of_group - # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the - # descendants of the specified group. This is a superset of the results returned - # by the childrenOfGroup filter, and includes children-of-children, and so forth. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MonitoringV3::ListGroupsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::ListGroupsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_groups(name, page_token: nil, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v3/{+name}/groups', options) - command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation - command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse - command.params['name'] = name unless name.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil? - command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil? - command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.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 single group. - # @param [String] name - # The group to retrieve. The format is "projects/`project_id_or_number`/groups/` - # group_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::MonitoringV3::Group] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::Group] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_group(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v3/{+name}', options) - command.response_representation = Google::Apis::MonitoringV3::Group::Representation - command.response_class = Google::Apis::MonitoringV3::Group - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates an existing group. You can change any group attributes except name. - # @param [String] name - # Output only. The name of this group. The format is "projects/` - # project_id_or_number`/groups/`group_id`". When creating a group, this field is - # ignored and a new name is created consisting of the project specified in the - # call to CreateGroup and a unique `group_id` that is generated automatically. - # @param [Google::Apis::MonitoringV3::Group] group_object - # @param [Boolean] validate_only - # If true, validate this request but do not update the existing group. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MonitoringV3::Group] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::Group] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v3/{+name}', options) - command.request_representation = Google::Apis::MonitoringV3::Group::Representation - command.request_object = group_object - command.response_representation = Google::Apis::MonitoringV3::Group::Representation - command.response_class = Google::Apis::MonitoringV3::Group - command.params['name'] = name unless name.nil? - command.query['validateOnly'] = validate_only unless validate_only.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 new group. - # @param [String] name - # The project in which to create the group. The format is "projects/` - # project_id_or_number`". - # @param [Google::Apis::MonitoringV3::Group] group_object - # @param [Boolean] validate_only - # If true, validate this request but do not create the group. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::MonitoringV3::Group] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::Group] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v3/{+name}/groups', options) - command.request_representation = Google::Apis::MonitoringV3::Group::Representation - command.request_object = group_object - command.response_representation = Google::Apis::MonitoringV3::Group::Representation - command.response_class = Google::Apis::MonitoringV3::Group - command.params['name'] = name unless name.nil? - command.query['validateOnly'] = validate_only unless validate_only.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 monitored resources that are members of a group. - # @param [String] name - # The group whose members are listed. The format is "projects/` - # project_id_or_number`/groups/`group_id`". - # @param [String] interval_end_time - # Required. The end of the time interval. - # @param [String] filter - # An optional list filter describing the members to be returned. The filter may - # reference the type, labels, and metadata of monitored resources that comprise - # the group. For example, to return only resources representing Compute Engine - # VM instances, use this filter: - # resource.type = "gce_instance" - # @param [String] page_token - # If this field is not empty then it must contain the nextPageToken value - # returned by a previous call to this method. Using this field causes the method - # to return additional results from the previous method call. - # @param [String] interval_start_time - # Optional. The beginning of the time interval. The default value for the start - # time is the end time. The start time must not be later than the end time. - # @param [Fixnum] page_size - # A positive number that is the maximum number of results to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::MonitoringV3::ListGroupMembersResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::ListGroupMembersResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_group_members(name, interval_end_time: nil, filter: nil, page_token: nil, interval_start_time: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v3/{+name}/members', options) - command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation - command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse - command.params['name'] = name unless name.nil? - command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['interval.startTime'] = interval_start_time unless interval_start_time.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 - # Stackdriver Monitoring Agent only: Creates a new time series. @@ -303,11 +56,11 @@ module Google # The project in which to create the time series. The format is "projects/ # PROJECT_ID_OR_NUMBER". # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -320,51 +73,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options) command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation command.request_object = create_collectd_time_series_request_object command.response_representation = Google::Apis::MonitoringV3::Empty::Representation command.response_class = Google::Apis::MonitoringV3::Empty command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates or adds data to one or more time series. The response is empty if all - # time series in the request were written. If any time series could not be - # written, a corresponding failure message is included in the error response. - # @param [String] name - # The project on which to execute the request. The format is "projects/` - # project_id_or_number`". - # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_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::MonitoringV3::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::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 create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v3/{+name}/timeSeries', options) - command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation - command.request_object = create_time_series_request_object - command.response_representation = Google::Apis::MonitoringV3::Empty::Representation - command.response_class = Google::Apis::MonitoringV3::Empty - command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -373,6 +90,37 @@ module Google # @param [String] name # The project on which to execute the request. The format is "projects/` # project_id_or_number`". + # @param [String] aggregation_cross_series_reducer + # The approach to be used to combine time series. Not all reducer functions may + # be applied to all time series, depending on the metric type and the value type + # of the original time series. Reduction may change the metric type of value + # type of the time series.Time series data must be aligned in order to perform + # cross-time series reduction. If crossSeriesReducer is specified, then + # perSeriesAligner must be specified and not equal ALIGN_NONE and + # alignmentPeriod must be specified; otherwise, an error is returned. + # @param [String] filter + # A monitoring filter that specifies which time series should be returned. The + # filter must specify a single metric type, and can additionally specify metric + # labels and other information. For example: + # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND + # metric.label.instance_name = "my-instance-name" + # @param [String] aggregation_per_series_aligner + # The approach to be used to align individual time series. Not all alignment + # functions may be applied to all time series, depending on the metric type and + # value type of the original time series. Alignment may change the metric type + # or the value type of the time series.Time series data must be aligned in order + # to perform cross-time series reduction. If crossSeriesReducer is specified, + # then perSeriesAligner must be specified and not equal ALIGN_NONE and + # alignmentPeriod must be specified; otherwise, an error is returned. + # @param [String] page_token + # If this field is not empty then it must contain the nextPageToken value + # returned by a previous call to this method. Using this field causes the method + # to return additional results from the previous method call. + # @param [String] interval_start_time + # Optional. The beginning of the time interval. The default value for the start + # time is the end time. The start time must not be later than the end time. + # @param [String] view + # Specifies which information is returned about the time series. # @param [Array, String] aggregation_group_by_fields # The set of fields to preserve when crossSeriesReducer is specified. The # groupByFields determine how the time series are partitioned into subsets prior @@ -401,42 +149,11 @@ module Google # @param [String] order_by # Specifies the order in which the points of the time series should be returned. # By default, results are not ordered. Currently, this field must be left blank. - # @param [String] aggregation_cross_series_reducer - # The approach to be used to combine time series. Not all reducer functions may - # be applied to all time series, depending on the metric type and the value type - # of the original time series. Reduction may change the metric type of value - # type of the time series.Time series data must be aligned in order to perform - # cross-time series reduction. If crossSeriesReducer is specified, then - # perSeriesAligner must be specified and not equal ALIGN_NONE and - # alignmentPeriod must be specified; otherwise, an error is returned. - # @param [String] filter - # A monitoring filter that specifies which time series should be returned. The - # filter must specify a single metric type, and can additionally specify metric - # labels and other information. For example: - # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND - # metric.label.instance_name = "my-instance-name" - # @param [String] page_token - # If this field is not empty then it must contain the nextPageToken value - # returned by a previous call to this method. Using this field causes the method - # to return additional results from the previous method call. - # @param [String] aggregation_per_series_aligner - # The approach to be used to align individual time series. Not all alignment - # functions may be applied to all time series, depending on the metric type and - # value type of the original time series. Alignment may change the metric type - # or the value type of the time series.Time series data must be aligned in order - # to perform cross-time series reduction. If crossSeriesReducer is specified, - # then perSeriesAligner must be specified and not equal ALIGN_NONE and - # alignmentPeriod must be specified; otherwise, an error is returned. - # @param [String] interval_start_time - # Optional. The beginning of the time interval. The default value for the start - # time is the end time. The start time must not be later than the end time. - # @param [String] view - # Specifies which information is returned about the time series. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -449,37 +166,39 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_time_series(name, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_time_series(name, aggregation_cross_series_reducer: nil, filter: nil, aggregation_per_series_aligner: nil, page_token: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/timeSeries', options) command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse command.params['name'] = name unless name.nil? + command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil? + command.query['filter'] = filter unless filter.nil? + command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil? + command.query['view'] = view unless view.nil? command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil? command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['orderBy'] = order_by unless order_by.nil? - command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil? - command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil? - command.query['view'] = view unless view.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Deletes a metric descriptor. Only user-created custom metrics can be deleted. + # Creates or adds data to one or more time series. The response is empty if all + # time series in the request were written. If any time series could not be + # written, a corresponding failure message is included in the error response. # @param [String] name - # The metric descriptor on which to execute the request. The format is "projects/ - # `project_id_or_number`/metricDescriptors/`metric_id`". An example of ` - # metric_id` is: "custom.googleapis.com/my_test_metric". - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # The project on which to execute the request. The format is "projects/` + # project_id_or_number`". + # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_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 # @@ -492,13 +211,115 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block) + def create_time_series(name, create_time_series_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/timeSeries', options) + command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation + command.request_object = create_time_series_request_object + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty + 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 + + # Creates a new metric descriptor. User-created metric descriptors define custom + # metrics. + # @param [String] name + # The project on which to execute the request. The format is "projects/` + # project_id_or_number`". + # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_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::MonitoringV3::MetricDescriptor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::MetricDescriptor] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_descriptor(name, metric_descriptor_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options) + command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation + command.request_object = metric_descriptor_object + command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation + command.response_class = Google::Apis::MonitoringV3::MetricDescriptor + 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 + + # Deletes a metric descriptor. Only user-created custom metrics can be deleted. + # @param [String] name + # The metric descriptor on which to execute the request. The format is "projects/ + # `project_id_or_number`/metricDescriptors/`metric_id`". An example of ` + # metric_id` is: "custom.googleapis.com/my_test_metric". + # @param [String] quota_user + # Available 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::MonitoringV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::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_descriptor(name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', options) command.response_representation = Google::Apis::MonitoringV3::Empty::Representation command.response_class = Google::Apis::MonitoringV3::Empty command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.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 a single metric descriptor. This method does not require a Stackdriver + # account. + # @param [String] name + # The metric descriptor on which to execute the request. The format is "projects/ + # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of ` + # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count". + # @param [String] quota_user + # Available 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::MonitoringV3::MetricDescriptor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::MetricDescriptor] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_descriptor(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation + command.response_class = Google::Apis::MonitoringV3::MetricDescriptor + 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 @@ -507,22 +328,22 @@ module Google # @param [String] name # The project on which to execute the request. The format is "projects/` # project_id_or_number`". - # @param [String] filter - # If this field is empty, all custom and system-defined metric descriptors are - # returned. Otherwise, the filter specifies which metric descriptors are to be - # returned. For example, the following filter matches all custom metrics: - # metric.type = starts_with("custom.googleapis.com/") # @param [String] page_token # If this field is not empty then it must contain the nextPageToken value # returned by a previous call to this method. Using this field causes the method # to return additional results from the previous method call. # @param [Fixnum] page_size # A positive number that is the maximum number of results to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @param [String] filter + # If this field is empty, all custom and system-defined metric descriptors are + # returned. Otherwise, the filter specifies which metric descriptors are to be + # returned. For example, the following filter matches all custom metrics: + # metric.type = starts_with("custom.googleapis.com/") # @param [String] quota_user # Available 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 # @@ -535,84 +356,49 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_metric_descriptors(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_metric_descriptors(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options) command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.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['filter'] = filter unless filter.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 a single metric descriptor. This method does not require a Stackdriver - # account. + # Gets a single monitored resource descriptor. This method does not require a + # Stackdriver account. # @param [String] name - # The metric descriptor on which to execute the request. The format is "projects/ - # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of ` - # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count". - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # The monitored resource descriptor to get. The format is "projects/` + # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The ` + # resource_type` is a predefined type, such as cloudsql_database. # @param [String] quota_user # Available 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::MonitoringV3::MetricDescriptor] parsed result object + # @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::MonitoringV3::MetricDescriptor] + # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_descriptor(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_monitored_resource_descriptor(name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', options) - command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation - command.response_class = Google::Apis::MonitoringV3::MetricDescriptor + command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation + command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new metric descriptor. User-created metric descriptors define custom - # metrics. - # @param [String] name - # The project on which to execute the request. The format is "projects/` - # project_id_or_number`". - # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_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::MonitoringV3::MetricDescriptor] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MonitoringV3::MetricDescriptor] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options) - command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation - command.request_object = metric_descriptor_object - command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation - command.response_class = Google::Apis::MonitoringV3::MetricDescriptor - command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -632,11 +418,11 @@ module Google # reference the descriptor's type and labels. For example, the following filter # returns only Google Compute Engine descriptors that have an id label: # resource.type = starts_with("gce_") AND resource.label: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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -649,7 +435,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_monitored_resource_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_monitored_resource_descriptors(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options) command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse @@ -657,41 +443,255 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.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 a single monitored resource descriptor. This method does not require a - # Stackdriver account. + # Deletes an existing group. # @param [String] name - # The monitored resource descriptor to get. The format is "projects/` - # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The ` - # resource_type` is a predefined type, such as cloudsql_database. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # The group to delete. The format is "projects/`project_id_or_number`/groups/` + # group_id`". # @param [String] quota_user # Available 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::MonitoringV3::MonitoredResourceDescriptor] parsed result object + # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] + # @return [Google::Apis::MonitoringV3::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 get_project_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v3/{+name}', options) - command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation - command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor + def delete_project_group(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Empty::Representation + command.response_class = Google::Apis::MonitoringV3::Empty command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.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 a single group. + # @param [String] name + # The group to retrieve. The format is "projects/`project_id_or_number`/groups/` + # group_id`". + # @param [String] quota_user + # Available 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::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_group(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + 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 the existing groups. + # @param [String] name + # The project whose groups are to be listed. The format is "projects/` + # project_id_or_number`". + # @param [String] children_of_group + # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns + # groups whose parentName field contains the group name. If no groups have this + # parent, the results are empty. + # @param [String] descendants_of_group + # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the + # descendants of the specified group. This is a superset of the results returned + # by the childrenOfGroup filter, and includes children-of-children, and so forth. + # @param [String] page_token + # If this field is not empty then it must contain the nextPageToken value + # returned by a previous call to this method. Using this field causes the method + # to return additional results from the previous method call. + # @param [Fixnum] page_size + # A positive number that is the maximum number of results to return. + # @param [String] ancestors_of_group + # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns + # groups that are ancestors of the specified group. The groups are returned in + # order, starting with the immediate parent and ending with the most distant + # ancestor. If the specified group has no immediate parent, the results are + # empty. + # @param [String] quota_user + # Available 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::MonitoringV3::ListGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_groups(name, children_of_group: nil, descendants_of_group: nil, page_token: nil, page_size: nil, ancestors_of_group: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/groups', options) + command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation + command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse + command.params['name'] = name unless name.nil? + command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil? + command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing group. You can change any group attributes except name. + # @param [String] name + # Output only. The name of this group. The format is "projects/` + # project_id_or_number`/groups/`group_id`". When creating a group, this field is + # ignored and a new name is created consisting of the project specified in the + # call to CreateGroup and a unique `group_id` that is generated automatically. + # @param [Google::Apis::MonitoringV3::Group] group_object + # @param [Boolean] validate_only + # If true, validate this request but do not update the existing group. + # @param [String] quota_user + # Available 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::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v3/{+name}', options) + command.request_representation = Google::Apis::MonitoringV3::Group::Representation + command.request_object = group_object + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + command.params['name'] = name unless name.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new group. + # @param [String] name + # The project in which to create the group. The format is "projects/` + # project_id_or_number`". + # @param [Google::Apis::MonitoringV3::Group] group_object + # @param [Boolean] validate_only + # If true, validate this request but do not create the group. + # @param [String] quota_user + # Available 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::MonitoringV3::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/groups', options) + command.request_representation = Google::Apis::MonitoringV3::Group::Representation + command.request_object = group_object + command.response_representation = Google::Apis::MonitoringV3::Group::Representation + command.response_class = Google::Apis::MonitoringV3::Group + command.params['name'] = name unless name.nil? + command.query['validateOnly'] = validate_only unless validate_only.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 the monitored resources that are members of a group. + # @param [String] name + # The group whose members are listed. The format is "projects/` + # project_id_or_number`/groups/`group_id`". + # @param [String] interval_end_time + # Required. The end of the time interval. + # @param [String] filter + # An optional list filter describing the members to be returned. The filter may + # reference the type, labels, and metadata of monitored resources that comprise + # the group. For example, to return only resources representing Compute Engine + # VM instances, use this filter: + # resource.type = "gce_instance" + # @param [String] page_token + # If this field is not empty then it must contain the nextPageToken value + # returned by a previous call to this method. Using this field causes the method + # to return additional results from the previous method call. + # @param [Fixnum] page_size + # A positive number that is the maximum number of results to return. + # @param [String] interval_start_time + # Optional. The beginning of the time interval. The default value for the start + # time is the end time. The start time must not be later than the end time. + # @param [String] quota_user + # Available 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::MonitoringV3::ListGroupMembersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MonitoringV3::ListGroupMembersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_group_members(name, interval_end_time: nil, filter: nil, page_token: nil, page_size: nil, interval_start_time: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/members', options) + command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation + command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse + command.params['name'] = name unless name.nil? + command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/partners_v2.rb b/generated/google/apis/partners_v2.rb index 53cc4b8ad..e2ebd4c5a 100644 --- a/generated/google/apis/partners_v2.rb +++ b/generated/google/apis/partners_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/partners/ module PartnersV2 VERSION = 'V2' - REVISION = '20170605' + REVISION = '20170707' end end end diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb index 8ec790bc7..629b8b75c 100644 --- a/generated/google/apis/partners_v2/classes.rb +++ b/generated/google/apis/partners_v2/classes.rb @@ -22,1862 +22,21 @@ module Google module Apis module PartnersV2 - # Analytics aggregated data for a `Company` for a given date range. - class AnalyticsSummary - include Google::Apis::Core::Hashable - - # Aggregated number of times users contacted the `Company` - # for given date range. - # Corresponds to the JSON property `contactsCount` - # @return [Fixnum] - attr_accessor :contacts_count - - # Aggregated number of profile views for the `Company` for given date range. - # Corresponds to the JSON property `profileViewsCount` - # @return [Fixnum] - attr_accessor :profile_views_count - - # Aggregated number of times users saw the `Company` - # in Google Partners Search results for given date range. - # Corresponds to the JSON property `searchViewsCount` - # @return [Fixnum] - attr_accessor :search_views_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @contacts_count = args[:contacts_count] if args.key?(:contacts_count) - @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count) - @search_views_count = args[:search_views_count] if args.key?(:search_views_count) - end - end - - # Request message for - # LogClientMessage. - class LogMessageRequest - include Google::Apis::Core::Hashable - - # Map of client info, such as URL, browser navigator, browser platform, etc. - # Corresponds to the JSON property `clientInfo` - # @return [Hash] - attr_accessor :client_info - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - # Message level of client message. - # Corresponds to the JSON property `level` - # @return [String] - attr_accessor :level - - # Details about the client message. - # Corresponds to the JSON property `details` - # @return [String] - attr_accessor :details - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_info = args[:client_info] if args.key?(:client_info) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @level = args[:level] if args.key?(:level) - @details = args[:details] if args.key?(:details) - end - end - - # Debug information about this request. - class DebugInfo - include Google::Apis::Core::Hashable - - # Info about the server that serviced this request. - # Corresponds to the JSON property `serverInfo` - # @return [String] - attr_accessor :server_info - - # Server-side debug stack trace. - # Corresponds to the JSON property `serverTraceInfo` - # @return [String] - attr_accessor :server_trace_info - - # URL of the service that handled this request. - # Corresponds to the JSON property `serviceUrl` - # @return [String] - attr_accessor :service_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @server_info = args[:server_info] if args.key?(:server_info) - @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) - @service_url = args[:service_url] if args.key?(:service_url) - end - end - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - class Lead - include Google::Apis::Core::Hashable - - # Whether or not the lead signed up for marketing emails - # Corresponds to the JSON property `marketingOptIn` - # @return [Boolean] - attr_accessor :marketing_opt_in - alias_method :marketing_opt_in?, :marketing_opt_in - - # Type of lead. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # First name of lead source. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `minMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :min_monthly_budget - - # Language code of the lead's language preference, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Website URL of lead source. - # Corresponds to the JSON property `websiteUrl` - # @return [String] - attr_accessor :website_url - - # The lead's state in relation to the company. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # List of reasons for using Google Partner Search and creating a lead. - # Corresponds to the JSON property `gpsMotivations` - # @return [Array] - attr_accessor :gps_motivations - - # Email address of lead source. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # Last name of lead source. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # ID of the lead. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Comments lead source gave. - # Corresponds to the JSON property `comments` - # @return [String] - attr_accessor :comments - - # Phone number of lead source. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # The AdWords Customer ID of the lead. - # Corresponds to the JSON property `adwordsCustomerId` - # @return [Fixnum] - attr_accessor :adwords_customer_id - - # Timestamp of when this lead was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) - @type = args[:type] if args.key?(:type) - @given_name = args[:given_name] if args.key?(:given_name) - @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) - @language_code = args[:language_code] if args.key?(:language_code) - @website_url = args[:website_url] if args.key?(:website_url) - @state = args[:state] if args.key?(:state) - @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) - @email = args[:email] if args.key?(:email) - @family_name = args[:family_name] if args.key?(:family_name) - @id = args[:id] if args.key?(:id) - @comments = args[:comments] if args.key?(:comments) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id) - @create_time = args[:create_time] if args.key?(:create_time) - end - end - - # Response message for - # ListUserStates. - class ListUserStatesResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # User's states. - # Corresponds to the JSON property `userStates` - # @return [Array] - attr_accessor :user_states - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @user_states = args[:user_states] if args.key?(:user_states) - end - end - - # A CompanyRelation resource representing information about a user's - # affiliation and standing with a company in Partners. - class CompanyRelation - include Google::Apis::Core::Hashable - - # The ID of the company. There may be no id if this is a - # pending company.5 - # Corresponds to the JSON property `companyId` - # @return [String] - attr_accessor :company_id - - # The primary language code of the company. - # Corresponds to the JSON property `primaryLanguageCode` - # @return [String] - attr_accessor :primary_language_code - - # A URL to a profile photo, e.g. a G+ profile photo. - # Corresponds to the JSON property `logoUrl` - # @return [String] - attr_accessor :logo_url - - # The timestamp when the user was approved. - # @OutputOnly - # Corresponds to the JSON property `resolvedTimestamp` - # @return [String] - attr_accessor :resolved_timestamp - - # Indicates if the user is an admin for this company. - # Corresponds to the JSON property `companyAdmin` - # @return [Boolean] - attr_accessor :company_admin - alias_method :company_admin?, :company_admin - - # The primary address for this company. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # The flag that indicates if the company is pending verification. - # Corresponds to the JSON property `isPending` - # @return [Boolean] - attr_accessor :is_pending - alias_method :is_pending?, :is_pending - - # The timestamp of when affiliation was requested. - # @OutputOnly - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # The state of relationship, in terms of approvals. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `primaryAddress` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :primary_address - - # The AdWords manager account # associated this company. - # Corresponds to the JSON property `managerAccount` - # @return [Fixnum] - attr_accessor :manager_account - - # The name (in the company's primary language) for the company. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The segment the company is classified as. - # Corresponds to the JSON property `segment` - # @return [Array] - attr_accessor :segment - - # The internal company ID. - # Only available for a whitelisted set of api clients. - # Corresponds to the JSON property `internalCompanyId` - # @return [String] - attr_accessor :internal_company_id - - # Whether the company is a Partner. - # Corresponds to the JSON property `badgeTier` - # @return [String] - attr_accessor :badge_tier - - # The list of Google Partners specialization statuses for the company. - # Corresponds to the JSON property `specializationStatus` - # @return [Array] - attr_accessor :specialization_status - - # The phone number for the company's primary address. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # The website URL for this company. - # Corresponds to the JSON property `website` - # @return [String] - attr_accessor :website - - # The primary country code of the company. - # Corresponds to the JSON property `primaryCountryCode` - # @return [String] - attr_accessor :primary_country_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @company_id = args[:company_id] if args.key?(:company_id) - @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) - @logo_url = args[:logo_url] if args.key?(:logo_url) - @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp) - @company_admin = args[:company_admin] if args.key?(:company_admin) - @address = args[:address] if args.key?(:address) - @is_pending = args[:is_pending] if args.key?(:is_pending) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @state = args[:state] if args.key?(:state) - @primary_address = args[:primary_address] if args.key?(:primary_address) - @manager_account = args[:manager_account] if args.key?(:manager_account) - @name = args[:name] if args.key?(:name) - @segment = args[:segment] if args.key?(:segment) - @internal_company_id = args[:internal_company_id] if args.key?(:internal_company_id) - @badge_tier = args[:badge_tier] if args.key?(:badge_tier) - @specialization_status = args[:specialization_status] if args.key?(:specialization_status) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @website = args[:website] if args.key?(:website) - @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) - end - end - - # Represents a whole calendar date, e.g. date of birth. The time of day and - # time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day may be 0 to - # represent a year and month where the day is not significant, e.g. credit card - # expiration date. The year may be 0 to represent a month and day independent - # of year, e.g. anniversary date. Related types are google.type.TimeOfDay - # and `google.protobuf.Timestamp`. - class Date - include Google::Apis::Core::Hashable - - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year/month where the day is not significant. - # Corresponds to the JSON property `day` - # @return [Fixnum] - attr_accessor :day - - # Month of year. Must be from 1 to 12. - # Corresponds to the JSON property `month` - # @return [Fixnum] - attr_accessor :month - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @year = args[:year] if args.key?(:year) - @day = args[:day] if args.key?(:day) - @month = args[:month] if args.key?(:month) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Source of traffic for the current request. - class TrafficSource - include Google::Apis::Core::Hashable - - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # Corresponds to the JSON property `trafficSourceId` - # @return [String] - attr_accessor :traffic_source_id - - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # Corresponds to the JSON property `trafficSubId` - # @return [String] - attr_accessor :traffic_sub_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id) - @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id) - end - end - - # Request message for CreateLead. - class CreateLeadRequest - include Google::Apis::Core::Hashable - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - # Corresponds to the JSON property `lead` - # @return [Google::Apis::PartnersV2::Lead] - attr_accessor :lead - - # reCaptcha challenge info. - # Corresponds to the JSON property `recaptchaChallenge` - # @return [Google::Apis::PartnersV2::RecaptchaChallenge] - attr_accessor :recaptcha_challenge - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @lead = args[:lead] if args.key?(:lead) - @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) - end - end - - # Common data that is in each API request. - class RequestMetadata - include Google::Apis::Core::Hashable - - # Values to use instead of the user's respective defaults. These are only - # honored by whitelisted products. - # Corresponds to the JSON property `userOverrides` - # @return [Google::Apis::PartnersV2::UserOverrides] - attr_accessor :user_overrides - - # Google Partners session ID. - # Corresponds to the JSON property `partnersSessionId` - # @return [String] - attr_accessor :partners_session_id - - # Experiment IDs the current request belongs to. - # Corresponds to the JSON property `experimentIds` - # @return [Array] - attr_accessor :experiment_ids - - # Source of traffic for the current request. - # Corresponds to the JSON property `trafficSource` - # @return [Google::Apis::PartnersV2::TrafficSource] - attr_accessor :traffic_source - - # Locale to use for the current request. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @user_overrides = args[:user_overrides] if args.key?(:user_overrides) - @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) - @locale = args[:locale] if args.key?(:locale) - end - end - - # Key value data pair for an event. - class EventData - include Google::Apis::Core::Hashable - - # Data type. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Data values. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @values = args[:values] if args.key?(:values) - end - end - - # A user's information on a specific exam. - class ExamStatus - include Google::Apis::Core::Hashable - - # Date this exam is due to expire. - # Corresponds to the JSON property `expiration` - # @return [String] - attr_accessor :expiration - - # Whether this exam is in the state of warning. - # Corresponds to the JSON property `warning` - # @return [Boolean] - attr_accessor :warning - alias_method :warning?, :warning - - # The date the user last passed this exam. - # Corresponds to the JSON property `lastPassed` - # @return [String] - attr_accessor :last_passed - - # The type of the exam. - # Corresponds to the JSON property `examType` - # @return [String] - attr_accessor :exam_type - - # Whether this exam has been passed and not expired. - # Corresponds to the JSON property `passed` - # @return [Boolean] - attr_accessor :passed - alias_method :passed?, :passed - - # The date the user last taken this exam. - # Corresponds to the JSON property `taken` - # @return [String] - attr_accessor :taken - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @expiration = args[:expiration] if args.key?(:expiration) - @warning = args[:warning] if args.key?(:warning) - @last_passed = args[:last_passed] if args.key?(:last_passed) - @exam_type = args[:exam_type] if args.key?(:exam_type) - @passed = args[:passed] if args.key?(:passed) - @taken = args[:taken] if args.key?(:taken) - end - end - - # Response for ListOffer. - class ListOffersResponse - include Google::Apis::Core::Hashable - - # Available Offers to be distributed. - # Corresponds to the JSON property `availableOffers` - # @return [Array] - attr_accessor :available_offers - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # Reason why no Offers are available. - # Corresponds to the JSON property `noOfferReason` - # @return [String] - attr_accessor :no_offer_reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @available_offers = args[:available_offers] if args.key?(:available_offers) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason) - end - end - - # Offer info by country. - class CountryOfferInfo - include Google::Apis::Core::Hashable - - # Country code for which offer codes may be requested. - # Corresponds to the JSON property `offerCountryCode` - # @return [String] - attr_accessor :offer_country_code - - # (localized) Spend X amount for that country's offer. - # Corresponds to the JSON property `spendXAmount` - # @return [String] - attr_accessor :spend_x_amount - - # Type of offer country is eligible for. - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # (localized) Get Y amount for that country's offer. - # Corresponds to the JSON property `getYAmount` - # @return [String] - attr_accessor :get_y_amount - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) - @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) - end - end - - # Response message for - # ListCompanies. - class ListCompaniesResponse - include Google::Apis::Core::Hashable - - # A token to retrieve next page of results. - # Pass this value in the `ListCompaniesRequest.page_token` field in the - # subsequent call to - # ListCompanies to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # The list of companies. - # Corresponds to the JSON property `companies` - # @return [Array] - attr_accessor :companies - - 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) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @companies = args[:companies] if args.key?(:companies) - end - end - - # Customers qualified for an offer. - class OfferCustomer - include Google::Apis::Core::Hashable - - # Formatted Get Y amount with currency code. - # Corresponds to the JSON property `getYAmount` - # @return [String] - attr_accessor :get_y_amount - - # Name of the customer. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Formatted Spend X amount with currency code. - # Corresponds to the JSON property `spendXAmount` - # @return [String] - attr_accessor :spend_x_amount - - # URL to the customer's AdWords page. - # Corresponds to the JSON property `adwordsUrl` - # @return [String] - attr_accessor :adwords_url - - # Country code of the customer. - # Corresponds to the JSON property `countryCode` - # @return [String] - attr_accessor :country_code - - # External CID for the customer. - # Corresponds to the JSON property `externalCid` - # @return [Fixnum] - attr_accessor :external_cid - - # Time the customer was created. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # Days the customer is still eligible. - # Corresponds to the JSON property `eligibilityDaysLeft` - # @return [Fixnum] - attr_accessor :eligibility_days_left - - # Type of the offer - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) - @name = args[:name] if args.key?(:name) - @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) - @adwords_url = args[:adwords_url] if args.key?(:adwords_url) - @country_code = args[:country_code] if args.key?(:country_code) - @external_cid = args[:external_cid] if args.key?(:external_cid) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left) - @offer_type = args[:offer_type] if args.key?(:offer_type) - end - end - - # Google Partners certification status. - class CertificationStatus - include Google::Apis::Core::Hashable - - # List of certification exam statuses. - # Corresponds to the JSON property `examStatuses` - # @return [Array] - attr_accessor :exam_statuses - - # The type of the certification. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Number of people who are certified, - # Corresponds to the JSON property `userCount` - # @return [Fixnum] - attr_accessor :user_count - - # Whether certification is passing. - # Corresponds to the JSON property `isCertified` - # @return [Boolean] - attr_accessor :is_certified - alias_method :is_certified?, :is_certified - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) - @type = args[:type] if args.key?(:type) - @user_count = args[:user_count] if args.key?(:user_count) - @is_certified = args[:is_certified] if args.key?(:is_certified) - end - end - - # The localized company information. - class LocalizedCompanyInfo - include Google::Apis::Core::Hashable - - # Language code of the localized company info, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # List of country codes for the localized company info. - # Corresponds to the JSON property `countryCodes` - # @return [Array] - attr_accessor :country_codes - - # Localized brief description that the company uses to advertise themselves. - # Corresponds to the JSON property `overview` - # @return [String] - attr_accessor :overview - - # Localized display name. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language_code = args[:language_code] if args.key?(:language_code) - @country_codes = args[:country_codes] if args.key?(:country_codes) - @overview = args[:overview] if args.key?(:overview) - @display_name = args[:display_name] if args.key?(:display_name) - end - end - - # Response message for - # LogUserEvent. - class LogUserEventResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response for ListOfferHistory. - class ListOffersHistoryResponse - include Google::Apis::Core::Hashable - - # True if the user has the option to show entire company history. - # Corresponds to the JSON property `canShowEntireCompany` - # @return [Boolean] - attr_accessor :can_show_entire_company - alias_method :can_show_entire_company?, :can_show_entire_company - - # Number of results across all pages. - # Corresponds to the JSON property `totalResults` - # @return [Fixnum] - attr_accessor :total_results - - # True if this response is showing entire company history. - # Corresponds to the JSON property `showingEntireCompany` - # @return [Boolean] - attr_accessor :showing_entire_company - alias_method :showing_entire_company?, :showing_entire_company - - # Historical offers meeting request. - # Corresponds to the JSON property `offers` - # @return [Array] - attr_accessor :offers - - # Supply this token in a ListOffersHistoryRequest to retrieve the next page. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company) - @total_results = args[:total_results] if args.key?(:total_results) - @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company) - @offers = args[:offers] if args.key?(:offers) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for - # LogClientMessage. - class LogMessageResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Agency specialization status - class SpecializationStatus - include Google::Apis::Core::Hashable - - # The specialization this status is for. - # Corresponds to the JSON property `badgeSpecialization` - # @return [String] - attr_accessor :badge_specialization - - # State of agency specialization. - # Corresponds to the JSON property `badgeSpecializationState` - # @return [String] - attr_accessor :badge_specialization_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization) - @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state) - end - end - - # A user's information on a specific certification. - class Certification - include Google::Apis::Core::Hashable - - # The type of certification, the area of expertise. - # Corresponds to the JSON property `certificationType` - # @return [String] - attr_accessor :certification_type - - # The date the user last achieved certification. - # Corresponds to the JSON property `lastAchieved` - # @return [String] - attr_accessor :last_achieved - - # Whether this certification has been achieved. - # Corresponds to the JSON property `achieved` - # @return [Boolean] - attr_accessor :achieved - alias_method :achieved?, :achieved - - # Date this certification is due to expire. - # Corresponds to the JSON property `expiration` - # @return [String] - attr_accessor :expiration - - # Whether this certification is in the state of warning. - # Corresponds to the JSON property `warning` - # @return [Boolean] - attr_accessor :warning - alias_method :warning?, :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @certification_type = args[:certification_type] if args.key?(:certification_type) - @last_achieved = args[:last_achieved] if args.key?(:last_achieved) - @achieved = args[:achieved] if args.key?(:achieved) - @expiration = args[:expiration] if args.key?(:expiration) - @warning = args[:warning] if args.key?(:warning) - end - end - - # A resource representing a user of the Partners platform. - class User - include Google::Apis::Core::Hashable - - # The internal user ID. - # Only available for a whitelisted set of api clients. - # Corresponds to the JSON property `internalId` - # @return [String] - attr_accessor :internal_id - - # The list of exams the user ever taken. For each type of exam, only one - # entry is listed. - # Corresponds to the JSON property `examStatus` - # @return [Array] - attr_accessor :exam_status - - # The ID of the user. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Basic information from a public profile. - # Corresponds to the JSON property `publicProfile` - # @return [Google::Apis::PartnersV2::PublicProfile] - attr_accessor :public_profile - - # The email address used by the user used for company verification. - # @OutputOnly - # Corresponds to the JSON property `companyVerificationEmail` - # @return [String] - attr_accessor :company_verification_email - - # The list of achieved certifications. These are calculated based on exam - # results and other requirements. - # @OutputOnly - # Corresponds to the JSON property `certificationStatus` - # @return [Array] - attr_accessor :certification_status - - # The profile information of a Partners user. - # Corresponds to the JSON property `profile` - # @return [Google::Apis::PartnersV2::UserProfile] - attr_accessor :profile - - # A CompanyRelation resource representing information about a user's - # affiliation and standing with a company in Partners. - # Corresponds to the JSON property `company` - # @return [Google::Apis::PartnersV2::CompanyRelation] - attr_accessor :company - - # The most recent time the user interacted with the Partners site. - # @OutputOnly - # Corresponds to the JSON property `lastAccessTime` - # @return [String] - attr_accessor :last_access_time - - # This is the list of AdWords Manager Accounts the user has edit access to. - # If the user has edit access to multiple accounts, the user can choose the - # preferred account and we use this when a personal account is needed. Can - # be empty meaning the user has access to no accounts. - # @OutputOnly - # Corresponds to the JSON property `availableAdwordsManagerAccounts` - # @return [Array] - attr_accessor :available_adwords_manager_accounts - - # The list of emails the user has access to/can select as primary. - # @OutputOnly - # Corresponds to the JSON property `primaryEmails` - # @return [Array] - attr_accessor :primary_emails - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @internal_id = args[:internal_id] if args.key?(:internal_id) - @exam_status = args[:exam_status] if args.key?(:exam_status) - @id = args[:id] if args.key?(:id) - @public_profile = args[:public_profile] if args.key?(:public_profile) - @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email) - @certification_status = args[:certification_status] if args.key?(:certification_status) - @profile = args[:profile] if args.key?(:profile) - @company = args[:company] if args.key?(:company) - @last_access_time = args[:last_access_time] if args.key?(:last_access_time) - @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts) - @primary_emails = args[:primary_emails] if args.key?(:primary_emails) - end - end - - # Response message for - # ListAnalytics. - class ListAnalyticsResponse - include Google::Apis::Core::Hashable - - # A token to retrieve next page of results. - # Pass this value in the `ListAnalyticsRequest.page_token` field in the - # subsequent call to - # ListAnalytics to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # Analytics aggregated data for a `Company` for a given date range. - # Corresponds to the JSON property `analyticsSummary` - # @return [Google::Apis::PartnersV2::AnalyticsSummary] - attr_accessor :analytics_summary - - # The list of analytics. - # Sorted in ascending order of - # Analytics.event_date. - # Corresponds to the JSON property `analytics` - # @return [Array] - attr_accessor :analytics - - 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) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary) - @analytics = args[:analytics] if args.key?(:analytics) - end - end - - # A company resource in the Google Partners API. Once certified, it qualifies - # for being searched by advertisers. - class Company - include Google::Apis::Core::Hashable - - # The list of localized info for the company. - # Corresponds to the JSON property `localizedInfos` - # @return [Array] - attr_accessor :localized_infos - - # The ID of the company. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The list of Google Partners certification statuses for the company. - # Corresponds to the JSON property `certificationStatuses` - # @return [Array] - attr_accessor :certification_statuses - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `originalMinMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :original_min_monthly_budget - - # Services the company can help with. - # Corresponds to the JSON property `services` - # @return [Array] - attr_accessor :services - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `primaryLocation` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :primary_location - - # Basic information from a public profile. - # Corresponds to the JSON property `publicProfile` - # @return [Google::Apis::PartnersV2::PublicProfile] - attr_accessor :public_profile - - # Information related to the ranking of the company within the list of - # companies. - # Corresponds to the JSON property `ranks` - # @return [Array] - attr_accessor :ranks - - # The list of Google Partners specialization statuses for the company. - # Corresponds to the JSON property `specializationStatus` - # @return [Array] - attr_accessor :specialization_status - - # Partner badge tier - # Corresponds to the JSON property `badgeTier` - # @return [String] - attr_accessor :badge_tier - - # Email domains that allow users with a matching email address to get - # auto-approved for associating with this company. - # Corresponds to the JSON property `autoApprovalEmailDomains` - # @return [Array] - attr_accessor :auto_approval_email_domains - - # Company type labels listed on the company's profile. - # Corresponds to the JSON property `companyTypes` - # @return [Array] - attr_accessor :company_types - - # The public viewability status of the company's profile. - # Corresponds to the JSON property `profileStatus` - # @return [String] - attr_accessor :profile_status - - # The primary language code of the company, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `primaryLanguageCode` - # @return [String] - attr_accessor :primary_language_code - - # The list of all company locations. - # If set, must include the - # primary_location - # in the list. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `convertedMinMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :converted_min_monthly_budget - - # Industries the company can help with. - # Corresponds to the JSON property `industries` - # @return [Array] - attr_accessor :industries - - # URL of the company's website. - # Corresponds to the JSON property `websiteUrl` - # @return [String] - attr_accessor :website_url - - # URL of the company's additional websites used to verify the dynamic badges. - # These are stored as full URLs as entered by the user, but only the TLD will - # be used for the actual verification. - # Corresponds to the JSON property `additionalWebsites` - # @return [Array] - attr_accessor :additional_websites - - # The Primary AdWords Manager Account id. - # Corresponds to the JSON property `primaryAdwordsManagerAccountId` - # @return [Fixnum] - attr_accessor :primary_adwords_manager_account_id - - # The name of the company. - # 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) - @localized_infos = args[:localized_infos] if args.key?(:localized_infos) - @id = args[:id] if args.key?(:id) - @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses) - @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget) - @services = args[:services] if args.key?(:services) - @primary_location = args[:primary_location] if args.key?(:primary_location) - @public_profile = args[:public_profile] if args.key?(:public_profile) - @ranks = args[:ranks] if args.key?(:ranks) - @specialization_status = args[:specialization_status] if args.key?(:specialization_status) - @badge_tier = args[:badge_tier] if args.key?(:badge_tier) - @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) - @company_types = args[:company_types] if args.key?(:company_types) - @profile_status = args[:profile_status] if args.key?(:profile_status) - @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) - @locations = args[:locations] if args.key?(:locations) - @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget) - @industries = args[:industries] if args.key?(:industries) - @website_url = args[:website_url] if args.key?(:website_url) - @additional_websites = args[:additional_websites] if args.key?(:additional_websites) - @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id) - @name = args[:name] if args.key?(:name) - end - end - - # Response message for ListLeads. - class ListLeadsResponse - include Google::Apis::Core::Hashable - - # A token to retrieve next page of results. - # Pass this value in the `ListLeadsRequest.page_token` field in the - # subsequent call to - # ListLeads to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # The total count of leads for the given company. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - # The list of leads. - # Corresponds to the JSON property `leads` - # @return [Array] - attr_accessor :leads - - 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) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @total_size = args[:total_size] if args.key?(:total_size) - @leads = args[:leads] if args.key?(:leads) - end - end - - # Response message for CreateLead. - class CreateLeadResponse - include Google::Apis::Core::Hashable - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - # Corresponds to the JSON property `lead` - # @return [Google::Apis::PartnersV2::Lead] - attr_accessor :lead - - # The outcome of reCaptcha - # validation. - # Corresponds to the JSON property `recaptchaStatus` - # @return [String] - attr_accessor :recaptcha_status - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @lead = args[:lead] if args.key?(:lead) - @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for GetCompany. - class GetCompanyResponse - include Google::Apis::Core::Hashable - - # A company resource in the Google Partners API. Once certified, it qualifies - # for being searched by advertisers. - # Corresponds to the JSON property `company` - # @return [Google::Apis::PartnersV2::Company] - attr_accessor :company - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @company = args[:company] if args.key?(:company) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - class Location - include Google::Apis::Core::Hashable - - # The following address lines represent the most specific part of any - # address. - # Corresponds to the JSON property `addressLine` - # @return [Array] - attr_accessor :address_line - - # Top-level administrative subdivision of this country. - # Corresponds to the JSON property `administrativeArea` - # @return [String] - attr_accessor :administrative_area - - # Generally refers to the city/town portion of an address. - # Corresponds to the JSON property `locality` - # @return [String] - attr_accessor :locality - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::PartnersV2::LatLng] - attr_accessor :lat_lng - - # CLDR (Common Locale Data Repository) region code . - # Corresponds to the JSON property `regionCode` - # @return [String] - attr_accessor :region_code - - # The single string version of the address. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # Dependent locality or sublocality. Used for UK dependent localities, or - # neighborhoods or boroughs in other locations. - # Corresponds to the JSON property `dependentLocality` - # @return [String] - attr_accessor :dependent_locality - - # Values are frequently alphanumeric. - # Corresponds to the JSON property `postalCode` - # @return [String] - attr_accessor :postal_code - - # Language code of the address. Should be in BCP 47 format. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Use of this code is very country-specific, but will refer to a secondary - # classification code for sorting mail. - # Corresponds to the JSON property `sortingCode` - # @return [String] - attr_accessor :sorting_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address_line = args[:address_line] if args.key?(:address_line) - @administrative_area = args[:administrative_area] if args.key?(:administrative_area) - @locality = args[:locality] if args.key?(:locality) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - @region_code = args[:region_code] if args.key?(:region_code) - @address = args[:address] if args.key?(:address) - @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) - @postal_code = args[:postal_code] if args.key?(:postal_code) - @language_code = args[:language_code] if args.key?(:language_code) - @sorting_code = args[:sorting_code] if args.key?(:sorting_code) - end - end - - # Status for a Google Partners certification exam. - class CertificationExamStatus - include Google::Apis::Core::Hashable - - # The number of people who have passed the certification exam. - # Corresponds to the JSON property `numberUsersPass` - # @return [Fixnum] - attr_accessor :number_users_pass - - # The type of certification exam. - # 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) - @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) - @type = args[:type] if args.key?(:type) - end - end - - # A token that allows a user to take an exam. - class ExamToken - include Google::Apis::Core::Hashable - - # The token, only present if the user has access to the exam. - # Corresponds to the JSON property `token` - # @return [String] - attr_accessor :token - - # The type of the exam the token belongs to. - # Corresponds to the JSON property `examType` - # @return [String] - attr_accessor :exam_type - - # The id of the exam the token is for. - # Corresponds to the JSON property `examId` - # @return [Fixnum] - attr_accessor :exam_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @token = args[:token] if args.key?(:token) - @exam_type = args[:exam_type] if args.key?(:exam_type) - @exam_id = args[:exam_id] if args.key?(:exam_id) - end - end - - # A set of opt-ins for a user. - class OptIns - include Google::Apis::Core::Hashable - - # An opt-in about receiving email regarding new features and products. - # Corresponds to the JSON property `specialOffers` - # @return [Boolean] - attr_accessor :special_offers - alias_method :special_offers?, :special_offers - - # An opt-in about receiving email with customized AdWords campaign management - # tips. - # Corresponds to the JSON property `performanceSuggestions` - # @return [Boolean] - attr_accessor :performance_suggestions - alias_method :performance_suggestions?, :performance_suggestions - - # An opt-in to receive special promotional gifts and material in the mail. - # Corresponds to the JSON property `physicalMail` - # @return [Boolean] - attr_accessor :physical_mail - alias_method :physical_mail?, :physical_mail - - # An opt-in to allow recieivng phone calls about their Partners account. - # Corresponds to the JSON property `phoneContact` - # @return [Boolean] - attr_accessor :phone_contact - alias_method :phone_contact?, :phone_contact - - # An opt-in about receiving email from Partners marketing teams. Includes - # member-only events and special promotional offers for Google products. - # Corresponds to the JSON property `marketComm` - # @return [Boolean] - attr_accessor :market_comm - alias_method :market_comm?, :market_comm - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @special_offers = args[:special_offers] if args.key?(:special_offers) - @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions) - @physical_mail = args[:physical_mail] if args.key?(:physical_mail) - @phone_contact = args[:phone_contact] if args.key?(:phone_contact) - @market_comm = args[:market_comm] if args.key?(:market_comm) - end - end - - # Information related to ranking of results. - class Rank - include Google::Apis::Core::Hashable - - # The type of rank. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The numerical value of the rank. - # Corresponds to the JSON property `value` - # @return [Float] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @value = args[:value] if args.key?(:value) - end - end - - # Response message for - # GetPartnersStatus. - class GetPartnersStatusResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # The profile information of a Partners user. - class UserProfile - include Google::Apis::Core::Hashable - - # The user's family name. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # The list of languages this user understands. - # Corresponds to the JSON property `languages` - # @return [Array] - attr_accessor :languages - - # A set of opt-ins for a user. - # Corresponds to the JSON property `emailOptIns` - # @return [Google::Apis::PartnersV2::OptIns] - attr_accessor :email_opt_ins - - # A list of ids representing which markets the user was interested in. - # Corresponds to the JSON property `markets` - # @return [Array] - attr_accessor :markets - - # The user's phone number. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # If the user has edit access to multiple accounts, the user can choose the - # preferred account and it is used when a personal account is needed. Can - # be empty. - # Corresponds to the JSON property `adwordsManagerAccount` - # @return [Fixnum] - attr_accessor :adwords_manager_account - - # The user's primary country, an ISO 2-character code. - # Corresponds to the JSON property `primaryCountryCode` - # @return [String] - attr_accessor :primary_country_code - - # The email address the user has selected on the Partners site as primary. - # Corresponds to the JSON property `emailAddress` - # @return [String] - attr_accessor :email_address - - # Whether the user's public profile is visible to anyone with the URL. - # Corresponds to the JSON property `profilePublic` - # @return [Boolean] - attr_accessor :profile_public - alias_method :profile_public?, :profile_public - - # A list of ids representing which channels the user selected they were in. - # Corresponds to the JSON property `channels` - # @return [Array] - attr_accessor :channels - - # A list of ids represnting which job categories the user selected. - # Corresponds to the JSON property `jobFunctions` - # @return [Array] - attr_accessor :job_functions - - # The user's given name. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `address` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :address - - # A list of ids representing which industries the user selected. - # Corresponds to the JSON property `industries` - # @return [Array] - attr_accessor :industries - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @family_name = args[:family_name] if args.key?(:family_name) - @languages = args[:languages] if args.key?(:languages) - @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) - @markets = args[:markets] if args.key?(:markets) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) - @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) - @email_address = args[:email_address] if args.key?(:email_address) - @profile_public = args[:profile_public] if args.key?(:profile_public) - @channels = args[:channels] if args.key?(:channels) - @job_functions = args[:job_functions] if args.key?(:job_functions) - @given_name = args[:given_name] if args.key?(:given_name) - @address = args[:address] if args.key?(:address) - @industries = args[:industries] if args.key?(:industries) - end - end - - # Historical information about a Google Partners Offer. - class HistoricalOffer - include Google::Apis::Core::Hashable - - # Type of offer. - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # Name (First + Last) of the partners user to whom the incentive is allocated. - # Corresponds to the JSON property `senderName` - # @return [String] - attr_accessor :sender_name - - # Country Code for the offer country. - # Corresponds to the JSON property `offerCountryCode` - # @return [String] - attr_accessor :offer_country_code - - # Time this offer expires. - # Corresponds to the JSON property `expirationTime` - # @return [String] - attr_accessor :expiration_time - - # Offer code. - # Corresponds to the JSON property `offerCode` - # @return [String] - attr_accessor :offer_code - - # Time offer was first created. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # Email address for client. - # Corresponds to the JSON property `clientEmail` - # @return [String] - attr_accessor :client_email - - # Status of the offer. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # ID of client. - # Corresponds to the JSON property `clientId` - # @return [Fixnum] - attr_accessor :client_id - - # Name of the client. - # Corresponds to the JSON property `clientName` - # @return [String] - attr_accessor :client_name - - # Time last action was taken. - # Corresponds to the JSON property `lastModifiedTime` - # @return [String] - attr_accessor :last_modified_time - - # Client's AdWords page URL. - # Corresponds to the JSON property `adwordsUrl` - # @return [String] - attr_accessor :adwords_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @sender_name = args[:sender_name] if args.key?(:sender_name) - @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) - @expiration_time = args[:expiration_time] if args.key?(:expiration_time) - @offer_code = args[:offer_code] if args.key?(:offer_code) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @client_email = args[:client_email] if args.key?(:client_email) - @status = args[:status] if args.key?(:status) - @client_id = args[:client_id] if args.key?(:client_id) - @client_name = args[:client_name] if args.key?(:client_name) - @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) - @adwords_url = args[:adwords_url] if args.key?(:adwords_url) - end - end - # Request message for # LogUserEvent. class LogUserEventRequest include Google::Apis::Core::Hashable + # List of event data for the event. + # Corresponds to the JSON property `eventDatas` + # @return [Array] + attr_accessor :event_datas + + # The scope of the event. + # Corresponds to the JSON property `eventScope` + # @return [String] + attr_accessor :event_scope + # The category the action belongs to. # Corresponds to the JSON property `eventCategory` # @return [String] @@ -1894,25 +53,15 @@ module Google # @return [String] attr_accessor :event_action - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - # The URL where the event occurred. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url - # List of event data for the event. - # Corresponds to the JSON property `eventDatas` - # @return [Array] - attr_accessor :event_datas - - # The scope of the event. - # Corresponds to the JSON property `eventScope` - # @return [String] - attr_accessor :event_scope + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata def initialize(**args) update!(**args) @@ -1920,13 +69,13 @@ module Google # Update properties of this object def update!(**args) + @event_datas = args[:event_datas] if args.key?(:event_datas) + @event_scope = args[:event_scope] if args.key?(:event_scope) @event_category = args[:event_category] if args.key?(:event_category) @lead = args[:lead] if args.key?(:lead) @event_action = args[:event_action] if args.key?(:event_action) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) @url = args[:url] if args.key?(:url) - @event_datas = args[:event_datas] if args.key?(:event_datas) - @event_scope = args[:event_scope] if args.key?(:event_scope) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) end end @@ -1935,24 +84,24 @@ module Google class UserOverrides include Google::Apis::Core::Hashable - # IP address to use instead of the user's geo-located IP address. - # Corresponds to the JSON property `ipAddress` - # @return [String] - attr_accessor :ip_address - # Logged-in user ID to impersonate instead of the user's ID. # Corresponds to the JSON property `userId` # @return [String] attr_accessor :user_id + # IP address to use instead of the user's geo-located IP address. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @ip_address = args[:ip_address] if args.key?(:ip_address) @user_id = args[:user_id] if args.key?(:user_id) + @ip_address = args[:ip_address] if args.key?(:ip_address) end end @@ -1986,6 +135,16 @@ module Google class Analytics include Google::Apis::Core::Hashable + # Details of the analytics events for a `Company` within a single day. + # Corresponds to the JSON property `searchViews` + # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] + attr_accessor :search_views + + # Details of the analytics events for a `Company` within a single day. + # Corresponds to the JSON property `profileViews` + # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] + attr_accessor :profile_views + # Represents a whole calendar date, e.g. date of birth. The time of day and # time zone are either specified elsewhere or are not significant. The date # is relative to the Proleptic Gregorian Calendar. The day may be 0 to @@ -1997,16 +156,6 @@ module Google # @return [Google::Apis::PartnersV2::Date] attr_accessor :event_date - # Details of the analytics events for a `Company` within a single day. - # Corresponds to the JSON property `profileViews` - # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] - attr_accessor :profile_views - - # Details of the analytics events for a `Company` within a single day. - # Corresponds to the JSON property `searchViews` - # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] - attr_accessor :search_views - # Details of the analytics events for a `Company` within a single day. # Corresponds to the JSON property `contacts` # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] @@ -2018,9 +167,9 @@ module Google # Update properties of this object def update!(**args) - @event_date = args[:event_date] if args.key?(:event_date) - @profile_views = args[:profile_views] if args.key?(:profile_views) @search_views = args[:search_views] if args.key?(:search_views) + @profile_views = args[:profile_views] if args.key?(:profile_views) + @event_date = args[:event_date] if args.key?(:event_date) @contacts = args[:contacts] if args.key?(:contacts) end end @@ -2055,42 +204,42 @@ module Google class PublicProfile include Google::Apis::Core::Hashable - # The display name of the public profile. - # Corresponds to the JSON property `displayName` + # The URL of the public profile. + # Corresponds to the JSON property `url` # @return [String] - attr_accessor :display_name - - # The URL to the main display image of the public profile. Being deprecated. - # Corresponds to the JSON property `displayImageUrl` - # @return [String] - attr_accessor :display_image_url + attr_accessor :url # The ID which can be used to retrieve more details about the public profile. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # The URL of the public profile. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - # The URL to the main profile image of the public profile. # Corresponds to the JSON property `profileImage` # @return [String] attr_accessor :profile_image + # The URL to the main display image of the public profile. Being deprecated. + # Corresponds to the JSON property `displayImageUrl` + # @return [String] + attr_accessor :display_image_url + + # The display name of the public profile. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @display_name = args[:display_name] if args.key?(:display_name) - @display_image_url = args[:display_image_url] if args.key?(:display_image_url) - @id = args[:id] if args.key?(:id) @url = args[:url] if args.key?(:url) + @id = args[:id] if args.key?(:id) @profile_image = args[:profile_image] if args.key?(:profile_image) + @display_image_url = args[:display_image_url] if args.key?(:display_image_url) + @display_name = args[:display_name] if args.key?(:display_name) end end @@ -2142,6 +291,27 @@ module Google class AvailableOffer include Google::Apis::Core::Hashable + # Terms of the offer. + # Corresponds to the JSON property `terms` + # @return [String] + attr_accessor :terms + + # Should special text be shown on the offers page. + # Corresponds to the JSON property `showSpecialOfferCopy` + # @return [Boolean] + attr_accessor :show_special_offer_copy + alias_method :show_special_offer_copy?, :show_special_offer_copy + + # The number of codes for this offer that are available for distribution. + # Corresponds to the JSON property `available` + # @return [Fixnum] + attr_accessor :available + + # Description of the offer. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + # Level of this offer. # Corresponds to the JSON property `offerLevel` # @return [String] @@ -2183,33 +353,16 @@ module Google # @return [Array] attr_accessor :qualified_customer - # Terms of the offer. - # Corresponds to the JSON property `terms` - # @return [String] - attr_accessor :terms - - # Should special text be shown on the offers page. - # Corresponds to the JSON property `showSpecialOfferCopy` - # @return [Boolean] - attr_accessor :show_special_offer_copy - alias_method :show_special_offer_copy?, :show_special_offer_copy - - # The number of codes for this offer that are available for distribution. - # Corresponds to the JSON property `available` - # @return [Fixnum] - attr_accessor :available - - # Description of the offer. - # 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) + @terms = args[:terms] if args.key?(:terms) + @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) + @available = args[:available] if args.key?(:available) + @description = args[:description] if args.key?(:description) @offer_level = args[:offer_level] if args.key?(:offer_level) @name = args[:name] if args.key?(:name) @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) @@ -2218,10 +371,6 @@ module Google @offer_type = args[:offer_type] if args.key?(:offer_type) @max_account_age = args[:max_account_age] if args.key?(:max_account_age) @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer) - @terms = args[:terms] if args.key?(:terms) - @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) - @available = args[:available] if args.key?(:available) - @description = args[:description] if args.key?(:description) end end @@ -2320,6 +469,1857 @@ module Google @currency_code = args[:currency_code] if args.key?(:currency_code) end end + + # Analytics aggregated data for a `Company` for a given date range. + class AnalyticsSummary + include Google::Apis::Core::Hashable + + # Aggregated number of profile views for the `Company` for given date range. + # Corresponds to the JSON property `profileViewsCount` + # @return [Fixnum] + attr_accessor :profile_views_count + + # Aggregated number of times users saw the `Company` + # in Google Partners Search results for given date range. + # Corresponds to the JSON property `searchViewsCount` + # @return [Fixnum] + attr_accessor :search_views_count + + # Aggregated number of times users contacted the `Company` + # for given date range. + # Corresponds to the JSON property `contactsCount` + # @return [Fixnum] + attr_accessor :contacts_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count) + @search_views_count = args[:search_views_count] if args.key?(:search_views_count) + @contacts_count = args[:contacts_count] if args.key?(:contacts_count) + end + end + + # Request message for + # LogClientMessage. + class LogMessageRequest + include Google::Apis::Core::Hashable + + # Map of client info, such as URL, browser navigator, browser platform, etc. + # Corresponds to the JSON property `clientInfo` + # @return [Hash] + attr_accessor :client_info + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # Message level of client message. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + + # Details about the client message. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_info = args[:client_info] if args.key?(:client_info) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @level = args[:level] if args.key?(:level) + @details = args[:details] if args.key?(:details) + end + end + + # Debug information about this request. + class DebugInfo + include Google::Apis::Core::Hashable + + # Server-side debug stack trace. + # Corresponds to the JSON property `serverTraceInfo` + # @return [String] + attr_accessor :server_trace_info + + # Info about the server that serviced this request. + # Corresponds to the JSON property `serverInfo` + # @return [String] + attr_accessor :server_info + + # URL of the service that handled this request. + # Corresponds to the JSON property `serviceUrl` + # @return [String] + attr_accessor :service_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) + @server_info = args[:server_info] if args.key?(:server_info) + @service_url = args[:service_url] if args.key?(:service_url) + end + end + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + class Lead + include Google::Apis::Core::Hashable + + # Last name of lead source. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # Comments lead source gave. + # Corresponds to the JSON property `comments` + # @return [String] + attr_accessor :comments + + # ID of the lead. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The AdWords Customer ID of the lead. + # Corresponds to the JSON property `adwordsCustomerId` + # @return [Fixnum] + attr_accessor :adwords_customer_id + + # Phone number of lead source. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Timestamp of when this lead was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Whether or not the lead signed up for marketing emails + # Corresponds to the JSON property `marketingOptIn` + # @return [Boolean] + attr_accessor :marketing_opt_in + alias_method :marketing_opt_in?, :marketing_opt_in + + # Type of lead. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `minMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :min_monthly_budget + + # First name of lead source. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # Language code of the lead's language preference, as defined by + # BCP 47 + # (IETF BCP 47, "Tags for Identifying Languages"). + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Website URL of lead source. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # The lead's state in relation to the company. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # List of reasons for using Google Partner Search and creating a lead. + # Corresponds to the JSON property `gpsMotivations` + # @return [Array] + attr_accessor :gps_motivations + + # Email address of lead source. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @family_name = args[:family_name] if args.key?(:family_name) + @comments = args[:comments] if args.key?(:comments) + @id = args[:id] if args.key?(:id) + @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @create_time = args[:create_time] if args.key?(:create_time) + @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) + @type = args[:type] if args.key?(:type) + @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) + @given_name = args[:given_name] if args.key?(:given_name) + @language_code = args[:language_code] if args.key?(:language_code) + @website_url = args[:website_url] if args.key?(:website_url) + @state = args[:state] if args.key?(:state) + @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) + @email = args[:email] if args.key?(:email) + end + end + + # Response message for + # ListUserStates. + class ListUserStatesResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # User's states. + # Corresponds to the JSON property `userStates` + # @return [Array] + attr_accessor :user_states + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @user_states = args[:user_states] if args.key?(:user_states) + end + end + + # A CompanyRelation resource representing information about a user's + # affiliation and standing with a company in Partners. + class CompanyRelation + include Google::Apis::Core::Hashable + + # A URL to a profile photo, e.g. a G+ profile photo. + # Corresponds to the JSON property `logoUrl` + # @return [String] + attr_accessor :logo_url + + # The timestamp when the user was approved. + # @OutputOnly + # Corresponds to the JSON property `resolvedTimestamp` + # @return [String] + attr_accessor :resolved_timestamp + + # Indicates if the user is an admin for this company. + # Corresponds to the JSON property `companyAdmin` + # @return [Boolean] + attr_accessor :company_admin + alias_method :company_admin?, :company_admin + + # The flag that indicates if the company is pending verification. + # Corresponds to the JSON property `isPending` + # @return [Boolean] + attr_accessor :is_pending + alias_method :is_pending?, :is_pending + + # The primary address for this company. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # The timestamp of when affiliation was requested. + # @OutputOnly + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # A location with address and geographic coordinates. May optionally contain a + # detailed (multi-field) version of the address. + # Corresponds to the JSON property `primaryAddress` + # @return [Google::Apis::PartnersV2::Location] + attr_accessor :primary_address + + # The state of relationship, in terms of approvals. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The name (in the company's primary language) for the company. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The AdWords manager account # associated this company. + # Corresponds to the JSON property `managerAccount` + # @return [Fixnum] + attr_accessor :manager_account + + # The segment the company is classified as. + # Corresponds to the JSON property `segment` + # @return [Array] + attr_accessor :segment + + # The internal company ID. + # Only available for a whitelisted set of api clients. + # Corresponds to the JSON property `internalCompanyId` + # @return [String] + attr_accessor :internal_company_id + + # The list of Google Partners specialization statuses for the company. + # Corresponds to the JSON property `specializationStatus` + # @return [Array] + attr_accessor :specialization_status + + # Whether the company is a Partner. + # Corresponds to the JSON property `badgeTier` + # @return [String] + attr_accessor :badge_tier + + # The website URL for this company. + # Corresponds to the JSON property `website` + # @return [String] + attr_accessor :website + + # The phone number for the company's primary address. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # The primary country code of the company. + # Corresponds to the JSON property `primaryCountryCode` + # @return [String] + attr_accessor :primary_country_code + + # The ID of the company. There may be no id if this is a + # pending company.5 + # Corresponds to the JSON property `companyId` + # @return [String] + attr_accessor :company_id + + # The primary language code of the company. + # Corresponds to the JSON property `primaryLanguageCode` + # @return [String] + attr_accessor :primary_language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @logo_url = args[:logo_url] if args.key?(:logo_url) + @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp) + @company_admin = args[:company_admin] if args.key?(:company_admin) + @is_pending = args[:is_pending] if args.key?(:is_pending) + @address = args[:address] if args.key?(:address) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @primary_address = args[:primary_address] if args.key?(:primary_address) + @state = args[:state] if args.key?(:state) + @name = args[:name] if args.key?(:name) + @manager_account = args[:manager_account] if args.key?(:manager_account) + @segment = args[:segment] if args.key?(:segment) + @internal_company_id = args[:internal_company_id] if args.key?(:internal_company_id) + @specialization_status = args[:specialization_status] if args.key?(:specialization_status) + @badge_tier = args[:badge_tier] if args.key?(:badge_tier) + @website = args[:website] if args.key?(:website) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) + @company_id = args[:company_id] if args.key?(:company_id) + @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Source of traffic for the current request. + class TrafficSource + include Google::Apis::Core::Hashable + + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # Corresponds to the JSON property `trafficSourceId` + # @return [String] + attr_accessor :traffic_source_id + + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # Corresponds to the JSON property `trafficSubId` + # @return [String] + attr_accessor :traffic_sub_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id) + @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id) + end + end + + # Common data that is in each API request. + class RequestMetadata + include Google::Apis::Core::Hashable + + # Locale to use for the current request. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # Google Partners session ID. + # Corresponds to the JSON property `partnersSessionId` + # @return [String] + attr_accessor :partners_session_id + + # Values to use instead of the user's respective defaults. These are only + # honored by whitelisted products. + # Corresponds to the JSON property `userOverrides` + # @return [Google::Apis::PartnersV2::UserOverrides] + attr_accessor :user_overrides + + # Source of traffic for the current request. + # Corresponds to the JSON property `trafficSource` + # @return [Google::Apis::PartnersV2::TrafficSource] + attr_accessor :traffic_source + + # Experiment IDs the current request belongs to. + # Corresponds to the JSON property `experimentIds` + # @return [Array] + attr_accessor :experiment_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locale = args[:locale] if args.key?(:locale) + @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id) + @user_overrides = args[:user_overrides] if args.key?(:user_overrides) + @traffic_source = args[:traffic_source] if args.key?(:traffic_source) + @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) + end + end + + # Request message for CreateLead. + class CreateLeadRequest + include Google::Apis::Core::Hashable + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # reCaptcha challenge info. + # Corresponds to the JSON property `recaptchaChallenge` + # @return [Google::Apis::PartnersV2::RecaptchaChallenge] + attr_accessor :recaptcha_challenge + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + # Corresponds to the JSON property `lead` + # @return [Google::Apis::PartnersV2::Lead] + attr_accessor :lead + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) + @lead = args[:lead] if args.key?(:lead) + end + end + + # Key value data pair for an event. + class EventData + include Google::Apis::Core::Hashable + + # Data values. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + # Data type. + # 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) + @values = args[:values] if args.key?(:values) + @key = args[:key] if args.key?(:key) + end + end + + # A user's information on a specific exam. + class ExamStatus + include Google::Apis::Core::Hashable + + # The date the user last taken this exam. + # Corresponds to the JSON property `taken` + # @return [String] + attr_accessor :taken + + # Whether this exam has been passed and not expired. + # Corresponds to the JSON property `passed` + # @return [Boolean] + attr_accessor :passed + alias_method :passed?, :passed + + # Whether this exam is in the state of warning. + # Corresponds to the JSON property `warning` + # @return [Boolean] + attr_accessor :warning + alias_method :warning?, :warning + + # Date this exam is due to expire. + # Corresponds to the JSON property `expiration` + # @return [String] + attr_accessor :expiration + + # The date the user last passed this exam. + # Corresponds to the JSON property `lastPassed` + # @return [String] + attr_accessor :last_passed + + # The type of the exam. + # Corresponds to the JSON property `examType` + # @return [String] + attr_accessor :exam_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @taken = args[:taken] if args.key?(:taken) + @passed = args[:passed] if args.key?(:passed) + @warning = args[:warning] if args.key?(:warning) + @expiration = args[:expiration] if args.key?(:expiration) + @last_passed = args[:last_passed] if args.key?(:last_passed) + @exam_type = args[:exam_type] if args.key?(:exam_type) + end + end + + # Response for ListOffer. + class ListOffersResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # Reason why no Offers are available. + # Corresponds to the JSON property `noOfferReason` + # @return [String] + attr_accessor :no_offer_reason + + # Available Offers to be distributed. + # Corresponds to the JSON property `availableOffers` + # @return [Array] + attr_accessor :available_offers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason) + @available_offers = args[:available_offers] if args.key?(:available_offers) + end + end + + # Offer info by country. + class CountryOfferInfo + include Google::Apis::Core::Hashable + + # Type of offer country is eligible for. + # Corresponds to the JSON property `offerType` + # @return [String] + attr_accessor :offer_type + + # (localized) Get Y amount for that country's offer. + # Corresponds to the JSON property `getYAmount` + # @return [String] + attr_accessor :get_y_amount + + # (localized) Spend X amount for that country's offer. + # Corresponds to the JSON property `spendXAmount` + # @return [String] + attr_accessor :spend_x_amount + + # Country code for which offer codes may be requested. + # Corresponds to the JSON property `offerCountryCode` + # @return [String] + attr_accessor :offer_country_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @offer_type = args[:offer_type] if args.key?(:offer_type) + @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) + @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) + @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) + end + end + + # Response message for + # ListCompanies. + class ListCompaniesResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # Pass this value in the `ListCompaniesRequest.page_token` field in the + # subsequent call to + # ListCompanies to retrieve the + # next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # The list of companies. + # Corresponds to the JSON property `companies` + # @return [Array] + attr_accessor :companies + + 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) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @companies = args[:companies] if args.key?(:companies) + end + end + + # Customers qualified for an offer. + class OfferCustomer + include Google::Apis::Core::Hashable + + # URL to the customer's AdWords page. + # Corresponds to the JSON property `adwordsUrl` + # @return [String] + attr_accessor :adwords_url + + # Days the customer is still eligible. + # Corresponds to the JSON property `eligibilityDaysLeft` + # @return [Fixnum] + attr_accessor :eligibility_days_left + + # Time the customer was created. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Country code of the customer. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # External CID for the customer. + # Corresponds to the JSON property `externalCid` + # @return [Fixnum] + attr_accessor :external_cid + + # Type of the offer + # Corresponds to the JSON property `offerType` + # @return [String] + attr_accessor :offer_type + + # Formatted Get Y amount with currency code. + # Corresponds to the JSON property `getYAmount` + # @return [String] + attr_accessor :get_y_amount + + # Name of the customer. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Formatted Spend X amount with currency code. + # Corresponds to the JSON property `spendXAmount` + # @return [String] + attr_accessor :spend_x_amount + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adwords_url = args[:adwords_url] if args.key?(:adwords_url) + @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @country_code = args[:country_code] if args.key?(:country_code) + @external_cid = args[:external_cid] if args.key?(:external_cid) + @offer_type = args[:offer_type] if args.key?(:offer_type) + @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) + @name = args[:name] if args.key?(:name) + @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) + end + end + + # Google Partners certification status. + class CertificationStatus + include Google::Apis::Core::Hashable + + # The type of the certification. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Number of people who are certified, + # Corresponds to the JSON property `userCount` + # @return [Fixnum] + attr_accessor :user_count + + # Whether certification is passing. + # Corresponds to the JSON property `isCertified` + # @return [Boolean] + attr_accessor :is_certified + alias_method :is_certified?, :is_certified + + # List of certification exam statuses. + # Corresponds to the JSON property `examStatuses` + # @return [Array] + attr_accessor :exam_statuses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @user_count = args[:user_count] if args.key?(:user_count) + @is_certified = args[:is_certified] if args.key?(:is_certified) + @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) + end + end + + # The localized company information. + class LocalizedCompanyInfo + include Google::Apis::Core::Hashable + + # Localized display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Language code of the localized company info, as defined by + # BCP 47 + # (IETF BCP 47, "Tags for Identifying Languages"). + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # List of country codes for the localized company info. + # Corresponds to the JSON property `countryCodes` + # @return [Array] + attr_accessor :country_codes + + # Localized brief description that the company uses to advertise themselves. + # Corresponds to the JSON property `overview` + # @return [String] + attr_accessor :overview + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @language_code = args[:language_code] if args.key?(:language_code) + @country_codes = args[:country_codes] if args.key?(:country_codes) + @overview = args[:overview] if args.key?(:overview) + end + end + + # Response message for + # LogUserEvent. + class LogUserEventResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + end + end + + # Response for ListOfferHistory. + class ListOffersHistoryResponse + include Google::Apis::Core::Hashable + + # Supply this token in a ListOffersHistoryRequest to retrieve the next page. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # True if the user has the option to show entire company history. + # Corresponds to the JSON property `canShowEntireCompany` + # @return [Boolean] + attr_accessor :can_show_entire_company + alias_method :can_show_entire_company?, :can_show_entire_company + + # Number of results across all pages. + # Corresponds to the JSON property `totalResults` + # @return [Fixnum] + attr_accessor :total_results + + # True if this response is showing entire company history. + # Corresponds to the JSON property `showingEntireCompany` + # @return [Boolean] + attr_accessor :showing_entire_company + alias_method :showing_entire_company?, :showing_entire_company + + # Historical offers meeting request. + # Corresponds to the JSON property `offers` + # @return [Array] + attr_accessor :offers + + 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) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company) + @total_results = args[:total_results] if args.key?(:total_results) + @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company) + @offers = args[:offers] if args.key?(:offers) + end + end + + # Response message for + # LogClientMessage. + class LogMessageResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + end + end + + # Agency specialization status + class SpecializationStatus + include Google::Apis::Core::Hashable + + # The specialization this status is for. + # Corresponds to the JSON property `badgeSpecialization` + # @return [String] + attr_accessor :badge_specialization + + # State of agency specialization. + # Corresponds to the JSON property `badgeSpecializationState` + # @return [String] + attr_accessor :badge_specialization_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization) + @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state) + end + end + + # A user's information on a specific certification. + class Certification + include Google::Apis::Core::Hashable + + # The date the user last achieved certification. + # Corresponds to the JSON property `lastAchieved` + # @return [String] + attr_accessor :last_achieved + + # Whether this certification is in the state of warning. + # Corresponds to the JSON property `warning` + # @return [Boolean] + attr_accessor :warning + alias_method :warning?, :warning + + # Date this certification is due to expire. + # Corresponds to the JSON property `expiration` + # @return [String] + attr_accessor :expiration + + # Whether this certification has been achieved. + # Corresponds to the JSON property `achieved` + # @return [Boolean] + attr_accessor :achieved + alias_method :achieved?, :achieved + + # The type of certification, the area of expertise. + # Corresponds to the JSON property `certificationType` + # @return [String] + attr_accessor :certification_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_achieved = args[:last_achieved] if args.key?(:last_achieved) + @warning = args[:warning] if args.key?(:warning) + @expiration = args[:expiration] if args.key?(:expiration) + @achieved = args[:achieved] if args.key?(:achieved) + @certification_type = args[:certification_type] if args.key?(:certification_type) + end + end + + # A resource representing a user of the Partners platform. + class User + include Google::Apis::Core::Hashable + + # The list of emails the user has access to/can select as primary. + # @OutputOnly + # Corresponds to the JSON property `primaryEmails` + # @return [Array] + attr_accessor :primary_emails + + # This is the list of AdWords Manager Accounts the user has edit access to. + # If the user has edit access to multiple accounts, the user can choose the + # preferred account and we use this when a personal account is needed. Can + # be empty meaning the user has access to no accounts. + # @OutputOnly + # Corresponds to the JSON property `availableAdwordsManagerAccounts` + # @return [Array] + attr_accessor :available_adwords_manager_accounts + + # The internal user ID. + # Only available for a whitelisted set of api clients. + # Corresponds to the JSON property `internalId` + # @return [String] + attr_accessor :internal_id + + # The list of exams the user ever taken. For each type of exam, only one + # entry is listed. + # Corresponds to the JSON property `examStatus` + # @return [Array] + attr_accessor :exam_status + + # The ID of the user. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Basic information from a public profile. + # Corresponds to the JSON property `publicProfile` + # @return [Google::Apis::PartnersV2::PublicProfile] + attr_accessor :public_profile + + # The email address used by the user used for company verification. + # @OutputOnly + # Corresponds to the JSON property `companyVerificationEmail` + # @return [String] + attr_accessor :company_verification_email + + # The list of achieved certifications. These are calculated based on exam + # results and other requirements. + # @OutputOnly + # Corresponds to the JSON property `certificationStatus` + # @return [Array] + attr_accessor :certification_status + + # The profile information of a Partners user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::PartnersV2::UserProfile] + attr_accessor :profile + + # A CompanyRelation resource representing information about a user's + # affiliation and standing with a company in Partners. + # Corresponds to the JSON property `company` + # @return [Google::Apis::PartnersV2::CompanyRelation] + attr_accessor :company + + # The most recent time the user interacted with the Partners site. + # @OutputOnly + # Corresponds to the JSON property `lastAccessTime` + # @return [String] + attr_accessor :last_access_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @primary_emails = args[:primary_emails] if args.key?(:primary_emails) + @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts) + @internal_id = args[:internal_id] if args.key?(:internal_id) + @exam_status = args[:exam_status] if args.key?(:exam_status) + @id = args[:id] if args.key?(:id) + @public_profile = args[:public_profile] if args.key?(:public_profile) + @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email) + @certification_status = args[:certification_status] if args.key?(:certification_status) + @profile = args[:profile] if args.key?(:profile) + @company = args[:company] if args.key?(:company) + @last_access_time = args[:last_access_time] if args.key?(:last_access_time) + end + end + + # Response message for + # ListAnalytics. + class ListAnalyticsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # Pass this value in the `ListAnalyticsRequest.page_token` field in the + # subsequent call to + # ListAnalytics to retrieve the + # next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Analytics aggregated data for a `Company` for a given date range. + # Corresponds to the JSON property `analyticsSummary` + # @return [Google::Apis::PartnersV2::AnalyticsSummary] + attr_accessor :analytics_summary + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # The list of analytics. + # Sorted in ascending order of + # Analytics.event_date. + # Corresponds to the JSON property `analytics` + # @return [Array] + attr_accessor :analytics + + 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) + @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @analytics = args[:analytics] if args.key?(:analytics) + end + end + + # Response message for ListLeads. + class ListLeadsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # Pass this value in the `ListLeadsRequest.page_token` field in the + # subsequent call to + # ListLeads to retrieve the + # next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total count of leads for the given company. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # The list of leads. + # Corresponds to the JSON property `leads` + # @return [Array] + attr_accessor :leads + + 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) + @total_size = args[:total_size] if args.key?(:total_size) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @leads = args[:leads] if args.key?(:leads) + end + end + + # A company resource in the Google Partners API. Once certified, it qualifies + # for being searched by advertisers. + class Company + include Google::Apis::Core::Hashable + + # The list of all company locations. + # If set, must include the + # primary_location + # in the list. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `convertedMinMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :converted_min_monthly_budget + + # Industries the company can help with. + # Corresponds to the JSON property `industries` + # @return [Array] + attr_accessor :industries + + # URL of the company's additional websites used to verify the dynamic badges. + # These are stored as full URLs as entered by the user, but only the TLD will + # be used for the actual verification. + # Corresponds to the JSON property `additionalWebsites` + # @return [Array] + attr_accessor :additional_websites + + # URL of the company's website. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # The Primary AdWords Manager Account id. + # Corresponds to the JSON property `primaryAdwordsManagerAccountId` + # @return [Fixnum] + attr_accessor :primary_adwords_manager_account_id + + # The name of the company. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of localized info for the company. + # Corresponds to the JSON property `localizedInfos` + # @return [Array] + attr_accessor :localized_infos + + # The list of Google Partners certification statuses for the company. + # Corresponds to the JSON property `certificationStatuses` + # @return [Array] + attr_accessor :certification_statuses + + # The ID of the company. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `originalMinMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :original_min_monthly_budget + + # Basic information from a public profile. + # Corresponds to the JSON property `publicProfile` + # @return [Google::Apis::PartnersV2::PublicProfile] + attr_accessor :public_profile + + # Services the company can help with. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + # A location with address and geographic coordinates. May optionally contain a + # detailed (multi-field) version of the address. + # Corresponds to the JSON property `primaryLocation` + # @return [Google::Apis::PartnersV2::Location] + attr_accessor :primary_location + + # Information related to the ranking of the company within the list of + # companies. + # Corresponds to the JSON property `ranks` + # @return [Array] + attr_accessor :ranks + + # Partner badge tier + # Corresponds to the JSON property `badgeTier` + # @return [String] + attr_accessor :badge_tier + + # The list of Google Partners specialization statuses for the company. + # Corresponds to the JSON property `specializationStatus` + # @return [Array] + attr_accessor :specialization_status + + # Email domains that allow users with a matching email address to get + # auto-approved for associating with this company. + # Corresponds to the JSON property `autoApprovalEmailDomains` + # @return [Array] + attr_accessor :auto_approval_email_domains + + # Company type labels listed on the company's profile. + # Corresponds to the JSON property `companyTypes` + # @return [Array] + attr_accessor :company_types + + # The public viewability status of the company's profile. + # Corresponds to the JSON property `profileStatus` + # @return [String] + attr_accessor :profile_status + + # The primary language code of the company, as defined by + # BCP 47 + # (IETF BCP 47, "Tags for Identifying Languages"). + # Corresponds to the JSON property `primaryLanguageCode` + # @return [String] + attr_accessor :primary_language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget) + @industries = args[:industries] if args.key?(:industries) + @additional_websites = args[:additional_websites] if args.key?(:additional_websites) + @website_url = args[:website_url] if args.key?(:website_url) + @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id) + @name = args[:name] if args.key?(:name) + @localized_infos = args[:localized_infos] if args.key?(:localized_infos) + @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses) + @id = args[:id] if args.key?(:id) + @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) + @services = args[:services] if args.key?(:services) + @primary_location = args[:primary_location] if args.key?(:primary_location) + @ranks = args[:ranks] if args.key?(:ranks) + @badge_tier = args[:badge_tier] if args.key?(:badge_tier) + @specialization_status = args[:specialization_status] if args.key?(:specialization_status) + @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) + @company_types = args[:company_types] if args.key?(:company_types) + @profile_status = args[:profile_status] if args.key?(:profile_status) + @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) + end + end + + # Response message for CreateLead. + class CreateLeadResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # The outcome of reCaptcha + # validation. + # Corresponds to the JSON property `recaptchaStatus` + # @return [String] + attr_accessor :recaptcha_status + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + # Corresponds to the JSON property `lead` + # @return [Google::Apis::PartnersV2::Lead] + attr_accessor :lead + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) + @lead = args[:lead] if args.key?(:lead) + end + end + + # Response message for GetCompany. + class GetCompanyResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # A company resource in the Google Partners API. Once certified, it qualifies + # for being searched by advertisers. + # Corresponds to the JSON property `company` + # @return [Google::Apis::PartnersV2::Company] + attr_accessor :company + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @company = args[:company] if args.key?(:company) + end + end + + # A location with address and geographic coordinates. May optionally contain a + # detailed (multi-field) version of the address. + class Location + include Google::Apis::Core::Hashable + + # Top-level administrative subdivision of this country. + # Corresponds to the JSON property `administrativeArea` + # @return [String] + attr_accessor :administrative_area + + # Generally refers to the city/town portion of an address. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the + # WGS84 + # standard. Values must be within normalized ranges. + # Example of normalization code in Python: + # def NormalizeLongitude(longitude): + # """Wraps decimal degrees longitude to [-180.0, 180.0].""" + # q, r = divmod(longitude, 360.0) + # if r > 180.0 or (r == 180.0 and q <= -1.0): + # return r - 360.0 + # return r + # def NormalizeLatLng(latitude, longitude): + # """Wraps decimal degrees latitude and longitude to + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + # r = latitude % 360.0 + # if r <= 90.0: + # return r, NormalizeLongitude(longitude) + # elif r >= 270.0: + # return r - 360, NormalizeLongitude(longitude) + # else: + # return 180 - r, NormalizeLongitude(longitude + 180.0) + # assert 180.0 == NormalizeLongitude(180.0) + # assert -180.0 == NormalizeLongitude(-180.0) + # assert -179.0 == NormalizeLongitude(181.0) + # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::PartnersV2::LatLng] + attr_accessor :lat_lng + + # The single string version of the address. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # CLDR (Common Locale Data Repository) region code . + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # Dependent locality or sublocality. Used for UK dependent localities, or + # neighborhoods or boroughs in other locations. + # Corresponds to the JSON property `dependentLocality` + # @return [String] + attr_accessor :dependent_locality + + # Values are frequently alphanumeric. + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Language code of the address. Should be in BCP 47 format. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Use of this code is very country-specific, but will refer to a secondary + # classification code for sorting mail. + # Corresponds to the JSON property `sortingCode` + # @return [String] + attr_accessor :sorting_code + + # The following address lines represent the most specific part of any + # address. + # Corresponds to the JSON property `addressLine` + # @return [Array] + attr_accessor :address_line + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @locality = args[:locality] if args.key?(:locality) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + @address = args[:address] if args.key?(:address) + @region_code = args[:region_code] if args.key?(:region_code) + @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @language_code = args[:language_code] if args.key?(:language_code) + @sorting_code = args[:sorting_code] if args.key?(:sorting_code) + @address_line = args[:address_line] if args.key?(:address_line) + end + end + + # Status for a Google Partners certification exam. + class CertificationExamStatus + include Google::Apis::Core::Hashable + + # The number of people who have passed the certification exam. + # Corresponds to the JSON property `numberUsersPass` + # @return [Fixnum] + attr_accessor :number_users_pass + + # The type of certification exam. + # 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) + @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) + @type = args[:type] if args.key?(:type) + end + end + + # A token that allows a user to take an exam. + class ExamToken + include Google::Apis::Core::Hashable + + # The id of the exam the token is for. + # Corresponds to the JSON property `examId` + # @return [Fixnum] + attr_accessor :exam_id + + # The token, only present if the user has access to the exam. + # Corresponds to the JSON property `token` + # @return [String] + attr_accessor :token + + # The type of the exam the token belongs to. + # Corresponds to the JSON property `examType` + # @return [String] + attr_accessor :exam_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exam_id = args[:exam_id] if args.key?(:exam_id) + @token = args[:token] if args.key?(:token) + @exam_type = args[:exam_type] if args.key?(:exam_type) + end + end + + # A set of opt-ins for a user. + class OptIns + include Google::Apis::Core::Hashable + + # An opt-in about receiving email from Partners marketing teams. Includes + # member-only events and special promotional offers for Google products. + # Corresponds to the JSON property `marketComm` + # @return [Boolean] + attr_accessor :market_comm + alias_method :market_comm?, :market_comm + + # An opt-in about receiving email regarding new features and products. + # Corresponds to the JSON property `specialOffers` + # @return [Boolean] + attr_accessor :special_offers + alias_method :special_offers?, :special_offers + + # An opt-in about receiving email with customized AdWords campaign management + # tips. + # Corresponds to the JSON property `performanceSuggestions` + # @return [Boolean] + attr_accessor :performance_suggestions + alias_method :performance_suggestions?, :performance_suggestions + + # An opt-in to allow recieivng phone calls about their Partners account. + # Corresponds to the JSON property `phoneContact` + # @return [Boolean] + attr_accessor :phone_contact + alias_method :phone_contact?, :phone_contact + + # An opt-in to receive special promotional gifts and material in the mail. + # Corresponds to the JSON property `physicalMail` + # @return [Boolean] + attr_accessor :physical_mail + alias_method :physical_mail?, :physical_mail + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @market_comm = args[:market_comm] if args.key?(:market_comm) + @special_offers = args[:special_offers] if args.key?(:special_offers) + @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions) + @phone_contact = args[:phone_contact] if args.key?(:phone_contact) + @physical_mail = args[:physical_mail] if args.key?(:physical_mail) + end + end + + # Information related to ranking of results. + class Rank + include Google::Apis::Core::Hashable + + # The numerical value of the rank. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + # The type of rank. + # 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) + @value = args[:value] if args.key?(:value) + @type = args[:type] if args.key?(:type) + end + end + + # The profile information of a Partners user. + class UserProfile + include Google::Apis::Core::Hashable + + # The list of languages this user understands. + # Corresponds to the JSON property `languages` + # @return [Array] + attr_accessor :languages + + # The user's family name. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # A set of opt-ins for a user. + # Corresponds to the JSON property `emailOptIns` + # @return [Google::Apis::PartnersV2::OptIns] + attr_accessor :email_opt_ins + + # A list of ids representing which markets the user was interested in. + # Corresponds to the JSON property `markets` + # @return [Array] + attr_accessor :markets + + # The user's phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # If the user has edit access to multiple accounts, the user can choose the + # preferred account and it is used when a personal account is needed. Can + # be empty. + # Corresponds to the JSON property `adwordsManagerAccount` + # @return [Fixnum] + attr_accessor :adwords_manager_account + + # The user's primary country, an ISO 2-character code. + # Corresponds to the JSON property `primaryCountryCode` + # @return [String] + attr_accessor :primary_country_code + + # The email address the user has selected on the Partners site as primary. + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # A list of ids representing which channels the user selected they were in. + # Corresponds to the JSON property `channels` + # @return [Array] + attr_accessor :channels + + # Whether the user's public profile is visible to anyone with the URL. + # Corresponds to the JSON property `profilePublic` + # @return [Boolean] + attr_accessor :profile_public + alias_method :profile_public?, :profile_public + + # A list of ids represnting which job categories the user selected. + # Corresponds to the JSON property `jobFunctions` + # @return [Array] + attr_accessor :job_functions + + # The user's given name. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # A location with address and geographic coordinates. May optionally contain a + # detailed (multi-field) version of the address. + # Corresponds to the JSON property `address` + # @return [Google::Apis::PartnersV2::Location] + attr_accessor :address + + # A list of ids representing which industries the user selected. + # Corresponds to the JSON property `industries` + # @return [Array] + attr_accessor :industries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @languages = args[:languages] if args.key?(:languages) + @family_name = args[:family_name] if args.key?(:family_name) + @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) + @markets = args[:markets] if args.key?(:markets) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) + @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) + @email_address = args[:email_address] if args.key?(:email_address) + @channels = args[:channels] if args.key?(:channels) + @profile_public = args[:profile_public] if args.key?(:profile_public) + @job_functions = args[:job_functions] if args.key?(:job_functions) + @given_name = args[:given_name] if args.key?(:given_name) + @address = args[:address] if args.key?(:address) + @industries = args[:industries] if args.key?(:industries) + end + end + + # Response message for + # GetPartnersStatus. + class GetPartnersStatusResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + end + end + + # Historical information about a Google Partners Offer. + class HistoricalOffer + include Google::Apis::Core::Hashable + + # Time this offer expires. + # Corresponds to the JSON property `expirationTime` + # @return [String] + attr_accessor :expiration_time + + # Offer code. + # Corresponds to the JSON property `offerCode` + # @return [String] + attr_accessor :offer_code + + # Time offer was first created. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Status of the offer. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Email address for client. + # Corresponds to the JSON property `clientEmail` + # @return [String] + attr_accessor :client_email + + # ID of client. + # Corresponds to the JSON property `clientId` + # @return [Fixnum] + attr_accessor :client_id + + # Name of the client. + # Corresponds to the JSON property `clientName` + # @return [String] + attr_accessor :client_name + + # Time last action was taken. + # Corresponds to the JSON property `lastModifiedTime` + # @return [String] + attr_accessor :last_modified_time + + # Client's AdWords page URL. + # Corresponds to the JSON property `adwordsUrl` + # @return [String] + attr_accessor :adwords_url + + # Type of offer. + # Corresponds to the JSON property `offerType` + # @return [String] + attr_accessor :offer_type + + # Name (First + Last) of the partners user to whom the incentive is allocated. + # Corresponds to the JSON property `senderName` + # @return [String] + attr_accessor :sender_name + + # Country Code for the offer country. + # Corresponds to the JSON property `offerCountryCode` + # @return [String] + attr_accessor :offer_country_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) + @offer_code = args[:offer_code] if args.key?(:offer_code) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @status = args[:status] if args.key?(:status) + @client_email = args[:client_email] if args.key?(:client_email) + @client_id = args[:client_id] if args.key?(:client_id) + @client_name = args[:client_name] if args.key?(:client_name) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @adwords_url = args[:adwords_url] if args.key?(:adwords_url) + @offer_type = args[:offer_type] if args.key?(:offer_type) + @sender_name = args[:sender_name] if args.key?(:sender_name) + @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) + end + end end end end diff --git a/generated/google/apis/partners_v2/representations.rb b/generated/google/apis/partners_v2/representations.rb index 3e51375a7..1b3dfef86 100644 --- a/generated/google/apis/partners_v2/representations.rb +++ b/generated/google/apis/partners_v2/representations.rb @@ -22,6 +22,72 @@ module Google module Apis module PartnersV2 + class LogUserEventRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserOverrides + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyticsDataPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Analytics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdWordsManagerAccountInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResponseMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RecaptchaChallenge + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AvailableOffer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LatLng + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Money + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AnalyticsSummary class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,13 +142,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CreateLeadRequest + class RequestMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RequestMetadata + class CreateLeadRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -178,13 +244,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Company + class ListLeadsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListLeadsResponse + class Company class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -232,13 +298,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GetPartnersStatusResponse + class UserProfile class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UserProfile + class GetPartnersStatusResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -251,77 +317,130 @@ module Google end class LogUserEventRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation - include Google::Apis::Core::JsonObjectSupport + property :event_scope, as: 'eventScope' + property :event_category, as: 'eventCategory' + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation + + property :event_action, as: 'eventAction' + property :url, as: 'url' + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + + end end class UserOverrides - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :user_id, as: 'userId' + property :ip_address, as: 'ipAddress' + end end class AnalyticsDataPoint - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event_count, as: 'eventCount' + collection :event_locations, as: 'eventLocations', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Analytics - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :search_views, as: 'searchViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - include Google::Apis::Core::JsonObjectSupport + property :profile_views, as: 'profileViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation + + property :event_date, as: 'eventDate', class: Google::Apis::PartnersV2::Date, decorator: Google::Apis::PartnersV2::Date::Representation + + property :contacts, as: 'contacts', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation + + end end class AdWordsManagerAccountInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :customer_name, as: 'customerName' + property :id, :numeric_string => true, as: 'id' + end end class PublicProfile - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :id, as: 'id' + property :profile_image, as: 'profileImage' + property :display_image_url, as: 'displayImageUrl' + property :display_name, as: 'displayName' + end end class ResponseMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debug_info, as: 'debugInfo', class: Google::Apis::PartnersV2::DebugInfo, decorator: Google::Apis::PartnersV2::DebugInfo::Representation - include Google::Apis::Core::JsonObjectSupport + end end class RecaptchaChallenge - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :response, as: 'response' + end end class AvailableOffer - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :terms, as: 'terms' + property :show_special_offer_copy, as: 'showSpecialOfferCopy' + property :available, as: 'available' + property :description, as: 'description' + property :offer_level, as: 'offerLevel' + property :name, as: 'name' + property :qualified_customers_complete, as: 'qualifiedCustomersComplete' + property :id, :numeric_string => true, as: 'id' + collection :country_offer_infos, as: 'countryOfferInfos', class: Google::Apis::PartnersV2::CountryOfferInfo, decorator: Google::Apis::PartnersV2::CountryOfferInfo::Representation - include Google::Apis::Core::JsonObjectSupport + property :offer_type, as: 'offerType' + property :max_account_age, as: 'maxAccountAge' + collection :qualified_customer, as: 'qualifiedCustomer', class: Google::Apis::PartnersV2::OfferCustomer, decorator: Google::Apis::PartnersV2::OfferCustomer::Representation + + end end class LatLng - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end end class Money - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + property :currency_code, as: 'currencyCode' + end end class AnalyticsSummary # @private class Representation < Google::Apis::Core::JsonRepresentation - property :contacts_count, as: 'contactsCount' property :profile_views_count, as: 'profileViewsCount' property :search_views_count, as: 'searchViewsCount' + property :contacts_count, as: 'contactsCount' end end @@ -339,8 +458,8 @@ module Google class DebugInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :server_info, as: 'serverInfo' property :server_trace_info, as: 'serverTraceInfo' + property :server_info, as: 'serverInfo' property :service_url, as: 'serviceUrl' end end @@ -348,22 +467,22 @@ module Google class Lead # @private class Representation < Google::Apis::Core::JsonRepresentation + property :family_name, as: 'familyName' + property :comments, as: 'comments' + property :id, as: 'id' + property :adwords_customer_id, :numeric_string => true, as: 'adwordsCustomerId' + property :phone_number, as: 'phoneNumber' + property :create_time, as: 'createTime' property :marketing_opt_in, as: 'marketingOptIn' property :type, as: 'type' - property :given_name, as: 'givenName' property :min_monthly_budget, as: 'minMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + property :given_name, as: 'givenName' property :language_code, as: 'languageCode' property :website_url, as: 'websiteUrl' property :state, as: 'state' collection :gps_motivations, as: 'gpsMotivations' property :email, as: 'email' - property :family_name, as: 'familyName' - property :id, as: 'id' - property :comments, as: 'comments' - property :phone_number, as: 'phoneNumber' - property :adwords_customer_id, :numeric_string => true, as: 'adwordsCustomerId' - property :create_time, as: 'createTime' end end @@ -379,35 +498,35 @@ module Google class CompanyRelation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :company_id, as: 'companyId' - property :primary_language_code, as: 'primaryLanguageCode' property :logo_url, as: 'logoUrl' property :resolved_timestamp, as: 'resolvedTimestamp' property :company_admin, as: 'companyAdmin' - property :address, as: 'address' property :is_pending, as: 'isPending' + property :address, as: 'address' property :creation_time, as: 'creationTime' - property :state, as: 'state' property :primary_address, as: 'primaryAddress', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - property :manager_account, :numeric_string => true, as: 'managerAccount' + property :state, as: 'state' property :name, as: 'name' + property :manager_account, :numeric_string => true, as: 'managerAccount' collection :segment, as: 'segment' property :internal_company_id, as: 'internalCompanyId' - property :badge_tier, as: 'badgeTier' collection :specialization_status, as: 'specializationStatus', class: Google::Apis::PartnersV2::SpecializationStatus, decorator: Google::Apis::PartnersV2::SpecializationStatus::Representation - property :phone_number, as: 'phoneNumber' + property :badge_tier, as: 'badgeTier' property :website, as: 'website' + property :phone_number, as: 'phoneNumber' property :primary_country_code, as: 'primaryCountryCode' + property :company_id, as: 'companyId' + property :primary_language_code, as: 'primaryLanguageCode' end end class Date # @private class Representation < Google::Apis::Core::JsonRepresentation - property :year, as: 'year' property :day, as: 'day' + property :year, as: 'year' property :month, as: 'month' end end @@ -426,69 +545,69 @@ module Google end end + class RequestMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :locale, as: 'locale' + property :partners_session_id, as: 'partnersSessionId' + property :user_overrides, as: 'userOverrides', class: Google::Apis::PartnersV2::UserOverrides, decorator: Google::Apis::PartnersV2::UserOverrides::Representation + + property :traffic_source, as: 'trafficSource', class: Google::Apis::PartnersV2::TrafficSource, decorator: Google::Apis::PartnersV2::TrafficSource::Representation + + collection :experiment_ids, as: 'experimentIds' + end + end + class CreateLeadRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - property :recaptcha_challenge, as: 'recaptchaChallenge', class: Google::Apis::PartnersV2::RecaptchaChallenge, decorator: Google::Apis::PartnersV2::RecaptchaChallenge::Representation - end - end + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - class RequestMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :user_overrides, as: 'userOverrides', class: Google::Apis::PartnersV2::UserOverrides, decorator: Google::Apis::PartnersV2::UserOverrides::Representation - - property :partners_session_id, as: 'partnersSessionId' - collection :experiment_ids, as: 'experimentIds' - property :traffic_source, as: 'trafficSource', class: Google::Apis::PartnersV2::TrafficSource, decorator: Google::Apis::PartnersV2::TrafficSource::Representation - - property :locale, as: 'locale' end end class EventData # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' collection :values, as: 'values' + property :key, as: 'key' end end class ExamStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - property :expiration, as: 'expiration' + property :taken, as: 'taken' + property :passed, as: 'passed' property :warning, as: 'warning' + property :expiration, as: 'expiration' property :last_passed, as: 'lastPassed' property :exam_type, as: 'examType' - property :passed, as: 'passed' - property :taken, as: 'taken' end end class ListOffersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :available_offers, as: 'availableOffers', class: Google::Apis::PartnersV2::AvailableOffer, decorator: Google::Apis::PartnersV2::AvailableOffer::Representation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation property :no_offer_reason, as: 'noOfferReason' + collection :available_offers, as: 'availableOffers', class: Google::Apis::PartnersV2::AvailableOffer, decorator: Google::Apis::PartnersV2::AvailableOffer::Representation + end end class CountryOfferInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :offer_country_code, as: 'offerCountryCode' - property :spend_x_amount, as: 'spendXAmount' property :offer_type, as: 'offerType' property :get_y_amount, as: 'getYAmount' + property :spend_x_amount, as: 'spendXAmount' + property :offer_country_code, as: 'offerCountryCode' end end @@ -506,36 +625,36 @@ module Google class OfferCustomer # @private class Representation < Google::Apis::Core::JsonRepresentation + property :adwords_url, as: 'adwordsUrl' + property :eligibility_days_left, as: 'eligibilityDaysLeft' + property :creation_time, as: 'creationTime' + property :country_code, as: 'countryCode' + property :external_cid, :numeric_string => true, as: 'externalCid' + property :offer_type, as: 'offerType' property :get_y_amount, as: 'getYAmount' property :name, as: 'name' property :spend_x_amount, as: 'spendXAmount' - property :adwords_url, as: 'adwordsUrl' - property :country_code, as: 'countryCode' - property :external_cid, :numeric_string => true, as: 'externalCid' - property :creation_time, as: 'creationTime' - property :eligibility_days_left, as: 'eligibilityDaysLeft' - property :offer_type, as: 'offerType' end end class CertificationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :exam_statuses, as: 'examStatuses', class: Google::Apis::PartnersV2::CertificationExamStatus, decorator: Google::Apis::PartnersV2::CertificationExamStatus::Representation - property :type, as: 'type' property :user_count, as: 'userCount' property :is_certified, as: 'isCertified' + collection :exam_statuses, as: 'examStatuses', class: Google::Apis::PartnersV2::CertificationExamStatus, decorator: Google::Apis::PartnersV2::CertificationExamStatus::Representation + end end class LocalizedCompanyInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' property :language_code, as: 'languageCode' collection :country_codes, as: 'countryCodes' property :overview, as: 'overview' - property :display_name, as: 'displayName' end end @@ -550,14 +669,14 @@ module Google class ListOffersHistoryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + property :can_show_entire_company, as: 'canShowEntireCompany' property :total_results, as: 'totalResults' property :showing_entire_company, as: 'showingEntireCompany' collection :offers, as: 'offers', class: Google::Apis::PartnersV2::HistoricalOffer, decorator: Google::Apis::PartnersV2::HistoricalOffer::Representation - property :next_page_token, as: 'nextPageToken' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - end end @@ -580,17 +699,20 @@ module Google class Certification # @private class Representation < Google::Apis::Core::JsonRepresentation - property :certification_type, as: 'certificationType' property :last_achieved, as: 'lastAchieved' - property :achieved, as: 'achieved' - property :expiration, as: 'expiration' property :warning, as: 'warning' + property :expiration, as: 'expiration' + property :achieved, as: 'achieved' + property :certification_type, as: 'certificationType' end end class User # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :primary_emails, as: 'primaryEmails' + collection :available_adwords_manager_accounts, as: 'availableAdwordsManagerAccounts', class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo, decorator: Google::Apis::PartnersV2::AdWordsManagerAccountInfo::Representation + property :internal_id, as: 'internalId' collection :exam_status, as: 'examStatus', class: Google::Apis::PartnersV2::ExamStatus, decorator: Google::Apis::PartnersV2::ExamStatus::Representation @@ -605,9 +727,6 @@ module Google property :company, as: 'company', class: Google::Apis::PartnersV2::CompanyRelation, decorator: Google::Apis::PartnersV2::CompanyRelation::Representation property :last_access_time, as: 'lastAccessTime' - collection :available_adwords_manager_accounts, as: 'availableAdwordsManagerAccounts', class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo, decorator: Google::Apis::PartnersV2::AdWordsManagerAccountInfo::Representation - - collection :primary_emails, as: 'primaryEmails' end end @@ -615,70 +734,70 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - property :analytics_summary, as: 'analyticsSummary', class: Google::Apis::PartnersV2::AnalyticsSummary, decorator: Google::Apis::PartnersV2::AnalyticsSummary::Representation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + collection :analytics, as: 'analytics', class: Google::Apis::PartnersV2::Analytics, decorator: Google::Apis::PartnersV2::Analytics::Representation end end - class Company - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :localized_infos, as: 'localizedInfos', class: Google::Apis::PartnersV2::LocalizedCompanyInfo, decorator: Google::Apis::PartnersV2::LocalizedCompanyInfo::Representation - - property :id, as: 'id' - collection :certification_statuses, as: 'certificationStatuses', class: Google::Apis::PartnersV2::CertificationStatus, decorator: Google::Apis::PartnersV2::CertificationStatus::Representation - - property :original_min_monthly_budget, as: 'originalMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation - - collection :services, as: 'services' - property :primary_location, as: 'primaryLocation', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation - - collection :ranks, as: 'ranks', class: Google::Apis::PartnersV2::Rank, decorator: Google::Apis::PartnersV2::Rank::Representation - - collection :specialization_status, as: 'specializationStatus', class: Google::Apis::PartnersV2::SpecializationStatus, decorator: Google::Apis::PartnersV2::SpecializationStatus::Representation - - property :badge_tier, as: 'badgeTier' - collection :auto_approval_email_domains, as: 'autoApprovalEmailDomains' - collection :company_types, as: 'companyTypes' - property :profile_status, as: 'profileStatus' - property :primary_language_code, as: 'primaryLanguageCode' - collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :converted_min_monthly_budget, as: 'convertedMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation - - collection :industries, as: 'industries' - property :website_url, as: 'websiteUrl' - collection :additional_websites, as: 'additionalWebsites' - property :primary_adwords_manager_account_id, :numeric_string => true, as: 'primaryAdwordsManagerAccountId' - property :name, as: 'name' - end - end - class ListLeadsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - property :total_size, as: 'totalSize' collection :leads, as: 'leads', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation end end + class Company + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + property :converted_min_monthly_budget, as: 'convertedMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + + collection :industries, as: 'industries' + collection :additional_websites, as: 'additionalWebsites' + property :website_url, as: 'websiteUrl' + property :primary_adwords_manager_account_id, :numeric_string => true, as: 'primaryAdwordsManagerAccountId' + property :name, as: 'name' + collection :localized_infos, as: 'localizedInfos', class: Google::Apis::PartnersV2::LocalizedCompanyInfo, decorator: Google::Apis::PartnersV2::LocalizedCompanyInfo::Representation + + collection :certification_statuses, as: 'certificationStatuses', class: Google::Apis::PartnersV2::CertificationStatus, decorator: Google::Apis::PartnersV2::CertificationStatus::Representation + + property :id, as: 'id' + property :original_min_monthly_budget, as: 'originalMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + + property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation + + collection :services, as: 'services' + property :primary_location, as: 'primaryLocation', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + collection :ranks, as: 'ranks', class: Google::Apis::PartnersV2::Rank, decorator: Google::Apis::PartnersV2::Rank::Representation + + property :badge_tier, as: 'badgeTier' + collection :specialization_status, as: 'specializationStatus', class: Google::Apis::PartnersV2::SpecializationStatus, decorator: Google::Apis::PartnersV2::SpecializationStatus::Representation + + collection :auto_approval_email_domains, as: 'autoApprovalEmailDomains' + collection :company_types, as: 'companyTypes' + property :profile_status, as: 'profileStatus' + property :primary_language_code, as: 'primaryLanguageCode' + end + end + class CreateLeadResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation property :recaptcha_status, as: 'recaptchaStatus' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation end end @@ -686,27 +805,27 @@ module Google class GetCompanyResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :company, as: 'company', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + property :company, as: 'company', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation + end end class Location # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :address_line, as: 'addressLine' property :administrative_area, as: 'administrativeArea' property :locality, as: 'locality' property :lat_lng, as: 'latLng', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation - property :region_code, as: 'regionCode' property :address, as: 'address' + property :region_code, as: 'regionCode' property :dependent_locality, as: 'dependentLocality' property :postal_code, as: 'postalCode' property :language_code, as: 'languageCode' property :sorting_code, as: 'sortingCode' + collection :address_line, as: 'addressLine' end end @@ -721,28 +840,50 @@ module Google class ExamToken # @private class Representation < Google::Apis::Core::JsonRepresentation + property :exam_id, :numeric_string => true, as: 'examId' property :token, as: 'token' property :exam_type, as: 'examType' - property :exam_id, :numeric_string => true, as: 'examId' end end class OptIns # @private class Representation < Google::Apis::Core::JsonRepresentation + property :market_comm, as: 'marketComm' property :special_offers, as: 'specialOffers' property :performance_suggestions, as: 'performanceSuggestions' - property :physical_mail, as: 'physicalMail' property :phone_contact, as: 'phoneContact' - property :market_comm, as: 'marketComm' + property :physical_mail, as: 'physicalMail' end end class Rank # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' property :value, as: 'value' + property :type, as: 'type' + end + end + + class UserProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :languages, as: 'languages' + property :family_name, as: 'familyName' + property :email_opt_ins, as: 'emailOptIns', class: Google::Apis::PartnersV2::OptIns, decorator: Google::Apis::PartnersV2::OptIns::Representation + + collection :markets, as: 'markets' + property :phone_number, as: 'phoneNumber' + property :adwords_manager_account, :numeric_string => true, as: 'adwordsManagerAccount' + property :primary_country_code, as: 'primaryCountryCode' + property :email_address, as: 'emailAddress' + collection :channels, as: 'channels' + property :profile_public, as: 'profilePublic' + collection :job_functions, as: 'jobFunctions' + property :given_name, as: 'givenName' + property :address, as: 'address', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + collection :industries, as: 'industries' end end @@ -754,162 +895,21 @@ module Google end end - class UserProfile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :family_name, as: 'familyName' - collection :languages, as: 'languages' - property :email_opt_ins, as: 'emailOptIns', class: Google::Apis::PartnersV2::OptIns, decorator: Google::Apis::PartnersV2::OptIns::Representation - - collection :markets, as: 'markets' - property :phone_number, as: 'phoneNumber' - property :adwords_manager_account, :numeric_string => true, as: 'adwordsManagerAccount' - property :primary_country_code, as: 'primaryCountryCode' - property :email_address, as: 'emailAddress' - property :profile_public, as: 'profilePublic' - collection :channels, as: 'channels' - collection :job_functions, as: 'jobFunctions' - property :given_name, as: 'givenName' - property :address, as: 'address', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - collection :industries, as: 'industries' - end - end - class HistoricalOffer # @private class Representation < Google::Apis::Core::JsonRepresentation - property :offer_type, as: 'offerType' - property :sender_name, as: 'senderName' - property :offer_country_code, as: 'offerCountryCode' property :expiration_time, as: 'expirationTime' property :offer_code, as: 'offerCode' property :creation_time, as: 'creationTime' - property :client_email, as: 'clientEmail' property :status, as: 'status' + property :client_email, as: 'clientEmail' property :client_id, :numeric_string => true, as: 'clientId' property :client_name, as: 'clientName' property :last_modified_time, as: 'lastModifiedTime' property :adwords_url, as: 'adwordsUrl' - end - end - - class LogUserEventRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_category, as: 'eventCategory' - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - property :event_action, as: 'eventAction' - property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation - - property :url, as: 'url' - collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation - - property :event_scope, as: 'eventScope' - end - end - - class UserOverrides - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ip_address, as: 'ipAddress' - property :user_id, as: 'userId' - end - end - - class AnalyticsDataPoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_count, as: 'eventCount' - collection :event_locations, as: 'eventLocations', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation - - end - end - - class Analytics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_date, as: 'eventDate', class: Google::Apis::PartnersV2::Date, decorator: Google::Apis::PartnersV2::Date::Representation - - property :profile_views, as: 'profileViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - property :search_views, as: 'searchViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - property :contacts, as: 'contacts', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - end - end - - class AdWordsManagerAccountInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :customer_name, as: 'customerName' - property :id, :numeric_string => true, as: 'id' - end - end - - class PublicProfile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - property :display_image_url, as: 'displayImageUrl' - property :id, as: 'id' - property :url, as: 'url' - property :profile_image, as: 'profileImage' - end - end - - class ResponseMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :debug_info, as: 'debugInfo', class: Google::Apis::PartnersV2::DebugInfo, decorator: Google::Apis::PartnersV2::DebugInfo::Representation - - end - end - - class RecaptchaChallenge - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :response, as: 'response' - end - end - - class AvailableOffer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :offer_level, as: 'offerLevel' - property :name, as: 'name' - property :qualified_customers_complete, as: 'qualifiedCustomersComplete' - property :id, :numeric_string => true, as: 'id' - collection :country_offer_infos, as: 'countryOfferInfos', class: Google::Apis::PartnersV2::CountryOfferInfo, decorator: Google::Apis::PartnersV2::CountryOfferInfo::Representation - property :offer_type, as: 'offerType' - property :max_account_age, as: 'maxAccountAge' - collection :qualified_customer, as: 'qualifiedCustomer', class: Google::Apis::PartnersV2::OfferCustomer, decorator: Google::Apis::PartnersV2::OfferCustomer::Representation - - property :terms, as: 'terms' - property :show_special_offer_copy, as: 'showSpecialOfferCopy' - property :available, as: 'available' - property :description, as: 'description' - end - end - - class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latitude, as: 'latitude' - property :longitude, as: 'longitude' - end - end - - class Money - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :nanos, as: 'nanos' - property :units, :numeric_string => true, as: 'units' - property :currency_code, as: 'currencyCode' + property :sender_name, as: 'senderName' + property :offer_country_code, as: 'offerCountryCode' end end end diff --git a/generated/google/apis/partners_v2/service.rb b/generated/google/apis/partners_v2/service.rb index c675c3042..a3dbdb951 100644 --- a/generated/google/apis/partners_v2/service.rb +++ b/generated/google/apis/partners_v2/service.rb @@ -48,8 +48,41 @@ module Google @batch_path = 'batch' end - # Gets Partners Status of the logged in user's agency. - # Should only be called if the logged in user is the admin of the agency. + # Logs a generic message from the client, such as + # `Failed to render component`, `Profile page is running slow`, + # `More than 500 users have accessed this result.`, etc. + # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object + # @param [String] quota_user + # Available 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::PartnersV2::LogMessageResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::LogMessageResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def log_client_message_message(log_message_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/clientMessages:log', options) + command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation + command.request_object = log_message_request_object + command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation + command.response_class = Google::Apis::PartnersV2::LogMessageResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets an Exam Token for a Partner's user to take an exam in the Exams System + # @param [String] exam_type + # The exam type we are requesting a token for. # @param [Array, String] request_metadata_experiment_ids # Experiment IDs the current request belongs to. # @param [String] request_metadata_traffic_source_traffic_sub_id @@ -68,11 +101,375 @@ module Google # Locale to use for the current request. # @param [String] request_metadata_user_overrides_ip_address # IP address to use instead of the user's geo-located IP address. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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::PartnersV2::ExamToken] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ExamToken] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_exam_token(exam_type, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/exams/{examType}/token', options) + command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation + command.response_class = Google::Apis::PartnersV2::ExamToken + command.params['examType'] = exam_type unless exam_type.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.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 advertiser leads for a user's associated company. + # Should only be called within the context of an authorized logged in user. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] order_by + # How to order Leads. Currently, only `create_time` + # and `create_time desc` are supported + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] page_token + # A token identifying a page of results that the server returns. + # Typically, this is the value of `ListLeadsResponse.next_page_token` + # returned from the previous call to + # ListLeads. + # @param [Fixnum] page_size + # Requested page size. Server may return fewer leads than requested. + # If unspecified, server picks an appropriate default. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [String] quota_user + # Available 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::PartnersV2::ListLeadsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListLeadsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_leads(request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/leads', options) + command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListLeadsResponse + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.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 the Offers available for the current user + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] quota_user + # Available 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::PartnersV2::ListOffersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListOffersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_offers(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/offers', options) + command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListOffersResponse + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_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 the Historical Offers for the current user (or user's entire company) + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [Boolean] entire_company + # if true, show history for the entire company. Requires user to be admin. + # @param [String] order_by + # Comma-separated list of fields to order by, e.g.: "foo,bar,baz". + # Use "foo desc" to sort descending. + # List of valid field names is: name, offer_code, expiration_time, status, + # last_modified_time, sender_name, creation_time, country_code, + # offer_type. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] page_token + # Token to retrieve a specific page. + # @param [Fixnum] page_size + # Maximum number of rows to return per page. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] quota_user + # Available 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::PartnersV2::ListOffersHistoryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_offer_histories(request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, entire_company: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/offers/history', options) + command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['entireCompany'] = entire_company unless entire_company.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_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 states for current user. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] quota_user + # Available 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::PartnersV2::ListUserStatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListUserStatesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_user_states(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/userStates', options) + command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_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 analytics data for a user's associated company. + # Should only be called within the context of an authorized logged in user. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] page_token + # A token identifying a page of results that the server returns. + # Typically, this is the value of `ListAnalyticsResponse.next_page_token` + # returned from the previous call to + # ListAnalytics. + # Will be a date string in `YYYY-MM-DD` format representing the end date + # of the date range of results to return. + # If unspecified or set to "", default value is the current date. + # @param [Fixnum] page_size + # Requested page size. Server may return fewer analytics than requested. + # If unspecified or set to 0, default value is 30. + # Specifies the number of days in the date range when querying analytics. + # The `page_token` represents the end date of the date range + # and the start date is calculated using the `page_size` as the number + # of days BEFORE the end date. + # Must be a non-negative integer. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] quota_user + # Available 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::PartnersV2::ListAnalyticsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListAnalyticsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_analytics(request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/analytics', options) + command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.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 Partners Status of the logged in user's agency. + # Should only be called if the logged in user is the admin of the agency. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] quota_user + # Available 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 # @@ -85,28 +482,24 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_partnersstatus(request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2/partnersstatus', options) command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['fields'] = fields unless fields.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_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 # Updates the specified lead. # @param [Google::Apis::PartnersV2::Lead] lead_object - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. # @param [String] request_metadata_traffic_source_traffic_source_id # Identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the @@ -125,11 +518,15 @@ module Google # Second level identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. # @param [String] quota_user # Available 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 # @@ -142,32 +539,38 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_leads(lead_object = nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_leads(lead_object = nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/leads', options) command.request_representation = Google::Apis::PartnersV2::Lead::Representation command.request_object = lead_object command.response_representation = Google::Apis::PartnersV2::Lead::Representation command.response_class = Google::Apis::PartnersV2::Lead - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_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 # Update company. # Should only be called within the context of an authorized logged in user. # @param [Google::Apis::PartnersV2::Company] company_object - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. # @param [String] request_metadata_user_overrides_user_id # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. # @param [String] request_metadata_traffic_source_traffic_source_id # Identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the @@ -179,17 +582,11 @@ module Google # @param [String] update_mask # Standard field mask for the set of fields to be updated. # Required with at least 1 value in FieldMask's paths. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -202,22 +599,137 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_companies(company_object = nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/companies', options) command.request_representation = Google::Apis::PartnersV2::Company::Representation command.request_object = company_object command.response_representation = Google::Apis::PartnersV2::Company::Representation command.response_class = Google::Apis::PartnersV2::Company + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a user's company relation. Unaffiliaites the user from a company. + # @param [String] user_id + # The ID of the user. Can be set to me to mean + # the currently authenticated user. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] quota_user + # Available 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::PartnersV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::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_user_company_relation(user_id, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options) + command.response_representation = Google::Apis::PartnersV2::Empty::Representation + command.response_class = Google::Apis::PartnersV2::Empty + command.params['userId'] = user_id unless user_id.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates a user's company relation. Affiliates the user to a company. + # @param [String] user_id + # The ID of the user. Can be set to me to mean + # the currently authenticated user. + # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] quota_user + # Available 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::PartnersV2::CompanyRelation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::CompanyRelation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_company_relation(user_id, company_relation_object = nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options) + command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation + command.request_object = company_relation_object + command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation + command.response_class = Google::Apis::PartnersV2::CompanyRelation + command.params['userId'] = user_id unless user_id.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -245,11 +757,11 @@ module Google # Second level identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -262,7 +774,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user(user_id, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_user(user_id, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2/users/{userId}', options) command.response_representation = Google::Apis::PartnersV2::User::Representation command.response_class = Google::Apis::PartnersV2::User @@ -275,37 +787,37 @@ module Google command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end # Updates a user's profile. A user can only update their own profile and # should only be called within the context of a logged in user. # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. # @param [Array, String] request_metadata_experiment_ids # Experiment IDs the current request belongs to. # @param [String] request_metadata_traffic_source_traffic_sub_id # Second level identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the # traffic to us. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. # @param [String] request_metadata_user_overrides_user_id # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. # @param [String] request_metadata_traffic_source_traffic_source_id # Identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the # traffic to us. # @param [String] request_metadata_locale # Locale to use for the current request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. # @param [String] quota_user # Available 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 # @@ -318,268 +830,31 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_user_profile(user_profile_object = nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, fields: nil, quota_user: nil, options: nil, &block) + def update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/users/profile', options) command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation command.request_object = user_profile_object command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation command.response_class = Google::Apis::PartnersV2::UserProfile - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.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 user's company relation. Affiliates the user to a company. - # @param [String] user_id - # The ID of the user. Can be set to me to mean - # the currently authenticated user. - # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::CompanyRelation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_company_relation(user_id, company_relation_object = nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options) - command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation - command.request_object = company_relation_object - command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation - command.response_class = Google::Apis::PartnersV2::CompanyRelation - command.params['userId'] = user_id unless user_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a user's company relation. Unaffiliaites the user from a company. - # @param [String] user_id - # The ID of the user. Can be set to me to mean - # the currently authenticated user. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::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_user_company_relation(user_id, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options) - command.response_representation = Google::Apis::PartnersV2::Empty::Representation - command.response_class = Google::Apis::PartnersV2::Empty - command.params['userId'] = user_id unless user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets a company. - # @param [String] company_id - # The ID of the company to retrieve. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] currency_code - # If the company's budget is in a different currency code than this one, then - # the converted budget is converted to this currency code. - # @param [String] order_by - # How to order addresses within the returned company. Currently, only - # `address` and `address desc` is supported which will sorted by closest to - # farthest in distance from given address and farthest to closest distance - # from given address respectively. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] view - # The view of `Company` resource to be returned. This must not be - # `COMPANY_VIEW_UNSPECIFIED`. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] address - # The address to use for sorting the company's addresses by proximity. - # If not given, the geo-located address of the request is used. - # Used when order_by is set. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::GetCompanyResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_company(company_id, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, view: nil, request_metadata_locale: nil, address: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/companies/{companyId}', options) - command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation - command.response_class = Google::Apis::PartnersV2::GetCompanyResponse - command.params['companyId'] = company_id unless company_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['currencyCode'] = currency_code unless currency_code.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['view'] = view unless view.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['address'] = address unless address.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists companies. - # @param [Fixnum] min_monthly_budget_nanos - # Number of nano (10^-9) units of the amount. - # The value must be between -999,999,999 and +999,999,999 inclusive. - # If `units` is positive, `nanos` must be positive or zero. - # If `units` is zero, `nanos` can be positive, zero, or negative. - # If `units` is negative, `nanos` must be negative or zero. - # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] company_name - # Company name to search for. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListCompaniesResponse.next_page_token` - # returned from the previous call to - # ListCompanies. - # @param [Array, String] industries - # List of industries the company can help with. - # @param [String] website_url - # Website URL that will help to find a better matched company. - # . - # @param [Array, String] gps_motivations - # List of reasons for using Google Partner Search to get companies. - # @param [Array, String] language_codes - # List of language codes that company can support. Only primary language - # subtags are accepted as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # @param [Fixnum] page_size - # Requested page size. Server may return fewer companies than requested. - # If unspecified, server picks an appropriate default. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] order_by - # How to order addresses within the returned companies. Currently, only - # `address` and `address desc` is supported which will sorted by closest to - # farthest in distance from given address and farthest to closest distance - # from given address respectively. - # @param [Array, String] specializations - # List of specializations that the returned agencies should provide. If this - # is not empty, any returned agency must have at least one of these - # specializations, or one of the services in the "services" field. # @param [String] max_monthly_budget_currency_code # The 3-letter currency code defined in ISO 4217. - # @param [String] min_monthly_budget_currency_code - # The 3-letter currency code defined in ISO 4217. # @param [String] request_metadata_user_overrides_user_id # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] min_monthly_budget_currency_code + # The 3-letter currency code defined in ISO 4217. # @param [String] view # The view of the `Company` resource to be returned. This must not be # `COMPANY_VIEW_UNSPECIFIED`. @@ -609,11 +884,59 @@ module Google # Identifier to indicate where the traffic comes from. # An identifier has multiple letters created by a team which redirected the # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [Fixnum] min_monthly_budget_nanos + # Number of nano (10^-9) units of the amount. + # The value must be between -999,999,999 and +999,999,999 inclusive. + # If `units` is positive, `nanos` must be positive or zero. + # If `units` is zero, `nanos` can be positive, zero, or negative. + # If `units` is negative, `nanos` must be negative or zero. + # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] page_token + # A token identifying a page of results that the server returns. + # Typically, this is the value of `ListCompaniesResponse.next_page_token` + # returned from the previous call to + # ListCompanies. + # @param [String] company_name + # Company name to search for. + # @param [Array, String] industries + # List of industries the company can help with. + # @param [String] website_url + # Website URL that will help to find a better matched company. + # . + # @param [Array, String] gps_motivations + # List of reasons for using Google Partner Search to get companies. + # @param [Array, String] language_codes + # List of language codes that company can support. Only primary language + # subtags are accepted as defined by + # BCP 47 + # (IETF BCP 47, "Tags for Identifying Languages"). + # @param [Fixnum] page_size + # Requested page size. Server may return fewer companies than requested. + # If unspecified, server picks an appropriate default. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] order_by + # How to order addresses within the returned companies. Currently, only + # `address` and `address desc` is supported which will sorted by closest to + # farthest in distance from given address and farthest to closest distance + # from given address respectively. + # @param [Array, String] specializations + # List of specializations that the returned agencies should provide. If this + # is not empty, any returned agency must have at least one of these + # specializations, or one of the services in the "services" field. # @param [String] quota_user # Available 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 # @@ -626,15 +949,26 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_companies(min_monthly_budget_nanos: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, company_name: nil, page_token: nil, industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, max_monthly_budget_currency_code: nil, min_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, view: nil, request_metadata_locale: nil, address: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, max_monthly_budget_units: nil, request_metadata_traffic_source_traffic_source_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_companies(max_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, min_monthly_budget_currency_code: nil, view: nil, request_metadata_locale: nil, address: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, max_monthly_budget_units: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, min_monthly_budget_nanos: nil, request_metadata_partners_session_id: nil, page_token: nil, company_name: nil, industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v2/companies', options) command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse - command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil? + command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil? + command.query['view'] = view unless view.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['address'] = address unless address.nil? + command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil? + command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil? + command.query['services'] = services unless services.nil? + command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil? command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['companyName'] = company_name unless company_name.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['companyName'] = company_name unless company_name.nil? command.query['industries'] = industries unless industries.nil? command.query['websiteUrl'] = website_url unless website_url.nil? command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil? @@ -644,19 +978,82 @@ module Google command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['specializations'] = specializations unless specializations.nil? - command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil? - command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['view'] = view unless view.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['address'] = address unless address.nil? - command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil? - command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil? - command.query['services'] = services unless services.nil? - command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['fields'] = fields unless fields.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 a company. + # @param [String] company_id + # The ID of the company to retrieve. + # @param [String] view + # The view of `Company` resource to be returned. This must not be + # `COMPANY_VIEW_UNSPECIFIED`. + # @param [String] address + # The address to use for sorting the company's addresses by proximity. + # If not given, the geo-located address of the request is used. + # Used when order_by is set. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] currency_code + # If the company's budget is in a different currency code than this one, then + # the converted budget is converted to this currency code. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. + # An identifier has multiple letters created by a team which redirected the + # traffic to us. + # @param [String] order_by + # How to order addresses within the returned company. Currently, only + # `address` and `address desc` is supported which will sorted by closest to + # farthest in distance from given address and farthest to closest distance + # from given address respectively. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] quota_user + # Available 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::PartnersV2::GetCompanyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::GetCompanyResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_company(company_id, view: nil, address: nil, request_metadata_locale: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/companies/{companyId}', options) + command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation + command.response_class = Google::Apis::PartnersV2::GetCompanyResponse + command.params['companyId'] = company_id unless company_id.nil? + command.query['view'] = view unless view.nil? + command.query['address'] = address unless address.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['currencyCode'] = currency_code unless currency_code.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_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 @@ -664,11 +1061,11 @@ module Google # @param [String] company_id # The ID of the company to contact. # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -681,25 +1078,25 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_lead(company_id, create_lead_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options) command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation command.request_object = create_lead_request_object command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation command.response_class = Google::Apis::PartnersV2::CreateLeadResponse command.params['companyId'] = company_id unless company_id.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end # Logs a user event. # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -712,411 +1109,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def log_user_event(log_user_event_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v2/userEvents:log', options) command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation command.request_object = log_user_event_request_object command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation command.response_class = Google::Apis::PartnersV2::LogUserEventResponse - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Logs a generic message from the client, such as - # `Failed to render component`, `Profile page is running slow`, - # `More than 500 users have accessed this result.`, etc. - # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::LogMessageResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/clientMessages:log', options) - command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation - command.request_object = log_message_request_object - command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation - command.response_class = Google::Apis::PartnersV2::LogMessageResponse command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets an Exam Token for a Partner's user to take an exam in the Exams System - # @param [String] exam_type - # The exam type we are requesting a token for. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ExamToken] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_exam_token(exam_type, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/exams/{examType}/token', options) - command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation - command.response_class = Google::Apis::PartnersV2::ExamToken - command.params['examType'] = exam_type unless exam_type.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists advertiser leads for a user's associated company. - # Should only be called within the context of an authorized logged in user. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListLeadsResponse.next_page_token` - # returned from the previous call to - # ListLeads. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer leads than requested. - # If unspecified, server picks an appropriate default. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] order_by - # How to order Leads. Currently, only `create_time` - # and `create_time desc` are supported - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListLeadsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_leads(request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/leads', options) - command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListLeadsResponse - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists the Offers available for the current user - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListOffersResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_offers(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/offers', options) - command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListOffersResponse - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists the Historical Offers for the current user (or user's entire company) - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [Boolean] entire_company - # if true, show history for the entire company. Requires user to be admin. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] order_by - # Comma-separated list of fields to order by, e.g.: "foo,bar,baz". - # Use "foo desc" to sort descending. - # List of valid field names is: name, offer_code, expiration_time, status, - # last_modified_time, sender_name, creation_time, country_code, - # offer_type. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] page_token - # Token to retrieve a specific page. - # @param [Fixnum] page_size - # Maximum number of rows to return per page. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_offer_histories(request_metadata_experiment_ids: nil, entire_company: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/offers/history', options) - command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['entireCompany'] = entire_company unless entire_company.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists states for current user. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListUserStatesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_user_states(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/userStates', options) - command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists analytics data for a user's associated company. - # Should only be called within the context of an authorized logged in user. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer analytics than requested. - # If unspecified or set to 0, default value is 30. - # Specifies the number of days in the date range when querying analytics. - # The `page_token` represents the end date of the date range - # and the start date is calculated using the `page_size` as the number - # of days BEFORE the end date. - # Must be a non-negative integer. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListAnalyticsResponse.next_page_token` - # returned from the previous call to - # ListAnalytics. - # Will be a date string in `YYYY-MM-DD` format representing the end date - # of the date range of results to return. - # If unspecified or set to "", default value is the current date. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListAnalyticsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_analytics(page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/analytics', options) - command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse - command.query['pageSize'] = page_size unless page_size.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.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 diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index d549de065..04626f3f6 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,10 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20170612' - - # Know the list of people in your circles, your age range, and language - AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' + REVISION = '20170711' # View your basic profile info AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile' @@ -42,17 +39,20 @@ module Google # View your street addresses AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read' - # View your email address - AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' - # View your phone numbers AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read' + # View your email address + AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' + # View your contacts AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly' # View your complete date of birth AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read' + + # Know the list of people in your circles, your age range, and language + AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' end end end diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index c89aff81f..2bef09061 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -22,6 +22,394 @@ module Google module Apis module PeopleV1 + # A person's read-only relationship status. + class RelationshipStatus + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The relationship status. The value can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `single` + # * `inARelationship` + # * `engaged` + # * `married` + # * `itsComplicated` + # * `openRelationship` + # * `widowed` + # * `inDomesticPartnership` + # * `inCivilUnion` + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # The read-only value of the relationship status translated and formatted in + # the viewer's account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedValue` + # @return [String] + attr_accessor :formatted_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + end + end + + # A person's bragging rights. + class BraggingRights + include Google::Apis::Core::Hashable + + # The bragging rights; for example, `climbed mount everest`. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # A person's past or current organization. Overlapping date ranges are + # permitted. + class Organization + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The location of the organization office the person works at. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # The person's job title at the organization. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # True if the organization is the person's current organization; + # false if the organization is a past organization. + # Corresponds to the JSON property `current` + # @return [Boolean] + attr_accessor :current + alias_method :current?, :current + + # Represents a whole calendar date, for example a date of birth. The time + # of day and time zone are either specified elsewhere or are not + # significant. The date is relative to the + # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ + # Proleptic_Gregorian_calendar). + # The day may be 0 to represent a year and month where the day is not + # significant. The year may be 0 to represent a month and day independent + # of year; for example, anniversary date. + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::PeopleV1::Date] + attr_accessor :start_date + + # The read-only type of the organization translated and formatted in the + # viewer's account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + # The domain name associated with the organization; for example, `google.com`. + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # The person's department at the organization. + # Corresponds to the JSON property `department` + # @return [String] + attr_accessor :department + + # The type of the organization. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `work` + # * `school` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The phonetic name of the organization. + # Corresponds to the JSON property `phoneticName` + # @return [String] + attr_accessor :phonetic_name + + # The person's job description at the organization. + # Corresponds to the JSON property `jobDescription` + # @return [String] + attr_accessor :job_description + + # Represents a whole calendar date, for example a date of birth. The time + # of day and time zone are either specified elsewhere or are not + # significant. The date is relative to the + # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ + # Proleptic_Gregorian_calendar). + # The day may be 0 to represent a year and month where the day is not + # significant. The year may be 0 to represent a month and day independent + # of year; for example, anniversary date. + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::PeopleV1::Date] + attr_accessor :end_date + + # The symbol associated with the organization; for example, a stock ticker + # symbol, abbreviation, or acronym. + # Corresponds to the JSON property `symbol` + # @return [String] + attr_accessor :symbol + + # The name of the organization. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + @current = args[:current] if args.key?(:current) + @start_date = args[:start_date] if args.key?(:start_date) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @domain = args[:domain] if args.key?(:domain) + @department = args[:department] if args.key?(:department) + @type = args[:type] if args.key?(:type) + @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name) + @job_description = args[:job_description] if args.key?(:job_description) + @end_date = args[:end_date] if args.key?(:end_date) + @symbol = args[:symbol] if args.key?(:symbol) + @name = args[:name] if args.key?(:name) + end + end + + # A person's age range. + class AgeRangeType + include Google::Apis::Core::Hashable + + # The age range. + # Corresponds to the JSON property `ageRange` + # @return [String] + attr_accessor :age_range + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @age_range = args[:age_range] if args.key?(:age_range) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # The response to a list contact groups request. + class ListContactGroupsResponse + include Google::Apis::Core::Hashable + + # The token that can be used to retrieve changes since the last request. + # Corresponds to the JSON property `nextSyncToken` + # @return [String] + attr_accessor :next_sync_token + + # The total number of items in the list without pagination. + # Corresponds to the JSON property `totalItems` + # @return [Fixnum] + attr_accessor :total_items + + # The list of contact groups. Members of the contact groups are not + # populated. + # Corresponds to the JSON property `contactGroups` + # @return [Array] + attr_accessor :contact_groups + + # The token that can be used to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) + @total_items = args[:total_items] if args.key?(:total_items) + @contact_groups = args[:contact_groups] if args.key?(:contact_groups) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response for a single person + class PersonResponse + include Google::Apis::Core::Hashable + + # Information about a person merged from various data sources such as the + # authenticated user's contacts and profile data. + # Most fields can have multiple items. The items in a field have no guaranteed + # order, but each non-empty field is guaranteed to have exactly one field with + # `metadata.primary` set to true. + # Corresponds to the JSON property `person` + # @return [Google::Apis::PeopleV1::Person] + attr_accessor :person + + # 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` that 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. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::PeopleV1::Status] + attr_accessor :status + + # **DEPRECATED** (Please use status instead) + # [HTTP 1.1 status code] + # (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). + # Corresponds to the JSON property `httpStatusCode` + # @return [Fixnum] + attr_accessor :http_status_code + + # The original requested resource name. May be different than the resource + # name on the returned person. + # The resource name can change when adding or removing fields that link a + # contact and profile such as a verified email, verified phone number, or a + # profile URL. + # Corresponds to the JSON property `requestedResourceName` + # @return [String] + attr_accessor :requested_resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @person = args[:person] if args.key?(:person) + @status = args[:status] if args.key?(:status) + @http_status_code = args[:http_status_code] if args.key?(:http_status_code) + @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) + end + end + + # A person's relation to another person. + class Relation + include Google::Apis::Core::Hashable + + # The type of the relation translated and formatted in the viewer's account + # locale or the locale specified in the Accept-Language HTTP header. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + # The name of the other person this relation refers to. + # Corresponds to the JSON property `person` + # @return [String] + attr_accessor :person + + # The person's relation to the other person. The type can be custom or + # predefined. + # Possible values include, but are not limited to, the following values: + # * `spouse` + # * `child` + # * `mother` + # * `father` + # * `parent` + # * `brother` + # * `sister` + # * `friend` + # * `relative` + # * `domesticPartner` + # * `manager` + # * `assistant` + # * `referredBy` + # * `partner` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @person = args[:person] if args.key?(:person) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + # A person's occupation. class Occupation include Google::Apis::Core::Hashable @@ -47,6 +435,76 @@ module Google end end + # A contact group. + class ContactGroup + include Google::Apis::Core::Hashable + + # The resource name for the contact group, assigned by the server. An ASCII + # string, in the form of `contactGroups/`. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the + # resource. Used for web cache validation. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The read-only contact group type. + # Corresponds to the JSON property `groupType` + # @return [String] + attr_accessor :group_type + + # The read-only name translated and formatted in the viewer's account locale + # or the `Accept-Language` HTTP header locale for system groups names. + # Group names set by the owner are the same as name. + # Corresponds to the JSON property `formattedName` + # @return [String] + attr_accessor :formatted_name + + # The list of contact person resource names that are members of the contact + # group. The field is not populated for LIST requests and can only be updated + # through the + # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify). + # Corresponds to the JSON property `memberResourceNames` + # @return [Array] + attr_accessor :member_resource_names + + # The contact group name set by the group owner or a system provided name + # for system groups. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The read-only metadata about a contact group. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::ContactGroupMetadata] + attr_accessor :metadata + + # The total number of contacts in the group irrespective of max members in + # specified in the request. + # Corresponds to the JSON property `memberCount` + # @return [Fixnum] + attr_accessor :member_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @etag = args[:etag] if args.key?(:etag) + @group_type = args[:group_type] if args.key?(:group_type) + @formatted_name = args[:formatted_name] if args.key?(:formatted_name) + @member_resource_names = args[:member_resource_names] if args.key?(:member_resource_names) + @name = args[:name] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @member_count = args[:member_count] if args.key?(:member_count) + end + end + # Information about a person merged from various data sources such as the # authenticated user's contacts and profile data. # Most fields can have multiple items. The items in a field have no guaranteed @@ -55,21 +513,16 @@ module Google class Person include Google::Apis::Core::Hashable - # The person's nicknames. - # Corresponds to the JSON property `nicknames` - # @return [Array] - attr_accessor :nicknames + # The person's names. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names # The person's relations. # Corresponds to the JSON property `relations` # @return [Array] attr_accessor :relations - # The person's names. - # Corresponds to the JSON property `names` - # @return [Array] - attr_accessor :names - # The person's occupations. # Corresponds to the JSON property `occupations` # @return [Array] @@ -142,7 +595,7 @@ module Google # @return [Array] attr_accessor :photos - # **DEPRECATED(Please use person.ageRanges instead)** + # **DEPRECATED** (Please use `person.ageRanges` instead)** # The person's read-only age range. # Corresponds to the JSON property `ageRange` # @return [String] @@ -208,15 +661,19 @@ module Google # @return [Array] attr_accessor :urls + # The person's nicknames. + # Corresponds to the JSON property `nicknames` + # @return [Array] + attr_accessor :nicknames + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @nicknames = args[:nicknames] if args.key?(:nicknames) - @relations = args[:relations] if args.key?(:relations) @names = args[:names] if args.key?(:names) + @relations = args[:relations] if args.key?(:relations) @occupations = args[:occupations] if args.key?(:occupations) @email_addresses = args[:email_addresses] if args.key?(:email_addresses) @organizations = args[:organizations] if args.key?(:organizations) @@ -244,17 +701,18 @@ module Google @locales = args[:locales] if args.key?(:locales) @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests) @urls = args[:urls] if args.key?(:urls) + @nicknames = args[:nicknames] if args.key?(:nicknames) end end - # - class GetPeopleResponse + # A request to update an existing contact group. Only the name can be updated. + class UpdateContactGroupRequest include Google::Apis::Core::Hashable - # The response for each requested resource name. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses + # A contact group. + # Corresponds to the JSON property `contactGroup` + # @return [Google::Apis::PeopleV1::ContactGroup] + attr_accessor :contact_group def initialize(**args) update!(**args) @@ -262,54 +720,26 @@ module Google # Update properties of this object def update!(**args) - @responses = args[:responses] if args.key?(:responses) + @contact_group = args[:contact_group] if args.key?(:contact_group) end end - # A person's phone number. - class PhoneNumber + # The read-only metadata about a contact group. + class ContactGroupMetadata include Google::Apis::Core::Hashable - # The type of the phone number. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `home` - # * `work` - # * `mobile` - # * `homeFax` - # * `workFax` - # * `otherFax` - # * `pager` - # * `workMobile` - # * `workPager` - # * `main` - # * `googleVoice` - # * `other` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type + # True if the contact group resource has been deleted. Populated only for + # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests + # that include a sync token. + # Corresponds to the JSON property `deleted` + # @return [Boolean] + attr_accessor :deleted + alias_method :deleted?, :deleted - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The phone number. - # Corresponds to the JSON property `value` + # The time the group was last updated. + # Corresponds to the JSON property `updateTime` # @return [String] - attr_accessor :value - - # The read-only type of the phone number translated and formatted in the - # viewer's account locale or the the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/ - # ibr/004/itu-t.E.164.1.2008.pdf) - # form of the phone number. - # Corresponds to the JSON property `canonicalForm` - # @return [String] - attr_accessor :canonical_form + attr_accessor :update_time def initialize(**args) update!(**args) @@ -317,124 +747,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @canonical_form = args[:canonical_form] if args.key?(:canonical_form) - end - end - - # A person's read-only photo. A picture shown next to the person's name to - # help others recognize the person. - class Photo - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The URL of the photo. You can change the desired size by appending a query - # parameter `sz=` at the end of the url. Example: - # `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/ - # 00gzXvDBYqw/s100/photo.jpg?sz=50` - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @url = args[:url] if args.key?(:url) - end - end - - # - class ListConnectionsResponse - include Google::Apis::Core::Hashable - - # The token that can be used to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The total number of items in the list without pagination. - # Corresponds to the JSON property `totalItems` - # @return [Fixnum] - attr_accessor :total_items - - # The token that can be used to retrieve changes since the last request. - # Corresponds to the JSON property `nextSyncToken` - # @return [String] - attr_accessor :next_sync_token - - # The list of people that the requestor is connected to. - # Corresponds to the JSON property `connections` - # @return [Array] - attr_accessor :connections - - # DEPRECATED(Please use total_items). The total number of people in the list - # without pagination. - # Corresponds to the JSON property `totalPeople` - # @return [Fixnum] - attr_accessor :total_people - - 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) - @total_items = args[:total_items] if args.key?(:total_items) - @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) - @connections = args[:connections] if args.key?(:connections) - @total_people = args[:total_people] if args.key?(:total_people) - end - end - - # A person's birthday. At least one of the `date` and `text` fields are - # specified. The `date` and `text` fields typically represent the same - # date, but are not guaranteed to. - class Birthday - include Google::Apis::Core::Hashable - - # A free-form string representing the user's birthday. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # Represents a whole calendar date, for example a date of birth. The time - # of day and time zone are either specified elsewhere or are not - # significant. The date is relative to the - # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ - # Proleptic_Gregorian_calendar). - # The day may be 0 to represent a year and month where the day is not - # significant. The year may be 0 to represent a month and day independent - # of year; for example, anniversary date. - # Corresponds to the JSON property `date` - # @return [Google::Apis::PeopleV1::Date] - attr_accessor :date - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @text = args[:text] if args.key?(:text) - @metadata = args[:metadata] if args.key?(:metadata) - @date = args[:date] if args.key?(:date) + @deleted = args[:deleted] if args.key?(:deleted) + @update_time = args[:update_time] if args.key?(:update_time) end end @@ -471,212 +785,10 @@ module Google end end - # A person's physical address. May be a P.O. box or street address. All fields - # are optional. - class Address - include Google::Apis::Core::Hashable - - # The P.O. box of the address. - # Corresponds to the JSON property `poBox` - # @return [String] - attr_accessor :po_box - - # The postal code of the address. - # Corresponds to the JSON property `postalCode` - # @return [String] - attr_accessor :postal_code - - # The region of the address; for example, the state or province. - # Corresponds to the JSON property `region` - # @return [String] - attr_accessor :region - - # The street address. - # Corresponds to the JSON property `streetAddress` - # @return [String] - attr_accessor :street_address - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country - # code of the address. - # Corresponds to the JSON property `countryCode` - # @return [String] - attr_accessor :country_code - - # The read-only type of the address translated and formatted in the viewer's - # account locale or the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - # The city of the address. - # Corresponds to the JSON property `city` - # @return [String] - attr_accessor :city - - # The unstructured value of the address. If this is not set by the user it - # will be automatically constructed from structured values. - # Corresponds to the JSON property `formattedValue` - # @return [String] - attr_accessor :formatted_value - - # The country of the address. - # Corresponds to the JSON property `country` - # @return [String] - attr_accessor :country - - # The type of the address. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `home` - # * `work` - # * `other` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The extended address of the address; for example, the apartment number. - # Corresponds to the JSON property `extendedAddress` - # @return [String] - attr_accessor :extended_address - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @po_box = args[:po_box] if args.key?(:po_box) - @postal_code = args[:postal_code] if args.key?(:postal_code) - @region = args[:region] if args.key?(:region) - @street_address = args[:street_address] if args.key?(:street_address) - @metadata = args[:metadata] if args.key?(:metadata) - @country_code = args[:country_code] if args.key?(:country_code) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @city = args[:city] if args.key?(:city) - @formatted_value = args[:formatted_value] if args.key?(:formatted_value) - @country = args[:country] if args.key?(:country) - @type = args[:type] if args.key?(:type) - @extended_address = args[:extended_address] if args.key?(:extended_address) - end - end - - # A Google contact group membership. - class ContactGroupMembership - include Google::Apis::Core::Hashable - - # The contact group ID for the contact group membership. The contact group - # ID can be custom or predefined. Possible values include, but are not - # limited to, the following: - # * `myContacts` - # * `starred` - # * A numerical ID for user-created groups. - # Corresponds to the JSON property `contactGroupId` - # @return [String] - attr_accessor :contact_group_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id) - 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` that 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. - # - 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 - # An event related to the person. class Event include Google::Apis::Core::Hashable - # The type of the event. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `anniversary` - # * `other` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - # Represents a whole calendar date, for example a date of birth. The time # of day and time zone are either specified elsewhere or are not # significant. The date is relative to the @@ -695,56 +807,40 @@ module Google # @return [String] attr_accessor :formatted_type + # The type of the event. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `anniversary` + # * `other` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) @date = args[:date] if args.key?(:date) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) end end - # The read-only metadata about a person. - class PersonMetadata + # The response to a modify contact group members request. + class ModifyContactGroupMembersResponse include Google::Apis::Core::Hashable - # Resource names of people linked to this resource. - # Corresponds to the JSON property `linkedPeopleResourceNames` + # The contact people resource names that were not found. + # Corresponds to the JSON property `notFoundResourceNames` # @return [Array] - attr_accessor :linked_people_resource_names - - # Any former resource names this person has had. Populated only for - # [`connections.list`](/people/api/rest/v1/people.connections/list) requests - # that include a sync token. - # The resource name may change when adding or removing fields that link a - # contact and profile such as a verified email, verified phone number, or - # profile URL. - # Corresponds to the JSON property `previousResourceNames` - # @return [Array] - attr_accessor :previous_resource_names - - # The sources of data for the person. - # Corresponds to the JSON property `sources` - # @return [Array] - attr_accessor :sources - - # True if the person resource has been deleted. Populated only for - # [`connections.list`](/people/api/rest/v1/people.connections/list) requests - # that include a sync token. - # Corresponds to the JSON property `deleted` - # @return [Boolean] - attr_accessor :deleted - alias_method :deleted?, :deleted - - # **DEPRECATED(Please use person.metadata.sources.profileMetadata instead)** - # The type of the person object. - # Corresponds to the JSON property `objectType` - # @return [String] - attr_accessor :object_type + attr_accessor :not_found_resource_names def initialize(**args) update!(**args) @@ -752,11 +848,7 @@ module Google # Update properties of this object def update!(**args) - @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names) - @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names) - @sources = args[:sources] if args.key?(:sources) - @deleted = args[:deleted] if args.key?(:deleted) - @object_type = args[:object_type] if args.key?(:object_type) + @not_found_resource_names = args[:not_found_resource_names] if args.key?(:not_found_resource_names) end end @@ -764,6 +856,11 @@ module Google class ProfileMetadata include Google::Apis::Core::Hashable + # The user types. + # Corresponds to the JSON property `userTypes` + # @return [Array] + attr_accessor :user_types + # The profile object type. # Corresponds to the JSON property `objectType` # @return [String] @@ -775,58 +872,11 @@ module Google # Update properties of this object def update!(**args) + @user_types = args[:user_types] if args.key?(:user_types) @object_type = args[:object_type] if args.key?(:object_type) end end - # A person's associated URLs. - class Url - include Google::Apis::Core::Hashable - - # The type of the URL. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `home` - # * `work` - # * `blog` - # * `profile` - # * `homePage` - # * `ftp` - # * `reservations` - # * `appInstallPage`: website for a Google+ application. - # * `other` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The URL. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The read-only type of the URL translated and formatted in the viewer's - # account locale or the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - end - end - # A person's gender. class Gender include Google::Apis::Core::Hashable @@ -899,6 +949,1093 @@ module Google end end + # One of the person's interests. + class Interest + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The interest; for example, `stargazing`. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # A person's nickname. + class Nickname + include Google::Apis::Core::Hashable + + # The type of the nickname. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The nickname. + # 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) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # A person's email address. + class EmailAddress + include Google::Apis::Core::Hashable + + # The display name of the email. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The type of the email address. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `home` + # * `work` + # * `other` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The email address. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # The read-only type of the email address translated and formatted in the + # viewer's account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + end + end + + # A skill that the person has. + class Skill + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The skill; for example, `underwater basket weaving`. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # Represents a whole calendar date, for example a date of birth. The time + # of day and time zone are either specified elsewhere or are not + # significant. The date is relative to the + # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ + # Proleptic_Gregorian_calendar). + # The day may be 0 to represent a year and month where the day is not + # significant. The year may be 0 to represent a month and day independent + # of year; for example, anniversary date. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + end + end + + # A read-only brief one-line description of the person. + class Tagline + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The tagline. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # A person's name. If the name is a mononym, the family name is empty. + class Name + include Google::Apis::Core::Hashable + + # The full name spelled as it sounds. + # Corresponds to the JSON property `phoneticFullName` + # @return [String] + attr_accessor :phonetic_full_name + + # The read-only display name with the last name first formatted according to + # the locale specified by the viewer's account or the + # Accept-Language HTTP header. + # Corresponds to the JSON property `displayNameLastFirst` + # @return [String] + attr_accessor :display_name_last_first + + # The read-only display name formatted according to the locale specified by + # the viewer's account or the Accept-Language HTTP header. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The honorific suffixes, such as `Jr.` + # Corresponds to the JSON property `honorificSuffix` + # @return [String] + attr_accessor :honorific_suffix + + # The honorific prefixes, such as `Mrs.` or `Dr.` + # Corresponds to the JSON property `honorificPrefix` + # @return [String] + attr_accessor :honorific_prefix + + # The honorific suffixes spelled as they sound. + # Corresponds to the JSON property `phoneticHonorificSuffix` + # @return [String] + attr_accessor :phonetic_honorific_suffix + + # The given name. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # The middle name(s). + # Corresponds to the JSON property `middleName` + # @return [String] + attr_accessor :middle_name + + # The honorific prefixes spelled as they sound. + # Corresponds to the JSON property `phoneticHonorificPrefix` + # @return [String] + attr_accessor :phonetic_honorific_prefix + + # The given name spelled as it sounds. + # Corresponds to the JSON property `phoneticGivenName` + # @return [String] + attr_accessor :phonetic_given_name + + # The family name spelled as it sounds. + # Corresponds to the JSON property `phoneticFamilyName` + # @return [String] + attr_accessor :phonetic_family_name + + # The family name. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The middle name(s) spelled as they sound. + # Corresponds to the JSON property `phoneticMiddleName` + # @return [String] + attr_accessor :phonetic_middle_name + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name) + @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first) + @display_name = args[:display_name] if args.key?(:display_name) + @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) + @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) + @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) + @given_name = args[:given_name] if args.key?(:given_name) + @middle_name = args[:middle_name] if args.key?(:middle_name) + @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) + @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name) + @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name) + @family_name = args[:family_name] if args.key?(:family_name) + @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # A person's locale preference. + class Locale + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) + # language tag representing the locale. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A person's short biography. + class Biography + include Google::Apis::Core::Hashable + + # The short biography. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # The content type of the biography. + # Corresponds to the JSON property `contentType` + # @return [String] + attr_accessor :content_type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @content_type = args[:content_type] if args.key?(:content_type) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Metadata about a field. + class FieldMetadata + include Google::Apis::Core::Hashable + + # The source of a field. + # Corresponds to the JSON property `source` + # @return [Google::Apis::PeopleV1::Source] + attr_accessor :source + + # True if the field is verified; false if the field is unverified. A + # verified field is typically a name, email address, phone number, or + # website that has been confirmed to be owned by the person. + # Corresponds to the JSON property `verified` + # @return [Boolean] + attr_accessor :verified + alias_method :verified?, :verified + + # True if the field is the primary field; false if the field is a secondary + # field. + # Corresponds to the JSON property `primary` + # @return [Boolean] + attr_accessor :primary + alias_method :primary?, :primary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + @verified = args[:verified] if args.key?(:verified) + @primary = args[:primary] if args.key?(:primary) + end + end + + # A person's read-only relationship interest . + class RelationshipInterest + include Google::Apis::Core::Hashable + + # The value of the relationship interest translated and formatted in the + # viewer's account locale or the locale specified in the Accept-Language + # HTTP header. + # Corresponds to the JSON property `formattedValue` + # @return [String] + attr_accessor :formatted_value + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The kind of relationship the person is looking for. The value can be custom + # or predefined. Possible values include, but are not limited to, the + # following values: + # * `friend` + # * `date` + # * `relationship` + # * `networking` + # 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) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # The source of a field. + class Source + include Google::Apis::Core::Hashable + + # The source type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # **Only populated in `person.metadata.sources`.** + # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the + # source. Used for web cache validation. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The unique identifier within the source type generated by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The read-only metadata about a profile. + # Corresponds to the JSON property `profileMetadata` + # @return [Google::Apis::PeopleV1::ProfileMetadata] + attr_accessor :profile_metadata + + # **Only populated in `person.metadata.sources`.** + # Last update timestamp of this source. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # + class GetPeopleResponse + include Google::Apis::Core::Hashable + + # The response for each requested resource name. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # A person's read-only photo. A picture shown next to the person's name to + # help others recognize the person. + class Photo + include Google::Apis::Core::Hashable + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The URL of the photo. You can change the desired size by appending a query + # parameter `sz=` at the end of the url. Example: + # `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/ + # 00gzXvDBYqw/s100/photo.jpg?sz=50` + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @url = args[:url] if args.key?(:url) + end + end + + # A person's phone number. + class PhoneNumber + include Google::Apis::Core::Hashable + + # The read-only type of the phone number translated and formatted in the + # viewer's account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/ + # ibr/004/itu-t.E.164.1.2008.pdf) + # form of the phone number. + # Corresponds to the JSON property `canonicalForm` + # @return [String] + attr_accessor :canonical_form + + # The type of the phone number. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `home` + # * `work` + # * `mobile` + # * `homeFax` + # * `workFax` + # * `otherFax` + # * `pager` + # * `workMobile` + # * `workPager` + # * `main` + # * `googleVoice` + # * `other` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The phone number. + # 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) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @canonical_form = args[:canonical_form] if args.key?(:canonical_form) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end + + # + class ListConnectionsResponse + include Google::Apis::Core::Hashable + + # The token that can be used to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total number of items in the list without pagination. + # Corresponds to the JSON property `totalItems` + # @return [Fixnum] + attr_accessor :total_items + + # The token that can be used to retrieve changes since the last request. + # Corresponds to the JSON property `nextSyncToken` + # @return [String] + attr_accessor :next_sync_token + + # The list of people that the requestor is connected to. + # Corresponds to the JSON property `connections` + # @return [Array] + attr_accessor :connections + + # **DEPRECATED** (Please use totalItems) + # The total number of people in the list without pagination. + # Corresponds to the JSON property `totalPeople` + # @return [Fixnum] + attr_accessor :total_people + + 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) + @total_items = args[:total_items] if args.key?(:total_items) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) + @connections = args[:connections] if args.key?(:connections) + @total_people = args[:total_people] if args.key?(:total_people) + end + end + + # A person's birthday. At least one of the `date` and `text` fields are + # specified. The `date` and `text` fields typically represent the same + # date, but are not guaranteed to. + class Birthday + include Google::Apis::Core::Hashable + + # A free-form string representing the user's birthday. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # Represents a whole calendar date, for example a date of birth. The time + # of day and time zone are either specified elsewhere or are not + # significant. The date is relative to the + # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ + # Proleptic_Gregorian_calendar). + # The day may be 0 to represent a year and month where the day is not + # significant. The year may be 0 to represent a month and day independent + # of year; for example, anniversary date. + # Corresponds to the JSON property `date` + # @return [Google::Apis::PeopleV1::Date] + attr_accessor :date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + @metadata = args[:metadata] if args.key?(:metadata) + @date = args[:date] if args.key?(:date) + end + end + + # A request to create a new contact group. + class CreateContactGroupRequest + include Google::Apis::Core::Hashable + + # A contact group. + # Corresponds to the JSON property `contactGroup` + # @return [Google::Apis::PeopleV1::ContactGroup] + attr_accessor :contact_group + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_group = args[:contact_group] if args.key?(:contact_group) + end + end + + # A person's physical address. May be a P.O. box or street address. All fields + # are optional. + class Address + include Google::Apis::Core::Hashable + + # The postal code of the address. + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # The region of the address; for example, the state or province. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The street address. + # Corresponds to the JSON property `streetAddress` + # @return [String] + attr_accessor :street_address + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country + # code of the address. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # The read-only type of the address translated and formatted in the viewer's + # account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + # The city of the address. + # Corresponds to the JSON property `city` + # @return [String] + attr_accessor :city + + # The unstructured value of the address. If this is not set by the user it + # will be automatically constructed from structured values. + # Corresponds to the JSON property `formattedValue` + # @return [String] + attr_accessor :formatted_value + + # The country of the address. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The type of the address. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `home` + # * `work` + # * `other` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The extended address of the address; for example, the apartment number. + # Corresponds to the JSON property `extendedAddress` + # @return [String] + attr_accessor :extended_address + + # The P.O. box of the address. + # Corresponds to the JSON property `poBox` + # @return [String] + attr_accessor :po_box + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @region = args[:region] if args.key?(:region) + @street_address = args[:street_address] if args.key?(:street_address) + @metadata = args[:metadata] if args.key?(:metadata) + @country_code = args[:country_code] if args.key?(:country_code) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + @city = args[:city] if args.key?(:city) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @country = args[:country] if args.key?(:country) + @type = args[:type] if args.key?(:type) + @extended_address = args[:extended_address] if args.key?(:extended_address) + @po_box = args[:po_box] if args.key?(:po_box) + end + end + + # A Google contact group membership. + class ContactGroupMembership + include Google::Apis::Core::Hashable + + # The contact group ID for the contact group membership. The contact group + # ID can be custom or predefined. Possible values include, but are not + # limited to, the following: + # * `myContacts` + # * `starred` + # * A numerical ID for user-created groups. + # Corresponds to the JSON property `contactGroupId` + # @return [String] + attr_accessor :contact_group_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id) + 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` that 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. + # - 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 + + # 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 is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) + @code = args[:code] if args.key?(:code) + end + end + + # The read-only metadata about a person. + class PersonMetadata + include Google::Apis::Core::Hashable + + # Any former resource names this person has had. Populated only for + # [`connections.list`](/people/api/rest/v1/people.connections/list) requests + # that include a sync token. + # The resource name may change when adding or removing fields that link a + # contact and profile such as a verified email, verified phone number, or + # profile URL. + # Corresponds to the JSON property `previousResourceNames` + # @return [Array] + attr_accessor :previous_resource_names + + # The sources of data for the person. + # Corresponds to the JSON property `sources` + # @return [Array] + attr_accessor :sources + + # True if the person resource has been deleted. Populated only for + # [`connections.list`](/people/api/rest/v1/people.connections/list) requests + # that include a sync token. + # Corresponds to the JSON property `deleted` + # @return [Boolean] + attr_accessor :deleted + alias_method :deleted?, :deleted + + # **DEPRECATED** (Please use + # `person.metadata.sources.profileMetadata.objectType` instead) + # The type of the person object. + # Corresponds to the JSON property `objectType` + # @return [String] + attr_accessor :object_type + + # Resource names of people linked to this resource. + # Corresponds to the JSON property `linkedPeopleResourceNames` + # @return [Array] + attr_accessor :linked_people_resource_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names) + @sources = args[:sources] if args.key?(:sources) + @deleted = args[:deleted] if args.key?(:deleted) + @object_type = args[:object_type] if args.key?(:object_type) + @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names) + end + end + + # A request to modify an existing contact group's members. + class ModifyContactGroupMembersRequest + include Google::Apis::Core::Hashable + + # The resource names of the contact people to add in the form of in the form + # `people/`. + # Corresponds to the JSON property `resourceNamesToAdd` + # @return [Array] + attr_accessor :resource_names_to_add + + # The resource names of the contact people to remove in the form of in the + # form of `people/`. + # Corresponds to the JSON property `resourceNamesToRemove` + # @return [Array] + attr_accessor :resource_names_to_remove + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_names_to_add = args[:resource_names_to_add] if args.key?(:resource_names_to_add) + @resource_names_to_remove = args[:resource_names_to_remove] if args.key?(:resource_names_to_remove) + end + end + + # The response for a specific contact group. + class ContactGroupResponse + 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` that 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. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::PeopleV1::Status] + attr_accessor :status + + # The original requested resource name. + # Corresponds to the JSON property `requestedResourceName` + # @return [String] + attr_accessor :requested_resource_name + + # A contact group. + # Corresponds to the JSON property `contactGroup` + # @return [Google::Apis::PeopleV1::ContactGroup] + attr_accessor :contact_group + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) + @contact_group = args[:contact_group] if args.key?(:contact_group) + end + end + + # A person's associated URLs. + class Url + include Google::Apis::Core::Hashable + + # The type of the URL. The type can be custom or predefined. + # Possible values include, but are not limited to, the following: + # * `home` + # * `work` + # * `blog` + # * `profile` + # * `homePage` + # * `ftp` + # * `reservations` + # * `appInstallPage`: website for a Google+ application. + # * `other` + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The URL. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # The read-only type of the URL translated and formatted in the viewer's + # account locale or the `Accept-Language` HTTP header locale. + # Corresponds to the JSON property `formattedType` + # @return [String] + attr_accessor :formatted_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + @formatted_type = args[:formatted_type] if args.key?(:formatted_type) + end + end + # A person's instant messaging client. class ImClient include Google::Apis::Core::Hashable @@ -964,135 +2101,6 @@ module Google end end - # One of the person's interests. - class Interest - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The interest; for example, `stargazing`. - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # A person's nickname. - class Nickname - include Google::Apis::Core::Hashable - - # The type of the nickname. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The nickname. - # 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) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # A person's email address. - class EmailAddress - include Google::Apis::Core::Hashable - - # The type of the email address. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `home` - # * `work` - # * `other` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The email address. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The read-only type of the email address translated and formatted in the - # viewer's account locale or the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - # The display name of the email. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @display_name = args[:display_name] if args.key?(:display_name) - end - end - - # A skill that the person has. - class Skill - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The skill; for example, `underwater basket weaving`. - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - # A Google Apps Domain membership. class DomainMembership include Google::Apis::Core::Hashable @@ -1113,6 +2121,25 @@ module Google end end + # The response to a batch get contact groups request. + class BatchGetContactGroupsResponse + include Google::Apis::Core::Hashable + + # The list of responses for each requested contact group resource. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + # A person's read-only membership in a group. class Membership include Google::Apis::Core::Hashable @@ -1143,692 +2170,6 @@ module Google @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership) end end - - # A person's read-only relationship status. - class RelationshipStatus - include Google::Apis::Core::Hashable - - # The read-only value of the relationship status translated and formatted in - # the viewer's account locale or the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedValue` - # @return [String] - attr_accessor :formatted_value - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The relationship status. The value can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `single` - # * `inARelationship` - # * `engaged` - # * `married` - # * `itsComplicated` - # * `openRelationship` - # * `widowed` - # * `inDomesticPartnership` - # * `inCivilUnion` - # 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) - @formatted_value = args[:formatted_value] if args.key?(:formatted_value) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # Represents a whole calendar date, for example a date of birth. The time - # of day and time zone are either specified elsewhere or are not - # significant. The date is relative to the - # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ - # Proleptic_Gregorian_calendar). - # The day may be 0 to represent a year and month where the day is not - # significant. The year may be 0 to represent a month and day independent - # of year; for example, anniversary date. - class Date - include Google::Apis::Core::Hashable - - # Month of year. Must be from 1 to 12. - # Corresponds to the JSON property `month` - # @return [Fixnum] - attr_accessor :month - - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year/month where the day is not significant. - # Corresponds to the JSON property `day` - # @return [Fixnum] - attr_accessor :day - - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @month = args[:month] if args.key?(:month) - @day = args[:day] if args.key?(:day) - @year = args[:year] if args.key?(:year) - end - end - - # A read-only brief one-line description of the person. - class Tagline - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The tagline. - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # A person's name. If the name is a mononym, the family name is empty. - class Name - include Google::Apis::Core::Hashable - - # The given name spelled as it sounds. - # Corresponds to the JSON property `phoneticGivenName` - # @return [String] - attr_accessor :phonetic_given_name - - # The family name spelled as it sounds. - # Corresponds to the JSON property `phoneticFamilyName` - # @return [String] - attr_accessor :phonetic_family_name - - # The family name. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The middle name(s) spelled as they sound. - # Corresponds to the JSON property `phoneticMiddleName` - # @return [String] - attr_accessor :phonetic_middle_name - - # The full name spelled as it sounds. - # Corresponds to the JSON property `phoneticFullName` - # @return [String] - attr_accessor :phonetic_full_name - - # The read-only display name with the last name first formatted according to - # the locale specified by the viewer's account or the - # Accept-Language HTTP header. - # Corresponds to the JSON property `displayNameLastFirst` - # @return [String] - attr_accessor :display_name_last_first - - # The read-only display name formatted according to the locale specified by - # the viewer's account or the Accept-Language HTTP header. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The honorific suffixes, such as `Jr.` - # Corresponds to the JSON property `honorificSuffix` - # @return [String] - attr_accessor :honorific_suffix - - # The honorific prefixes, such as `Mrs.` or `Dr.` - # Corresponds to the JSON property `honorificPrefix` - # @return [String] - attr_accessor :honorific_prefix - - # The honorific suffixes spelled as they sound. - # Corresponds to the JSON property `phoneticHonorificSuffix` - # @return [String] - attr_accessor :phonetic_honorific_suffix - - # The middle name(s). - # Corresponds to the JSON property `middleName` - # @return [String] - attr_accessor :middle_name - - # The given name. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # The honorific prefixes spelled as they sound. - # Corresponds to the JSON property `phoneticHonorificPrefix` - # @return [String] - attr_accessor :phonetic_honorific_prefix - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name) - @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name) - @family_name = args[:family_name] if args.key?(:family_name) - @metadata = args[:metadata] if args.key?(:metadata) - @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) - @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name) - @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first) - @display_name = args[:display_name] if args.key?(:display_name) - @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) - @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) - @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) - @middle_name = args[:middle_name] if args.key?(:middle_name) - @given_name = args[:given_name] if args.key?(:given_name) - @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) - end - end - - # A person's bragging rights. - class BraggingRights - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The bragging rights; for example, `climbed mount everest`. - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # A person's locale preference. - class Locale - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) - # language tag representing the locale. - # 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) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - end - end - - # A person's past or current organization. Overlapping date ranges are - # permitted. - class Organization - include Google::Apis::Core::Hashable - - # The type of the organization. The type can be custom or predefined. - # Possible values include, but are not limited to, the following: - # * `work` - # * `school` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The phonetic name of the organization. - # Corresponds to the JSON property `phoneticName` - # @return [String] - attr_accessor :phonetic_name - - # The person's job description at the organization. - # Corresponds to the JSON property `jobDescription` - # @return [String] - attr_accessor :job_description - - # Represents a whole calendar date, for example a date of birth. The time - # of day and time zone are either specified elsewhere or are not - # significant. The date is relative to the - # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ - # Proleptic_Gregorian_calendar). - # The day may be 0 to represent a year and month where the day is not - # significant. The year may be 0 to represent a month and day independent - # of year; for example, anniversary date. - # Corresponds to the JSON property `endDate` - # @return [Google::Apis::PeopleV1::Date] - attr_accessor :end_date - - # The symbol associated with the organization; for example, a stock ticker - # symbol, abbreviation, or acronym. - # Corresponds to the JSON property `symbol` - # @return [String] - attr_accessor :symbol - - # The name of the organization. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The location of the organization office the person works at. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The person's job title at the organization. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # True if the organization is the person's current organization; - # false if the organization is a past organization. - # Corresponds to the JSON property `current` - # @return [Boolean] - attr_accessor :current - alias_method :current?, :current - - # Represents a whole calendar date, for example a date of birth. The time - # of day and time zone are either specified elsewhere or are not - # significant. The date is relative to the - # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/ - # Proleptic_Gregorian_calendar). - # The day may be 0 to represent a year and month where the day is not - # significant. The year may be 0 to represent a month and day independent - # of year; for example, anniversary date. - # Corresponds to the JSON property `startDate` - # @return [Google::Apis::PeopleV1::Date] - attr_accessor :start_date - - # The read-only type of the organization translated and formatted in the - # viewer's account locale or the `Accept-Language` HTTP header locale. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - # The domain name associated with the organization; for example, `google.com`. - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # The person's department at the organization. - # Corresponds to the JSON property `department` - # @return [String] - attr_accessor :department - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name) - @job_description = args[:job_description] if args.key?(:job_description) - @end_date = args[:end_date] if args.key?(:end_date) - @symbol = args[:symbol] if args.key?(:symbol) - @name = args[:name] if args.key?(:name) - @metadata = args[:metadata] if args.key?(:metadata) - @location = args[:location] if args.key?(:location) - @title = args[:title] if args.key?(:title) - @current = args[:current] if args.key?(:current) - @start_date = args[:start_date] if args.key?(:start_date) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @domain = args[:domain] if args.key?(:domain) - @department = args[:department] if args.key?(:department) - end - end - - # A person's short biography. - class Biography - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The short biography. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The content type of the biography. - # Corresponds to the JSON property `contentType` - # @return [String] - attr_accessor :content_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - @content_type = args[:content_type] if args.key?(:content_type) - end - end - - # A person's age range. - class AgeRangeType - include Google::Apis::Core::Hashable - - # The age range. - # Corresponds to the JSON property `ageRange` - # @return [String] - attr_accessor :age_range - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @age_range = args[:age_range] if args.key?(:age_range) - @metadata = args[:metadata] if args.key?(:metadata) - end - end - - # Metadata about a field. - class FieldMetadata - include Google::Apis::Core::Hashable - - # The source of a field. - # Corresponds to the JSON property `source` - # @return [Google::Apis::PeopleV1::Source] - attr_accessor :source - - # True if the field is verified; false if the field is unverified. A - # verified field is typically a name, email address, phone number, or - # website that has been confirmed to be owned by the person. - # Corresponds to the JSON property `verified` - # @return [Boolean] - attr_accessor :verified - alias_method :verified?, :verified - - # True if the field is the primary field; false if the field is a secondary - # field. - # Corresponds to the JSON property `primary` - # @return [Boolean] - attr_accessor :primary - alias_method :primary?, :primary - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source = args[:source] if args.key?(:source) - @verified = args[:verified] if args.key?(:verified) - @primary = args[:primary] if args.key?(:primary) - end - end - - # The response for a single person - class PersonResponse - 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` that 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. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `status` - # @return [Google::Apis::PeopleV1::Status] - attr_accessor :status - - # DEPRECATED(Please use status instead). - # [HTTP 1.1 status - # code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). - # Corresponds to the JSON property `httpStatusCode` - # @return [Fixnum] - attr_accessor :http_status_code - - # The original requested resource name. May be different than the resource - # name on the returned person. - # The resource name can change when adding or removing fields that link a - # contact and profile such as a verified email, verified phone number, or a - # profile URL. - # Corresponds to the JSON property `requestedResourceName` - # @return [String] - attr_accessor :requested_resource_name - - # Information about a person merged from various data sources such as the - # authenticated user's contacts and profile data. - # Most fields can have multiple items. The items in a field have no guaranteed - # order, but each non-empty field is guaranteed to have exactly one field with - # `metadata.primary` set to true. - # Corresponds to the JSON property `person` - # @return [Google::Apis::PeopleV1::Person] - attr_accessor :person - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @status = args[:status] if args.key?(:status) - @http_status_code = args[:http_status_code] if args.key?(:http_status_code) - @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) - @person = args[:person] if args.key?(:person) - end - end - - # A person's read-only relationship interest . - class RelationshipInterest - include Google::Apis::Core::Hashable - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The kind of relationship the person is looking for. The value can be custom - # or predefined. Possible values include, but are not limited to, the - # following values: - # * `friend` - # * `date` - # * `relationship` - # * `networking` - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The value of the relationship interest translated and formatted in the - # viewer's account locale or the locale specified in the Accept-Language - # HTTP header. - # Corresponds to the JSON property `formattedValue` - # @return [String] - attr_accessor :formatted_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metadata = args[:metadata] if args.key?(:metadata) - @value = args[:value] if args.key?(:value) - @formatted_value = args[:formatted_value] if args.key?(:formatted_value) - end - end - - # The source of a field. - class Source - include Google::Apis::Core::Hashable - - # The source type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the - # source. Used for web cache validation. Only populated in - # person.metadata.sources. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The unique identifier within the source type generated by the server. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The read-only metadata about a profile. - # Corresponds to the JSON property `profileMetadata` - # @return [Google::Apis::PeopleV1::ProfileMetadata] - attr_accessor :profile_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata) - end - end - - # A person's relation to another person. - class Relation - include Google::Apis::Core::Hashable - - # The person's relation to the other person. The type can be custom or - # predefined. - # Possible values include, but are not limited to, the following values: - # * `spouse` - # * `child` - # * `mother` - # * `father` - # * `parent` - # * `brother` - # * `sister` - # * `friend` - # * `relative` - # * `domesticPartner` - # * `manager` - # * `assistant` - # * `referredBy` - # * `partner` - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Metadata about a field. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::PeopleV1::FieldMetadata] - attr_accessor :metadata - - # The type of the relation translated and formatted in the viewer's account - # locale or the locale specified in the Accept-Language HTTP header. - # Corresponds to the JSON property `formattedType` - # @return [String] - attr_accessor :formatted_type - - # The name of the other person this relation refers to. - # Corresponds to the JSON property `person` - # @return [String] - attr_accessor :person - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @metadata = args[:metadata] if args.key?(:metadata) - @formatted_type = args[:formatted_type] if args.key?(:formatted_type) - @person = args[:person] if args.key?(:person) - end - end end end end diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index aa6a475b5..e7285491a 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -22,43 +22,73 @@ module Google module Apis module PeopleV1 + class RelationshipStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BraggingRights + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Organization + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AgeRangeType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListContactGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PersonResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Relation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Occupation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ContactGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Person class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetPeopleResponse + class UpdateContactGroupRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PhoneNumber - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Photo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListConnectionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Birthday + class ContactGroupMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -70,31 +100,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Address - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ContactGroupMembership - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Event class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PersonMetadata + class ModifyContactGroupMembersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -106,12 +118,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Url - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Gender class Representation < Google::Apis::Core::JsonRepresentation; end @@ -124,12 +130,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ImClient - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Interest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,24 +154,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DomainMembership - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Membership - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RelationshipStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Date class Representation < Google::Apis::Core::JsonRepresentation; end @@ -190,19 +172,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BraggingRights - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Locale class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Organization + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -214,24 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AgeRangeType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class FieldMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PersonResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class RelationshipInterest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,12 +208,193 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Relation + class GetPeopleResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Photo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PhoneNumber + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConnectionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Birthday + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateContactGroupRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Address + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContactGroupMembership + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PersonMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ModifyContactGroupMembersRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContactGroupResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Url + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImClient + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DomainMembership + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetContactGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Membership + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RelationshipStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + property :formatted_value, as: 'formattedValue' + end + end + + class BraggingRights + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + + class Organization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :location, as: 'location' + property :title, as: 'title' + property :current, as: 'current' + property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + + property :formatted_type, as: 'formattedType' + property :domain, as: 'domain' + property :department, as: 'department' + property :type, as: 'type' + property :phonetic_name, as: 'phoneticName' + property :job_description, as: 'jobDescription' + property :end_date, as: 'endDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + + property :symbol, as: 'symbol' + property :name, as: 'name' + end + end + + class AgeRangeType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :age_range, as: 'ageRange' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + + class ListContactGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_sync_token, as: 'nextSyncToken' + property :total_items, as: 'totalItems' + collection :contact_groups, as: 'contactGroups', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class PersonResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation + + property :status, as: 'status', class: Google::Apis::PeopleV1::Status, decorator: Google::Apis::PeopleV1::Status::Representation + + property :http_status_code, as: 'httpStatusCode' + property :requested_resource_name, as: 'requestedResourceName' + end + end + + class Relation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formatted_type, as: 'formattedType' + property :person, as: 'person' + property :type, as: 'type' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + class Occupation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -259,15 +404,28 @@ module Google end end + class ContactGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_name, as: 'resourceName' + property :etag, as: 'etag' + property :group_type, as: 'groupType' + property :formatted_name, as: 'formattedName' + collection :member_resource_names, as: 'memberResourceNames' + property :name, as: 'name' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::ContactGroupMetadata, decorator: Google::Apis::PeopleV1::ContactGroupMetadata::Representation + + property :member_count, as: 'memberCount' + end + end + class Person # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :nicknames, as: 'nicknames', class: Google::Apis::PeopleV1::Nickname, decorator: Google::Apis::PeopleV1::Nickname::Representation + collection :names, as: 'names', class: Google::Apis::PeopleV1::Name, decorator: Google::Apis::PeopleV1::Name::Representation collection :relations, as: 'relations', class: Google::Apis::PeopleV1::Relation, decorator: Google::Apis::PeopleV1::Relation::Representation - collection :names, as: 'names', class: Google::Apis::PeopleV1::Name, decorator: Google::Apis::PeopleV1::Name::Representation - collection :occupations, as: 'occupations', class: Google::Apis::PeopleV1::Occupation, decorator: Google::Apis::PeopleV1::Occupation::Representation collection :email_addresses, as: 'emailAddresses', class: Google::Apis::PeopleV1::EmailAddress, decorator: Google::Apis::PeopleV1::EmailAddress::Representation @@ -319,6 +477,217 @@ module Google collection :urls, as: 'urls', class: Google::Apis::PeopleV1::Url, decorator: Google::Apis::PeopleV1::Url::Representation + collection :nicknames, as: 'nicknames', class: Google::Apis::PeopleV1::Nickname, decorator: Google::Apis::PeopleV1::Nickname::Representation + + end + end + + class UpdateContactGroupRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation + + end + end + + class ContactGroupMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deleted, as: 'deleted' + property :update_time, as: 'updateTime' + end + end + + class Residence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current, as: 'current' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Event + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation + + property :formatted_type, as: 'formattedType' + property :type, as: 'type' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + + class ModifyContactGroupMembersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :not_found_resource_names, as: 'notFoundResourceNames' + end + end + + class ProfileMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :user_types, as: 'userTypes' + property :object_type, as: 'objectType' + end + end + + class Gender + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formatted_value, as: 'formattedValue' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class CoverPhoto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default, as: 'default' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :url, as: 'url' + end + end + + class Interest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Nickname + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class EmailAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :type, as: 'type' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + property :formatted_type, as: 'formattedType' + end + end + + class Skill + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :year, as: 'year' + property :month, as: 'month' + end + end + + class Tagline + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Name + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :phonetic_full_name, as: 'phoneticFullName' + property :display_name_last_first, as: 'displayNameLastFirst' + property :display_name, as: 'displayName' + property :honorific_suffix, as: 'honorificSuffix' + property :honorific_prefix, as: 'honorificPrefix' + property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix' + property :given_name, as: 'givenName' + property :middle_name, as: 'middleName' + property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix' + property :phonetic_given_name, as: 'phoneticGivenName' + property :phonetic_family_name, as: 'phoneticFamilyName' + property :family_name, as: 'familyName' + property :phonetic_middle_name, as: 'phoneticMiddleName' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + + class Locale + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Biography + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :content_type, as: 'contentType' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + end + end + + class FieldMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation + + property :verified, as: 'verified' + property :primary, as: 'primary' + end + end + + class RelationshipInterest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formatted_value, as: 'formattedValue' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + + class Source + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :etag, as: 'etag' + property :id, as: 'id' + property :profile_metadata, as: 'profileMetadata', class: Google::Apis::PeopleV1::ProfileMetadata, decorator: Google::Apis::PeopleV1::ProfileMetadata::Representation + + property :update_time, as: 'updateTime' end end @@ -330,18 +699,6 @@ module Google end end - class PhoneNumber - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - property :formatted_type, as: 'formattedType' - property :canonical_form, as: 'canonicalForm' - end - end - class Photo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -351,6 +708,18 @@ module Google end end + class PhoneNumber + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formatted_type, as: 'formattedType' + property :canonical_form, as: 'canonicalForm' + property :type, as: 'type' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end + class ListConnectionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -374,20 +743,17 @@ module Google end end - class Residence + class CreateContactGroupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :current, as: 'current' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation - property :value, as: 'value' end end class Address # @private class Representation < Google::Apis::Core::JsonRepresentation - property :po_box, as: 'poBox' property :postal_code, as: 'postalCode' property :region, as: 'region' property :street_address, as: 'streetAddress' @@ -400,6 +766,7 @@ module Google property :country, as: 'country' property :type, as: 'type' property :extended_address, as: 'extendedAddress' + property :po_box, as: 'poBox' end end @@ -413,40 +780,40 @@ module Google class Status # @private class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' property :message, as: 'message' collection :details, as: 'details' - end - end - - class Event - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation - - property :formatted_type, as: 'formattedType' + property :code, as: 'code' end end class PersonMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :linked_people_resource_names, as: 'linkedPeopleResourceNames' collection :previous_resource_names, as: 'previousResourceNames' collection :sources, as: 'sources', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation property :deleted, as: 'deleted' property :object_type, as: 'objectType' + collection :linked_people_resource_names, as: 'linkedPeopleResourceNames' end end - class ProfileMetadata + class ModifyContactGroupMembersRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :object_type, as: 'objectType' + collection :resource_names_to_add, as: 'resourceNamesToAdd' + collection :resource_names_to_remove, as: 'resourceNamesToRemove' + end + end + + class ContactGroupResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status', class: Google::Apis::PeopleV1::Status, decorator: Google::Apis::PeopleV1::Status::Representation + + property :requested_resource_name, as: 'requestedResourceName' + property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation + end end @@ -461,26 +828,6 @@ module Google end end - class Gender - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :formatted_value, as: 'formattedValue' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class CoverPhoto - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :default, as: 'default' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :url, as: 'url' - end - end - class ImClient # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -494,46 +841,6 @@ module Google end end - class Interest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class Nickname - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class EmailAddress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - property :formatted_type, as: 'formattedType' - property :display_name, as: 'displayName' - end - end - - class Skill - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - class DomainMembership # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -541,6 +848,14 @@ module Google end end + class BatchGetContactGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::PeopleV1::ContactGroupResponse, decorator: Google::Apis::PeopleV1::ContactGroupResponse::Representation + + end + end + class Membership # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -552,169 +867,6 @@ module Google end end - - class RelationshipStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :formatted_value, as: 'formattedValue' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class Date - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :month, as: 'month' - property :day, as: 'day' - property :year, as: 'year' - end - end - - class Tagline - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class Name - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :phonetic_given_name, as: 'phoneticGivenName' - property :phonetic_family_name, as: 'phoneticFamilyName' - property :family_name, as: 'familyName' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :phonetic_middle_name, as: 'phoneticMiddleName' - property :phonetic_full_name, as: 'phoneticFullName' - property :display_name_last_first, as: 'displayNameLastFirst' - property :display_name, as: 'displayName' - property :honorific_suffix, as: 'honorificSuffix' - property :honorific_prefix, as: 'honorificPrefix' - property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix' - property :middle_name, as: 'middleName' - property :given_name, as: 'givenName' - property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix' - end - end - - class BraggingRights - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class Locale - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - end - end - - class Organization - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :phonetic_name, as: 'phoneticName' - property :job_description, as: 'jobDescription' - property :end_date, as: 'endDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation - - property :symbol, as: 'symbol' - property :name, as: 'name' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :location, as: 'location' - property :title, as: 'title' - property :current, as: 'current' - property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation - - property :formatted_type, as: 'formattedType' - property :domain, as: 'domain' - property :department, as: 'department' - end - end - - class Biography - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - property :content_type, as: 'contentType' - end - end - - class AgeRangeType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :age_range, as: 'ageRange' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - end - end - - class FieldMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation - - property :verified, as: 'verified' - property :primary, as: 'primary' - end - end - - class PersonResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :status, as: 'status', class: Google::Apis::PeopleV1::Status, decorator: Google::Apis::PeopleV1::Status::Representation - - property :http_status_code, as: 'httpStatusCode' - property :requested_resource_name, as: 'requestedResourceName' - property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation - - end - end - - class RelationshipInterest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :value, as: 'value' - property :formatted_value, as: 'formattedValue' - end - end - - class Source - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :etag, as: 'etag' - property :id, as: 'id' - property :profile_metadata, as: 'profileMetadata', class: Google::Apis::PeopleV1::ProfileMetadata, decorator: Google::Apis::PeopleV1::ProfileMetadata::Representation - - end - end - - class Relation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation - - property :formatted_type, as: 'formattedType' - property :person, as: 'person' - end - end end end end diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index f305da786..ed2fcabab 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -47,16 +47,362 @@ module Google @batch_path = 'batch' end + # Delete an existing contact group owned by the authenticated user by + # specifying a contact group resource name. + # @param [String] resource_name + # The resource name of the contact group to delete. + # @param [Boolean] delete_contacts + # Set to true to also delete the contacts in the specified group. + # @param [String] quota_user + # Available 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::PeopleV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::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_contact_group(resource_name, delete_contacts: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+resourceName}', options) + command.response_representation = Google::Apis::PeopleV1::Empty::Representation + command.response_class = Google::Apis::PeopleV1::Empty + command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['deleteContacts'] = delete_contacts unless delete_contacts.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Get a list of contact groups owned by the authenticated user by specifying + # a list of contact group resource names. + # @param [Array, String] resource_names + # The resource names of the contact groups to get. + # @param [Fixnum] max_members + # Specifies the maximum number of members to return for each group. + # @param [String] quota_user + # Available 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::PeopleV1::BatchGetContactGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::BatchGetContactGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_contact_group_get(resource_names: nil, max_members: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/contactGroups:batchGet', options) + command.response_representation = Google::Apis::PeopleV1::BatchGetContactGroupsResponse::Representation + command.response_class = Google::Apis::PeopleV1::BatchGetContactGroupsResponse + command.query['resourceNames'] = resource_names unless resource_names.nil? + command.query['maxMembers'] = max_members unless max_members.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # List all contact groups owned by the authenticated user. Members of the + # contact groups are not populated. + # @param [String] sync_token + # A sync token, returned by a previous call to `contactgroups.list`. + # Only resources changed since the sync token was created will be returned. + # @param [String] page_token + # The next_page_token value returned from a previous call to + # [ListContactGroups](/people/api/rest/v1/contactgroups/list). + # Requests the next page of resources. + # @param [Fixnum] page_size + # The maximum number of resources to return. + # @param [String] quota_user + # Available 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::PeopleV1::ListContactGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ListContactGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_contact_groups(sync_token: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/contactGroups', options) + command.response_representation = Google::Apis::PeopleV1::ListContactGroupsResponse::Representation + command.response_class = Google::Apis::PeopleV1::ListContactGroupsResponse + command.query['syncToken'] = sync_token unless sync_token.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Create a new contact group owned by the authenticated user. + # @param [Google::Apis::PeopleV1::CreateContactGroupRequest] create_contact_group_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::PeopleV1::ContactGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ContactGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_contact_group(create_contact_group_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/contactGroups', options) + command.request_representation = Google::Apis::PeopleV1::CreateContactGroupRequest::Representation + command.request_object = create_contact_group_request_object + command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation + command.response_class = Google::Apis::PeopleV1::ContactGroup + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Get a specific contact group owned by the authenticated user by specifying + # a contact group resource name. + # @param [String] resource_name + # The resource name of the contact group to get. + # @param [Fixnum] max_members + # Specifies the maximum number of members to return. + # @param [String] quota_user + # Available 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::PeopleV1::ContactGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ContactGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_contact_group(resource_name, max_members: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resourceName}', options) + command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation + command.response_class = Google::Apis::PeopleV1::ContactGroup + command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['maxMembers'] = max_members unless max_members.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Update the name of an existing contact group owned by the authenticated + # user. + # @param [String] resource_name + # The resource name for the contact group, assigned by the server. An ASCII + # string, in the form of `contactGroups/`. + # @param [Google::Apis::PeopleV1::UpdateContactGroupRequest] update_contact_group_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::PeopleV1::ContactGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ContactGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_contact_group(resource_name, update_contact_group_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+resourceName}', options) + command.request_representation = Google::Apis::PeopleV1::UpdateContactGroupRequest::Representation + command.request_object = update_contact_group_request_object + command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation + command.response_class = Google::Apis::PeopleV1::ContactGroup + command.params['resourceName'] = resource_name unless resource_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 + + # Modify the members of a contact group owned by the authenticated user. + # @param [String] resource_name + # The resource name of the contact group to modify. + # @param [Google::Apis::PeopleV1::ModifyContactGroupMembersRequest] modify_contact_group_members_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::PeopleV1::ModifyContactGroupMembersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::ModifyContactGroupMembersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def modify_contact_group_members(resource_name, modify_contact_group_members_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resourceName}/members:modify', options) + command.request_representation = Google::Apis::PeopleV1::ModifyContactGroupMembersRequest::Representation + command.request_object = modify_contact_group_members_request_object + command.response_representation = Google::Apis::PeopleV1::ModifyContactGroupMembersResponse::Representation + command.response_class = Google::Apis::PeopleV1::ModifyContactGroupMembersResponse + command.params['resourceName'] = resource_name unless resource_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 + + # Delete a contact person. Any non-contact data will not be deleted. + # @param [String] resource_name + # The resource name of the contact to delete. + # @param [String] quota_user + # Available 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::PeopleV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::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_person_contact(resource_name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContact', options) + command.response_representation = Google::Apis::PeopleV1::Empty::Representation + command.response_class = Google::Apis::PeopleV1::Empty + command.params['resourceName'] = resource_name unless resource_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 + # Provides information about a list of specific people by specifying a list # of requested resource names. Use `people/me` to indicate the authenticated # user. + #
+ # The request throws a 400 error if 'personFields' is not specified. + # @param [String] request_mask_include_field + # **Required.** Comma-separated list of person fields to be included in the + # response. Each path should start with `person.`: for example, + # `person.names` or `person.photos`. # @param [Array, String] resource_names # The resource name, such as one returned by # [`people.connections.list`](/people/api/rest/v1/people.connections/list), # of one of the people to provide information about. You can include this # parameter up to 50 times in one request. # @param [String] person_fields - # Required. A field mask to restrict which fields on each person are + # **Required.** A field mask to restrict which fields on each person are + # returned. Valid values are: + # * addresses + # * ageRanges + # * biographies + # * birthdays + # * braggingRights + # * coverPhotos + # * emailAddresses + # * events + # * genders + # * imClients + # * interests + # * locales + # * memberships + # * metadata + # * names + # * nicknames + # * occupations + # * organizations + # * phoneNumbers + # * photos + # * relations + # * relationshipInterests + # * relationshipStatuses + # * residences + # * skills + # * taglines + # * urls + # @param [String] quota_user + # Available 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::PeopleV1::GetPeopleResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::GetPeopleResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_people(request_mask_include_field: nil, resource_names: nil, person_fields: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/people:batchGet', options) + command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation + command.response_class = Google::Apis::PeopleV1::GetPeopleResponse + command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? + command.query['resourceNames'] = resource_names unless resource_names.nil? + command.query['personFields'] = person_fields unless person_fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Provides information about a person by specifying a resource name. Use + # `people/me` to indicate the authenticated user. + #
+ # The request throws a 400 error if 'personFields' is not specified. + # @param [String] resource_name + # The resource name of the person to provide information about. + # - To get information about the authenticated user, specify `people/me`. + # - To get information about a google account, specify `people/`. + # - To get information about a contact, specify the resource name that + # identifies the contact as returned by + # [`people.connections.list`](/people/api/rest/v1/people.connections/list). + # @param [String] person_fields + # **Required.** A field mask to restrict which fields on the person are # returned. Valid values are: # * addresses # * ageRanges @@ -86,78 +432,7 @@ module Google # * taglines # * urls # @param [String] request_mask_include_field - # Required. Comma-separated list of person fields to be included in the - # response. Each path should start with `person.`: for example, - # `person.names` or `person.photos`. - # @param [String] quota_user - # Available 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::PeopleV1::GetPeopleResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PeopleV1::GetPeopleResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_people(resource_names: nil, person_fields: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/people:batchGet', options) - command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation - command.response_class = Google::Apis::PeopleV1::GetPeopleResponse - command.query['resourceNames'] = resource_names unless resource_names.nil? - command.query['personFields'] = person_fields unless person_fields.nil? - command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Provides information about a person by specifying a resource name. Use - # `people/me` to indicate the authenticated user. - # @param [String] resource_name - # The resource name of the person to provide information about. - # - To get information about the authenticated user, specify `people/me`. - # - To get information about any user, specify the resource name that - # identifies the user, such as the resource names returned by - # [`people.connections.list`](/people/api/rest/v1/people.connections/list). - # @param [String] person_fields - # Required. A field mask to restrict which fields on the person are returned. - # Valid values are: - # * addresses - # * ageRanges - # * biographies - # * birthdays - # * braggingRights - # * coverPhotos - # * emailAddresses - # * events - # * genders - # * imClients - # * interests - # * locales - # * memberships - # * metadata - # * names - # * nicknames - # * occupations - # * organizations - # * phoneNumbers - # * photos - # * relations - # * relationshipInterests - # * relationshipStatuses - # * residences - # * skills - # * taglines - # * urls - # @param [String] request_mask_include_field - # Required. Comma-separated list of person fields to be included in the + # **Required.** Comma-separated list of person fields to be included in the # response. Each path should start with `person.`: for example, # `person.names` or `person.photos`. # @param [String] quota_user @@ -189,30 +464,117 @@ module Google execute_or_queue_command(command, &block) end + # Update contact data for an existing contact person. Any non-contact data + # will not be modified. + # The request throws a 400 error if `updatePersonFields` is not specified. + #
+ # The request throws a 400 error if `person.metadata.sources` is not + # specified for the contact to be updated. + #
+ # The request throws a 412 error if `person.metadata.sources.etag` is + # different than the contact's etag, which indicates the contact has changed + # since its data was read. Clients should get the latest person and re-apply + # their updates to the latest person. + # @param [String] resource_name + # The resource name for the person, assigned by the server. An ASCII string + # with a max length of 27 characters, in the form of `people/`. + # @param [Google::Apis::PeopleV1::Person] person_object + # @param [String] update_person_fields + # **Required.** A field mask to restrict which fields on the person are + # updated. Valid values are: + # * addresses + # * biographies + # * birthdays + # * braggingRights + # * emailAddresses + # * events + # * genders + # * imClients + # * interests + # * locales + # * names + # * nicknames + # * occupations + # * organizations + # * phoneNumbers + # * relations + # * residences + # * skills + # * urls + # @param [String] quota_user + # Available 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::PeopleV1::Person] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::Person] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_person_contact(resource_name, person_object = nil, update_person_fields: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+resourceName}:updateContact', options) + command.request_representation = Google::Apis::PeopleV1::Person::Representation + command.request_object = person_object + command.response_representation = Google::Apis::PeopleV1::Person::Representation + command.response_class = Google::Apis::PeopleV1::Person + command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['updatePersonFields'] = update_person_fields unless update_person_fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Create a new contact and return the person resource for that contact. + # @param [Google::Apis::PeopleV1::Person] person_object + # @param [String] parent + # The resource name of the owning person 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::PeopleV1::Person] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PeopleV1::Person] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_person_contact(person_object = nil, parent: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/people:createContact', options) + command.request_representation = Google::Apis::PeopleV1::Person::Representation + command.request_object = person_object + command.response_representation = Google::Apis::PeopleV1::Person::Representation + command.response_class = Google::Apis::PeopleV1::Person + command.query['parent'] = parent unless parent.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Provides a list of the authenticated user's contacts merged with any - # linked profiles. + # connected profiles. + #
+ # The request throws a 400 error if 'personFields' is not specified. # @param [String] resource_name # The resource name to return connections for. Only `people/me` is valid. - # @param [String] sort_order - # The order in which the connections should be sorted. Defaults to - # `LAST_MODIFIED_ASCENDING`. - # @param [Boolean] request_sync_token - # Whether the response should include a sync token, which can be used to get - # all changes since the last request. - # @param [String] page_token - # The token of the page to be returned. - # @param [Fixnum] page_size - # The number of connections to include in the response. Valid values are - # between 1 and 2000, inclusive. Defaults to 100. - # @param [String] request_mask_include_field - # Required. Comma-separated list of person fields to be included in the - # response. Each path should start with `person.`: for example, - # `person.names` or `person.photos`. # @param [String] sync_token # A sync token, returned by a previous call to `people.connections.list`. # Only resources changed since the sync token was created will be returned. # @param [String] person_fields - # Required. A field mask to restrict which fields on each person are + # **Required.** A field mask to restrict which fields on each person are # returned. Valid values are: # * addresses # * ageRanges @@ -241,6 +603,21 @@ module Google # * skills # * taglines # * urls + # @param [String] sort_order + # The order in which the connections should be sorted. Defaults to + # `LAST_MODIFIED_ASCENDING`. + # @param [Boolean] request_sync_token + # Whether the response should include a sync token, which can be used to get + # all changes since the last request. + # @param [String] page_token + # The token of the page to be returned. + # @param [Fixnum] page_size + # The number of connections to include in the response. Valid values are + # between 1 and 2000, inclusive. Defaults to 100. + # @param [String] request_mask_include_field + # **Required.** Comma-separated list of person fields to be included in the + # response. Each path should start with `person.`: for example, + # `person.names` or `person.photos`. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -258,18 +635,18 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_person_connections(resource_name, sort_order: nil, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, person_fields: nil, quota_user: nil, fields: nil, options: nil, &block) + def list_person_connections(resource_name, sync_token: nil, person_fields: nil, sort_order: nil, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resourceName}/connections', options) command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['syncToken'] = sync_token unless sync_token.nil? + command.query['personFields'] = person_fields unless person_fields.nil? command.query['sortOrder'] = sort_order unless sort_order.nil? command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? - command.query['syncToken'] = sync_token unless sync_token.nil? - command.query['personFields'] = person_fields unless person_fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index c84722562..c2faa0182 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 = '20170612' + REVISION = '20170704' # 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_v1.rb b/generated/google/apis/plus_v1.rb index c95f6fefa..cebc288a4 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 = '20170612' + REVISION = '20170704' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/proximitybeacon_v1beta1.rb b/generated/google/apis/proximitybeacon_v1beta1.rb index 7f9a2f5ae..0c990a443 100644 --- a/generated/google/apis/proximitybeacon_v1beta1.rb +++ b/generated/google/apis/proximitybeacon_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/beacons/proximity/ module ProximitybeaconV1beta1 VERSION = 'V1beta1' - REVISION = '20170612' + REVISION = '20170711' # View and modify your beacons AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry' diff --git a/generated/google/apis/proximitybeacon_v1beta1/classes.rb b/generated/google/apis/proximitybeacon_v1beta1/classes.rb index a2231e734..ef36b636c 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/classes.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/classes.rb @@ -22,6 +22,515 @@ module Google module Apis module ProximitybeaconV1beta1 + # Response to ListNamespacesRequest that contains all the project's namespaces. + class ListNamespacesResponse + include Google::Apis::Core::Hashable + + # The attachments that corresponded to the request params. + # Corresponds to the JSON property `namespaces` + # @return [Array] + attr_accessor :namespaces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespaces = args[:namespaces] if args.key?(:namespaces) + end + end + + # Diagnostics for a single beacon. + class Diagnostics + include Google::Apis::Core::Hashable + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `estimatedLowBatteryDate` + # @return [Google::Apis::ProximitybeaconV1beta1::Date] + attr_accessor :estimated_low_battery_date + + # Resource name of the beacon. For Eddystone-EID beacons, this may + # be the beacon's current EID, or the beacon's "stable" Eddystone-UID. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # An unordered list of Alerts that the beacon has. + # Corresponds to the JSON property `alerts` + # @return [Array] + attr_accessor :alerts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date) + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @alerts = args[:alerts] if args.key?(:alerts) + end + end + + # Response that contains list beacon results and pagination help. + class ListBeaconsResponse + include Google::Apis::Core::Hashable + + # An opaque pagination token that the client may provide in their next + # request to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Estimate of the total number of beacons matched by the query. Higher + # values may be less accurate. + # Corresponds to the JSON property `totalCount` + # @return [Fixnum] + attr_accessor :total_count + + # The beacons that matched the search criteria. + # Corresponds to the JSON property `beacons` + # @return [Array] + attr_accessor :beacons + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_count = args[:total_count] if args.key?(:total_count) + @beacons = args[:beacons] if args.key?(:beacons) + end + end + + # Request for beacon and attachment information about beacons that + # a mobile client has encountered "in the wild". + class GetInfoForObservedBeaconsRequest + include Google::Apis::Core::Hashable + + # The beacons that the client has encountered. + # At least one must be given. + # Corresponds to the JSON property `observations` + # @return [Array] + attr_accessor :observations + + # Specifies what kind of attachments to include in the response. + # When given, the response will include only attachments of the given types. + # When empty, no attachments will be returned. Must be in the format + # namespace/type. Accepts `*` to specify all types in + # all namespaces owned by the client. + # Optional. + # Corresponds to the JSON property `namespacedTypes` + # @return [Array] + attr_accessor :namespaced_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @observations = args[:observations] if args.key?(:observations) + @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Project-specific data associated with a beacon. + class BeaconAttachment + include Google::Apis::Core::Hashable + + # The UTC time when this attachment was created, in milliseconds since the + # UNIX epoch. + # Corresponds to the JSON property `creationTimeMs` + # @return [String] + attr_accessor :creation_time_ms + + # Resource name of this attachment. Attachment names have the format: + # beacons/beacon_id/attachments/attachment_id. + # Leave this empty on creation. + # Corresponds to the JSON property `attachmentName` + # @return [String] + attr_accessor :attachment_name + + # Specifies what kind of attachment this is. Tells a client how to + # interpret the `data` field. Format is namespace/type. Namespace + # provides type separation between clients. Type describes the type of + # `data`, for use by the client when parsing the `data` field. + # Required. + # Corresponds to the JSON property `namespacedType` + # @return [String] + attr_accessor :namespaced_type + + # An opaque data container for client-provided data. Must be + # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP + # requests, and will be so encoded (with padding) in responses. + # Required. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + 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) + @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 + + # Write-only registration parameters for beacons using Eddystone-EID format. + # Two ways of securely registering an Eddystone-EID beacon with the service + # are supported: + # 1. Perform an ECDH key exchange via this API, including a previous call + # to `GET /v1beta1/eidparams`. In this case the fields + # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be + # populated and `beacon_identity_key` should not be populated. This + # method ensures that only the two parties in the ECDH key exchange can + # compute the identity key, which becomes a secret between them. + # 2. Derive or obtain the beacon's identity key via other secure means + # (perhaps an ECDH key exchange between the beacon and a mobile device + # or any other secure method), and then submit the resulting identity key + # to the service. In this case `beacon_identity_key` field should be + # populated, and neither of `beacon_ecdh_public_key` nor + # `service_ecdh_public_key` fields should be. The security of this method + # depends on how securely the parties involved (in particular the + # bluetooth client) handle the identity key, and obviously on how + # securely the identity key was generated. + # See [the Eddystone specification](https://github.com/google/eddystone/tree/ + # master/eddystone-eid) at GitHub. + class EphemeralIdRegistration + include Google::Apis::Core::Hashable + + # The initial clock value of the beacon. The beacon's clock must have + # begun counting at this value immediately prior to transmitting this + # value to the resolving service. Significant delay in transmitting this + # value to the service risks registration or resolution failures. If a + # value is not provided, the default is zero. + # Corresponds to the JSON property `initialClockValue` + # @return [Fixnum] + attr_accessor :initial_clock_value + + # The beacon's public key used for the Elliptic curve Diffie-Hellman + # key exchange. When this field is populated, `service_ecdh_public_key` + # must also be populated, and `beacon_identity_key` must not be. + # Corresponds to the JSON property `beaconEcdhPublicKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :beacon_ecdh_public_key + + # Indicates the nominal period between each rotation of the beacon's + # ephemeral ID. "Nominal" because the beacon should randomize the + # actual interval. See [the spec at github](https://github.com/google/eddystone/ + # tree/master/eddystone-eid) + # for details. This value corresponds to a power-of-two scaler on the + # beacon's clock: when the scaler value is K, the beacon will begin + # broadcasting a new ephemeral ID on average every 2^K seconds. + # Corresponds to the JSON property `rotationPeriodExponent` + # @return [Fixnum] + attr_accessor :rotation_period_exponent + + # The service's public key used for the Elliptic curve Diffie-Hellman + # key exchange. When this field is populated, `beacon_ecdh_public_key` + # must also be populated, and `beacon_identity_key` must not be. + # Corresponds to the JSON property `serviceEcdhPublicKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :service_ecdh_public_key + + # The private key of the beacon. If this field is populated, + # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be + # populated. + # Corresponds to the JSON property `beaconIdentityKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :beacon_identity_key + + # An initial ephemeral ID calculated using the clock value submitted as + # `initial_clock_value`, and the secret key generated by the + # Diffie-Hellman key exchange using `service_ecdh_public_key` and + # `service_ecdh_public_key`. This initial EID value will be used by the + # service to confirm that the key exchange process was successful. + # Corresponds to the JSON property `initialEid` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :initial_eid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value) + @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key) + @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent) + @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) + @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key) + @initial_eid = args[:initial_eid] if args.key?(:initial_eid) + end + end + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the + # WGS84 + # standard. Values must be within normalized ranges. + # Example of normalization code in Python: + # def NormalizeLongitude(longitude): + # """Wraps decimal degrees longitude to [-180.0, 180.0].""" + # q, r = divmod(longitude, 360.0) + # if r > 180.0 or (r == 180.0 and q <= -1.0): + # return r - 360.0 + # return r + # def NormalizeLatLng(latitude, longitude): + # """Wraps decimal degrees latitude and longitude to + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + # r = latitude % 360.0 + # if r <= 90.0: + # return r, NormalizeLongitude(longitude) + # elif r >= 270.0: + # return r - 360, NormalizeLongitude(longitude) + # else: + # return 180 - r, NormalizeLongitude(longitude + 180.0) + # assert 180.0 == NormalizeLongitude(180.0) + # assert -180.0 == NormalizeLongitude(-180.0) + # assert -179.0 == NormalizeLongitude(181.0) + # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + class LatLng + include Google::Apis::Core::Hashable + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @longitude = args[:longitude] if args.key?(:longitude) + @latitude = args[:latitude] if args.key?(:latitude) + end + end + + # Response to `ListBeaconAttachments` that contains the requested attachments. + class ListBeaconAttachmentsResponse + include Google::Apis::Core::Hashable + + # The attachments that corresponded to the request params. + # Corresponds to the JSON property `attachments` + # @return [Array] + attr_accessor :attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attachments = args[:attachments] if args.key?(:attachments) + end + end + + # An attachment namespace defines read and write access for all the attachments + # created under it. Each namespace is globally unique, and owned by one + # project which is the only project that can create attachments under it. + class Namespace + include Google::Apis::Core::Hashable + + # Resource name of this namespace. Namespaces names have the format: + # namespaces/namespace. + # Corresponds to the JSON property `namespaceName` + # @return [String] + attr_accessor :namespace_name + + # Specifies what clients may receive attachments under this namespace + # via `beaconinfo.getforobserved`. + # Corresponds to the JSON property `servingVisibility` + # @return [String] + attr_accessor :serving_visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespace_name = args[:namespace_name] if args.key?(:namespace_name) + @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility) + end + end + + # A subset of attachment information served via the + # `beaconinfo.getforobserved` method, used when your users encounter your + # beacons. + class AttachmentInfo + include Google::Apis::Core::Hashable + + # An opaque data container for client-provided data. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Specifies what kind of attachment this is. Tells a client how to + # interpret the `data` field. Format is namespace/type, for + # example scrupulous-wombat-12345/welcome-message + # Corresponds to the JSON property `namespacedType` + # @return [String] + attr_accessor :namespaced_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) + end + end + + # A subset of beacon information served via the `beaconinfo.getforobserved` + # method, which you call when users of your app encounter your beacons. + class BeaconInfo + include Google::Apis::Core::Hashable + + # The name under which the beacon is registered. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # Attachments matching the type(s) requested. + # May be empty if no attachment types were requested. + # Corresponds to the JSON property `attachments` + # @return [Array] + attr_accessor :attachments + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @attachments = args[:attachments] if args.key?(:attachments) + @advertised_id = args[:advertised_id] if args.key?(:advertised_id) + end + end + + # Information a client needs to provision and register beacons that + # broadcast Eddystone-EID format beacon IDs, using Elliptic curve + # Diffie-Hellman key exchange. See + # [the Eddystone specification](https://github.com/google/eddystone/tree/master/ + # eddystone-eid) at GitHub. + class EphemeralIdRegistrationParams + include Google::Apis::Core::Hashable + + # Indicates the maximum rotation period supported by the service. + # See EddystoneEidRegistration.rotation_period_exponent + # Corresponds to the JSON property `maxRotationPeriodExponent` + # @return [Fixnum] + attr_accessor :max_rotation_period_exponent + + # Indicates the minimum rotation period supported by the service. + # See EddystoneEidRegistration.rotation_period_exponent + # Corresponds to the JSON property `minRotationPeriodExponent` + # @return [Fixnum] + attr_accessor :min_rotation_period_exponent + + # The beacon service's public key for use by a beacon to derive its + # Identity Key using Elliptic Curve Diffie-Hellman key exchange. + # Corresponds to the JSON property `serviceEcdhPublicKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :service_ecdh_public_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent) + @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent) + @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) + end + end + + # Response for a request to delete attachments. + class DeleteAttachmentsResponse + include Google::Apis::Core::Hashable + + # The number of attachments that were deleted. + # Corresponds to the JSON property `numDeleted` + # @return [Fixnum] + attr_accessor :num_deleted + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_deleted = args[:num_deleted] if args.key?(:num_deleted) + end + end + # Represents one beacon observed once. class Observation include Google::Apis::Core::Hashable @@ -107,6 +616,40 @@ module Google class Beacon include Google::Apis::Core::Hashable + # Current status of the beacon. + # Required. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Indoor level, a human-readable string as returned by Google Maps APIs, + # useful to indicate which floor of a building a beacon is located on. + # Corresponds to the JSON property `indoorLevel` + # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel] + attr_accessor :indoor_level + + # Resource name of this beacon. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + # the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. + # This field must be left empty when registering. After reading a beacon, + # clients can use the name for future operations. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # Expected location stability. This is set when the beacon is registered or + # updated, not automatically detected in any way. + # Optional. + # Corresponds to the JSON property `expectedStability` + # @return [String] + attr_accessor :expected_stability + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + # Some beacons may require a user to provide an authorization key before # changing any of its configuration (e.g. broadcast frames, transmit power). # This field provides a place to store and control access to that key. @@ -205,57 +748,23 @@ module Google # @return [Hash] attr_accessor :properties - # Current status of the beacon. - # Required. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # Indoor level, a human-readable string as returned by Google Maps APIs, - # useful to indicate which floor of a building a beacon is located on. - # Corresponds to the JSON property `indoorLevel` - # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel] - attr_accessor :indoor_level - - # Resource name of this beacon. A beacon name has the format - # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - # the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. - # This field must be left empty when registering. After reading a beacon, - # clients can use the name for future operations. - # Corresponds to the JSON property `beaconName` - # @return [String] - attr_accessor :beacon_name - - # Expected location stability. This is set when the beacon is registered or - # updated, not automatically detected in any way. - # Optional. - # Corresponds to the JSON property `expectedStability` - # @return [String] - attr_accessor :expected_stability - - # Defines a unique identifier of a beacon as broadcast by the device. - # Corresponds to the JSON property `advertisedId` - # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] - attr_accessor :advertised_id - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @status = args[:status] if args.key?(:status) + @indoor_level = args[:indoor_level] if args.key?(:indoor_level) + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @expected_stability = args[:expected_stability] if args.key?(:expected_stability) + @advertised_id = args[:advertised_id] if args.key?(:advertised_id) @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key) @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration) @lat_lng = args[:lat_lng] if args.key?(:lat_lng) @place_id = args[:place_id] if args.key?(:place_id) @description = args[:description] if args.key?(:description) @properties = args[:properties] if args.key?(:properties) - @status = args[:status] if args.key?(:status) - @indoor_level = args[:indoor_level] if args.key?(:indoor_level) - @beacon_name = args[:beacon_name] if args.key?(:beacon_name) - @expected_stability = args[:expected_stability] if args.key?(:expected_stability) - @advertised_id = args[:advertised_id] if args.key?(:advertised_id) end end @@ -263,12 +772,6 @@ module Google class AdvertisedId include Google::Apis::Core::Hashable - # Specifies the identifier type. - # Required. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - # The actual beacon identifier, as broadcast by the beacon hardware. Must be # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP # requests, and will be so encoded (with padding) in responses. The base64 @@ -280,14 +783,20 @@ module Google # @return [String] attr_accessor :id + # Specifies the identifier type. + # Required. + # 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) - @type = args[:type] if args.key?(:type) @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) end end @@ -301,18 +810,18 @@ module Google class Date include Google::Apis::Core::Hashable - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 # if specifying a year/month where the day is not significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + # Month of year. Must be from 1 to 12. # Corresponds to the JSON property `month` # @return [Fixnum] @@ -324,8 +833,8 @@ module Google # Update properties of this object def update!(**args) - @year = args[:year] if args.key?(:year) @day = args[:day] if args.key?(:day) + @year = args[:year] if args.key?(:year) @month = args[:month] if args.key?(:month) end end @@ -349,515 +858,6 @@ module Google @name = args[:name] if args.key?(:name) end end - - # Response to ListNamespacesRequest that contains all the project's namespaces. - class ListNamespacesResponse - include Google::Apis::Core::Hashable - - # The attachments that corresponded to the request params. - # Corresponds to the JSON property `namespaces` - # @return [Array] - attr_accessor :namespaces - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @namespaces = args[:namespaces] if args.key?(:namespaces) - end - end - - # Diagnostics for a single beacon. - class Diagnostics - include Google::Apis::Core::Hashable - - # Resource name of the beacon. For Eddystone-EID beacons, this may - # be the beacon's current EID, or the beacon's "stable" Eddystone-UID. - # Corresponds to the JSON property `beaconName` - # @return [String] - attr_accessor :beacon_name - - # An unordered list of Alerts that the beacon has. - # Corresponds to the JSON property `alerts` - # @return [Array] - attr_accessor :alerts - - # Represents a whole calendar date, e.g. date of birth. The time of day and - # time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day may be 0 to - # represent a year and month where the day is not significant, e.g. credit card - # expiration date. The year may be 0 to represent a month and day independent - # of year, e.g. anniversary date. Related types are google.type.TimeOfDay - # and `google.protobuf.Timestamp`. - # Corresponds to the JSON property `estimatedLowBatteryDate` - # @return [Google::Apis::ProximitybeaconV1beta1::Date] - attr_accessor :estimated_low_battery_date - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @beacon_name = args[:beacon_name] if args.key?(:beacon_name) - @alerts = args[:alerts] if args.key?(:alerts) - @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date) - end - end - - # Response that contains list beacon results and pagination help. - class ListBeaconsResponse - include Google::Apis::Core::Hashable - - # An opaque pagination token that the client may provide in their next - # request to retrieve the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The beacons that matched the search criteria. - # Corresponds to the JSON property `beacons` - # @return [Array] - attr_accessor :beacons - - # Estimate of the total number of beacons matched by the query. Higher - # values may be less accurate. - # Corresponds to the JSON property `totalCount` - # @return [Fixnum] - attr_accessor :total_count - - 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) - @beacons = args[:beacons] if args.key?(:beacons) - @total_count = args[:total_count] if args.key?(:total_count) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Request for beacon and attachment information about beacons that - # a mobile client has encountered "in the wild". - class GetInfoForObservedBeaconsRequest - include Google::Apis::Core::Hashable - - # The beacons that the client has encountered. - # At least one must be given. - # Corresponds to the JSON property `observations` - # @return [Array] - attr_accessor :observations - - # Specifies what kind of attachments to include in the response. - # When given, the response will include only attachments of the given types. - # When empty, no attachments will be returned. Must be in the format - # namespace/type. Accepts `*` to specify all types in - # all namespaces owned by the client. - # Optional. - # Corresponds to the JSON property `namespacedTypes` - # @return [Array] - attr_accessor :namespaced_types - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @observations = args[:observations] if args.key?(:observations) - @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types) - end - end - - # Project-specific data associated with a beacon. - class BeaconAttachment - include Google::Apis::Core::Hashable - - # The UTC time when this attachment was created, in milliseconds since the - # UNIX epoch. - # Corresponds to the JSON property `creationTimeMs` - # @return [String] - attr_accessor :creation_time_ms - - # Resource name of this attachment. Attachment names have the format: - # beacons/beacon_id/attachments/attachment_id. - # Leave this empty on creation. - # Corresponds to the JSON property `attachmentName` - # @return [String] - attr_accessor :attachment_name - - # Specifies what kind of attachment this is. Tells a client how to - # interpret the `data` field. Format is namespace/type. Namespace - # provides type separation between clients. Type describes the type of - # `data`, for use by the client when parsing the `data` field. - # Required. - # Corresponds to the JSON property `namespacedType` - # @return [String] - attr_accessor :namespaced_type - - # An opaque data container for client-provided data. Must be - # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP - # requests, and will be so encoded (with padding) in responses. - # Required. - # Corresponds to the JSON property `data` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data - - 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) - @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 - - # Write-only registration parameters for beacons using Eddystone-EID format. - # Two ways of securely registering an Eddystone-EID beacon with the service - # are supported: - # 1. Perform an ECDH key exchange via this API, including a previous call - # to `GET /v1beta1/eidparams`. In this case the fields - # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be - # populated and `beacon_identity_key` should not be populated. This - # method ensures that only the two parties in the ECDH key exchange can - # compute the identity key, which becomes a secret between them. - # 2. Derive or obtain the beacon's identity key via other secure means - # (perhaps an ECDH key exchange between the beacon and a mobile device - # or any other secure method), and then submit the resulting identity key - # to the service. In this case `beacon_identity_key` field should be - # populated, and neither of `beacon_ecdh_public_key` nor - # `service_ecdh_public_key` fields should be. The security of this method - # depends on how securely the parties involved (in particular the - # bluetooth client) handle the identity key, and obviously on how - # securely the identity key was generated. - # See [the Eddystone specification](https://github.com/google/eddystone/tree/ - # master/eddystone-eid) at GitHub. - class EphemeralIdRegistration - include Google::Apis::Core::Hashable - - # Indicates the nominal period between each rotation of the beacon's - # ephemeral ID. "Nominal" because the beacon should randomize the - # actual interval. See [the spec at github](https://github.com/google/eddystone/ - # tree/master/eddystone-eid) - # for details. This value corresponds to a power-of-two scaler on the - # beacon's clock: when the scaler value is K, the beacon will begin - # broadcasting a new ephemeral ID on average every 2^K seconds. - # Corresponds to the JSON property `rotationPeriodExponent` - # @return [Fixnum] - attr_accessor :rotation_period_exponent - - # The service's public key used for the Elliptic curve Diffie-Hellman - # key exchange. When this field is populated, `beacon_ecdh_public_key` - # must also be populated, and `beacon_identity_key` must not be. - # Corresponds to the JSON property `serviceEcdhPublicKey` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :service_ecdh_public_key - - # The private key of the beacon. If this field is populated, - # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be - # populated. - # Corresponds to the JSON property `beaconIdentityKey` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :beacon_identity_key - - # An initial ephemeral ID calculated using the clock value submitted as - # `initial_clock_value`, and the secret key generated by the - # Diffie-Hellman key exchange using `service_ecdh_public_key` and - # `service_ecdh_public_key`. This initial EID value will be used by the - # service to confirm that the key exchange process was successful. - # Corresponds to the JSON property `initialEid` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :initial_eid - - # The initial clock value of the beacon. The beacon's clock must have - # begun counting at this value immediately prior to transmitting this - # value to the resolving service. Significant delay in transmitting this - # value to the service risks registration or resolution failures. If a - # value is not provided, the default is zero. - # Corresponds to the JSON property `initialClockValue` - # @return [Fixnum] - attr_accessor :initial_clock_value - - # The beacon's public key used for the Elliptic curve Diffie-Hellman - # key exchange. When this field is populated, `service_ecdh_public_key` - # must also be populated, and `beacon_identity_key` must not be. - # Corresponds to the JSON property `beaconEcdhPublicKey` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :beacon_ecdh_public_key - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent) - @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) - @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key) - @initial_eid = args[:initial_eid] if args.key?(:initial_eid) - @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value) - @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key) - end - end - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) - class LatLng - include Google::Apis::Core::Hashable - - # The longitude in degrees. It must be in the range [-180.0, +180.0]. - # Corresponds to the JSON property `longitude` - # @return [Float] - attr_accessor :longitude - - # The latitude in degrees. It must be in the range [-90.0, +90.0]. - # Corresponds to the JSON property `latitude` - # @return [Float] - attr_accessor :latitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @longitude = args[:longitude] if args.key?(:longitude) - @latitude = args[:latitude] if args.key?(:latitude) - end - end - - # Response to `ListBeaconAttachments` that contains the requested attachments. - class ListBeaconAttachmentsResponse - include Google::Apis::Core::Hashable - - # The attachments that corresponded to the request params. - # Corresponds to the JSON property `attachments` - # @return [Array] - attr_accessor :attachments - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @attachments = args[:attachments] if args.key?(:attachments) - end - end - - # An attachment namespace defines read and write access for all the attachments - # created under it. Each namespace is globally unique, and owned by one - # project which is the only project that can create attachments under it. - class Namespace - include Google::Apis::Core::Hashable - - # Specifies what clients may receive attachments under this namespace - # via `beaconinfo.getforobserved`. - # Corresponds to the JSON property `servingVisibility` - # @return [String] - attr_accessor :serving_visibility - - # Resource name of this namespace. Namespaces names have the format: - # namespaces/namespace. - # Corresponds to the JSON property `namespaceName` - # @return [String] - attr_accessor :namespace_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility) - @namespace_name = args[:namespace_name] if args.key?(:namespace_name) - end - end - - # A subset of attachment information served via the - # `beaconinfo.getforobserved` method, used when your users encounter your - # beacons. - class AttachmentInfo - include Google::Apis::Core::Hashable - - # Specifies what kind of attachment this is. Tells a client how to - # interpret the `data` field. Format is namespace/type, for - # example scrupulous-wombat-12345/welcome-message - # Corresponds to the JSON property `namespacedType` - # @return [String] - attr_accessor :namespaced_type - - # An opaque data container for client-provided data. - # Corresponds to the JSON property `data` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) - @data = args[:data] if args.key?(:data) - end - end - - # A subset of beacon information served via the `beaconinfo.getforobserved` - # method, which you call when users of your app encounter your beacons. - class BeaconInfo - include Google::Apis::Core::Hashable - - # The name under which the beacon is registered. - # Corresponds to the JSON property `beaconName` - # @return [String] - attr_accessor :beacon_name - - # Defines a unique identifier of a beacon as broadcast by the device. - # Corresponds to the JSON property `advertisedId` - # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] - attr_accessor :advertised_id - - # Attachments matching the type(s) requested. - # May be empty if no attachment types were requested. - # Corresponds to the JSON property `attachments` - # @return [Array] - attr_accessor :attachments - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @beacon_name = args[:beacon_name] if args.key?(:beacon_name) - @advertised_id = args[:advertised_id] if args.key?(:advertised_id) - @attachments = args[:attachments] if args.key?(:attachments) - end - end - - # Response for a request to delete attachments. - class DeleteAttachmentsResponse - include Google::Apis::Core::Hashable - - # The number of attachments that were deleted. - # Corresponds to the JSON property `numDeleted` - # @return [Fixnum] - attr_accessor :num_deleted - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @num_deleted = args[:num_deleted] if args.key?(:num_deleted) - end - end - - # Information a client needs to provision and register beacons that - # broadcast Eddystone-EID format beacon IDs, using Elliptic curve - # Diffie-Hellman key exchange. See - # [the Eddystone specification](https://github.com/google/eddystone/tree/master/ - # eddystone-eid) at GitHub. - class EphemeralIdRegistrationParams - include Google::Apis::Core::Hashable - - # Indicates the minimum rotation period supported by the service. - # See EddystoneEidRegistration.rotation_period_exponent - # Corresponds to the JSON property `minRotationPeriodExponent` - # @return [Fixnum] - attr_accessor :min_rotation_period_exponent - - # Indicates the maximum rotation period supported by the service. - # See EddystoneEidRegistration.rotation_period_exponent - # Corresponds to the JSON property `maxRotationPeriodExponent` - # @return [Fixnum] - attr_accessor :max_rotation_period_exponent - - # The beacon service's public key for use by a beacon to derive its - # Identity Key using Elliptic Curve Diffie-Hellman key exchange. - # Corresponds to the JSON property `serviceEcdhPublicKey` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :service_ecdh_public_key - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent) - @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent) - @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) - end - end end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/representations.rb b/generated/google/apis/proximitybeacon_v1beta1/representations.rb index ddfa14b03..361d21c15 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/representations.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/representations.rb @@ -22,48 +22,6 @@ module Google module Apis module ProximitybeaconV1beta1 - class Observation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListDiagnosticsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GetInfoForObservedBeaconsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Beacon - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdvertisedId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Date - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class IndoorLevel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListNamespacesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,13 +40,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Empty + class GetInfoForObservedBeaconsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetInfoForObservedBeaconsRequest + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -136,18 +94,184 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EphemeralIdRegistrationParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeleteAttachmentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class EphemeralIdRegistrationParams + class Observation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListDiagnosticsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetInfoForObservedBeaconsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Beacon + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdvertisedId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IndoorLevel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListNamespacesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + + end + end + + class Diagnostics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation + + property :beacon_name, as: 'beaconName' + collection :alerts, as: 'alerts' + end + end + + class ListBeaconsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :total_count, :numeric_string => true, as: 'totalCount' + collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + + end + end + + class GetInfoForObservedBeaconsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation + + collection :namespaced_types, as: 'namespacedTypes' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class BeaconAttachment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time_ms, as: 'creationTimeMs' + property :attachment_name, as: 'attachmentName' + property :namespaced_type, as: 'namespacedType' + property :data, :base64 => true, as: 'data' + end + end + + class EphemeralIdRegistration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :initial_clock_value, :numeric_string => true, as: 'initialClockValue' + property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey' + property :rotation_period_exponent, as: 'rotationPeriodExponent' + property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' + property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey' + property :initial_eid, :base64 => true, as: 'initialEid' + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :longitude, as: 'longitude' + property :latitude, as: 'latitude' + end + end + + class ListBeaconAttachmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation + + end + end + + class Namespace + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :namespace_name, as: 'namespaceName' + property :serving_visibility, as: 'servingVisibility' + end + end + + class AttachmentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + property :namespaced_type, as: 'namespacedType' + end + end + + class BeaconInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :beacon_name, as: 'beaconName' + collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation + + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation + + end + end + + class EphemeralIdRegistrationParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent' + property :min_rotation_period_exponent, as: 'minRotationPeriodExponent' + property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' + end + end + + class DeleteAttachmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_deleted, as: 'numDeleted' + end + end + class Observation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -178,6 +302,13 @@ module Google class Beacon # @private class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation + + property :beacon_name, as: 'beaconName' + property :expected_stability, as: 'expectedStability' + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation + property :provisioning_key, :base64 => true, as: 'provisioningKey' property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation @@ -186,29 +317,22 @@ module Google property :place_id, as: 'placeId' property :description, as: 'description' hash :properties, as: 'properties' - property :status, as: 'status' - property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation - - property :beacon_name, as: 'beaconName' - property :expected_stability, as: 'expectedStability' - property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation - end end class AdvertisedId # @private class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' property :id, :base64 => true, as: 'id' + property :type, as: 'type' end end class Date # @private class Representation < Google::Apis::Core::JsonRepresentation - property :year, as: 'year' property :day, as: 'day' + property :year, as: 'year' property :month, as: 'month' end end @@ -219,130 +343,6 @@ module Google property :name, as: 'name' end end - - class ListNamespacesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation - - end - end - - class Diagnostics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :beacon_name, as: 'beaconName' - collection :alerts, as: 'alerts' - property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation - - end - end - - class ListBeaconsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation - - property :total_count, :numeric_string => true, as: 'totalCount' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class GetInfoForObservedBeaconsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation - - collection :namespaced_types, as: 'namespacedTypes' - end - end - - class BeaconAttachment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :creation_time_ms, as: 'creationTimeMs' - property :attachment_name, as: 'attachmentName' - property :namespaced_type, as: 'namespacedType' - property :data, :base64 => true, as: 'data' - end - end - - class EphemeralIdRegistration - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :rotation_period_exponent, as: 'rotationPeriodExponent' - property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' - property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey' - property :initial_eid, :base64 => true, as: 'initialEid' - property :initial_clock_value, :numeric_string => true, as: 'initialClockValue' - property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey' - end - end - - class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :longitude, as: 'longitude' - property :latitude, as: 'latitude' - end - end - - class ListBeaconAttachmentsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation - - end - end - - class Namespace - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :serving_visibility, as: 'servingVisibility' - property :namespace_name, as: 'namespaceName' - end - end - - class AttachmentInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :namespaced_type, as: 'namespacedType' - property :data, :base64 => true, as: 'data' - end - end - - class BeaconInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :beacon_name, as: 'beaconName' - property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation - - collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation - - end - end - - class DeleteAttachmentsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :num_deleted, as: 'numDeleted' - end - end - - class EphemeralIdRegistrationParams - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :min_rotation_period_exponent, as: 'minRotationPeriodExponent' - property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent' - property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' - end - end end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/service.rb b/generated/google/apis/proximitybeacon_v1beta1/service.rb index 29d17ba72..1ff03767d 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/service.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/service.rb @@ -47,6 +47,118 @@ module Google @batch_path = 'batch' end + # Given one or more beacon observations, returns any beacon information + # and attachments accessible to your application. Authorize by using the + # [API key](https://developers.google.com/beacons/proximity/get-started# + # request_a_browser_api_key) + # for the application. + # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation + command.request_object = get_info_for_observed_beacons_request_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all attachment namespaces owned by your Google Developers Console + # project. Attachment data associated with a beacon must include a + # namespaced type, and the namespace must be owned by your project. + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) + # from a signed-in user with **viewer**, **Is owner** or **Can edit** + # permissions in the Google Developers Console project. + # @param [String] project_id + # The project id to list namespaces under. + # Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/namespaces', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the information about the specified namespace. Only the namespace + # visibility can be updated. + # @param [String] namespace_name + # Resource name of this namespace. Namespaces names have the format: + # namespaces/namespace. + # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object + # @param [String] project_id + # The project id of the namespace to update. If the project id is not + # specified then the project making the request is used. The project id + # must match the project that owns the beacon. + # Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Namespace] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + command.request_object = namespace_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace + command.params['namespaceName'] = namespace_name unless namespace_name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the Proximity Beacon API's current public key and associated # parameters used to initiate the Diffie-Hellman key exchange required to # register a beacon that broadcasts the Eddystone-EID format. This key @@ -80,6 +192,55 @@ module Google execute_or_queue_command(command, &block) end + # Activates a beacon. A beacon that is active will return information + # and attachment data when queried via `beaconinfo.getforobserved`. + # Calling this method on an already active beacon will do nothing (but + # will return a successful response code). + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) + # from a signed-in user with **Is owner** or **Can edit** permissions in the + # Google Developers Console project. + # @param [String] beacon_name + # Beacon that should be activated. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + # the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` + # for AltBeacon. For Eddystone-EID beacons, you may use either the + # current EID or the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to activate. If the project id is not + # specified then the project making the request is used. The project id + # must match the project that owns the beacon. + # Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns detailed information about the specified beacon. # Authenticate using an [OAuth access token](https://developers.google.com/ # identity/protocols/OAuth2) @@ -234,6 +395,53 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified beacon including all diagnostics data for the beacon + # as well as any attachments on the beacon (including those belonging to + # other projects). This operation cannot be undone. + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) + # from a signed-in user with **Is owner** or **Can edit** permissions in the + # Google Developers Console project. + # @param [String] beacon_name + # Beacon that should be deleted. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + # the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` + # for AltBeacon. For Eddystone-EID beacons, you may use either the + # current EID or the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to delete. If not provided, the project + # that is making the request is used. + # Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deactivates a beacon. Once deactivated, the API will not return # information nor attachment data for the beacon when queried via # `beaconinfo.getforobserved`. Calling this method on an already inactive @@ -283,53 +491,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified beacon including all diagnostics data for the beacon - # as well as any attachments on the beacon (including those belonging to - # other projects). This operation cannot be undone. - # Authenticate using an [OAuth access token](https://developers.google.com/ - # identity/protocols/OAuth2) - # from a signed-in user with **Is owner** or **Can edit** permissions in the - # Google Developers Console project. - # @param [String] beacon_name - # Beacon that should be deleted. A beacon name has the format - # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - # the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` - # for AltBeacon. For Eddystone-EID beacons, you may use either the - # current EID or the beacon's "stable" UID. - # Required. - # @param [String] project_id - # The project id of the beacon to delete. If not provided, the project - # that is making the request is used. - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Registers a previously unregistered beacon given its `advertisedId`. # These IDs are unique within the system. An ID can be registered only once. # Authenticate using an [OAuth access token](https://developers.google.com/ @@ -380,6 +541,9 @@ module Google # permissions in the Google Developers Console project. # @param [String] page_token # A pagination token obtained from a previous request to list beacons. + # @param [Fixnum] page_size + # The maximum number of records to return for this request, up to a + # server-defined upper limit. # @param [String] q # Filter query string that supports the following field filters: # * **description:`""`** @@ -444,9 +608,6 @@ module Google # be URL-encoded. # Example REST request: # `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000` - # @param [Fixnum] page_size - # The maximum number of records to return for this request, up to a - # server-defined upper limit. # @param [String] project_id # The project id to list beacons under. If not present then the project # credential that made the request is used as the project. @@ -468,62 +629,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_beacons(page_token: nil, q: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacons(page_token: nil, page_size: nil, q: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/beacons', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse command.query['pageToken'] = page_token unless page_token.nil? - command.query['q'] = q unless q.nil? command.query['pageSize'] = page_size unless page_size.nil? - command.query['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Activates a beacon. A beacon that is active will return information - # and attachment data when queried via `beaconinfo.getforobserved`. - # Calling this method on an already active beacon will do nothing (but - # will return a successful response code). - # Authenticate using an [OAuth access token](https://developers.google.com/ - # identity/protocols/OAuth2) - # from a signed-in user with **Is owner** or **Can edit** permissions in the - # Google Developers Console project. - # @param [String] beacon_name - # Beacon that should be activated. A beacon name has the format - # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by - # the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` - # for AltBeacon. For Eddystone-EID beacons, you may use either the - # current EID or the beacon's "stable" UID. - # Required. - # @param [String] project_id - # The project id of the beacon to activate. If the project id is not - # specified then the project making the request is used. The project id - # must match the project that owns the beacon. - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty - command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['q'] = q unless q.nil? command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -636,6 +748,65 @@ module Google execute_or_queue_command(command, &block) end + # Deletes multiple attachments on a given beacon. This operation is + # permanent and cannot be undone. + # You can optionally specify `namespacedType` to choose which attachments + # should be deleted. If you do not specify `namespacedType`, all your + # attachments on the given beacon will be deleted. You also may explicitly + # specify `*/*` to delete all. + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) + # from a signed-in user with **Is owner** or **Can edit** permissions in the + # Google Developers Console project. + # @param [String] beacon_name + # The beacon whose attachments should be deleted. A beacon name has the + # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast + # by the beacon and N is a code for the beacon's type. Possible values are + # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` + # for AltBeacon. For Eddystone-EID beacons, you may use either the + # current EID or the beacon's "stable" UID. + # Required. + # @param [String] namespaced_type + # Specifies the namespace and type of attachments to delete in + # `namespace/type` format. Accepts `*/*` to specify + # "all types in all namespaces". + # Optional. + # @param [String] project_id + # The project id to delete beacon attachments under. This field can be + # used when "*" is specified to mean all attachment namespaces. Projects + # may have multiple attachments with multiple namespaces. If "*" is + # specified and the projectId string is empty, then the project + # making the request is used. + # Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Associates the given data with the specified beacon. Attachment data must # contain two parts: #
    @@ -695,65 +866,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes multiple attachments on a given beacon. This operation is - # permanent and cannot be undone. - # You can optionally specify `namespacedType` to choose which attachments - # should be deleted. If you do not specify `namespacedType`, all your - # attachments on the given beacon will be deleted. You also may explicitly - # specify `*/*` to delete all. - # Authenticate using an [OAuth access token](https://developers.google.com/ - # identity/protocols/OAuth2) - # from a signed-in user with **Is owner** or **Can edit** permissions in the - # Google Developers Console project. - # @param [String] beacon_name - # The beacon whose attachments should be deleted. A beacon name has the - # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast - # by the beacon and N is a code for the beacon's type. Possible values are - # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` - # for AltBeacon. For Eddystone-EID beacons, you may use either the - # current EID or the beacon's "stable" UID. - # Required. - # @param [String] project_id - # The project id to delete beacon attachments under. This field can be - # used when "*" is specified to mean all attachment namespaces. Projects - # may have multiple attachments with multiple namespaces. If "*" is - # specified and the projectId string is empty, then the project - # making the request is used. - # Optional. - # @param [String] namespaced_type - # Specifies the namespace and type of attachments to delete in - # `namespace/type` format. Accepts `*/*` to specify - # "all types in all namespaces". - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_beacon_attachment_delete(beacon_name, project_id: nil, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse - command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['projectId'] = project_id unless project_id.nil? - command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # List the diagnostics for a single beacon. You can also list diagnostics for # all the beacons owned by your Google Developers Console project by using # the beacon name `beacons/-`. @@ -763,19 +875,19 @@ module Google # permissions in the Google Developers Console project. # @param [String] beacon_name # Beacon that the diagnostics are for. - # @param [String] page_token - # Requests results that occur after the `page_token`, obtained from the - # response to a previous request. Optional. - # @param [Fixnum] page_size - # Specifies the maximum number of results to return. Defaults to - # 10. Maximum 1000. Optional. # @param [String] alert_filter # Requests only beacons that have the given alert. For example, to find # beacons that have low batteries use `alert_filter=LOW_BATTERY`. + # @param [Fixnum] page_size + # Specifies the maximum number of results to return. Defaults to + # 10. Maximum 1000. Optional. # @param [String] project_id # Requests only diagnostic records for the given project id. If not set, # then the project making the request will be used for looking up # diagnostic records. Optional. + # @param [String] page_token + # Requests results that occur after the `page_token`, obtained from the + # response to a previous request. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -793,127 +905,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_beacon_diagnostics(beacon_name, page_token: nil, page_size: nil, alert_filter: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacon_diagnostics(beacon_name, alert_filter: nil, page_size: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse command.params['beaconName'] = beacon_name unless beacon_name.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? command.query['alertFilter'] = alert_filter unless alert_filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? command.query['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Given one or more beacon observations, returns any beacon information - # and attachments accessible to your application. Authorize by using the - # [API key](https://developers.google.com/beacons/proximity/get-started# - # request_a_browser_api_key) - # for the application. - # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options) - command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation - command.request_object = get_info_for_observed_beacons_request_object - command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists all attachment namespaces owned by your Google Developers Console - # project. Attachment data associated with a beacon must include a - # namespaced type, and the namespace must be owned by your project. - # Authenticate using an [OAuth access token](https://developers.google.com/ - # identity/protocols/OAuth2) - # from a signed-in user with **viewer**, **Is owner** or **Can edit** - # permissions in the Google Developers Console project. - # @param [String] project_id - # The project id to list namespaces under. - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/namespaces', options) - command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse - command.query['projectId'] = project_id unless project_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates the information about the specified namespace. Only the namespace - # visibility can be updated. - # @param [String] namespace_name - # Resource name of this namespace. Namespaces names have the format: - # namespaces/namespace. - # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object - # @param [String] project_id - # The project id of the namespace to update. If the project id is not - # specified then the project making the request is used. The project id - # must match the project that owns the beacon. - # Optional. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ProximitybeaconV1beta1::Namespace] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options) - command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation - command.request_object = namespace_object - command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation - command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace - command.params['namespaceName'] = namespace_name unless namespace_name.nil? - command.query['projectId'] = project_id unless project_id.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) diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 23c58c173..e9cecc8db 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,13 +25,13 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20170502' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170622' # View and manage Pub/Sub topics and subscriptions AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub' + + # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 9515c3524..90a0a9c9a 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -22,220 +22,6 @@ module Google module Apis module PubsubV1 - # Response for the `ListTopicSubscriptions` method. - class ListTopicSubscriptionsResponse - include Google::Apis::Core::Hashable - - # If not empty, indicates that there may be more subscriptions that match - # the request; this value should be passed in a new - # `ListTopicSubscriptionsRequest` to get more subscriptions. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The names of the subscriptions that match the request. - # Corresponds to the JSON property `subscriptions` - # @return [Array] - attr_accessor :subscriptions - - 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) - @subscriptions = args[:subscriptions] if args.key?(:subscriptions) - end - end - - # Response for the `Pull` method. - class PullResponse - include Google::Apis::Core::Hashable - - # Received Pub/Sub messages. The Pub/Sub system will return zero messages if - # there are no more available in the backlog. The Pub/Sub system may return - # fewer than the `maxMessages` requested even if there are more messages - # available in the backlog. - # Corresponds to the JSON property `receivedMessages` - # @return [Array] - attr_accessor :received_messages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @received_messages = args[:received_messages] if args.key?(:received_messages) - end - end - - # A message and its corresponding acknowledgment ID. - class ReceivedMessage - include Google::Apis::Core::Hashable - - # A message data and its attributes. The message payload must not be empty; - # it must contain either a non-empty data field, or at least one attribute. - # Corresponds to the JSON property `message` - # @return [Google::Apis::PubsubV1::Message] - attr_accessor :message - - # This ID can be used to acknowledge the received message. - # Corresponds to the JSON property `ackId` - # @return [String] - attr_accessor :ack_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @message = args[:message] if args.key?(:message) - @ack_id = args[:ack_id] if args.key?(:ack_id) - end - end - - # Configuration for a push delivery endpoint. - class PushConfig - include Google::Apis::Core::Hashable - - # A URL locating the endpoint to which messages should be pushed. - # For example, a Webhook endpoint might use "https://example.com/push". - # Corresponds to the JSON property `pushEndpoint` - # @return [String] - attr_accessor :push_endpoint - - # Endpoint configuration attributes. - # Every endpoint has a set of API supported attributes that can be used to - # control different aspects of the message delivery. - # The currently supported attribute is `x-goog-version`, which you can - # use to change the format of the pushed message. This attribute - # indicates the version of the data expected by the endpoint. This - # controls the shape of the pushed message (i.e., its fields and metadata). - # The endpoint version is based on the version of the Pub/Sub API. - # If not present during the `CreateSubscription` call, it will default to - # the version of the API used to make such call. If not present during a - # `ModifyPushConfig` call, its value will not be changed. `GetSubscription` - # calls will always return a valid version, even if the subscription was - # created without this attribute. - # The possible values for this attribute are: - # * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. - # * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. - # Corresponds to the JSON property `attributes` - # @return [Hash] - attr_accessor :attributes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint) - @attributes = args[:attributes] if args.key?(:attributes) - end - end - - # Response message for `TestIamPermissions` method. - class TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Request for the `Pull` method. - class PullRequest - include Google::Apis::Core::Hashable - - # If this field set to true, the system will respond immediately even if - # it there are no messages available to return in the `Pull` response. - # Otherwise, the system may wait (for a bounded amount of time) until at - # least one message is available, rather than returning no messages. The - # client may cancel the request if it does not wish to wait any longer for - # the response. - # Corresponds to the JSON property `returnImmediately` - # @return [Boolean] - attr_accessor :return_immediately - alias_method :return_immediately?, :return_immediately - - # The maximum number of messages returned for this request. The Pub/Sub - # system may return fewer than the number specified. - # Corresponds to the JSON property `maxMessages` - # @return [Fixnum] - attr_accessor :max_messages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @return_immediately = args[:return_immediately] if args.key?(:return_immediately) - @max_messages = args[:max_messages] if args.key?(:max_messages) - end - end - - # Response for the `ListSubscriptions` method. - class ListSubscriptionsResponse - include Google::Apis::Core::Hashable - - # If not empty, indicates that there may be more subscriptions that match - # the request; this value should be passed in a new - # `ListSubscriptionsRequest` to get more subscriptions. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The subscriptions that match the request. - # Corresponds to the JSON property `subscriptions` - # @return [Array] - attr_accessor :subscriptions - - 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) - @subscriptions = args[:subscriptions] if args.key?(:subscriptions) - end - end - - # Request for the Publish method. - class PublishRequest - include Google::Apis::Core::Hashable - - # The messages to publish. - # Corresponds to the JSON property `messages` - # @return [Array] - attr_accessor :messages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @messages = args[:messages] if args.key?(:messages) - end - end - # Response for the `Publish` method. class PublishResponse include Google::Apis::Core::Hashable @@ -261,6 +47,14 @@ module Google class Subscription include Google::Apis::Core::Hashable + # The name of the topic from which this subscription is receiving messages. + # Format is `projects/`project`/topics/`topic``. + # The value of this field will be `_deleted-topic_` if the topic has been + # deleted. + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + # Configuration for a push delivery endpoint. # Corresponds to the JSON property `pushConfig` # @return [Google::Apis::PubsubV1::PushConfig] @@ -296,24 +90,16 @@ module Google # @return [String] attr_accessor :name - # The name of the topic from which this subscription is receiving messages. - # Format is `projects/`project`/topics/`topic``. - # The value of this field will be `_deleted-topic_` if the topic has been - # deleted. - # Corresponds to the JSON property `topic` - # @return [String] - attr_accessor :topic - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @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) @name = args[:name] if args.key?(:name) - @topic = args[:topic] if args.key?(:topic) end end @@ -339,30 +125,6 @@ module Google end end - # A topic resource. - class Topic - include Google::Apis::Core::Hashable - - # The name of the topic. It must have the format - # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, - # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), - # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent - # signs (`%`). It must be between 3 and 255 characters in length, and it - # must not start with `"goog"`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - end - end - # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of @@ -412,7 +174,6 @@ module Google attr_accessor :version # Associates a list of `members` to a `role`. - # Multiple `bindings` must not be specified for the same `role`. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -430,6 +191,30 @@ module Google end end + # A topic resource. + class Topic + include Google::Apis::Core::Hashable + + # The name of the topic. It must have the format + # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, + # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent + # signs (`%`). It must be between 3 and 255 characters in length, and it + # must not start with `"goog"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + # Request for the ModifyAckDeadline method. class ModifyAckDeadlineRequest include Google::Apis::Core::Hashable @@ -529,17 +314,6 @@ module Google class Message include Google::Apis::Core::Hashable - # The message payload. - # Corresponds to the JSON property `data` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data - - # Optional attributes for this message. - # Corresponds to the JSON property `attributes` - # @return [Hash] - attr_accessor :attributes - # ID of this message, assigned by the server when the message is published. # Guaranteed to be unique within the topic. This value may be read by a # subscriber that receives a `PubsubMessage` via a `Pull` call or a push @@ -548,6 +322,11 @@ module Google # @return [String] attr_accessor :message_id + # Optional attributes for this message. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + # The time at which the message was published, populated by the server when # it receives the `Publish` call. It must not be populated by the # publisher in a `Publish` call. @@ -555,16 +334,22 @@ module Google # @return [String] attr_accessor :publish_time + # The message payload. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @data = args[:data] if args.key?(:data) - @attributes = args[:attributes] if args.key?(:attributes) @message_id = args[:message_id] if args.key?(:message_id) + @attributes = args[:attributes] if args.key?(:attributes) @publish_time = args[:publish_time] if args.key?(:publish_time) + @data = args[:data] if args.key?(:data) end end @@ -572,6 +357,13 @@ module Google class Binding include Google::Apis::Core::Hashable + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + # Specifies the identities requesting access for a Cloud Platform resource. # `members` can have the following values: # * `allUsers`: A special identifier that represents anyone who is @@ -590,47 +382,14 @@ module Google # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) - end - end - - # Response for the `ListTopics` method. - class ListTopicsResponse - include Google::Apis::Core::Hashable - - # The resulting topics. - # Corresponds to the JSON property `topics` - # @return [Array] - attr_accessor :topics - - # If not empty, indicates that there may be more topics that match the - # request; this value should be passed in a new `ListTopicsRequest`. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @topics = args[:topics] if args.key?(:topics) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @members = args[:members] if args.key?(:members) end end @@ -672,6 +431,246 @@ module Google @ack_ids = args[:ack_ids] if args.key?(:ack_ids) end end + + # Response for the `ListTopics` method. + class ListTopicsResponse + include Google::Apis::Core::Hashable + + # If not empty, indicates that there may be more topics that match the + # request; this value should be passed in a new `ListTopicsRequest`. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The resulting topics. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + + 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) + @topics = args[:topics] if args.key?(:topics) + end + end + + # Response for the `ListTopicSubscriptions` method. + class ListTopicSubscriptionsResponse + include Google::Apis::Core::Hashable + + # If not empty, indicates that there may be more subscriptions that match + # the request; this value should be passed in a new + # `ListTopicSubscriptionsRequest` to get more subscriptions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The names of the subscriptions that match the request. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + 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) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + end + end + + # Response for the `Pull` method. + class PullResponse + include Google::Apis::Core::Hashable + + # Received Pub/Sub messages. The Pub/Sub system will return zero messages if + # there are no more available in the backlog. The Pub/Sub system may return + # fewer than the `maxMessages` requested even if there are more messages + # available in the backlog. + # Corresponds to the JSON property `receivedMessages` + # @return [Array] + attr_accessor :received_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @received_messages = args[:received_messages] if args.key?(:received_messages) + end + end + + # A message and its corresponding acknowledgment ID. + class ReceivedMessage + include Google::Apis::Core::Hashable + + # This ID can be used to acknowledge the received message. + # Corresponds to the JSON property `ackId` + # @return [String] + attr_accessor :ack_id + + # A message data and its attributes. The message payload must not be empty; + # it must contain either a non-empty data field, or at least one attribute. + # Corresponds to the JSON property `message` + # @return [Google::Apis::PubsubV1::Message] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ack_id = args[:ack_id] if args.key?(:ack_id) + @message = args[:message] if args.key?(:message) + end + end + + # Configuration for a push delivery endpoint. + class PushConfig + include Google::Apis::Core::Hashable + + # Endpoint configuration attributes. + # Every endpoint has a set of API supported attributes that can be used to + # control different aspects of the message delivery. + # The currently supported attribute is `x-goog-version`, which you can + # use to change the format of the pushed message. This attribute + # indicates the version of the data expected by the endpoint. This + # controls the shape of the pushed message (i.e., its fields and metadata). + # The endpoint version is based on the version of the Pub/Sub API. + # If not present during the `CreateSubscription` call, it will default to + # the version of the API used to make such call. If not present during a + # `ModifyPushConfig` call, its value will not be changed. `GetSubscription` + # calls will always return a valid version, even if the subscription was + # created without this attribute. + # The possible values for this attribute are: + # * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. + # * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + + # A URL locating the endpoint to which messages should be pushed. + # For example, a Webhook endpoint might use "https://example.com/push". + # Corresponds to the JSON property `pushEndpoint` + # @return [String] + attr_accessor :push_endpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Request for the `Pull` method. + class PullRequest + include Google::Apis::Core::Hashable + + # If this field set to true, the system will respond immediately even if + # it there are no messages available to return in the `Pull` response. + # Otherwise, the system may wait (for a bounded amount of time) until at + # least one message is available, rather than returning no messages. The + # client may cancel the request if it does not wish to wait any longer for + # the response. + # Corresponds to the JSON property `returnImmediately` + # @return [Boolean] + attr_accessor :return_immediately + alias_method :return_immediately?, :return_immediately + + # The maximum number of messages returned for this request. The Pub/Sub + # system may return fewer than the number specified. + # Corresponds to the JSON property `maxMessages` + # @return [Fixnum] + attr_accessor :max_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @return_immediately = args[:return_immediately] if args.key?(:return_immediately) + @max_messages = args[:max_messages] if args.key?(:max_messages) + end + end + + # Response for the `ListSubscriptions` method. + class ListSubscriptionsResponse + include Google::Apis::Core::Hashable + + # If not empty, indicates that there may be more subscriptions that match + # the request; this value should be passed in a new + # `ListSubscriptionsRequest` to get more subscriptions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The subscriptions that match the request. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + 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) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + end + end + + # Request for the Publish method. + class PublishRequest + include Google::Apis::Core::Hashable + + # The messages to publish. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @messages = args[:messages] if args.key?(:messages) + end + end end end end diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index 72a4718b6..7b559a736 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -22,6 +22,84 @@ module Google module Apis module PubsubV1 + class PublishResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Subscription + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Topic + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ModifyAckDeadlineRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ModifyPushConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Message + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AcknowledgeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTopicsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListTopicSubscriptionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -71,81 +149,109 @@ module Google end class PublishResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :message_ids, as: 'messageIds' + end end class Subscription - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :topic, as: 'topic' + property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation - include Google::Apis::Core::JsonObjectSupport + property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + property :name, as: 'name' + end end class TestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Topic - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end end class Policy - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation - include Google::Apis::Core::JsonObjectSupport + end + end + + class Topic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end end class ModifyAckDeadlineRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + collection :ack_ids, as: 'ackIds' + end end class SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation - include Google::Apis::Core::JsonObjectSupport + end end class ModifyPushConfigRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation - include Google::Apis::Core::JsonObjectSupport + end end class Message - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_id, as: 'messageId' + hash :attributes, as: 'attributes' + property :publish_time, as: 'publishTime' + property :data, :base64 => true, as: 'data' + end end class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListTopicsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + end end class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class AcknowledgeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ack_ids, as: 'ackIds' + end + end - include Google::Apis::Core::JsonObjectSupport + class ListTopicsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation + + end end class ListTopicSubscriptionsResponse @@ -167,17 +273,17 @@ module Google class ReceivedMessage # @private class Representation < Google::Apis::Core::JsonRepresentation + property :ack_id, as: 'ackId' property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation - property :ack_id, as: 'ackId' end end class PushConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :push_endpoint, as: 'pushEndpoint' hash :attributes, as: 'attributes' + property :push_endpoint, as: 'pushEndpoint' end end @@ -212,112 +318,6 @@ module Google end end - - class PublishResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :message_ids, as: 'messageIds' - end - end - - class Subscription - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation - - property :ack_deadline_seconds, as: 'ackDeadlineSeconds' - property :name, as: 'name' - property :topic, as: 'topic' - end - end - - class TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class Topic - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - end - end - - class Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation - - end - end - - class ModifyAckDeadlineRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ack_deadline_seconds, as: 'ackDeadlineSeconds' - collection :ack_ids, as: 'ackIds' - end - end - - class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation - - end - end - - class ModifyPushConfigRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation - - end - end - - class Message - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, :base64 => true, as: 'data' - hash :attributes, as: 'attributes' - property :message_id, as: 'messageId' - property :publish_time, as: 'publishTime' - end - end - - class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - end - end - - class ListTopicsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class AcknowledgeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :ack_ids, as: 'ackIds' - end - end end end end diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 6eb51a68c..d61cac4b0 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -47,6 +47,41 @@ module Google @batch_path = 'batch' end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_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::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # If the resource does not exist, this will return an empty set of # permissions, not a NOT_FOUND error. @@ -74,7 +109,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object @@ -86,15 +121,12 @@ module Google execute_or_queue_command(command, &block) end - # Modifies the `PushConfig` for a specified subscription. - # This may be used to change a push subscription to a pull one (signified by - # an empty `PushConfig`) or vice versa, or change the endpoint URL and other - # attributes of a push subscription. Messages will accumulate for delivery - # continuously through the call regardless of changes to the `PushConfig`. - # @param [String] subscription - # The name of the subscription. - # Format is `projects/`project`/subscriptions/`sub``. - # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -104,21 +136,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::PubsubV1::Empty] + # @return [Google::Apis::PubsubV1::Policy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options) - command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation - command.request_object = modify_push_config_request_object - command.response_representation = Google::Apis::PubsubV1::Empty::Representation - command.response_class = Google::Apis::PubsubV1::Empty - command.params['subscription'] = subscription unless subscription.nil? + def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -316,16 +346,12 @@ module Google execute_or_queue_command(command, &block) end - # Acknowledges the messages associated with the `ack_ids` in the - # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages - # from the subscription. - # Acknowledging a message whose ack deadline has expired may succeed, - # but such a message may be redelivered later. Acknowledging a message more - # than once will not result in an error. - # @param [String] subscription - # The subscription whose message is being acknowledged. - # Format is `projects/`project`/subscriptions/`sub``. - # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -335,21 +361,19 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::PubsubV1::Empty] + # @return [Google::Apis::PubsubV1::Policy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options) - command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation - command.request_object = acknowledge_request_object - command.response_representation = Google::Apis::PubsubV1::Empty::Representation - command.response_class = Google::Apis::PubsubV1::Empty - command.params['subscription'] = subscription unless subscription.nil? + def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -393,12 +417,16 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # Acknowledges the messages associated with the `ack_ids` in the + # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages + # from the subscription. + # Acknowledging a message whose ack deadline has expired may succeed, + # but such a message may be redelivered later. Acknowledging a message more + # than once will not result in an error. + # @param [String] subscription + # The subscription whose message is being acknowledged. + # Format is `projects/`project`/subscriptions/`sub``. + # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_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. @@ -408,19 +436,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::PubsubV1::Policy] + # @return [Google::Apis::PubsubV1::Empty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::PubsubV1::Policy::Representation - command.response_class = Google::Apis::PubsubV1::Policy - command.params['resource'] = resource unless resource.nil? + def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options) + command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation + command.request_object = acknowledge_request_object + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -484,7 +514,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object @@ -496,12 +526,15 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # Modifies the `PushConfig` for a specified subscription. + # This may be used to change a push subscription to a pull one (signified by + # an empty `PushConfig`) or vice versa, or change the endpoint URL and other + # attributes of a push subscription. Messages will accumulate for delivery + # continuously through the call regardless of changes to the `PushConfig`. + # @param [String] subscription + # The name of the subscription. + # Format is `projects/`project`/subscriptions/`sub``. + # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_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. @@ -511,19 +544,98 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::PubsubV1::Policy] + # @return [Google::Apis::PubsubV1::Empty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::PubsubV1::Policy::Representation - command.response_class = Google::Apis::PubsubV1::Policy - command.params['resource'] = resource unless resource.nil? + def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options) + command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation + command.request_object = modify_push_config_request_object + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists matching topics. + # @param [String] project + # The name of the cloud project that topics belong to. + # Format is `projects/`project``. + # @param [String] page_token + # The value returned by the last `ListTopicsResponse`; indicates that this is + # a continuation of a prior `ListTopics` call, and that the system should + # return the next page of data. + # @param [Fixnum] page_size + # Maximum number of topics to return. + # @param [String] quota_user + # Available 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::PubsubV1::ListTopicsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::ListTopicsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_topics(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+project}/topics', options) + command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation + command.response_class = Google::Apis::PubsubV1::ListTopicsResponse + command.params['project'] = project unless project.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Creates the given topic with the given name. + # @param [String] name + # The name of the topic. It must have the format + # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, + # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent + # signs (`%`). It must be between 3 and 255 characters in length, and it + # must not start with `"goog"`. + # @param [Google::Apis::PubsubV1::Topic] topic_object + # @param [String] quota_user + # Available 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::PubsubV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Topic] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::PubsubV1::Topic::Representation + command.request_object = topic_object + command.response_representation = Google::Apis::PubsubV1::Topic::Representation + command.response_class = Google::Apis::PubsubV1::Topic + command.params['name'] = name unless name.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) @@ -552,7 +664,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object @@ -738,118 +850,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists matching topics. - # @param [String] project - # The name of the cloud project that topics belong to. - # Format is `projects/`project``. - # @param [Fixnum] page_size - # Maximum number of topics to return. - # @param [String] page_token - # The value returned by the last `ListTopicsResponse`; indicates that this is - # a continuation of a prior `ListTopics` call, and that the system should - # return the next page of data. - # @param [String] quota_user - # Available 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::PubsubV1::ListTopicsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::ListTopicsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_topics(project, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+project}/topics', options) - command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation - command.response_class = Google::Apis::PubsubV1::ListTopicsResponse - command.params['project'] = project unless project.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Creates the given topic with the given name. - # @param [String] name - # The name of the topic. It must have the format - # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, - # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), - # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent - # signs (`%`). It must be between 3 and 255 characters in length, and it - # must not start with `"goog"`. - # @param [Google::Apis::PubsubV1::Topic] topic_object - # @param [String] quota_user - # Available 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::PubsubV1::Topic] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::Topic] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::PubsubV1::Topic::Representation - command.request_object = topic_object - command.response_representation = Google::Apis::PubsubV1::Topic::Representation - command.response_class = Google::Apis::PubsubV1::Topic - command.params['name'] = name unless name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_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::PubsubV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PubsubV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::PubsubV1::Policy::Representation - command.response_class = Google::Apis::PubsubV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - # Lists the name of the subscriptions for this topic. # @param [String] topic # The name of the topic that subscriptions are attached to. diff --git a/generated/google/apis/runtimeconfig_v1.rb b/generated/google/apis/runtimeconfig_v1.rb index 403a64120..870c3a683 100644 --- a/generated/google/apis/runtimeconfig_v1.rb +++ b/generated/google/apis/runtimeconfig_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1 VERSION = 'V1' - REVISION = '20170612' + REVISION = '20170620' # Manage your Google Cloud Platform services' runtime configuration AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig' diff --git a/generated/google/apis/runtimeconfig_v1/classes.rb b/generated/google/apis/runtimeconfig_v1/classes.rb index afced8760..efe013caf 100644 --- a/generated/google/apis/runtimeconfig_v1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1/classes.rb @@ -22,6 +22,19 @@ module Google module Apis module RuntimeconfigV1 + # The request message for Operations.CancelOperation. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + 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: @@ -64,6 +77,13 @@ module Google class Status include Google::Apis::Core::Hashable + # 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` @@ -75,47 +95,15 @@ module Google # @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 - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @message = args[:message] if args.key?(:message) @details = args[:details] if args.key?(:details) @code = args[:code] if args.key?(:code) - @message = args[:message] if args.key?(:message) - 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 @@ -124,6 +112,14 @@ module Google class Operation include Google::Apis::Core::Hashable + # 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. @@ -194,13 +190,33 @@ module Google # @return [Google::Apis::RuntimeconfigV1::Status] attr_accessor :error - # 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 + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @response = args[:response] if args.key?(:response) + @name = args[:name] if args.key?(:name) + @error = args[:error] if args.key?(:error) + 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) @@ -208,11 +224,8 @@ module Google # Update properties of this object def update!(**args) - @done = args[:done] if args.key?(:done) - @response = args[:response] if args.key?(:response) - @name = args[:name] if args.key?(:name) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) end end @@ -234,19 +247,6 @@ module Google def update!(**args) end end - - # The request message for Operations.CancelOperation. - class CancelOperationRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end end end end diff --git a/generated/google/apis/runtimeconfig_v1/representations.rb b/generated/google/apis/runtimeconfig_v1/representations.rb index 34c27d2fd..d473f02d3 100644 --- a/generated/google/apis/runtimeconfig_v1/representations.rb +++ b/generated/google/apis/runtimeconfig_v1/representations.rb @@ -22,19 +22,25 @@ module Google module Apis module RuntimeconfigV1 + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Operation + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -47,17 +53,29 @@ module Google end class CancelOperationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end end class Status # @private class Representation < Google::Apis::Core::JsonRepresentation + property :message, as: 'message' collection :details, as: 'details' property :code, as: 'code' - property :message, as: 'message' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + property :done, as: 'done' + hash :response, as: 'response' + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation + end end @@ -70,29 +88,11 @@ module Google end end - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation - - hash :metadata, as: 'metadata' - end - end - class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end - - class CancelOperationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end end end end diff --git a/generated/google/apis/runtimeconfig_v1/service.rb b/generated/google/apis/runtimeconfig_v1/service.rb index db81e7d46..df4638e7b 100644 --- a/generated/google/apis/runtimeconfig_v1/service.rb +++ b/generated/google/apis/runtimeconfig_v1/service.rb @@ -35,16 +35,16 @@ module Google # # @see https://cloud.google.com/deployment-manager/runtime-configurator/ class CloudRuntimeConfigService < 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 + # @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 + def initialize super('https://runtimeconfig.googleapis.com/', '') @batch_path = 'batch' @@ -63,11 +63,11 @@ module Google # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::RuntimeconfigV1::CancelOperationRequest] cancel_operation_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -80,15 +80,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.request_representation = Google::Apis::RuntimeconfigV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation command.response_class = Google::Apis::RuntimeconfigV1::Empty command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -98,11 +98,11 @@ module Google # `google.rpc.Code.UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -115,13 +115,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation command.response_class = Google::Apis::RuntimeconfigV1::Empty command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -136,17 +136,17 @@ module Google # is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. - # @param [String] page_token - # The standard list page token. # @param [Fixnum] page_size # The standard list page size. # @param [String] filter # The standard list filter. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @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 # @@ -159,24 +159,24 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + 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::RuntimeconfigV1::ListOperationsResponse::Representation command.response_class = Google::Apis::RuntimeconfigV1::ListOperationsResponse command.params['name'] = name unless name.nil? - command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.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? + command.query['key'] = key unless key.nil? end end end diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index d074dc06a..89f773cf5 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run module ScriptV1 VERSION = 'V1' - REVISION = '20170612' + REVISION = '20170705' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' @@ -42,6 +42,9 @@ module Google # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' + # View and manage the provisioning of users on your domain + AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user' + # View and manage the provisioning of groups on your domain AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group' @@ -51,9 +54,6 @@ module Google # View and manage your spreadsheets in Google Drive AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets' - # View and manage the provisioning of users on your domain - AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user' - # View and manage your forms in Google Drive AUTH_FORMS = 'https://www.googleapis.com/auth/forms' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index 6c43ee4c4..a18386901 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -22,175 +22,11 @@ module Google module Apis module ScriptV1 - # A stack trace through the script that shows where the execution failed. - class ScriptStackTraceElement - include Google::Apis::Core::Hashable - - # The line number where the script failed. - # Corresponds to the JSON property `lineNumber` - # @return [Fixnum] - attr_accessor :line_number - - # The name of the function that failed. - # Corresponds to the JSON property `function` - # @return [String] - attr_accessor :function - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @line_number = args[:line_number] if args.key?(:line_number) - @function = args[:function] if args.key?(:function) - end - end - - # An object that provides information about the nature of an error in the Apps - # Script Execution API. If an - # `run` call succeeds but the - # script function (or Apps Script itself) throws an exception, the response - # body's `error` field contains a - # `Status` object. The `Status` object's `details` field - # contains an array with a single one of these `ExecutionError` objects. - class ExecutionError - include Google::Apis::Core::Hashable - - # An array of objects that provide a stack trace through the script to show - # where the execution failed, with the deepest call first. - # Corresponds to the JSON property `scriptStackTraceElements` - # @return [Array] - attr_accessor :script_stack_trace_elements - - # The error type, for example `TypeError` or `ReferenceError`. If the error - # type is unavailable, this field is not included. - # Corresponds to the JSON property `errorType` - # @return [String] - attr_accessor :error_type - - # The error message thrown by Apps Script, usually localized into the user's - # language. - # Corresponds to the JSON property `errorMessage` - # @return [String] - attr_accessor :error_message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements) - @error_type = args[:error_type] if args.key?(:error_type) - @error_message = args[:error_message] if args.key?(:error_message) - end - end - - # If a `run` call succeeds but the script function (or Apps Script itself) - # throws an exception, the response body's `error` field will contain this ` - # Status` object. - class Status - include Google::Apis::Core::Hashable - - # A developer-facing error message, which is in English. Any user-facing error - # message is localized and sent in the [`google.rpc.Status.details`](google.rpc. - # Status.details) field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # An array that contains a single `ExecutionError` object that provides - # information about the nature of the error. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # The status code. For this API, this value will always be 3, corresponding to - # an INVALID_ARGUMENT error. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @message = args[:message] if args.key?(:message) - @details = args[:details] if args.key?(:details) - @code = args[:code] if args.key?(:code) - end - end - - # A request to run the function in a script. The script is identified by the - # specified `script_id`. Executing a function on a script returns results - # based on the implementation of the script. - class ExecutionRequest - include Google::Apis::Core::Hashable - - # The name of the function to execute in the given script. The name does not - # include parentheses or parameters. - # Corresponds to the JSON property `function` - # @return [String] - attr_accessor :function - - # If `true` and the user is an owner of the script, the script runs at the - # most recently saved version rather than the version deployed for use with - # the Execution API. Optional; default is `false`. - # Corresponds to the JSON property `devMode` - # @return [Boolean] - attr_accessor :dev_mode - alias_method :dev_mode?, :dev_mode - - # The parameters to be passed to the function being executed. The object type - # for each parameter should match the expected type in Apps Script. - # Parameters cannot be Apps Script-specific object types (such as a - # `Document` or a `Calendar`); they can only be primitive types such as - # `string`, `number`, `array`, `object`, or `boolean`. Optional. - # Corresponds to the JSON property `parameters` - # @return [Array] - attr_accessor :parameters - - # For Android add-ons only. An ID that represents the user's current session - # in the Android app for Google Docs or Sheets, included as extra data in the - # [`Intent`](https://developer.android.com/guide/components/intents-filters.html) - # that launches the add-on. When an Android add-on is run with a session - # state, it gains the privileges of a - # [bound](https://developers.google.com/apps-script/guides/bound) script — - # that is, it can access information like the user's current cursor position - # (in Docs) or selected cell (in Sheets). To retrieve the state, call - # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`. - # Optional. - # Corresponds to the JSON property `sessionState` - # @return [String] - attr_accessor :session_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @function = args[:function] if args.key?(:function) - @dev_mode = args[:dev_mode] if args.key?(:dev_mode) - @parameters = args[:parameters] if args.key?(:parameters) - @session_state = args[:session_state] if args.key?(:session_state) - end - end - # A request to retrieve the results from a collection of requests, # specified by the operation resource names. class JoinAsyncRequest include Google::Apis::Core::Hashable - # List of operation resource names that we want to join, - # as returned from a call to RunAsync. - # Corresponds to the JSON property `names` - # @return [Array] - attr_accessor :names - # Timeout for information retrieval in milliseconds. # Corresponds to the JSON property `timeout` # @return [String] @@ -202,15 +38,21 @@ module Google # @return [String] attr_accessor :script_id + # List of operation resource names that we want to join, + # as returned from a call to RunAsync. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @names = args[:names] if args.key?(:names) @timeout = args[:timeout] if args.key?(:timeout) @script_id = args[:script_id] if args.key?(:script_id) + @names = args[:names] if args.key?(:names) end end @@ -242,6 +84,27 @@ module Google end end + # An object that provides the return value for the JoinAsync method. + class JoinAsyncResponse + include Google::Apis::Core::Hashable + + # The return values for each script function, in a map of operation resource + # names to the Operation containing the result of the process. The response + # will contain either an error or the result of the script function. + # Corresponds to the JSON property `results` + # @return [Hash] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @results = args[:results] if args.key?(:results) + end + end + # The response will not arrive until the function finishes executing. The # maximum runtime is listed in the guide to [limitations in Apps Script](https:// # developers.google.com/apps-script/guides/services/quotas#current_limitations). @@ -259,6 +122,12 @@ module Google class Operation include Google::Apis::Core::Hashable + # This field is not used. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + # If the script function returns successfully, this field will contain an ` # ExecutionResponse` object with the function's return value as the object's ` # result` field. @@ -283,36 +152,33 @@ module Google # @return [Hash] attr_accessor :metadata - # This field is not used. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @done = args[:done] if args.key?(:done) @response = args[:response] if args.key?(:response) @name = args[:name] if args.key?(:name) @error = args[:error] if args.key?(:error) @metadata = args[:metadata] if args.key?(:metadata) - @done = args[:done] if args.key?(:done) end end - # An object that provides the return value for the JoinAsync method. - class JoinAsyncResponse + # A stack trace through the script that shows where the execution failed. + class ScriptStackTraceElement include Google::Apis::Core::Hashable - # The return values for each script function, in a map of operation resource - # names to the Operation containing the result of the process. The response - # will contain either an error or the result of the script function. - # Corresponds to the JSON property `results` - # @return [Hash] - attr_accessor :results + # The name of the function that failed. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # The line number where the script failed. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number def initialize(**args) update!(**args) @@ -320,7 +186,141 @@ module Google # Update properties of this object def update!(**args) - @results = args[:results] if args.key?(:results) + @function = args[:function] if args.key?(:function) + @line_number = args[:line_number] if args.key?(:line_number) + end + end + + # An object that provides information about the nature of an error in the Apps + # Script Execution API. If an + # `run` call succeeds but the + # script function (or Apps Script itself) throws an exception, the response + # body's `error` field contains a + # `Status` object. The `Status` object's `details` field + # contains an array with a single one of these `ExecutionError` objects. + class ExecutionError + include Google::Apis::Core::Hashable + + # The error type, for example `TypeError` or `ReferenceError`. If the error + # type is unavailable, this field is not included. + # Corresponds to the JSON property `errorType` + # @return [String] + attr_accessor :error_type + + # The error message thrown by Apps Script, usually localized into the user's + # language. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # An array of objects that provide a stack trace through the script to show + # where the execution failed, with the deepest call first. + # Corresponds to the JSON property `scriptStackTraceElements` + # @return [Array] + attr_accessor :script_stack_trace_elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_type = args[:error_type] if args.key?(:error_type) + @error_message = args[:error_message] if args.key?(:error_message) + @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements) + end + end + + # If a `run` call succeeds but the script function (or Apps Script itself) + # throws an exception, the response body's `error` field will contain this ` + # Status` object. + class Status + include Google::Apis::Core::Hashable + + # An array that contains a single `ExecutionError` object that provides + # information about the nature of the error. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # The status code. For this API, this value will always be 3, corresponding to + # an INVALID_ARGUMENT error. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which is in English. Any user-facing error + # message is localized and sent in the [`google.rpc.Status.details`](google.rpc. + # Status.details) field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + end + end + + # A request to run the function in a script. The script is identified by the + # specified `script_id`. Executing a function on a script returns results + # based on the implementation of the script. + class ExecutionRequest + include Google::Apis::Core::Hashable + + # If `true` and the user is an owner of the script, the script runs at the + # most recently saved version rather than the version deployed for use with + # the Execution API. Optional; default is `false`. + # Corresponds to the JSON property `devMode` + # @return [Boolean] + attr_accessor :dev_mode + alias_method :dev_mode?, :dev_mode + + # The name of the function to execute in the given script. The name does not + # include parentheses or parameters. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # The parameters to be passed to the function being executed. The object type + # for each parameter should match the expected type in Apps Script. + # Parameters cannot be Apps Script-specific object types (such as a + # `Document` or a `Calendar`); they can only be primitive types such as + # `string`, `number`, `array`, `object`, or `boolean`. Optional. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # For Android add-ons only. An ID that represents the user's current session + # in the Android app for Google Docs or Sheets, included as extra data in the + # [`Intent`](https://developer.android.com/guide/components/intents-filters.html) + # that launches the add-on. When an Android add-on is run with a session + # state, it gains the privileges of a + # [bound](https://developers.google.com/apps-script/guides/bound) script — + # that is, it can access information like the user's current cursor position + # (in Docs) or selected cell (in Sheets). To retrieve the state, call + # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`. + # Optional. + # Corresponds to the JSON property `sessionState` + # @return [String] + attr_accessor :session_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dev_mode = args[:dev_mode] if args.key?(:dev_mode) + @function = args[:function] if args.key?(:function) + @parameters = args[:parameters] if args.key?(:parameters) + @session_state = args[:session_state] if args.key?(:session_state) end end end diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb index 922bbad17..0e2bfc52b 100644 --- a/generated/google/apis/script_v1/representations.rb +++ b/generated/google/apis/script_v1/representations.rb @@ -22,30 +22,6 @@ module Google module Apis module ScriptV1 - class ScriptStackTraceElement - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExecutionError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExecutionRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class JoinAsyncRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,61 +34,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class JoinAsyncResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ScriptStackTraceElement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :line_number, as: 'lineNumber' - property :function, as: 'function' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ExecutionError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :error_type, as: 'errorType' - property :error_message, as: 'errorMessage' - end + include Google::Apis::Core::JsonObjectSupport end class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' - collection :details, as: 'details' - property :code, as: 'code' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ExecutionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :function, as: 'function' - property :dev_mode, as: 'devMode' - collection :parameters, as: 'parameters' - property :session_state, as: 'sessionState' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class JoinAsyncRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :names, as: 'names' property :timeout, as: 'timeout' property :script_id, as: 'scriptId' + collection :names, as: 'names' end end @@ -123,18 +86,6 @@ module Google end end - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation - - hash :metadata, as: 'metadata' - property :done, as: 'done' - end - end - class JoinAsyncResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -142,6 +93,55 @@ module Google end end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + hash :response, as: 'response' + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation + + hash :metadata, as: 'metadata' + end + end + + class ScriptStackTraceElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' + property :line_number, as: 'lineNumber' + end + end + + class ExecutionError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_type, as: 'errorType' + property :error_message, as: 'errorMessage' + collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation + + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :code, as: 'code' + property :message, as: 'message' + end + end + + class ExecutionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dev_mode, as: 'devMode' + property :function, as: 'function' + collection :parameters, as: 'parameters' + property :session_state, as: 'sessionState' + end + end end end end diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb index 4c9f7d998..b35bbdb0e 100644 --- a/generated/google/apis/script_v1/service.rb +++ b/generated/google/apis/script_v1/service.rb @@ -32,16 +32,16 @@ module Google # # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run class ScriptService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - # @return [String] # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user + # @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 + def initialize super('https://script.googleapis.com/', '') @batch_path = 'batch' @@ -91,8 +91,8 @@ module Google protected def apply_command_defaults(command) - command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['key'] = key unless key.nil? end end end diff --git a/generated/google/apis/searchconsole_v1.rb b/generated/google/apis/searchconsole_v1.rb index 0285b3db6..e29385241 100644 --- a/generated/google/apis/searchconsole_v1.rb +++ b/generated/google/apis/searchconsole_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/webmaster-tools/search-console-api/ module SearchconsoleV1 VERSION = 'V1' - REVISION = '20170613' + REVISION = '20170711' end end end diff --git a/generated/google/apis/searchconsole_v1/classes.rb b/generated/google/apis/searchconsole_v1/classes.rb index eb4792b0e..3bb7042cf 100644 --- a/generated/google/apis/searchconsole_v1/classes.rb +++ b/generated/google/apis/searchconsole_v1/classes.rb @@ -179,25 +179,25 @@ module Google class RunMobileFriendlyTestRequest include Google::Apis::Core::Hashable - # URL for inspection. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - # Whether or not screenshot is requested. Default is false. # Corresponds to the JSON property `requestScreenshot` # @return [Boolean] attr_accessor :request_screenshot alias_method :request_screenshot?, :request_screenshot + # URL for inspection. + # 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) - @url = args[:url] if args.key?(:url) @request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot) + @url = args[:url] if args.key?(:url) end end end diff --git a/generated/google/apis/searchconsole_v1/representations.rb b/generated/google/apis/searchconsole_v1/representations.rb index 1a4d6065c..b400b15e2 100644 --- a/generated/google/apis/searchconsole_v1/representations.rb +++ b/generated/google/apis/searchconsole_v1/representations.rb @@ -120,8 +120,8 @@ module Google class RunMobileFriendlyTestRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' property :request_screenshot, as: 'requestScreenshot' + property :url, as: 'url' end end end diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 247bf6ce2..96a67ec76 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20170605' + REVISION = '20170626' # Manage your Google Service Control data AUTH_SERVICECONTROL = 'https://www.googleapis.com/auth/servicecontrol' diff --git a/generated/google/apis/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index 93fb22c6d..af38b8903 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -22,1088 +22,10 @@ module Google module Apis module ServicecontrolV1 - # Metadata about the request. - class RequestMetadata - include Google::Apis::Core::Hashable - - # The user agent of the caller. - # This information is not authenticated and should be treated accordingly. - # For example: - # + `google-api-python-client/1.4.0`: - # The request was made by the Google API client for Python. - # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: - # The request was made by the Google Cloud SDK CLI (gcloud). - # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project` - # : - # The request was made from the `my-project` App Engine app. - # NOLINT - # Corresponds to the JSON property `callerSuppliedUserAgent` - # @return [String] - attr_accessor :caller_supplied_user_agent - - # The IP address of the caller. - # Corresponds to the JSON property `callerIp` - # @return [String] - attr_accessor :caller_ip - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent) - @caller_ip = args[:caller_ip] if args.key?(:caller_ip) - end - end - - # - class QuotaError - include Google::Apis::Core::Hashable - - # Free-form text that provides details on the cause of the error. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Subject to whom this error applies. See the specific enum for more details - # on this field. For example, "clientip:" or - # "project:". - # Corresponds to the JSON property `subject` - # @return [String] - attr_accessor :subject - - # Error code. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @subject = args[:subject] if args.key?(:subject) - @code = args[:code] if args.key?(:code) - end - end - - # - class CheckInfo - include Google::Apis::Core::Hashable - - # A list of fields and label keys that are ignored by the server. - # The client doesn't need to send them for following requests to improve - # performance and allow better aggregation. - # Corresponds to the JSON property `unusedArguments` - # @return [Array] - attr_accessor :unused_arguments - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments) - end - end - - # Request message for the AllocateQuota method. - class AllocateQuotaRequest - include Google::Apis::Core::Hashable - - # Specifies which version of service configuration should be used to process - # the request. If unspecified or no matching version can be found, the latest - # one will be used. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Represents information regarding a quota operation. - # Corresponds to the JSON property `allocateOperation` - # @return [Google::Apis::ServicecontrolV1::QuotaOperation] - attr_accessor :allocate_operation - - # Allocation mode for this operation. - # Deprecated: use QuotaMode inside the QuotaOperation. - # Corresponds to the JSON property `allocationMode` - # @return [String] - attr_accessor :allocation_mode - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation) - @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode) - end - end - - # Response message for the ReleaseQuota method. - class ReleaseQuotaResponse - include Google::Apis::Core::Hashable - - # Quota metrics to indicate the result of release. Depending on the - # request, one or more of the following metrics will be included: - # 1. For rate quota, per quota group or per quota metric released amount - # will be specified using the following delta metric: - # "serviceruntime.googleapis.com/api/consumer/quota_refund_count" - # 2. For allocation quota, per quota metric total usage will be specified - # using the following gauge metric: - # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" - # 3. For allocation quota, value for each quota limit associated with - # the metrics will be specified using the following gauge metric: - # "serviceruntime.googleapis.com/quota/limit" - # Corresponds to the JSON property `quotaMetrics` - # @return [Array] - attr_accessor :quota_metrics - - # The same operation_id value used in the ReleaseQuotaRequest. Used for - # logging and diagnostics purposes. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # ID of the actual config used to process the request. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Indicates the decision of the release. - # Corresponds to the JSON property `releaseErrors` - # @return [Array] - attr_accessor :release_errors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @release_errors = args[:release_errors] if args.key?(:release_errors) - end - end - - # Represents a set of metric values in the same metric. - # Each metric value in the set should have a unique combination of start time, - # end time, and label values. - class MetricValueSet - include Google::Apis::Core::Hashable - - # The metric name defined in the service configuration. - # Corresponds to the JSON property `metricName` - # @return [String] - attr_accessor :metric_name - - # The values in this metric. - # Corresponds to the JSON property `metricValues` - # @return [Array] - attr_accessor :metric_values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric_name = args[:metric_name] if args.key?(:metric_name) - @metric_values = args[:metric_values] if args.key?(:metric_values) - end - end - - # Represents the processing error of one `Operation` in the request. - class ReportError - include Google::Apis::Core::Hashable - - # The Operation.operation_id value from the request. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # 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` that 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. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `status` - # @return [Google::Apis::ServicecontrolV1::Status] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @status = args[:status] if args.key?(:status) - end - end - - # - class StartReconciliationRequest - include Google::Apis::Core::Hashable - - # Specifies which version of service configuration should be used to process - # the request. If unspecified or no matching version can be found, the latest - # one will be used. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Represents information regarding a quota operation. - # Corresponds to the JSON property `reconciliationOperation` - # @return [Google::Apis::ServicecontrolV1::QuotaOperation] - attr_accessor :reconciliation_operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation) - end - end - - # Defines the errors to be returned in - # google.api.servicecontrol.v1.CheckResponse.check_errors. - class CheckError - include Google::Apis::Core::Hashable - - # The error code. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Free-form text providing details on the error cause of the error. - # Corresponds to the JSON property `detail` - # @return [String] - attr_accessor :detail - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @detail = args[:detail] if args.key?(:detail) - end - end - - # Contains the quota information for a quota check response. - class QuotaInfo - include Google::Apis::Core::Hashable - - # Quota Metrics that have exceeded quota limits. - # For QuotaGroup-based quota, this is QuotaGroup.name - # For QuotaLimit-based quota, this is QuotaLimit.name - # See: google.api.Quota - # Deprecated: Use quota_metrics to get per quota group limit exceeded status. - # Corresponds to the JSON property `limitExceeded` - # @return [Array] - attr_accessor :limit_exceeded - - # Map of quota group name to the actual number of tokens consumed. If the - # quota check was not successful, then this will not be populated due to no - # quota consumption. - # Deprecated: Use quota_metrics to get per quota group usage. - # Corresponds to the JSON property `quotaConsumed` - # @return [Hash] - attr_accessor :quota_consumed - - # Quota metrics to indicate the usage. Depending on the check request, one or - # more of the following metrics will be included: - # 1. For rate quota, per quota group or per quota metric incremental usage - # will be specified using the following delta metric: - # "serviceruntime.googleapis.com/api/consumer/quota_used_count" - # 2. For allocation quota, per quota metric total usage will be specified - # using the following gauge metric: - # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" - # 3. For both rate quota and allocation quota, the quota limit reached - # condition will be specified using the following boolean metric: - # "serviceruntime.googleapis.com/quota/exceeded" - # Corresponds to the JSON property `quotaMetrics` - # @return [Array] - attr_accessor :quota_metrics - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded) - @quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed) - @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) - end - end - - # Request message for the Check method. - class CheckRequest - include Google::Apis::Core::Hashable - - # Requests the project settings to be returned as part of the check response. - # Corresponds to the JSON property `requestProjectSettings` - # @return [Boolean] - attr_accessor :request_project_settings - alias_method :request_project_settings?, :request_project_settings - - # Represents information regarding an operation. - # Corresponds to the JSON property `operation` - # @return [Google::Apis::ServicecontrolV1::Operation] - attr_accessor :operation - - # Specifies which version of service configuration should be used to process - # the request. - # If unspecified or no matching version can be found, the - # latest one will be used. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Indicates if service activation check should be skipped for this request. - # Default behavior is to perform the check and apply relevant quota. - # Corresponds to the JSON property `skipActivationCheck` - # @return [Boolean] - attr_accessor :skip_activation_check - alias_method :skip_activation_check?, :skip_activation_check - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings) - @operation = args[:operation] if args.key?(:operation) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check) - end - end - - # Represents information regarding a quota operation. - class QuotaOperation - include Google::Apis::Core::Hashable - - # Labels describing the operation. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # Identity of the consumer for whom this quota operation is being performed. - # This can be in one of the following formats: - # project:, - # project_number:, - # api_key:. - # Corresponds to the JSON property `consumerId` - # @return [String] - attr_accessor :consumer_id - - # Identity of the operation. This must be unique within the scope of the - # service that generated the operation. If the service calls AllocateQuota - # and ReleaseQuota on the same operation, the two calls should carry the - # same ID. - # UUID version 4 is recommended, though not required. In scenarios where an - # operation is computed from existing information and an idempotent id is - # desirable for deduplication purpose, UUID version 5 is recommended. See - # RFC 4122 for details. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # Fully qualified name of the API method for which this quota operation is - # requested. This name is used for matching quota rules or metric rules and - # billing status rules defined in service configuration. This field is not - # required if the quota operation is performed on non-API resources. - # Example of an RPC method name: - # google.example.library.v1.LibraryService.CreateShelf - # Corresponds to the JSON property `methodName` - # @return [String] - attr_accessor :method_name - - # Quota mode for this operation. - # Corresponds to the JSON property `quotaMode` - # @return [String] - attr_accessor :quota_mode - - # Represents information about this operation. Each MetricValueSet - # corresponds to a metric defined in the service configuration. - # The data type used in the MetricValueSet must agree with - # the data type specified in the metric definition. - # Within a single operation, it is not allowed to have more than one - # MetricValue instances that have the same metric names and identical - # label value combinations. If a request has such duplicated MetricValue - # instances, the entire request is rejected with - # an invalid argument error. - # Corresponds to the JSON property `quotaMetrics` - # @return [Array] - attr_accessor :quota_metrics - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @consumer_id = args[:consumer_id] if args.key?(:consumer_id) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @method_name = args[:method_name] if args.key?(:method_name) - @quota_mode = args[:quota_mode] if args.key?(:quota_mode) - @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) - end - end - - # - class EndReconciliationRequest - include Google::Apis::Core::Hashable - - # Represents information regarding a quota operation. - # Corresponds to the JSON property `reconciliationOperation` - # @return [Google::Apis::ServicecontrolV1::QuotaOperation] - attr_accessor :reconciliation_operation - - # Specifies which version of service configuration should be used to process - # the request. If unspecified or no matching version can be found, the latest - # one will be used. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - end - end - - # - class ReportInfo - include Google::Apis::Core::Hashable - - # The Operation.operation_id value from the request. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # Contains the quota information for a quota check response. - # Corresponds to the JSON property `quotaInfo` - # @return [Google::Apis::ServicecontrolV1::QuotaInfo] - attr_accessor :quota_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @quota_info = args[:quota_info] if args.key?(:quota_info) - end - end - - # Response message for the Report method. - class ReportResponse - include Google::Apis::Core::Hashable - - # Partial failures, one for each `Operation` in the request that failed - # processing. There are three possible combinations of the RPC status: - # 1. The combination of a successful RPC status and an empty `report_errors` - # list indicates a complete success where all `Operations` in the - # request are processed successfully. - # 2. The combination of a successful RPC status and a non-empty - # `report_errors` list indicates a partial success where some - # `Operations` in the request succeeded. Each - # `Operation` that failed processing has a corresponding item - # in this list. - # 3. A failed RPC status indicates a general non-deterministic failure. - # When this happens, it's impossible to know which of the - # 'Operations' in the request succeeded or failed. - # Corresponds to the JSON property `reportErrors` - # @return [Array] - attr_accessor :report_errors - - # Quota usage for each quota release `Operation` request. - # Fully or partially failed quota release request may or may not be present - # in `report_quota_info`. For example, a failed quota release request will - # have the current quota usage info when precise quota library returns the - # info. A deadline exceeded quota request will not have quota usage info. - # If there is no quota release request, report_quota_info will be empty. - # Corresponds to the JSON property `reportInfos` - # @return [Array] - attr_accessor :report_infos - - # The actual config id used to process the request. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @report_errors = args[:report_errors] if args.key?(:report_errors) - @report_infos = args[:report_infos] if args.key?(:report_infos) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - end - end - - # Represents information regarding an operation. - class Operation - include Google::Apis::Core::Hashable - - # Represents information about this operation. Each MetricValueSet - # corresponds to a metric defined in the service configuration. - # The data type used in the MetricValueSet must agree with - # the data type specified in the metric definition. - # Within a single operation, it is not allowed to have more than one - # MetricValue instances that have the same metric names and identical - # label value combinations. If a request has such duplicated MetricValue - # instances, the entire request is rejected with - # an invalid argument error. - # Corresponds to the JSON property `metricValueSets` - # @return [Array] - attr_accessor :metric_value_sets - - # Represents the properties needed for quota operations. - # Corresponds to the JSON property `quotaProperties` - # @return [Google::Apis::ServicecontrolV1::QuotaProperties] - attr_accessor :quota_properties - - # Identity of the consumer who is using the service. - # This field should be filled in for the operations initiated by a - # consumer, but not for service-initiated operations that are - # not related to a specific consumer. - # This can be in one of the following formats: - # project:, - # project_number:, - # api_key:. - # Corresponds to the JSON property `consumerId` - # @return [String] - attr_accessor :consumer_id - - # Identity of the operation. This must be unique within the scope of the - # service that generated the operation. If the service calls - # Check() and Report() on the same operation, the two calls should carry - # the same id. - # UUID version 4 is recommended, though not required. - # In scenarios where an operation is computed from existing information - # and an idempotent id is desirable for deduplication purpose, UUID version 5 - # is recommended. See RFC 4122 for details. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # Fully qualified name of the operation. Reserved for future use. - # Corresponds to the JSON property `operationName` - # @return [String] - attr_accessor :operation_name - - # End time of the operation. - # Required when the operation is used in ServiceController.Report, - # but optional when the operation is used in ServiceController.Check. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Required. Start time of the operation. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # DO NOT USE. This is an experimental field. - # Corresponds to the JSON property `importance` - # @return [String] - attr_accessor :importance - - # The resource name of the parent of a resource in the resource hierarchy. - # This can be in one of the following formats: - # - “projects/” - # - “folders/” - # - “organizations/” - # Corresponds to the JSON property `resourceContainer` - # @return [String] - attr_accessor :resource_container - - # Labels describing the operation. Only the following labels are allowed: - # - Labels describing monitored resources as defined in - # the service configuration. - # - Default labels of metric values. When specified, labels defined in the - # metric value override these default. - # - The following labels defined by Google Cloud Platform: - # - `cloud.googleapis.com/location` describing the location where the - # operation happened, - # - `servicecontrol.googleapis.com/user_agent` describing the user agent - # of the API request, - # - `servicecontrol.googleapis.com/service_agent` describing the service - # used to handle the API request (e.g. ESP), - # - `servicecontrol.googleapis.com/platform` describing the platform - # where the API is served (e.g. GAE, GCE, GKE). - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # Represents information to be logged. - # Corresponds to the JSON property `logEntries` - # @return [Array] - attr_accessor :log_entries - - # User defined labels for the resource that this operation is associated - # with. - # Corresponds to the JSON property `userLabels` - # @return [Hash] - attr_accessor :user_labels - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets) - @quota_properties = args[:quota_properties] if args.key?(:quota_properties) - @consumer_id = args[:consumer_id] if args.key?(:consumer_id) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @operation_name = args[:operation_name] if args.key?(:operation_name) - @end_time = args[:end_time] if args.key?(:end_time) - @start_time = args[:start_time] if args.key?(:start_time) - @importance = args[:importance] if args.key?(:importance) - @resource_container = args[:resource_container] if args.key?(:resource_container) - @labels = args[:labels] if args.key?(:labels) - @log_entries = args[:log_entries] if args.key?(:log_entries) - @user_labels = args[:user_labels] if args.key?(:user_labels) - end - end - - # Response message for the Check method. - class CheckResponse - include Google::Apis::Core::Hashable - - # Feedback data returned from the server during processing a Check request. - # Corresponds to the JSON property `checkInfo` - # @return [Google::Apis::ServicecontrolV1::CheckInfo] - attr_accessor :check_info - - # Indicate the decision of the check. - # If no check errors are present, the service should process the operation. - # Otherwise the service should use the list of errors to determine the - # appropriate action. - # Corresponds to the JSON property `checkErrors` - # @return [Array] - attr_accessor :check_errors - - # The same operation_id value used in the CheckRequest. - # Used for logging and diagnostics purposes. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # The actual config id used to process the request. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Contains the quota information for a quota check response. - # Corresponds to the JSON property `quotaInfo` - # @return [Google::Apis::ServicecontrolV1::QuotaInfo] - attr_accessor :quota_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @check_info = args[:check_info] if args.key?(:check_info) - @check_errors = args[:check_errors] if args.key?(:check_errors) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @quota_info = args[:quota_info] if args.key?(:quota_info) - 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` that 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. - # - 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 - - # 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 - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @message = args[:message] if args.key?(:message) - @details = args[:details] if args.key?(:details) - @code = args[:code] if args.key?(:code) - end - end - - # Request message for the Report method. - class ReportRequest - include Google::Apis::Core::Hashable - - # Specifies which version of service config should be used to process the - # request. - # If unspecified or no matching version can be found, the - # latest one will be used. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - - # Operations to be reported. - # Typically the service should report one operation per request. - # Putting multiple operations into a single request is allowed, but should - # be used only when multiple operations are natually available at the time - # of the report. - # If multiple operations are in a single request, the total request size - # should be no larger than 1MB. See ReportResponse.report_errors for - # partial failure behavior. - # 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) - @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @operations = args[:operations] if args.key?(:operations) - end - end - - # Common audit log format for Google Cloud Platform API operations. - class AuditLog - include Google::Apis::Core::Hashable - - # Authorization information. If there are multiple - # resources or permissions involved, then there is - # one AuthorizationInfo element for each `resource, permission` tuple. - # Corresponds to the JSON property `authorizationInfo` - # @return [Array] - attr_accessor :authorization_info - - # The resource or collection that is the target of the operation. - # The name is a scheme-less URI, not including the API service name. - # For example: - # "shelves/SHELF_ID/books" - # "shelves/SHELF_ID/books/BOOK_ID" - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - # The operation request. This may not include all request parameters, - # such as those that are too large, privacy-sensitive, or duplicated - # elsewhere in the log record. - # It should never include user-generated data, such as file contents. - # When the JSON object represented here has a proto equivalent, the proto - # name will be indicated in the `@type` property. - # Corresponds to the JSON property `request` - # @return [Hash] - attr_accessor :request - - # Other service-specific data about the request, response, and other - # activities. - # Corresponds to the JSON property `serviceData` - # @return [Hash] - attr_accessor :service_data - - # Metadata about the request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::ServicecontrolV1::RequestMetadata] - attr_accessor :request_metadata - - # The number of items returned from a List or Query API method, - # if applicable. - # Corresponds to the JSON property `numResponseItems` - # @return [Fixnum] - attr_accessor :num_response_items - - # Authentication information for the operation. - # Corresponds to the JSON property `authenticationInfo` - # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo] - attr_accessor :authentication_info - - # 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` that 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. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `status` - # @return [Google::Apis::ServicecontrolV1::Status] - attr_accessor :status - - # The operation response. This may not include all response elements, - # such as those that are too large, privacy-sensitive, or duplicated - # elsewhere in the log record. - # It should never include user-generated data, such as file contents. - # When the JSON object represented here has a proto equivalent, the proto - # name will be indicated in the `@type` property. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - # The name of the API service performing the operation. For example, - # `"datastore.googleapis.com"`. - # Corresponds to the JSON property `serviceName` - # @return [String] - attr_accessor :service_name - - # The name of the service method or operation. - # For API calls, this should be the name of the API method. - # For example, - # "google.datastore.v1.Datastore.RunQuery" - # "google.logging.v1.LoggingService.DeleteLog" - # Corresponds to the JSON property `methodName` - # @return [String] - attr_accessor :method_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @authorization_info = args[:authorization_info] if args.key?(:authorization_info) - @resource_name = args[:resource_name] if args.key?(:resource_name) - @request = args[:request] if args.key?(:request) - @service_data = args[:service_data] if args.key?(:service_data) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @num_response_items = args[:num_response_items] if args.key?(:num_response_items) - @authentication_info = args[:authentication_info] if args.key?(:authentication_info) - @status = args[:status] if args.key?(:status) - @response = args[:response] if args.key?(:response) - @service_name = args[:service_name] if args.key?(:service_name) - @method_name = args[:method_name] if args.key?(:method_name) - end - end - - # An individual log entry. - class LogEntry - include Google::Apis::Core::Hashable - - # 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 - - # The severity of the log entry. The default value is - # `LogSeverity.DEFAULT`. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - # Required. The log to which this log entry belongs. Examples: `"syslog"`, - # `"book_log"`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A unique ID for the log entry used for deduplication. If omitted, - # the implementation will generate one based on operation_id. - # Corresponds to the JSON property `insertId` - # @return [String] - attr_accessor :insert_id - - # The log entry payload, represented as a structure that - # is expressed as a JSON object. - # Corresponds to the JSON property `structPayload` - # @return [Hash] - attr_accessor :struct_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 protocol buffer that is - # expressed as a JSON object. You can only pass `protoPayload` - # values that belong to a set of approved types. - # Corresponds to the JSON property `protoPayload` - # @return [Hash] - attr_accessor :proto_payload - - # The time the event described by the log entry occurred. If - # omitted, defaults to operation start time. - # Corresponds to the JSON property `timestamp` - # @return [String] - attr_accessor :timestamp - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @severity = args[:severity] if args.key?(:severity) - @name = args[:name] if args.key?(:name) - @insert_id = args[:insert_id] if args.key?(:insert_id) - @struct_payload = args[:struct_payload] if args.key?(:struct_payload) - @text_payload = args[:text_payload] if args.key?(:text_payload) - @proto_payload = args[:proto_payload] if args.key?(:proto_payload) - @timestamp = args[:timestamp] if args.key?(:timestamp) - end - end - # Represents a single metric value. class MetricValue include Google::Apis::Core::Hashable - # A double precision floating point value. - # Corresponds to the JSON property `doubleValue` - # @return [Float] - attr_accessor :double_value - - # A signed 64-bit integer value. - # Corresponds to the JSON property `int64Value` - # @return [Fixnum] - attr_accessor :int64_value - # Distribution represents a frequency distribution of double-valued sample # points. It contains the size of the population of sample points plus # additional optional information: @@ -1140,11 +62,6 @@ module Google # @return [Google::Apis::ServicecontrolV1::Money] attr_accessor :money_value - # A text string value. - # Corresponds to the JSON property `stringValue` - # @return [String] - attr_accessor :string_value - # The labels describing the metric value. # See comments on google.api.servicecontrol.v1.Operation.labels for # the overriding relationship. @@ -1152,21 +69,36 @@ module Google # @return [Hash] attr_accessor :labels + # A text string value. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + # A double precision floating point value. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # A signed 64-bit integer value. + # Corresponds to the JSON property `int64Value` + # @return [Fixnum] + attr_accessor :int64_value + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @double_value = args[:double_value] if args.key?(:double_value) - @int64_value = args[:int64_value] if args.key?(:int64_value) @distribution_value = args[:distribution_value] if args.key?(:distribution_value) @bool_value = args[:bool_value] if args.key?(:bool_value) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @money_value = args[:money_value] if args.key?(:money_value) - @string_value = args[:string_value] if args.key?(:string_value) @labels = args[:labels] if args.key?(:labels) + @string_value = args[:string_value] if args.key?(:string_value) + @double_value = args[:double_value] if args.key?(:double_value) + @int64_value = args[:int64_value] if args.key?(:int64_value) end end @@ -1174,22 +106,6 @@ module Google class EndReconciliationResponse include Google::Apis::Core::Hashable - # Indicates the decision of the reconciliation end. - # Corresponds to the JSON property `reconciliationErrors` - # @return [Array] - attr_accessor :reconciliation_errors - - # The same operation_id value used in the EndReconciliationRequest. Used for - # logging and diagnostics purposes. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # ID of the actual config used to process the request. - # Corresponds to the JSON property `serviceConfigId` - # @return [String] - attr_accessor :service_config_id - # Metric values as tracked by One Platform before the adjustment was made. # The following metrics will be included: # 1. Per quota metric total usage will be specified using the following gauge @@ -1211,16 +127,32 @@ module Google # @return [Array] attr_accessor :quota_metrics + # Indicates the decision of the reconciliation end. + # Corresponds to the JSON property `reconciliationErrors` + # @return [Array] + attr_accessor :reconciliation_errors + + # The same operation_id value used in the EndReconciliationRequest. Used for + # logging and diagnostics purposes. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # ID of the actual config used to process the request. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors) @operation_id = args[:operation_id] if args.key?(:operation_id) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) end end @@ -1228,6 +160,11 @@ module Google class Money include Google::Apis::Core::Hashable + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + # Number of nano (10^-9) units of the amount. # The value must be between -999,999,999 and +999,999,999 inclusive. # If `units` is positive, `nanos` must be positive or zero. @@ -1244,10 +181,84 @@ module Google # @return [Fixnum] attr_accessor :units - # The 3-letter currency code defined in ISO 4217. - # Corresponds to the JSON property `currencyCode` - # @return [String] - attr_accessor :currency_code + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + + # Distribution represents a frequency distribution of double-valued sample + # points. It contains the size of the population of sample points plus + # additional optional information: + # - the arithmetic mean of the samples + # - the minimum and maximum of the samples + # - the sum-squared-deviation of the samples, used to compute variance + # - a histogram of the values of the sample points + class Distribution + include Google::Apis::Core::Hashable + + # The total number of samples in the distribution. Must be >= 0. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # The arithmetic mean of the samples in the distribution. If `count` is + # zero then this field must be zero. + # Corresponds to the JSON property `mean` + # @return [Float] + attr_accessor :mean + + # The number of samples in each histogram bucket. `bucket_counts` are + # optional. If present, they must sum to the `count` value. + # The buckets are defined below in `bucket_option`. There are N buckets. + # `bucket_counts[0]` is the number of samples in the underflow bucket. + # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples + # in each of the finite buckets. And `bucket_counts[N] is the number + # of samples in the overflow bucket. See the comments of `bucket_option` + # below for more details. + # Any suffix of trailing zeros may be omitted. + # Corresponds to the JSON property `bucketCounts` + # @return [Array] + attr_accessor :bucket_counts + + # Describing buckets with arbitrary user-provided width. + # Corresponds to the JSON property `explicitBuckets` + # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets] + attr_accessor :explicit_buckets + + # The maximum of the population of values. Ignored if `count` is zero. + # Corresponds to the JSON property `maximum` + # @return [Float] + attr_accessor :maximum + + # The sum of squared deviations from the mean: + # Sum[i=1..count]((x_i - mean)^2) + # where each x_i is a sample values. If `count` is zero then this field + # must be zero, otherwise validation of the request fails. + # Corresponds to the JSON property `sumOfSquaredDeviation` + # @return [Float] + attr_accessor :sum_of_squared_deviation + + # Describing buckets with exponentially growing width. + # Corresponds to the JSON property `exponentialBuckets` + # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets] + attr_accessor :exponential_buckets + + # The minimum of the population of values. Ignored if `count` is zero. + # Corresponds to the JSON property `minimum` + # @return [Float] + attr_accessor :minimum + + # Describing buckets with constant width. + # Corresponds to the JSON property `linearBuckets` + # @return [Google::Apis::ServicecontrolV1::LinearBuckets] + attr_accessor :linear_buckets def initialize(**args) update!(**args) @@ -1255,9 +266,15 @@ module Google # Update properties of this object def update!(**args) - @nanos = args[:nanos] if args.key?(:nanos) - @units = args[:units] if args.key?(:units) - @currency_code = args[:currency_code] if args.key?(:currency_code) + @count = args[:count] if args.key?(:count) + @mean = args[:mean] if args.key?(:mean) + @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts) + @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) + @maximum = args[:maximum] if args.key?(:maximum) + @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation) + @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) + @minimum = args[:minimum] if args.key?(:minimum) + @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) end end @@ -1292,91 +309,6 @@ module Google end end - # Distribution represents a frequency distribution of double-valued sample - # points. It contains the size of the population of sample points plus - # additional optional information: - # - the arithmetic mean of the samples - # - the minimum and maximum of the samples - # - the sum-squared-deviation of the samples, used to compute variance - # - a histogram of the values of the sample points - class Distribution - include Google::Apis::Core::Hashable - - # The maximum of the population of values. Ignored if `count` is zero. - # Corresponds to the JSON property `maximum` - # @return [Float] - attr_accessor :maximum - - # The sum of squared deviations from the mean: - # Sum[i=1..count]((x_i - mean)^2) - # where each x_i is a sample values. If `count` is zero then this field - # must be zero, otherwise validation of the request fails. - # Corresponds to the JSON property `sumOfSquaredDeviation` - # @return [Float] - attr_accessor :sum_of_squared_deviation - - # Describing buckets with exponentially growing width. - # Corresponds to the JSON property `exponentialBuckets` - # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets] - attr_accessor :exponential_buckets - - # Describing buckets with constant width. - # Corresponds to the JSON property `linearBuckets` - # @return [Google::Apis::ServicecontrolV1::LinearBuckets] - attr_accessor :linear_buckets - - # The minimum of the population of values. Ignored if `count` is zero. - # Corresponds to the JSON property `minimum` - # @return [Float] - attr_accessor :minimum - - # The total number of samples in the distribution. Must be >= 0. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - # The arithmetic mean of the samples in the distribution. If `count` is - # zero then this field must be zero. - # Corresponds to the JSON property `mean` - # @return [Float] - attr_accessor :mean - - # The number of samples in each histogram bucket. `bucket_counts` are - # optional. If present, they must sum to the `count` value. - # The buckets are defined below in `bucket_option`. There are N buckets. - # `bucket_counts[0]` is the number of samples in the underflow bucket. - # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples - # in each of the finite buckets. And `bucket_counts[N] is the number - # of samples in the overflow bucket. See the comments of `bucket_option` - # below for more details. - # Any suffix of trailing zeros may be omitted. - # Corresponds to the JSON property `bucketCounts` - # @return [Array] - attr_accessor :bucket_counts - - # Describing buckets with arbitrary user-provided width. - # Corresponds to the JSON property `explicitBuckets` - # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets] - attr_accessor :explicit_buckets - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @maximum = args[:maximum] if args.key?(:maximum) - @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation) - @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets) - @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets) - @minimum = args[:minimum] if args.key?(:minimum) - @count = args[:count] if args.key?(:count) - @mean = args[:mean] if args.key?(:mean) - @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts) - @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets) - end - end - # Describing buckets with exponentially growing width. class ExponentialBuckets include Google::Apis::Core::Hashable @@ -1420,6 +352,11 @@ module Google class AuthorizationInfo include Google::Apis::Core::Hashable + # The required IAM permission. + # Corresponds to the JSON property `permission` + # @return [String] + attr_accessor :permission + # The resource being accessed, as a REST-style string. For example: # bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID # Corresponds to the JSON property `resource` @@ -1433,20 +370,15 @@ module Google attr_accessor :granted alias_method :granted?, :granted - # The required IAM permission. - # Corresponds to the JSON property `permission` - # @return [String] - attr_accessor :permission - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @permission = args[:permission] if args.key?(:permission) @resource = args[:resource] if args.key?(:resource) @granted = args[:granted] if args.key?(:granted) - @permission = args[:permission] if args.key?(:permission) end end @@ -1534,13 +466,6 @@ module Google class LinearBuckets include Google::Apis::Core::Hashable - # The number of finite buckets. With the underflow and overflow buckets, - # the total number of buckets is `num_finite_buckets` + 2. - # See comments on `bucket_options` for details. - # Corresponds to the JSON property `numFiniteBuckets` - # @return [Fixnum] - attr_accessor :num_finite_buckets - # The i'th linear bucket covers the interval # [offset + (i-1) * width, offset + i * width) # where i ranges from 1 to num_finite_buckets, inclusive. @@ -1556,15 +481,22 @@ module Google # @return [Float] attr_accessor :offset + # The number of finite buckets. With the underflow and overflow buckets, + # the total number of buckets is `num_finite_buckets` + 2. + # See comments on `bucket_options` for details. + # Corresponds to the JSON property `numFiniteBuckets` + # @return [Fixnum] + attr_accessor :num_finite_buckets + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) @width = args[:width] if args.key?(:width) @offset = args[:offset] if args.key?(:offset) + @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) end end @@ -1598,6 +530,11 @@ module Google class AllocateQuotaResponse include Google::Apis::Core::Hashable + # Indicates the decision of the allocate. + # Corresponds to the JSON property `allocateErrors` + # @return [Array] + attr_accessor :allocate_errors + # Quota metrics to indicate the result of allocation. Depending on the # request, one or more of the following metrics will be included: # 1. For rate quota, per quota group or per quota metric incremental usage @@ -1627,21 +564,16 @@ module Google # @return [String] attr_accessor :service_config_id - # Indicates the decision of the allocate. - # Corresponds to the JSON property `allocateErrors` - # @return [Array] - attr_accessor :allocate_errors - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors) @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) @operation_id = args[:operation_id] if args.key?(:operation_id) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) - @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors) end end @@ -1671,6 +603,1074 @@ module Google @release_operation = args[:release_operation] if args.key?(:release_operation) end end + + # + class QuotaError + include Google::Apis::Core::Hashable + + # Free-form text that provides details on the cause of the error. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Subject to whom this error applies. See the specific enum for more details + # on this field. For example, "clientip:" or + # "project:". + # Corresponds to the JSON property `subject` + # @return [String] + attr_accessor :subject + + # Error code. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @subject = args[:subject] if args.key?(:subject) + @code = args[:code] if args.key?(:code) + end + end + + # Metadata about the request. + class RequestMetadata + include Google::Apis::Core::Hashable + + # The IP address of the caller. + # Corresponds to the JSON property `callerIp` + # @return [String] + attr_accessor :caller_ip + + # The user agent of the caller. + # This information is not authenticated and should be treated accordingly. + # For example: + # + `google-api-python-client/1.4.0`: + # The request was made by the Google API client for Python. + # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + # The request was made by the Google Cloud SDK CLI (gcloud). + # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project` + # : + # The request was made from the `my-project` App Engine app. + # NOLINT + # Corresponds to the JSON property `callerSuppliedUserAgent` + # @return [String] + attr_accessor :caller_supplied_user_agent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @caller_ip = args[:caller_ip] if args.key?(:caller_ip) + @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent) + end + end + + # + class CheckInfo + include Google::Apis::Core::Hashable + + # A list of fields and label keys that are ignored by the server. + # The client doesn't need to send them for following requests to improve + # performance and allow better aggregation. + # Corresponds to the JSON property `unusedArguments` + # @return [Array] + attr_accessor :unused_arguments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments) + end + end + + # Response message for the ReleaseQuota method. + class ReleaseQuotaResponse + include Google::Apis::Core::Hashable + + # Indicates the decision of the release. + # Corresponds to the JSON property `releaseErrors` + # @return [Array] + attr_accessor :release_errors + + # Quota metrics to indicate the result of release. Depending on the + # request, one or more of the following metrics will be included: + # 1. For rate quota, per quota group or per quota metric released amount + # will be specified using the following delta metric: + # "serviceruntime.googleapis.com/api/consumer/quota_refund_count" + # 2. For allocation quota, per quota metric total usage will be specified + # using the following gauge metric: + # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" + # 3. For allocation quota, value for each quota limit associated with + # the metrics will be specified using the following gauge metric: + # "serviceruntime.googleapis.com/quota/limit" + # Corresponds to the JSON property `quotaMetrics` + # @return [Array] + attr_accessor :quota_metrics + + # The same operation_id value used in the ReleaseQuotaRequest. Used for + # logging and diagnostics purposes. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # ID of the actual config used to process the request. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @release_errors = args[:release_errors] if args.key?(:release_errors) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + end + end + + # Request message for the AllocateQuota method. + class AllocateQuotaRequest + include Google::Apis::Core::Hashable + + # Specifies which version of service configuration should be used to process + # the request. If unspecified or no matching version can be found, the latest + # one will be used. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + # Represents information regarding a quota operation. + # Corresponds to the JSON property `allocateOperation` + # @return [Google::Apis::ServicecontrolV1::QuotaOperation] + attr_accessor :allocate_operation + + # Allocation mode for this operation. + # Deprecated: use QuotaMode inside the QuotaOperation. + # Corresponds to the JSON property `allocationMode` + # @return [String] + attr_accessor :allocation_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation) + @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode) + end + end + + # Represents a set of metric values in the same metric. + # Each metric value in the set should have a unique combination of start time, + # end time, and label values. + class MetricValueSet + include Google::Apis::Core::Hashable + + # The values in this metric. + # Corresponds to the JSON property `metricValues` + # @return [Array] + attr_accessor :metric_values + + # The metric name defined in the service configuration. + # Corresponds to the JSON property `metricName` + # @return [String] + attr_accessor :metric_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric_values = args[:metric_values] if args.key?(:metric_values) + @metric_name = args[:metric_name] if args.key?(:metric_name) + end + end + + # Represents the processing error of one `Operation` in the request. + class ReportError + 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` that 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. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ServicecontrolV1::Status] + attr_accessor :status + + # The Operation.operation_id value from the request. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @operation_id = args[:operation_id] if args.key?(:operation_id) + end + end + + # + class StartReconciliationRequest + include Google::Apis::Core::Hashable + + # Represents information regarding a quota operation. + # Corresponds to the JSON property `reconciliationOperation` + # @return [Google::Apis::ServicecontrolV1::QuotaOperation] + attr_accessor :reconciliation_operation + + # Specifies which version of service configuration should be used to process + # the request. If unspecified or no matching version can be found, the latest + # one will be used. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + end + end + + # Defines the errors to be returned in + # google.api.servicecontrol.v1.CheckResponse.check_errors. + class CheckError + include Google::Apis::Core::Hashable + + # Free-form text providing details on the error cause of the error. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The error code. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detail = args[:detail] if args.key?(:detail) + @code = args[:code] if args.key?(:code) + end + end + + # Contains the quota information for a quota check response. + class QuotaInfo + include Google::Apis::Core::Hashable + + # Map of quota group name to the actual number of tokens consumed. If the + # quota check was not successful, then this will not be populated due to no + # quota consumption. + # Deprecated: Use quota_metrics to get per quota group usage. + # Corresponds to the JSON property `quotaConsumed` + # @return [Hash] + attr_accessor :quota_consumed + + # Quota metrics to indicate the usage. Depending on the check request, one or + # more of the following metrics will be included: + # 1. For rate quota, per quota group or per quota metric incremental usage + # will be specified using the following delta metric: + # "serviceruntime.googleapis.com/api/consumer/quota_used_count" + # 2. For allocation quota, per quota metric total usage will be specified + # using the following gauge metric: + # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" + # 3. For both rate quota and allocation quota, the quota limit reached + # condition will be specified using the following boolean metric: + # "serviceruntime.googleapis.com/quota/exceeded" + # Corresponds to the JSON property `quotaMetrics` + # @return [Array] + attr_accessor :quota_metrics + + # Quota Metrics that have exceeded quota limits. + # For QuotaGroup-based quota, this is QuotaGroup.name + # For QuotaLimit-based quota, this is QuotaLimit.name + # See: google.api.Quota + # Deprecated: Use quota_metrics to get per quota group limit exceeded status. + # Corresponds to the JSON property `limitExceeded` + # @return [Array] + attr_accessor :limit_exceeded + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) + @limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded) + end + end + + # Request message for the Check method. + class CheckRequest + include Google::Apis::Core::Hashable + + # Indicates if service activation check should be skipped for this request. + # Default behavior is to perform the check and apply relevant quota. + # Corresponds to the JSON property `skipActivationCheck` + # @return [Boolean] + attr_accessor :skip_activation_check + alias_method :skip_activation_check?, :skip_activation_check + + # Requests the project settings to be returned as part of the check response. + # Corresponds to the JSON property `requestProjectSettings` + # @return [Boolean] + attr_accessor :request_project_settings + alias_method :request_project_settings?, :request_project_settings + + # Represents information regarding an operation. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::ServicecontrolV1::Operation] + attr_accessor :operation + + # Specifies which version of service configuration should be used to process + # the request. + # If unspecified or no matching version can be found, the + # latest one will be used. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check) + @request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings) + @operation = args[:operation] if args.key?(:operation) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + end + end + + # Represents information regarding a quota operation. + class QuotaOperation + include Google::Apis::Core::Hashable + + # Represents information about this operation. Each MetricValueSet + # corresponds to a metric defined in the service configuration. + # The data type used in the MetricValueSet must agree with + # the data type specified in the metric definition. + # Within a single operation, it is not allowed to have more than one + # MetricValue instances that have the same metric names and identical + # label value combinations. If a request has such duplicated MetricValue + # instances, the entire request is rejected with + # an invalid argument error. + # Corresponds to the JSON property `quotaMetrics` + # @return [Array] + attr_accessor :quota_metrics + + # Labels describing the operation. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identity of the consumer for whom this quota operation is being performed. + # This can be in one of the following formats: + # project:, + # project_number:, + # api_key:. + # Corresponds to the JSON property `consumerId` + # @return [String] + attr_accessor :consumer_id + + # Identity of the operation. This must be unique within the scope of the + # service that generated the operation. If the service calls AllocateQuota + # and ReleaseQuota on the same operation, the two calls should carry the + # same ID. + # UUID version 4 is recommended, though not required. In scenarios where an + # operation is computed from existing information and an idempotent id is + # desirable for deduplication purpose, UUID version 5 is recommended. See + # RFC 4122 for details. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # Quota mode for this operation. + # Corresponds to the JSON property `quotaMode` + # @return [String] + attr_accessor :quota_mode + + # Fully qualified name of the API method for which this quota operation is + # requested. This name is used for matching quota rules or metric rules and + # billing status rules defined in service configuration. This field is not + # required if the quota operation is performed on non-API resources. + # Example of an RPC method name: + # google.example.library.v1.LibraryService.CreateShelf + # Corresponds to the JSON property `methodName` + # @return [String] + attr_accessor :method_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) + @labels = args[:labels] if args.key?(:labels) + @consumer_id = args[:consumer_id] if args.key?(:consumer_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @quota_mode = args[:quota_mode] if args.key?(:quota_mode) + @method_name = args[:method_name] if args.key?(:method_name) + end + end + + # + class EndReconciliationRequest + include Google::Apis::Core::Hashable + + # Represents information regarding a quota operation. + # Corresponds to the JSON property `reconciliationOperation` + # @return [Google::Apis::ServicecontrolV1::QuotaOperation] + attr_accessor :reconciliation_operation + + # Specifies which version of service configuration should be used to process + # the request. If unspecified or no matching version can be found, the latest + # one will be used. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + end + end + + # + class ReportInfo + include Google::Apis::Core::Hashable + + # The Operation.operation_id value from the request. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # Contains the quota information for a quota check response. + # Corresponds to the JSON property `quotaInfo` + # @return [Google::Apis::ServicecontrolV1::QuotaInfo] + attr_accessor :quota_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @quota_info = args[:quota_info] if args.key?(:quota_info) + end + end + + # Represents information regarding an operation. + class Operation + include Google::Apis::Core::Hashable + + # DO NOT USE. This is an experimental field. + # Corresponds to the JSON property `importance` + # @return [String] + attr_accessor :importance + + # The resource name of the parent of a resource in the resource hierarchy. + # This can be in one of the following formats: + # - “projects/” + # - “folders/” + # - “organizations/” + # Corresponds to the JSON property `resourceContainer` + # @return [String] + attr_accessor :resource_container + + # Labels describing the operation. Only the following labels are allowed: + # - Labels describing monitored resources as defined in + # the service configuration. + # - Default labels of metric values. When specified, labels defined in the + # metric value override these default. + # - The following labels defined by Google Cloud Platform: + # - `cloud.googleapis.com/location` describing the location where the + # operation happened, + # - `servicecontrol.googleapis.com/user_agent` describing the user agent + # of the API request, + # - `servicecontrol.googleapis.com/service_agent` describing the service + # used to handle the API request (e.g. ESP), + # - `servicecontrol.googleapis.com/platform` describing the platform + # where the API is served (e.g. GAE, GCE, GKE). + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Represents information to be logged. + # Corresponds to the JSON property `logEntries` + # @return [Array] + attr_accessor :log_entries + + # User defined labels for the resource that this operation is associated + # with. + # Corresponds to the JSON property `userLabels` + # @return [Hash] + attr_accessor :user_labels + + # Represents information about this operation. Each MetricValueSet + # corresponds to a metric defined in the service configuration. + # The data type used in the MetricValueSet must agree with + # the data type specified in the metric definition. + # Within a single operation, it is not allowed to have more than one + # MetricValue instances that have the same metric names and identical + # label value combinations. If a request has such duplicated MetricValue + # instances, the entire request is rejected with + # an invalid argument error. + # Corresponds to the JSON property `metricValueSets` + # @return [Array] + attr_accessor :metric_value_sets + + # Represents the properties needed for quota operations. + # Corresponds to the JSON property `quotaProperties` + # @return [Google::Apis::ServicecontrolV1::QuotaProperties] + attr_accessor :quota_properties + + # Identity of the consumer who is using the service. + # This field should be filled in for the operations initiated by a + # consumer, but not for service-initiated operations that are + # not related to a specific consumer. + # This can be in one of the following formats: + # project:, + # project_number:, + # api_key:. + # Corresponds to the JSON property `consumerId` + # @return [String] + attr_accessor :consumer_id + + # Identity of the operation. This must be unique within the scope of the + # service that generated the operation. If the service calls + # Check() and Report() on the same operation, the two calls should carry + # the same id. + # UUID version 4 is recommended, though not required. + # In scenarios where an operation is computed from existing information + # and an idempotent id is desirable for deduplication purpose, UUID version 5 + # is recommended. See RFC 4122 for details. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # End time of the operation. + # Required when the operation is used in ServiceController.Report, + # but optional when the operation is used in ServiceController.Check. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Fully qualified name of the operation. Reserved for future use. + # Corresponds to the JSON property `operationName` + # @return [String] + attr_accessor :operation_name + + # Required. Start time of the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @importance = args[:importance] if args.key?(:importance) + @resource_container = args[:resource_container] if args.key?(:resource_container) + @labels = args[:labels] if args.key?(:labels) + @log_entries = args[:log_entries] if args.key?(:log_entries) + @user_labels = args[:user_labels] if args.key?(:user_labels) + @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets) + @quota_properties = args[:quota_properties] if args.key?(:quota_properties) + @consumer_id = args[:consumer_id] if args.key?(:consumer_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @end_time = args[:end_time] if args.key?(:end_time) + @operation_name = args[:operation_name] if args.key?(:operation_name) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Response message for the Report method. + class ReportResponse + include Google::Apis::Core::Hashable + + # The actual config id used to process the request. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + # Partial failures, one for each `Operation` in the request that failed + # processing. There are three possible combinations of the RPC status: + # 1. The combination of a successful RPC status and an empty `report_errors` + # list indicates a complete success where all `Operations` in the + # request are processed successfully. + # 2. The combination of a successful RPC status and a non-empty + # `report_errors` list indicates a partial success where some + # `Operations` in the request succeeded. Each + # `Operation` that failed processing has a corresponding item + # in this list. + # 3. A failed RPC status indicates a general non-deterministic failure. + # When this happens, it's impossible to know which of the + # 'Operations' in the request succeeded or failed. + # Corresponds to the JSON property `reportErrors` + # @return [Array] + attr_accessor :report_errors + + # Quota usage for each quota release `Operation` request. + # Fully or partially failed quota release request may or may not be present + # in `report_quota_info`. For example, a failed quota release request will + # have the current quota usage info when precise quota library returns the + # info. A deadline exceeded quota request will not have quota usage info. + # If there is no quota release request, report_quota_info will be empty. + # Corresponds to the JSON property `reportInfos` + # @return [Array] + attr_accessor :report_infos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + @report_errors = args[:report_errors] if args.key?(:report_errors) + @report_infos = args[:report_infos] if args.key?(:report_infos) + end + end + + # Response message for the Check method. + class CheckResponse + include Google::Apis::Core::Hashable + + # Feedback data returned from the server during processing a Check request. + # Corresponds to the JSON property `checkInfo` + # @return [Google::Apis::ServicecontrolV1::CheckInfo] + attr_accessor :check_info + + # Indicate the decision of the check. + # If no check errors are present, the service should process the operation. + # Otherwise the service should use the list of errors to determine the + # appropriate action. + # Corresponds to the JSON property `checkErrors` + # @return [Array] + attr_accessor :check_errors + + # The same operation_id value used in the CheckRequest. + # Used for logging and diagnostics purposes. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The actual config id used to process the request. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + # Contains the quota information for a quota check response. + # Corresponds to the JSON property `quotaInfo` + # @return [Google::Apis::ServicecontrolV1::QuotaInfo] + attr_accessor :quota_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @check_info = args[:check_info] if args.key?(:check_info) + @check_errors = args[:check_errors] if args.key?(:check_errors) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + @quota_info = args[:quota_info] if args.key?(:quota_info) + end + end + + # Request message for the Report method. + class ReportRequest + include Google::Apis::Core::Hashable + + # Specifies which version of service config should be used to process the + # request. + # If unspecified or no matching version can be found, the + # latest one will be used. + # Corresponds to the JSON property `serviceConfigId` + # @return [String] + attr_accessor :service_config_id + + # Operations to be reported. + # Typically the service should report one operation per request. + # Putting multiple operations into a single request is allowed, but should + # be used only when multiple operations are natually available at the time + # of the report. + # If multiple operations are in a single request, the total request size + # should be no larger than 1MB. See ReportResponse.report_errors for + # partial failure behavior. + # 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) + @service_config_id = args[:service_config_id] if args.key?(:service_config_id) + @operations = args[:operations] if args.key?(:operations) + 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` that 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. + # - 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 + + # 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 + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) + @code = args[:code] if args.key?(:code) + end + end + + # An individual log entry. + class LogEntry + include Google::Apis::Core::Hashable + + # 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 protocol buffer that is + # expressed as a JSON object. You can only pass `protoPayload` + # values that belong to a set of approved types. + # Corresponds to the JSON property `protoPayload` + # @return [Hash] + attr_accessor :proto_payload + + # The time the event described by the log entry occurred. If + # omitted, defaults to operation start time. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # 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 + + # The severity of the log entry. The default value is + # `LogSeverity.DEFAULT`. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # A unique ID for the log entry used for deduplication. If omitted, + # the implementation will generate one based on operation_id. + # Corresponds to the JSON property `insertId` + # @return [String] + attr_accessor :insert_id + + # Required. The log to which this log entry belongs. Examples: `"syslog"`, + # `"book_log"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The log entry payload, represented as a structure that + # is expressed as a JSON object. + # Corresponds to the JSON property `structPayload` + # @return [Hash] + attr_accessor :struct_payload + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text_payload = args[:text_payload] if args.key?(:text_payload) + @proto_payload = args[:proto_payload] if args.key?(:proto_payload) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @labels = args[:labels] if args.key?(:labels) + @severity = args[:severity] if args.key?(:severity) + @insert_id = args[:insert_id] if args.key?(:insert_id) + @name = args[:name] if args.key?(:name) + @struct_payload = args[:struct_payload] if args.key?(:struct_payload) + end + end + + # Common audit log format for Google Cloud Platform API operations. + class AuditLog + include Google::Apis::Core::Hashable + + # Authorization information. If there are multiple + # resources or permissions involved, then there is + # one AuthorizationInfo element for each `resource, permission` tuple. + # Corresponds to the JSON property `authorizationInfo` + # @return [Array] + attr_accessor :authorization_info + + # The resource or collection that is the target of the operation. + # The name is a scheme-less URI, not including the API service name. + # For example: + # "shelves/SHELF_ID/books" + # "shelves/SHELF_ID/books/BOOK_ID" + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # The operation request. This may not include all request parameters, + # such as those that are too large, privacy-sensitive, or duplicated + # elsewhere in the log record. + # It should never include user-generated data, such as file contents. + # When the JSON object represented here has a proto equivalent, the proto + # name will be indicated in the `@type` property. + # Corresponds to the JSON property `request` + # @return [Hash] + attr_accessor :request + + # Metadata about the request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::ServicecontrolV1::RequestMetadata] + attr_accessor :request_metadata + + # Other service-specific data about the request, response, and other + # activities. + # Corresponds to the JSON property `serviceData` + # @return [Hash] + attr_accessor :service_data + + # The number of items returned from a List or Query API method, + # if applicable. + # Corresponds to the JSON property `numResponseItems` + # @return [Fixnum] + attr_accessor :num_response_items + + # Authentication information for the operation. + # Corresponds to the JSON property `authenticationInfo` + # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo] + attr_accessor :authentication_info + + # 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` that 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. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ServicecontrolV1::Status] + attr_accessor :status + + # The name of the API service performing the operation. For example, + # `"datastore.googleapis.com"`. + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_name + + # The operation response. This may not include all response elements, + # such as those that are too large, privacy-sensitive, or duplicated + # elsewhere in the log record. + # It should never include user-generated data, such as file contents. + # When the JSON object represented here has a proto equivalent, the proto + # name will be indicated in the `@type` property. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + # The name of the service method or operation. + # For API calls, this should be the name of the API method. + # For example, + # "google.datastore.v1.Datastore.RunQuery" + # "google.logging.v1.LoggingService.DeleteLog" + # Corresponds to the JSON property `methodName` + # @return [String] + attr_accessor :method_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authorization_info = args[:authorization_info] if args.key?(:authorization_info) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @request = args[:request] if args.key?(:request) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @service_data = args[:service_data] if args.key?(:service_data) + @num_response_items = args[:num_response_items] if args.key?(:num_response_items) + @authentication_info = args[:authentication_info] if args.key?(:authentication_info) + @status = args[:status] if args.key?(:status) + @service_name = args[:service_name] if args.key?(:service_name) + @response = args[:response] if args.key?(:response) + @method_name = args[:method_name] if args.key?(:method_name) + end + end end end end diff --git a/generated/google/apis/servicecontrol_v1/representations.rb b/generated/google/apis/servicecontrol_v1/representations.rb index 1edbd05df..72f687b49 100644 --- a/generated/google/apis/servicecontrol_v1/representations.rb +++ b/generated/google/apis/servicecontrol_v1/representations.rb @@ -22,132 +22,6 @@ module Google module Apis module ServicecontrolV1 - class RequestMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class QuotaError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CheckInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocateQuotaRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReleaseQuotaResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MetricValueSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StartReconciliationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CheckError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class QuotaInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CheckRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class QuotaOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EndReconciliationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CheckResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuditLog - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogEntry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class MetricValue class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,13 +40,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ExplicitBuckets + class Distribution class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Distribution + class ExplicitBuckets class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -226,243 +100,135 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RequestMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent' - property :caller_ip, as: 'callerIp' - end + class QuotaError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class QuotaError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :subject, as: 'subject' - property :code, as: 'code' - end + class RequestMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class CheckInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :unused_arguments, as: 'unusedArguments' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class AllocateQuotaRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_config_id, as: 'serviceConfigId' - property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation - - property :allocation_mode, as: 'allocationMode' - end + include Google::Apis::Core::JsonObjectSupport end class ReleaseQuotaResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :operation_id, as: 'operationId' - property :service_config_id, as: 'serviceConfigId' - collection :release_errors, as: 'releaseErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation + include Google::Apis::Core::JsonObjectSupport + end - end + class AllocateQuotaRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class MetricValueSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric_name, as: 'metricName' - collection :metric_values, as: 'metricValues', class: Google::Apis::ServicecontrolV1::MetricValue, decorator: Google::Apis::ServicecontrolV1::MetricValue::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class ReportError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation_id, as: 'operationId' - property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class StartReconciliationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_config_id, as: 'serviceConfigId' - property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class CheckError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :detail, as: 'detail' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class QuotaInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :limit_exceeded, as: 'limitExceeded' - hash :quota_consumed, as: 'quotaConsumed' - collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class CheckRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :request_project_settings, as: 'requestProjectSettings' - property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :service_config_id, as: 'serviceConfigId' - property :skip_activation_check, as: 'skipActivationCheck' - end + include Google::Apis::Core::JsonObjectSupport end class QuotaOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :consumer_id, as: 'consumerId' - property :operation_id, as: 'operationId' - property :method_name, as: 'methodName' - property :quota_mode, as: 'quotaMode' - collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end class EndReconciliationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :service_config_id, as: 'serviceConfigId' - end + include Google::Apis::Core::JsonObjectSupport end class ReportInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :operation_id, as: 'operationId' - property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end - end - - class ReportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation - - collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation - - property :service_config_id, as: 'serviceConfigId' - end + include Google::Apis::Core::JsonObjectSupport end class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation + include Google::Apis::Core::JsonObjectSupport + end - property :consumer_id, as: 'consumerId' - property :operation_id, as: 'operationId' - property :operation_name, as: 'operationName' - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - property :importance, as: 'importance' - property :resource_container, as: 'resourceContainer' - hash :labels, as: 'labels' - collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation + class ReportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :user_labels, as: 'userLabels' - end + include Google::Apis::Core::JsonObjectSupport end class CheckResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation - - property :operation_id, as: 'operationId' - property :service_config_id, as: 'serviceConfigId' - property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation - - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' - collection :details, as: 'details' - property :code, as: 'code' - end + include Google::Apis::Core::JsonObjectSupport end class ReportRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_config_id, as: 'serviceConfigId' - collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end - class AuditLog - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end - property :resource_name, as: 'resourceName' - hash :request, as: 'request' - hash :service_data, as: 'serviceData' - property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation - - property :num_response_items, :numeric_string => true, as: 'numResponseItems' - property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation - - property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation - - hash :response, as: 'response' - property :service_name, as: 'serviceName' - property :method_name, as: 'methodName' - end + include Google::Apis::Core::JsonObjectSupport end class LogEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :labels, as: 'labels' - property :severity, as: 'severity' - property :name, as: 'name' - property :insert_id, as: 'insertId' - hash :struct_payload, as: 'structPayload' - property :text_payload, as: 'textPayload' - hash :proto_payload, as: 'protoPayload' - property :timestamp, as: 'timestamp' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class MetricValue # @private class Representation < Google::Apis::Core::JsonRepresentation - property :double_value, as: 'doubleValue' - property :int64_value, :numeric_string => true, as: 'int64Value' property :distribution_value, as: 'distributionValue', class: Google::Apis::ServicecontrolV1::Distribution, decorator: Google::Apis::ServicecontrolV1::Distribution::Representation property :bool_value, as: 'boolValue' @@ -470,29 +236,49 @@ module Google property :start_time, as: 'startTime' property :money_value, as: 'moneyValue', class: Google::Apis::ServicecontrolV1::Money, decorator: Google::Apis::ServicecontrolV1::Money::Representation - property :string_value, as: 'stringValue' hash :labels, as: 'labels' + property :string_value, as: 'stringValue' + property :double_value, as: 'doubleValue' + property :int64_value, :numeric_string => true, as: 'int64Value' end end class EndReconciliationResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation property :operation_id, as: 'operationId' property :service_config_id, as: 'serviceConfigId' - collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation - end end class Money # @private class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' property :nanos, as: 'nanos' property :units, :numeric_string => true, as: 'units' - property :currency_code, as: 'currencyCode' + end + end + + class Distribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, :numeric_string => true, as: 'count' + property :mean, as: 'mean' + collection :bucket_counts, as: 'bucketCounts' + property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation + + property :maximum, as: 'maximum' + property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' + property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation + + property :minimum, as: 'minimum' + property :linear_buckets, as: 'linearBuckets', class: Google::Apis::ServicecontrolV1::LinearBuckets, decorator: Google::Apis::ServicecontrolV1::LinearBuckets::Representation + end end @@ -503,24 +289,6 @@ module Google end end - class Distribution - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :maximum, as: 'maximum' - property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation' - property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation - - property :linear_buckets, as: 'linearBuckets', class: Google::Apis::ServicecontrolV1::LinearBuckets, decorator: Google::Apis::ServicecontrolV1::LinearBuckets::Representation - - property :minimum, as: 'minimum' - property :count, :numeric_string => true, as: 'count' - property :mean, as: 'mean' - collection :bucket_counts, as: 'bucketCounts' - property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation - - end - end - class ExponentialBuckets # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -533,9 +301,9 @@ module Google class AuthorizationInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :permission, as: 'permission' property :resource, as: 'resource' property :granted, as: 'granted' - property :permission, as: 'permission' end end @@ -562,9 +330,9 @@ module Google class LinearBuckets # @private class Representation < Google::Apis::Core::JsonRepresentation - property :num_finite_buckets, as: 'numFiniteBuckets' property :width, as: 'width' property :offset, as: 'offset' + property :num_finite_buckets, as: 'numFiniteBuckets' end end @@ -579,12 +347,12 @@ module Google class AllocateQuotaResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation property :operation_id, as: 'operationId' property :service_config_id, as: 'serviceConfigId' - collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation - end end @@ -596,6 +364,238 @@ module Google end end + + class QuotaError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :subject, as: 'subject' + property :code, as: 'code' + end + end + + class RequestMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :caller_ip, as: 'callerIp' + property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent' + end + end + + class CheckInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :unused_arguments, as: 'unusedArguments' + end + end + + class ReleaseQuotaResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :release_errors, as: 'releaseErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation + + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + property :operation_id, as: 'operationId' + property :service_config_id, as: 'serviceConfigId' + end + end + + class AllocateQuotaRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_config_id, as: 'serviceConfigId' + property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation + + property :allocation_mode, as: 'allocationMode' + end + end + + class MetricValueSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metric_values, as: 'metricValues', class: Google::Apis::ServicecontrolV1::MetricValue, decorator: Google::Apis::ServicecontrolV1::MetricValue::Representation + + property :metric_name, as: 'metricName' + end + end + + class ReportError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation + + property :operation_id, as: 'operationId' + end + end + + class StartReconciliationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation + + property :service_config_id, as: 'serviceConfigId' + end + end + + class CheckError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detail, as: 'detail' + property :code, as: 'code' + end + end + + class QuotaInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :quota_consumed, as: 'quotaConsumed' + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + collection :limit_exceeded, as: 'limitExceeded' + end + end + + class CheckRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :skip_activation_check, as: 'skipActivationCheck' + property :request_project_settings, as: 'requestProjectSettings' + property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation + + property :service_config_id, as: 'serviceConfigId' + end + end + + class QuotaOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + hash :labels, as: 'labels' + property :consumer_id, as: 'consumerId' + property :operation_id, as: 'operationId' + property :quota_mode, as: 'quotaMode' + property :method_name, as: 'methodName' + end + end + + class EndReconciliationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation + + property :service_config_id, as: 'serviceConfigId' + end + end + + class ReportInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation + + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :importance, as: 'importance' + property :resource_container, as: 'resourceContainer' + hash :labels, as: 'labels' + collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation + + hash :user_labels, as: 'userLabels' + collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation + + property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation + + property :consumer_id, as: 'consumerId' + property :operation_id, as: 'operationId' + property :end_time, as: 'endTime' + property :operation_name, as: 'operationName' + property :start_time, as: 'startTime' + end + end + + class ReportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_config_id, as: 'serviceConfigId' + collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation + + collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation + + end + end + + class CheckResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation + + collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation + + property :operation_id, as: 'operationId' + property :service_config_id, as: 'serviceConfigId' + property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation + + end + end + + class ReportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_config_id, as: 'serviceConfigId' + collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation + + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message, as: 'message' + collection :details, as: 'details' + property :code, as: 'code' + end + end + + class LogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text_payload, as: 'textPayload' + hash :proto_payload, as: 'protoPayload' + property :timestamp, as: 'timestamp' + hash :labels, as: 'labels' + property :severity, as: 'severity' + property :insert_id, as: 'insertId' + property :name, as: 'name' + hash :struct_payload, as: 'structPayload' + end + end + + class AuditLog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation + + property :resource_name, as: 'resourceName' + hash :request, as: 'request' + property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation + + hash :service_data, as: 'serviceData' + property :num_response_items, :numeric_string => true, as: 'numResponseItems' + property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation + + property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation + + property :service_name, as: 'serviceName' + hash :response, as: 'response' + property :method_name, as: 'methodName' + end + end end end end diff --git a/generated/google/apis/servicecontrol_v1/service.rb b/generated/google/apis/servicecontrol_v1/service.rb index 4acfa3cdc..675bdff55 100644 --- a/generated/google/apis/servicecontrol_v1/service.rb +++ b/generated/google/apis/servicecontrol_v1/service.rb @@ -48,52 +48,6 @@ module Google @batch_path = 'batch' end - # Releases previously allocated quota done through AllocateQuota method. - # This method requires the `servicemanagement.services.quota` - # permission on the specified service. For more information, see - # [Google Cloud IAM](https://cloud.google.com/iam). - # **NOTE:** the client code **must** fail-open if the server returns one - # of the following quota errors: - # - `PROJECT_STATUS_UNAVAILABLE` - # - `SERVICE_STATUS_UNAVAILABLE` - # - `BILLING_STATUS_UNAVAILABLE` - # - `QUOTA_SYSTEM_UNAVAILABLE` - # The server may inject above errors to prohibit any hard dependency - # on the quota system. - # @param [String] service_name - # Name of the service as specified in the service configuration. For example, - # `"pubsub.googleapis.com"`. - # See google.api.Service for the definition of a service name. - # @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_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::ServicecontrolV1::ReleaseQuotaResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def release_service_quota(service_name, release_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options) - command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation - command.request_object = release_quota_request_object - command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation - command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse - command.params['serviceName'] = service_name unless service_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 - # Signals the quota controller that service ends the ongoing usage # reconciliation. # This method requires the `servicemanagement.services.quota` @@ -104,11 +58,11 @@ module Google # `"pubsub.googleapis.com"`. # See google.api.Service for the definition of a service name. # @param [Google::Apis::ServicecontrolV1::EndReconciliationRequest] end_reconciliation_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -121,15 +75,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:endReconciliation', options) command.request_representation = Google::Apis::ServicecontrolV1::EndReconciliationRequest::Representation command.request_object = end_reconciliation_request_object command.response_representation = Google::Apis::ServicecontrolV1::EndReconciliationResponse::Representation command.response_class = Google::Apis::ServicecontrolV1::EndReconciliationResponse command.params['serviceName'] = service_name unless service_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -149,11 +103,11 @@ module Google # `"pubsub.googleapis.com"`. # See google.api.Service for the definition of a service name. # @param [Google::Apis::ServicecontrolV1::ReportRequest] report_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -166,15 +120,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_service(service_name, report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:report', options) command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation command.request_object = report_request_object command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation command.response_class = Google::Apis::ServicecontrolV1::ReportResponse command.params['serviceName'] = service_name unless service_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -196,11 +150,11 @@ module Google # `"pubsub.googleapis.com"`. # See google.api.Service for the definition of a service name. # @param [Google::Apis::ServicecontrolV1::AllocateQuotaRequest] allocate_quota_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -213,15 +167,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def allocate_service_quota(service_name, allocate_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def allocate_service_quota(service_name, allocate_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:allocateQuota', options) command.request_representation = Google::Apis::ServicecontrolV1::AllocateQuotaRequest::Representation command.request_object = allocate_quota_request_object command.response_representation = Google::Apis::ServicecontrolV1::AllocateQuotaResponse::Representation command.response_class = Google::Apis::ServicecontrolV1::AllocateQuotaResponse command.params['serviceName'] = service_name unless service_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -253,11 +207,11 @@ module Google # `"pubsub.googleapis.com"`. # See google.api.Service for the definition of a service name. # @param [Google::Apis::ServicecontrolV1::StartReconciliationRequest] start_reconciliation_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -270,15 +224,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:startReconciliation', options) command.request_representation = Google::Apis::ServicecontrolV1::StartReconciliationRequest::Representation command.request_object = start_reconciliation_request_object command.response_representation = Google::Apis::ServicecontrolV1::StartReconciliationResponse::Representation command.response_class = Google::Apis::ServicecontrolV1::StartReconciliationResponse command.params['serviceName'] = service_name unless service_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -297,11 +251,11 @@ module Google # `"pubsub.googleapis.com"`. # See google.api.Service for the definition of a service name. # @param [Google::Apis::ServicecontrolV1::CheckRequest] check_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 [String] fields - # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -314,15 +268,61 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def check_service(service_name, check_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + def check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:check', options) command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation command.request_object = check_request_object command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation command.response_class = Google::Apis::ServicecontrolV1::CheckResponse command.params['serviceName'] = service_name unless service_name.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Releases previously allocated quota done through AllocateQuota method. + # This method requires the `servicemanagement.services.quota` + # permission on the specified service. For more information, see + # [Google Cloud IAM](https://cloud.google.com/iam). + # **NOTE:** the client code **must** fail-open if the server returns one + # of the following quota errors: + # - `PROJECT_STATUS_UNAVAILABLE` + # - `SERVICE_STATUS_UNAVAILABLE` + # - `BILLING_STATUS_UNAVAILABLE` + # - `QUOTA_SYSTEM_UNAVAILABLE` + # The server may inject above errors to prohibit any hard dependency + # on the quota system. + # @param [String] service_name + # Name of the service as specified in the service configuration. For example, + # `"pubsub.googleapis.com"`. + # See google.api.Service for the definition of a service name. + # @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_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::ServicecontrolV1::ReleaseQuotaResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options) + command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation + command.request_object = release_quota_request_object + command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation + command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse + command.params['serviceName'] = service_name unless service_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 diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 7cad183cb..a1625d408 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,19 +27,19 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20170609' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + REVISION = '20170630' # Manage your Google API service configuration AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management' + # View your Google API service configuration + AUTH_SERVICE_MANAGEMENT_READONLY = 'https://www.googleapis.com/auth/service.management.readonly' + # View your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' - # View your Google API service configuration - AUTH_SERVICE_MANAGEMENT_READONLY = 'https://www.googleapis.com/auth/service.management.readonly' + # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index d0a927db9..67a3f1ae4 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -22,6 +22,2626 @@ module Google module Apis module ServicemanagementV1 + # Output generated from semantically comparing two versions of a service + # configuration. + # Includes detailed information about a field that have changed with + # applicable advice about potential consequences for the change, such as + # backwards-incompatibility. + class ConfigChange + include Google::Apis::Core::Hashable + + # The type for this change, either ADDED, REMOVED, or MODIFIED. + # Corresponds to the JSON property `changeType` + # @return [String] + attr_accessor :change_type + + # Object hierarchy path to the change, with levels separated by a '.' + # character. For repeated fields, an applicable unique identifier field is + # used for the index (usually selector, name, or id). For maps, the term + # 'key' is used. If the field has no unique identifier, the numeric index + # is used. + # Examples: + # - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction + # - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + # - logging.producer_destinations[0] + # Corresponds to the JSON property `element` + # @return [String] + attr_accessor :element + + # Collection of advice provided for this change, useful for determining the + # possible impact of this change. + # Corresponds to the JSON property `advices` + # @return [Array] + attr_accessor :advices + + # Value of the changed object in the old Service configuration, + # in JSON format. This field will not be populated if ChangeType == ADDED. + # Corresponds to the JSON property `oldValue` + # @return [String] + attr_accessor :old_value + + # Value of the changed object in the new Service configuration, + # in JSON format. This field will not be populated if ChangeType == REMOVED. + # Corresponds to the JSON property `newValue` + # @return [String] + attr_accessor :new_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @change_type = args[:change_type] if args.key?(:change_type) + @element = args[:element] if args.key?(:element) + @advices = args[:advices] if args.key?(:advices) + @old_value = args[:old_value] if args.key?(:old_value) + @new_value = args[:new_value] if args.key?(:new_value) + end + end + + # ### System parameter configuration + # A system parameter is a special kind of parameter defined by the API + # system, not by an individual API. It is typically mapped to an HTTP header + # and/or a URL query parameter. This configuration specifies which methods + # change the names of the system parameters. + class SystemParameters + include Google::Apis::Core::Hashable + + # Define system parameters. + # The parameters defined here will override the default parameters + # implemented by the system. If this field is missing from the service + # config, default system parameters will be used. Default system parameters + # and names is implementation-dependent. + # Example: define api key for all methods + # system_parameters + # rules: + # - selector: "*" + # parameters: + # - name: api_key + # url_query_parameter: api_key + # Example: define 2 api key names for a specific method. + # system_parameters + # rules: + # - selector: "/ListShelves" + # parameters: + # - name: api_key + # http_header: Api-Key1 + # - name: api_key + # http_header: Api-Key2 + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + end + end + + # A rollout resource that defines how service configuration versions are pushed + # to control plane systems. Typically, you create a new version of the + # service config, and then create a Rollout to push the service config. + class Rollout + include Google::Apis::Core::Hashable + + # The status of this rollout. Readonly. In case of a failed rollout, + # the system will automatically rollback to the current Rollout + # version. Readonly. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The name of the service associated with this Rollout. + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_name + + # The user who created the Rollout. Readonly. + # Corresponds to the JSON property `createdBy` + # @return [String] + attr_accessor :created_by + + # Strategy that specifies how clients of Google Service Controller want to + # send traffic to use different config versions. This is generally + # used by API proxy to split traffic based on your configured precentage for + # each config version. + # One example of how to gradually rollout a new service configuration using + # this + # strategy: + # Day 1 + # Rollout ` + # id: "example.googleapis.com/rollout_20160206" + # traffic_percent_strategy ` + # percentages: ` + # "example.googleapis.com/20160201": 70.00 + # "example.googleapis.com/20160206": 30.00 + # ` + # ` + # ` + # Day 2 + # Rollout ` + # id: "example.googleapis.com/rollout_20160207" + # traffic_percent_strategy: ` + # percentages: ` + # "example.googleapis.com/20160206": 100.00 + # ` + # ` + # ` + # Corresponds to the JSON property `trafficPercentStrategy` + # @return [Google::Apis::ServicemanagementV1::TrafficPercentStrategy] + attr_accessor :traffic_percent_strategy + + # Optional unique identifier of this Rollout. Only lower case letters, digits + # and '-' are allowed. + # If not specified by client, the server will generate one. The generated id + # will have the form of , where "date" is the create + # date in ISO 8601 format. "revision number" is a monotonically increasing + # positive number that is reset every day for each service. + # An example of the generated rollout_id is '2016-02-16r1' + # Corresponds to the JSON property `rolloutId` + # @return [String] + attr_accessor :rollout_id + + # Strategy used to delete a service. This strategy is a placeholder only + # used by the system generated rollout to delete a service. + # Corresponds to the JSON property `deleteServiceStrategy` + # @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy] + attr_accessor :delete_service_strategy + + # Creation time of the rollout. Readonly. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @service_name = args[:service_name] if args.key?(:service_name) + @created_by = args[:created_by] if args.key?(:created_by) + @traffic_percent_strategy = args[:traffic_percent_strategy] if args.key?(:traffic_percent_strategy) + @rollout_id = args[:rollout_id] if args.key?(:rollout_id) + @delete_service_strategy = args[:delete_service_strategy] if args.key?(:delete_service_strategy) + @create_time = args[:create_time] if args.key?(:create_time) + end + end + + # Quota configuration helps to achieve fairness and budgeting in service + # usage. + # The quota configuration works this way: + # - The service configuration defines a set of metrics. + # - For API calls, the quota.metric_rules maps methods to metrics with + # corresponding costs. + # - The quota.limits defines limits on the metrics, which will be used for + # quota checks at runtime. + # An example quota configuration in yaml format: + # quota: + # - name: apiWriteQpsPerProject + # metric: library.googleapis.com/write_calls + # unit: "1/min/`project`" # rate limit for consumer projects + # values: + # STANDARD: 10000 + # # The metric rules bind all methods to the read_calls metric, + # # except for the UpdateBook and DeleteBook methods. These two methods + # # are mapped to the write_calls metric, with the UpdateBook method + # # consuming at twice rate as the DeleteBook method. + # metric_rules: + # - selector: "*" + # metric_costs: + # library.googleapis.com/read_calls: 1 + # - selector: google.example.library.v1.LibraryService.UpdateBook + # metric_costs: + # library.googleapis.com/write_calls: 2 + # - selector: google.example.library.v1.LibraryService.DeleteBook + # metric_costs: + # library.googleapis.com/write_calls: 1 + # Corresponding Metric definition: + # metrics: + # - name: library.googleapis.com/read_calls + # display_name: Read requests + # metric_kind: DELTA + # value_type: INT64 + # - name: library.googleapis.com/write_calls + # display_name: Write requests + # metric_kind: DELTA + # value_type: INT64 + class Quota + include Google::Apis::Core::Hashable + + # List of `QuotaLimit` definitions for the service. + # Corresponds to the JSON property `limits` + # @return [Array] + attr_accessor :limits + + # List of `MetricRule` definitions, each one mapping a selected method to one + # or more metrics. + # Corresponds to the JSON property `metricRules` + # @return [Array] + attr_accessor :metric_rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @limits = args[:limits] if args.key?(:limits) + @metric_rules = args[:metric_rules] if args.key?(:metric_rules) + end + end + + # Request message for GenerateConfigReport method. + class GenerateConfigReportRequest + include Google::Apis::Core::Hashable + + # Service configuration against which the comparison will be done. + # For this version of API, the supported types are + # google.api.servicemanagement.v1.ConfigRef, + # google.api.servicemanagement.v1.ConfigSource, + # and google.api.Service + # Corresponds to the JSON property `oldConfig` + # @return [Hash] + attr_accessor :old_config + + # Service configuration for which we want to generate the report. + # For this version of API, the supported types are + # google.api.servicemanagement.v1.ConfigRef, + # google.api.servicemanagement.v1.ConfigSource, + # and google.api.Service + # Corresponds to the JSON property `newConfig` + # @return [Hash] + attr_accessor :new_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @old_config = args[:old_config] if args.key?(:old_config) + @new_config = args[:new_config] if args.key?(:new_config) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com", + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::ServicemanagementV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_mask = args[:update_mask] if args.key?(:update_mask) + @policy = args[:policy] if args.key?(:policy) + end + end + + # Strategy used to delete a service. This strategy is a placeholder only + # used by the system generated rollout to delete a service. + class DeleteServiceStrategy + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents the status of one operation step. + class Step + include Google::Apis::Core::Hashable + + # The status code. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The short description of the step. + # 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) + @status = args[:status] if args.key?(:status) + @description = args[:description] if args.key?(:description) + end + end + + # Configuration of a specific logging destination (the producer project + # or the consumer project). + class LoggingDestination + include Google::Apis::Core::Hashable + + # Names of the logs to be sent to this destination. Each name must + # be defined in the Service.logs section. If the log name is + # not a domain scoped name, it will be automatically prefixed with + # the service name followed by "/". + # Corresponds to the JSON property `logs` + # @return [Array] + attr_accessor :logs + + # The monitored resource type. The type must be defined in the + # Service.monitored_resources section. + # Corresponds to the JSON property `monitoredResource` + # @return [String] + attr_accessor :monitored_resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @logs = args[:logs] if args.key?(:logs) + @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) + end + end + + # A protocol buffer option, which can be attached to a message, field, + # enumeration, etc. + class Option + include Google::Apis::Core::Hashable + + # The option's value packed in an Any message. If the value is a primitive, + # the corresponding wrapper type defined in google/protobuf/wrappers.proto + # should be used. If the value is an enum, it should be stored as an int32 + # value using the google.protobuf.Int32Value type. + # Corresponds to the JSON property `value` + # @return [Hash] + attr_accessor :value + + # The option's name. For protobuf built-in options (options defined in + # descriptor.proto), this is the short name. For example, `"map_entry"`. + # For custom options, it should be the fully-qualified name. For example, + # `"google.api.http"`. + # 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) + @value = args[:value] if args.key?(:value) + @name = args[:name] if args.key?(:name) + end + end + + # Logging configuration of the service. + # The following example shows how to configure logs to be sent to the + # producer and consumer projects. In the example, the `activity_history` + # log is sent to both the producer and consumer projects, whereas the + # `purchase_history` log is only sent to the producer project. + # monitored_resources: + # - type: library.googleapis.com/branch + # labels: + # - key: /city + # description: The city where the library branch is located in. + # - key: /name + # description: The name of the branch. + # logs: + # - name: activity_history + # labels: + # - key: /customer_id + # - name: purchase_history + # logging: + # producer_destinations: + # - monitored_resource: library.googleapis.com/branch + # logs: + # - activity_history + # - purchase_history + # consumer_destinations: + # - monitored_resource: library.googleapis.com/branch + # logs: + # - activity_history + class Logging + include Google::Apis::Core::Hashable + + # Logging configurations for sending logs to the consumer project. + # There can be multiple consumer destinations, each one must have a + # different monitored resource type. A log can be used in at most + # one consumer destination. + # Corresponds to the JSON property `consumerDestinations` + # @return [Array] + attr_accessor :consumer_destinations + + # Logging configurations for sending logs to the producer project. + # There can be multiple producer destinations, each one must have a + # different monitored resource type. A log can be used in at most + # one producer destination. + # Corresponds to the JSON property `producerDestinations` + # @return [Array] + attr_accessor :producer_destinations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations) + @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations) + end + end + + # Method represents a method of an api. + class MethodProp + include Google::Apis::Core::Hashable + + # If true, the response is streamed. + # Corresponds to the JSON property `responseStreaming` + # @return [Boolean] + attr_accessor :response_streaming + alias_method :response_streaming?, :response_streaming + + # The simple name of this method. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A URL of the input message type. + # Corresponds to the JSON property `requestTypeUrl` + # @return [String] + attr_accessor :request_type_url + + # If true, the request is streamed. + # Corresponds to the JSON property `requestStreaming` + # @return [Boolean] + attr_accessor :request_streaming + alias_method :request_streaming?, :request_streaming + + # The source syntax of this method. + # Corresponds to the JSON property `syntax` + # @return [String] + attr_accessor :syntax + + # The URL of the output message type. + # Corresponds to the JSON property `responseTypeUrl` + # @return [String] + attr_accessor :response_type_url + + # Any metadata attached to the method. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_streaming = args[:response_streaming] if args.key?(:response_streaming) + @name = args[:name] if args.key?(:name) + @request_type_url = args[:request_type_url] if args.key?(:request_type_url) + @request_streaming = args[:request_streaming] if args.key?(:request_streaming) + @syntax = args[:syntax] if args.key?(:syntax) + @response_type_url = args[:response_type_url] if args.key?(:response_type_url) + @options = args[:options] if args.key?(:options) + end + end + + # `QuotaLimit` defines a specific limit that applies over a specified duration + # for a limit type. There can be at most one limit for a duration and limit + # type combination defined within a `QuotaGroup`. + class QuotaLimit + include Google::Apis::Core::Hashable + + # Specify the unit of the quota limit. It uses the same syntax as + # Metric.unit. The supported unit kinds are determined by the quota + # backend system. + # The [Google Service Control](https://cloud.google.com/service-control) + # supports the following unit components: + # * One of the time intevals: + # * "/min" for quota every minute. + # * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. + # * Otherwise the quota won't be reset by time, such as storage limit. + # * One and only one of the granted containers: + # * "/`project`" quota for a project + # Here are some examples: + # * "1/min/`project`" for quota per minute per project. + # Note: the order of unit components is insignificant. + # The "1" at the beginning is required to follow the metric unit syntax. + # Used by metric-based quotas only. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Maximum number of tokens that can be consumed during the specified + # duration. Client application developers can override the default limit up + # to this maximum. If specified, this value cannot be set to a value less + # than the default limit. If not specified, it is set to the default limit. + # To allow clients to apply overrides with no upper bound, set this to -1, + # indicating unlimited maximum quota. + # Used by group-based quotas only. + # Corresponds to the JSON property `maxLimit` + # @return [Fixnum] + attr_accessor :max_limit + + # Name of the quota limit. The name is used to refer to the limit when + # overriding the default limit on per-consumer basis. + # For metric-based quota limits, the name must be provided, and it must be + # unique within the service. The name can only include alphanumeric + # characters as well as '-'. + # The maximum length of the limit name is 64 characters. + # The name of a limit is used as a unique identifier for this limit. + # Therefore, once a limit has been put into use, its name should be + # immutable. You can use the display_name field to provide a user-friendly + # name for the limit. The display name can be evolved over time without + # affecting the identity of the limit. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Duration of this limit in textual notation. Example: "100s", "24h", "1d". + # For duration longer than a day, only multiple of days is supported. We + # support only "100s" and "1d" for now. Additional support will be added in + # the future. "0" indicates indefinite duration. + # Used by group-based quotas only. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Free tier value displayed in the Developers Console for this limit. + # The free tier is the number of tokens that will be subtracted from the + # billed amount when billing is enabled. + # This field can only be set on a limit with duration "1d", in a billable + # group; it is invalid on any other limit. If this field is not set, it + # defaults to 0, indicating that there is no free tier for this service. + # Used by group-based quotas only. + # Corresponds to the JSON property `freeTier` + # @return [Fixnum] + attr_accessor :free_tier + + # Default number of tokens that can be consumed during the specified + # duration. This is the number of tokens assigned when a client + # application developer activates the service for his/her project. + # Specifying a value of 0 will block all requests. This can be used if you + # are provisioning quota to selected consumers and blocking others. + # Similarly, a value of -1 will indicate an unlimited quota. No other + # negative values are allowed. + # Used by group-based quotas only. + # Corresponds to the JSON property `defaultLimit` + # @return [Fixnum] + attr_accessor :default_limit + + # User-visible display name for this limit. + # Optional. If not set, the UI will provide a default display name based on + # the quota configuration. This field can be used to override the default + # display name generated from the configuration. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. User-visible, extended description for this quota limit. + # Should be used only when more context is needed to understand this limit + # than provided by the limit's display name (see: `display_name`). + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The name of the metric this quota limit applies to. The quota limits with + # the same metric will be checked together during runtime. The metric must be + # defined within the service config. + # Used by metric-based quotas only. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # Tiered limit values, currently only STANDARD is supported. + # Corresponds to the JSON property `values` + # @return [Hash] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @max_limit = args[:max_limit] if args.key?(:max_limit) + @name = args[:name] if args.key?(:name) + @duration = args[:duration] if args.key?(:duration) + @free_tier = args[:free_tier] if args.key?(:free_tier) + @default_limit = args[:default_limit] if args.key?(:default_limit) + @display_name = args[:display_name] if args.key?(:display_name) + @description = args[:description] if args.key?(:description) + @metric = args[:metric] if args.key?(:metric) + @values = args[:values] if args.key?(:values) + end + end + + # Represents a service configuration with its name and id. + class ConfigRef + include Google::Apis::Core::Hashable + + # Resource name of a service config. It must have the following + # format: "services/`service name`/configs/`config id`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + + # Response message for ListServiceRollouts method. + class ListServiceRolloutsResponse + include Google::Apis::Core::Hashable + + # The token of the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of rollout resources. + # Corresponds to the JSON property `rollouts` + # @return [Array] + attr_accessor :rollouts + + 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) + @rollouts = args[:rollouts] if args.key?(:rollouts) + end + end + + # Declares an API to be included in this API. The including API must + # redeclare all the methods from the included API, but documentation + # and options are inherited as follows: + # - If after comment and whitespace stripping, the documentation + # string of the redeclared method is empty, it will be inherited + # from the original method. + # - Each annotation belonging to the service config (http, + # visibility) which is not set in the redeclared method will be + # inherited. + # - If an http annotation is inherited, the path pattern will be + # modified as follows. Any version prefix will be replaced by the + # version of the including API plus the root path if specified. + # Example of a simple mixin: + # package google.acl.v1; + # service AccessControl ` + # // Get the underlying ACL object. + # rpc GetAcl(GetAclRequest) returns (Acl) ` + # option (google.api.http).get = "/v1/`resource=**`:getAcl"; + # ` + # ` + # package google.storage.v2; + # service Storage ` + # // rpc GetAcl(GetAclRequest) returns (Acl); + # // Get a data record. + # rpc GetData(GetDataRequest) returns (Data) ` + # option (google.api.http).get = "/v2/`resource=**`"; + # ` + # ` + # Example of a mixin configuration: + # apis: + # - name: google.storage.v2.Storage + # mixins: + # - name: google.acl.v1.AccessControl + # The mixin construct implies that all methods in `AccessControl` are + # also declared with same name and request/response types in + # `Storage`. A documentation generator or annotation processor will + # see the effective `Storage.GetAcl` method after inherting + # documentation and annotations as follows: + # service Storage ` + # // Get the underlying ACL object. + # rpc GetAcl(GetAclRequest) returns (Acl) ` + # option (google.api.http).get = "/v2/`resource=**`:getAcl"; + # ` + # ... + # ` + # Note how the version in the path pattern changed from `v1` to `v2`. + # If the `root` field in the mixin is specified, it should be a + # relative path under which inherited HTTP paths are placed. Example: + # apis: + # - name: google.storage.v2.Storage + # mixins: + # - name: google.acl.v1.AccessControl + # root: acls + # This implies the following inherited HTTP annotation: + # service Storage ` + # // Get the underlying ACL object. + # rpc GetAcl(GetAclRequest) returns (Acl) ` + # option (google.api.http).get = "/v2/acls/`resource=**`:getAcl"; + # ` + # ... + # ` + class Mixin + include Google::Apis::Core::Hashable + + # The fully qualified name of the API which is included. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If non-empty specifies a path under which inherited HTTP paths + # are rooted. + # Corresponds to the JSON property `root` + # @return [String] + attr_accessor :root + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @root = args[:root] if args.key?(:root) + end + end + + # The metadata associated with a long running operation resource. + class FlowOperationMetadata + include Google::Apis::Core::Hashable + + # Deadline for the flow to complete, to prevent orphaned Operations. + # If the flow has not completed by this time, it may be terminated by + # the engine, or force-failed by Operation lookup. + # Note that this is not a hard deadline after which the Flow will + # definitely be failed, rather it is a deadline after which it is reasonable + # to suspect a problem and other parts of the system may kill operation + # to ensure we don't have orphans. + # see also: go/prevent-orphaned-operations + # Corresponds to the JSON property `deadline` + # @return [String] + attr_accessor :deadline + + # The state of the operation with respect to cancellation. + # Corresponds to the JSON property `cancelState` + # @return [String] + attr_accessor :cancel_state + + # The start time of the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The full name of the resources that this flow is directly associated with. + # Corresponds to the JSON property `resourceNames` + # @return [Array] + attr_accessor :resource_names + + # The name of the top-level flow corresponding to this operation. + # Must be equal to the "name" field for a FlowName enum. + # Corresponds to the JSON property `flowName` + # @return [String] + attr_accessor :flow_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deadline = args[:deadline] if args.key?(:deadline) + @cancel_state = args[:cancel_state] if args.key?(:cancel_state) + @start_time = args[:start_time] if args.key?(:start_time) + @resource_names = args[:resource_names] if args.key?(:resource_names) + @flow_name = args[:flow_name] if args.key?(:flow_name) + end + end + + # Customize service error responses. For example, list any service + # specific protobuf types that can appear in error detail lists of + # error responses. + # Example: + # custom_error: + # types: + # - google.foo.v1.CustomError + # - google.foo.v1.AnotherError + class CustomError + include Google::Apis::Core::Hashable + + # The list of custom error rules that apply to individual API messages. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. + # Corresponds to the JSON property `types` + # @return [Array] + attr_accessor :types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + @types = args[:types] if args.key?(:types) + end + end + + # Options for counters + class CounterOptions + include Google::Apis::Core::Hashable + + # The field value to attribute. + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + # The metric to update. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field = args[:field] if args.key?(:field) + @metric = args[:metric] if args.key?(:metric) + end + end + + # Defines the HTTP configuration for an API service. It contains a list of + # HttpRule, each specifying the mapping of an RPC method + # to one or more HTTP REST API methods. + class Http + include Google::Apis::Core::Hashable + + # A list of HTTP configuration rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # When set to true, URL path parmeters will be fully URI-decoded except in + # cases of single segment matches in reserved expansion, where "%2F" will be + # left encoded. + # The default behavior is to not decode RFC 6570 reserved characters in multi + # segment matches. + # Corresponds to the JSON property `fullyDecodeReservedExpansion` + # @return [Boolean] + attr_accessor :fully_decode_reserved_expansion + alias_method :fully_decode_reserved_expansion?, :fully_decode_reserved_expansion + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + @fully_decode_reserved_expansion = args[:fully_decode_reserved_expansion] if args.key?(:fully_decode_reserved_expansion) + end + end + + # Source information used to create a Service Config + class SourceInfo + include Google::Apis::Core::Hashable + + # All files used during config generation. + # Corresponds to the JSON property `sourceFiles` + # @return [Array>] + attr_accessor :source_files + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_files = args[:source_files] if args.key?(:source_files) + end + end + + # Selects and configures the service controller used by the service. The + # service controller handles features like abuse, quota, billing, logging, + # monitoring, etc. + class Control + include Google::Apis::Core::Hashable + + # The service control environment to use. If empty, no control plane + # feature (like quota and billing) will be enabled. + # Corresponds to the JSON property `environment` + # @return [String] + attr_accessor :environment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment = args[:environment] if args.key?(:environment) + end + end + + # Define a parameter's name and location. The parameter may be passed as either + # an HTTP header or a URL query parameter, and if both are passed the behavior + # is implementation-dependent. + class SystemParameter + include Google::Apis::Core::Hashable + + # Define the URL query parameter name to use for the parameter. It is case + # sensitive. + # Corresponds to the JSON property `urlQueryParameter` + # @return [String] + attr_accessor :url_query_parameter + + # Define the HTTP header name to use for the parameter. It is case + # insensitive. + # Corresponds to the JSON property `httpHeader` + # @return [String] + attr_accessor :http_header + + # Define the name of the parameter, such as "api_key" . It is case sensitive. + # 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) + @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter) + @http_header = args[:http_header] if args.key?(:http_header) + @name = args[:name] if args.key?(:name) + end + end + + # Monitoring configuration of the service. + # The example below shows how to configure monitored resources and metrics + # for monitoring. In the example, a monitored resource and two metrics are + # defined. The `library.googleapis.com/book/returned_count` metric is sent + # to both producer and consumer projects, whereas the + # `library.googleapis.com/book/overdue_count` metric is only sent to the + # consumer project. + # monitored_resources: + # - type: library.googleapis.com/branch + # labels: + # - key: /city + # description: The city where the library branch is located in. + # - key: /name + # description: The name of the branch. + # metrics: + # - name: library.googleapis.com/book/returned_count + # metric_kind: DELTA + # value_type: INT64 + # labels: + # - key: /customer_id + # - name: library.googleapis.com/book/overdue_count + # metric_kind: GAUGE + # value_type: INT64 + # labels: + # - key: /customer_id + # monitoring: + # producer_destinations: + # - monitored_resource: library.googleapis.com/branch + # metrics: + # - library.googleapis.com/book/returned_count + # consumer_destinations: + # - monitored_resource: library.googleapis.com/branch + # metrics: + # - library.googleapis.com/book/returned_count + # - library.googleapis.com/book/overdue_count + class Monitoring + include Google::Apis::Core::Hashable + + # Monitoring configurations for sending metrics to the consumer project. + # There can be multiple consumer destinations, each one must have a + # different monitored resource type. A metric can be used in at most + # one consumer destination. + # Corresponds to the JSON property `consumerDestinations` + # @return [Array] + attr_accessor :consumer_destinations + + # Monitoring configurations for sending metrics to the producer project. + # There can be multiple producer destinations, each one must have a + # different monitored resource type. A metric can be used in at most + # one producer destination. + # Corresponds to the JSON property `producerDestinations` + # @return [Array] + attr_accessor :producer_destinations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations) + @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations) + end + end + + # A single field of a message type. + class Field + include Google::Apis::Core::Hashable + + # The field number. + # Corresponds to the JSON property `number` + # @return [Fixnum] + attr_accessor :number + + # The field type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The field JSON name. + # Corresponds to the JSON property `jsonName` + # @return [String] + attr_accessor :json_name + + # The protocol buffer options. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options + + # The index of the field type in `Type.oneofs`, for message or enumeration + # types. The first type has index 1; zero means the type is not in the list. + # Corresponds to the JSON property `oneofIndex` + # @return [Fixnum] + attr_accessor :oneof_index + + # Whether to use alternative packed wire representation. + # Corresponds to the JSON property `packed` + # @return [Boolean] + attr_accessor :packed + alias_method :packed?, :packed + + # The field cardinality. + # Corresponds to the JSON property `cardinality` + # @return [String] + attr_accessor :cardinality + + # The string value of the default value of this field. Proto2 syntax only. + # Corresponds to the JSON property `defaultValue` + # @return [String] + attr_accessor :default_value + + # The field name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The field type URL, without the scheme, for message or enumeration + # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + # Corresponds to the JSON property `typeUrl` + # @return [String] + attr_accessor :type_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @number = args[:number] if args.key?(:number) + @kind = args[:kind] if args.key?(:kind) + @json_name = args[:json_name] if args.key?(:json_name) + @options = args[:options] if args.key?(:options) + @oneof_index = args[:oneof_index] if args.key?(:oneof_index) + @packed = args[:packed] if args.key?(:packed) + @cardinality = args[:cardinality] if args.key?(:cardinality) + @default_value = args[:default_value] if args.key?(:default_value) + @name = args[:name] if args.key?(:name) + @type_url = args[:type_url] if args.key?(:type_url) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Enum type definition. + class Enum + include Google::Apis::Core::Hashable + + # Protocol buffer options. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options + + # The source syntax. + # Corresponds to the JSON property `syntax` + # @return [String] + attr_accessor :syntax + + # `SourceContext` represents information about the source of a + # protobuf element, like the file in which it is defined. + # Corresponds to the JSON property `sourceContext` + # @return [Google::Apis::ServicemanagementV1::SourceContext] + attr_accessor :source_context + + # Enum value definitions. + # Corresponds to the JSON property `enumvalue` + # @return [Array] + attr_accessor :enumvalue + + # Enum type 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) + @options = args[:options] if args.key?(:options) + @syntax = args[:syntax] if args.key?(:syntax) + @source_context = args[:source_context] if args.key?(:source_context) + @enumvalue = args[:enumvalue] if args.key?(:enumvalue) + @name = args[:name] if args.key?(:name) + end + end + + # A description of a label. + class LabelDescriptor + include Google::Apis::Core::Hashable + + # The type of data that can be assigned to the label. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # The label key. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # 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) + @value_type = args[:value_type] if args.key?(:value_type) + @key = args[:key] if args.key?(:key) + @description = args[:description] if args.key?(:description) + end + end + + # Represents a diagnostic message (error or warning) + class Diagnostic + include Google::Apis::Core::Hashable + + # The kind of diagnostic information provided. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Message describing the error or warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # File name and line number of the error or warning. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) + @location = args[:location] if args.key?(:location) + end + end + + # Request message for EnableService method. + class EnableServiceRequest + include Google::Apis::Core::Hashable + + # The identity of consumer resource which service enablement will be + # applied to. + # The Google Service Management implementation accepts the following + # forms: + # - "project:" + # Note: this is made compatible with + # google.api.servicecontrol.v1.Operation.consumer_id. + # Corresponds to the JSON property `consumerId` + # @return [String] + attr_accessor :consumer_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_id = args[:consumer_id] if args.key?(:consumer_id) + end + end + + # A protocol buffer message type. + class Type + include Google::Apis::Core::Hashable + + # The list of fields. + # Corresponds to the JSON property `fields` + # @return [Array] + attr_accessor :fields + + # The fully qualified message name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of types appearing in `oneof` definitions in this type. + # Corresponds to the JSON property `oneofs` + # @return [Array] + attr_accessor :oneofs + + # The source syntax. + # Corresponds to the JSON property `syntax` + # @return [String] + attr_accessor :syntax + + # `SourceContext` represents information about the source of a + # protobuf element, like the file in which it is defined. + # Corresponds to the JSON property `sourceContext` + # @return [Google::Apis::ServicemanagementV1::SourceContext] + attr_accessor :source_context + + # The protocol buffer options. + # Corresponds to the JSON property `options` + # @return [Array] + attr_accessor :options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + @oneofs = args[:oneofs] if args.key?(:oneofs) + @syntax = args[:syntax] if args.key?(:syntax) + @source_context = args[:source_context] if args.key?(:source_context) + @options = args[:options] if args.key?(:options) + end + end + + # Response message for GenerateConfigReport method. + class GenerateConfigReportResponse + include Google::Apis::Core::Hashable + + # Errors / Linter warnings associated with the service definition this + # report + # belongs to. + # Corresponds to the JSON property `diagnostics` + # @return [Array] + attr_accessor :diagnostics + + # Name of the service this report belongs to. + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_name + + # list of ChangeReport, each corresponding to comparison between two + # service configurations. + # Corresponds to the JSON property `changeReports` + # @return [Array] + attr_accessor :change_reports + + # ID of the service configuration this report belongs to. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @diagnostics = args[:diagnostics] if args.key?(:diagnostics) + @service_name = args[:service_name] if args.key?(:service_name) + @change_reports = args[:change_reports] if args.key?(:change_reports) + @id = args[:id] if args.key?(:id) + end + end + + # Response message for ListServiceConfigs method. + class ListServiceConfigsResponse + include Google::Apis::Core::Hashable + + # The list of service configuration resources. + # Corresponds to the JSON property `serviceConfigs` + # @return [Array] + attr_accessor :service_configs + + # The token of 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) + @service_configs = args[:service_configs] if args.key?(:service_configs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Experimental service configuration. These configuration options can + # only be used by whitelisted users. + class Experimental + include Google::Apis::Core::Hashable + + # Configuration of authorization. + # This section determines the authorization provider, if unspecified, then no + # authorization check will be done. + # Example: + # experimental: + # authorization: + # provider: firebaserules.googleapis.com + # Corresponds to the JSON property `authorization` + # @return [Google::Apis::ServicemanagementV1::AuthorizationConfig] + attr_accessor :authorization + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authorization = args[:authorization] if args.key?(:authorization) + end + end + + # `Backend` defines the backend configuration for a service. + class Backend + include Google::Apis::Core::Hashable + + # A list of API backend rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + end + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # The configuration for logging of each type of permission. + # Next ID: 4 + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @service = args[:service] if args.key?(:service) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + end + end + + # Request message for SubmitConfigSource method. + class SubmitConfigSourceRequest + include Google::Apis::Core::Hashable + + # Represents a source file which is used to generate the service configuration + # defined by `google.api.Service`. + # Corresponds to the JSON property `configSource` + # @return [Google::Apis::ServicemanagementV1::ConfigSource] + attr_accessor :config_source + + # Optional. If set, this will result in the generation of a + # `google.api.Service` configuration based on the `ConfigSource` provided, + # but the generated config and the sources will NOT be persisted. + # Corresponds to the JSON property `validateOnly` + # @return [Boolean] + attr_accessor :validate_only + alias_method :validate_only?, :validate_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config_source = args[:config_source] if args.key?(:config_source) + @validate_only = args[:validate_only] if args.key?(:validate_only) + end + end + + # A documentation rule provides information about individual API elements. + class DocumentationRule + include Google::Apis::Core::Hashable + + # Deprecation description of the selected element(s). It can be provided if an + # element is marked as `deprecated`. + # Corresponds to the JSON property `deprecationDescription` + # @return [String] + attr_accessor :deprecation_description + + # The selector is a comma-separated list of patterns. Each pattern is a + # qualified name of the element which may end in "*", indicating a wildcard. + # Wildcards are only allowed at the end and for a whole component of the + # qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To + # specify a default for all applicable elements, the whole pattern "*" + # is used. + # Corresponds to the JSON property `selector` + # @return [String] + attr_accessor :selector + + # Description of the selected API(s). + # 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) + @deprecation_description = args[:deprecation_description] if args.key?(:deprecation_description) + @selector = args[:selector] if args.key?(:selector) + @description = args[:description] if args.key?(:description) + end + end + + # Configuration of authorization. + # This section determines the authorization provider, if unspecified, then no + # authorization check will be done. + # Example: + # experimental: + # authorization: + # provider: firebaserules.googleapis.com + class AuthorizationConfig + include Google::Apis::Core::Hashable + + # The name of the authorization provider, such as + # firebaserules.googleapis.com. + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @provider = args[:provider] if args.key?(:provider) + end + end + + # Write a Cloud Audit log + class CloudAuditOptions + include Google::Apis::Core::Hashable + + # The log_name to populate in the Cloud Audit Record. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + # True if the log is for a permission of type DATA_READ or ADMIN_READ. + # Corresponds to the JSON property `isReadPermissionType` + # @return [Boolean] + attr_accessor :is_read_permission_type + alias_method :is_read_permission_type?, :is_read_permission_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_name = args[:log_name] if args.key?(:log_name) + @is_read_permission_type = args[:is_read_permission_type] if args.key?(:is_read_permission_type) + end + end + + # A context rule provides information about the context for an individual API + # element. + class ContextRule + include Google::Apis::Core::Hashable + + # Selects the methods to which this rule applies. + # Refer to selector for syntax details. + # Corresponds to the JSON property `selector` + # @return [String] + attr_accessor :selector + + # A list of full type names of provided contexts. + # Corresponds to the JSON property `provided` + # @return [Array] + attr_accessor :provided + + # A list of full type names of requested contexts. + # Corresponds to the JSON property `requested` + # @return [Array] + attr_accessor :requested + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @selector = args[:selector] if args.key?(:selector) + @provided = args[:provided] if args.key?(:provided) + @requested = args[:requested] if args.key?(:requested) + end + end + + # Defines a metric type and its schema. Once a metric descriptor is created, + # deleting or altering it stops data collection and makes the metric type's + # existing data unusable. + class MetricDescriptor + include Google::Apis::Core::Hashable + + # The unit in which the metric value is reported. It is only applicable + # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The + # supported units are a subset of [The Unified Code for Units of + # Measure](http://unitsofmeasure.org/ucum.html) standard: + # **Basic units (UNIT)** + # * `bit` bit + # * `By` byte + # * `s` second + # * `min` minute + # * `h` hour + # * `d` day + # **Prefixes (PREFIX)** + # * `k` kilo (10**3) + # * `M` mega (10**6) + # * `G` giga (10**9) + # * `T` tera (10**12) + # * `P` peta (10**15) + # * `E` exa (10**18) + # * `Z` zetta (10**21) + # * `Y` yotta (10**24) + # * `m` milli (10**-3) + # * `u` micro (10**-6) + # * `n` nano (10**-9) + # * `p` pico (10**-12) + # * `f` femto (10**-15) + # * `a` atto (10**-18) + # * `z` zepto (10**-21) + # * `y` yocto (10**-24) + # * `Ki` kibi (2**10) + # * `Mi` mebi (2**20) + # * `Gi` gibi (2**30) + # * `Ti` tebi (2**40) + # **Grammar** + # The grammar includes the dimensionless unit `1`, such as `1/s`. + # The grammar also includes these connectors: + # * `/` division (as an infix operator, e.g. `1/s`). + # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # The grammar for a unit is as follows: + # Expression = Component ` "." Component ` ` "/" Component ` ; + # Component = [ PREFIX ] UNIT [ Annotation ] + # | Annotation + # | "1" + # ; + # Annotation = "`" NAME "`" ; + # Notes: + # * `Annotation` is just a comment if it follows a `UNIT` and is + # equivalent to `1` if it is used alone. For examples, + # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `NAME` is a sequence of non-blank printable ASCII characters not + # containing '`' or '`'. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The set of labels that can be used to describe a specific + # instance of this metric type. For example, the + # `appengine.googleapis.com/http/server/response_latencies` metric + # type has a label for the HTTP response code, `response_code`, so + # you can look at latencies for successful responses or just + # for responses that failed. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The resource name of the metric descriptor. Depending on the + # implementation, the name typically includes: (1) the parent resource name + # that defines the scope of the metric type or of its data; and (2) the + # metric's URL-encoded type, which also appears in the `type` field of this + # descriptor. For example, following is the resource name of a custom + # metric within the GCP project `my-project-id`: + # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% + # 2Fpaid%2Famount" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The metric type, including its DNS name prefix. The type is not + # URL-encoded. All user-defined custom metric types have the DNS name + # `custom.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: + # "custom.googleapis.com/invoice/paid/amount" + # "appengine.googleapis.com/http/server/response_latencies" + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Whether the measurement is an integer, a floating-point number, etc. + # Some combinations of `metric_kind` and `value_type` might not be supported. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # Whether the metric records instantaneous values, changes to a value, etc. + # Some combinations of `metric_kind` and `value_type` might not be supported. + # Corresponds to the JSON property `metricKind` + # @return [String] + attr_accessor :metric_kind + + # A detailed description of the metric, which can be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A concise name for the metric, which can be displayed in user interfaces. + # Use sentence case without an ending period, for example "Request count". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @value_type = args[:value_type] if args.key?(:value_type) + @metric_kind = args[:metric_kind] if args.key?(:metric_kind) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + + # `SourceContext` represents information about the source of a + # protobuf element, like the file in which it is defined. + class SourceContext + include Google::Apis::Core::Hashable + + # The path-qualified name of the .proto file that contained the associated + # protobuf element. For example: `"google/protobuf/source_context.proto"`. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_name = args[:file_name] if args.key?(:file_name) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Response message for `ListServices` method. + class ListServicesResponse + include Google::Apis::Core::Hashable + + # Token that can be passed to `ListServices` to resume a paginated query. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The returned services will only have the name field set. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @services = args[:services] if args.key?(:services) + end + end + + # `Endpoint` describes a network endpoint that serves a set of APIs. + # A service may expose any number of endpoints, and all endpoints share the + # same service configuration, such as quota configuration and monitoring + # configuration. + # Example service configuration: + # name: library-example.googleapis.com + # endpoints: + # # Below entry makes 'google.example.library.v1.Library' + # # API be served from endpoint address library-example.googleapis.com. + # # It also allows HTTP OPTIONS calls to be passed to the backend, for + # # it to decide whether the subsequent cross-origin request is + # # allowed to proceed. + # - name: library-example.googleapis.com + # allow_cors: true + class Endpoint + include Google::Apis::Core::Hashable + + # The list of features enabled on this endpoint. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # The list of APIs served by this endpoint. + # If no APIs are specified this translates to "all APIs" exported by the + # service, as defined in the top-level service configuration. + # Corresponds to the JSON property `apis` + # @return [Array] + attr_accessor :apis + + # DEPRECATED: This field is no longer supported. Instead of using aliases, + # please specify multiple google.api.Endpoint for each of the intented + # alias. + # Additional names that this endpoint will be hosted on. + # Corresponds to the JSON property `aliases` + # @return [Array] + attr_accessor :aliases + + # Allowing + # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + # cross-domain traffic, would allow the backends served from this endpoint to + # receive and respond to HTTP OPTIONS requests. The response will be used by + # the browser to determine whether the subsequent cross-origin request is + # allowed to proceed. + # Corresponds to the JSON property `allowCors` + # @return [Boolean] + attr_accessor :allow_cors + alias_method :allow_cors?, :allow_cors + + # The canonical name of this endpoint. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The specification of an Internet routable address of API frontend that will + # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/ + # glossary). + # It should be either a valid IPv4 address or a fully-qualified domain name. + # For example, "8.8.8.8" or "myservice.appspot.com". + # 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) + @features = args[:features] if args.key?(:features) + @apis = args[:apis] if args.key?(:apis) + @aliases = args[:aliases] if args.key?(:aliases) + @allow_cors = args[:allow_cors] if args.key?(:allow_cors) + @name = args[:name] if args.key?(:name) + @target = args[:target] if args.key?(:target) + end + end + + # OAuth scopes are a way to define data and permissions on data. For example, + # there are scopes defined for "Read-only access to Google Calendar" and + # "Access to Cloud Platform". Users can consent to a scope for an application, + # giving it permission to access that data on their behalf. + # OAuth scope specifications should be fairly coarse grained; a user will need + # to see and understand the text description of what your scope means. + # In most cases: use one or at most two OAuth scopes for an entire family of + # products. If your product has multiple APIs, you should probably be sharing + # the OAuth scope across all of those APIs. + # When you need finer grained OAuth consent screens: talk with your product + # management about how developers will use them in practice. + # Please note that even though each of the canonical scopes is enough for a + # request to be accepted and passed to the backend, a request can still fail + # due to the backend requiring additional scopes or permissions. + class OAuthRequirements + include Google::Apis::Core::Hashable + + # The list of publicly documented OAuth scopes that are allowed access. An + # OAuth token containing any of these scopes will be accepted. + # Example: + # canonical_scopes: https://www.googleapis.com/auth/calendar, + # https://www.googleapis.com/auth/calendar.read + # Corresponds to the JSON property `canonicalScopes` + # @return [String] + attr_accessor :canonical_scopes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_scopes = args[:canonical_scopes] if args.key?(:canonical_scopes) + end + end + + # Configuration controlling usage of a service. + class Usage + include Google::Apis::Core::Hashable + + # Requirements that must be satisfied before a consumer project can use the + # service. Each requirement is of the form /; + # for example 'serviceusage.googleapis.com/billing-enabled'. + # Corresponds to the JSON property `requirements` + # @return [Array] + attr_accessor :requirements + + # The full resource name of a channel used for sending notifications to the + # service producer. + # Google Service Management currently only supports + # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + # channel. To use Google Cloud Pub/Sub as the channel, this must be the name + # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + # documented in https://cloud.google.com/pubsub/docs/overview. + # Corresponds to the JSON property `producerNotificationChannel` + # @return [String] + attr_accessor :producer_notification_channel + + # A list of usage rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requirements = args[:requirements] if args.key?(:requirements) + @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel) + @rules = args[:rules] if args.key?(:rules) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # `Context` defines which contexts an API requests. + # Example: + # context: + # rules: + # - selector: "*" + # requested: + # - google.rpc.context.ProjectContext + # - google.rpc.context.OriginContext + # The above specifies that all methods in the API request + # `google.rpc.context.ProjectContext` and + # `google.rpc.context.OriginContext`. + # Available context types are defined in package + # `google.rpc.context`. + class Context + include Google::Apis::Core::Hashable + + # A list of RPC context rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + end + end + + # A rule to be applied in a Policy. + class Rule + include Google::Apis::Core::Hashable + + # If one or more 'not_in' clauses are specified, the rule matches + # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. + # The format for in and not_in entries is the same as for members in a + # Binding (see google/iam/v1/policy.proto). + # Corresponds to the JSON property `notIn` + # @return [Array] + attr_accessor :not_in + + # Human-readable description of the rule. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Additional restrictions that must be met + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries + # that match the LOG action. + # Corresponds to the JSON property `logConfig` + # @return [Array] + attr_accessor :log_config + + # If one or more 'in' clauses are specified, the rule matches if + # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + # Corresponds to the JSON property `in` + # @return [Array] + attr_accessor :in + + # A permission is a string of form '..' + # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, + # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Required + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @not_in = args[:not_in] if args.key?(:not_in) + @description = args[:description] if args.key?(:description) + @conditions = args[:conditions] if args.key?(:conditions) + @log_config = args[:log_config] if args.key?(:log_config) + @in = args[:in] if args.key?(:in) + @permissions = args[:permissions] if args.key?(:permissions) + @action = args[:action] if args.key?(:action) + end + end + + # Specifies what kind of log the caller must write + # Increment a streamz counter with the specified metric and field names. + # Metric names should start with a '/', generally be lowercase-only, + # and end in "_count". Field names should not contain an initial slash. + # The actual exported metric names will have "/iam/policy" prepended. + # Field names correspond to IAM request parameters and field values are + # their respective values. + # At present the only supported field names are + # - "iam_principal", corresponding to IAMContext.principal; + # - "" (empty string), resulting in one aggretated counter with no field. + # Examples: + # counter ` metric: "/debug_access_count" field: "iam_principal" ` + # ==> increment counter /iam/policy/backend_debug_access_count + # `iam_principal=[value of IAMContext.principal]` + # At this time we do not support: + # * multiple field names (though this may be supported in the future) + # * decrementing the counter + # * incrementing it by anything other than 1 + class LogConfig + include Google::Apis::Core::Hashable + + # Options for counters + # Corresponds to the JSON property `counter` + # @return [Google::Apis::ServicemanagementV1::CounterOptions] + attr_accessor :counter + + # Write a Data Access (Gin) log + # Corresponds to the JSON property `dataAccess` + # @return [Google::Apis::ServicemanagementV1::DataAccessOptions] + attr_accessor :data_access + + # Write a Cloud Audit log + # Corresponds to the JSON property `cloudAudit` + # @return [Google::Apis::ServicemanagementV1::CloudAuditOptions] + attr_accessor :cloud_audit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @counter = args[:counter] if args.key?(:counter) + @data_access = args[:data_access] if args.key?(:data_access) + @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) + end + end + + # A description of a log type. Example in YAML format: + # - name: library.googleapis.com/activity_history + # description: The history of borrowing and returning library items. + # display_name: Activity + # labels: + # - key: /customer_id + # description: Identifier of a library customer + class LogDescriptor + include Google::Apis::Core::Hashable + + # The set of labels that are available to describe a specific log entry. + # Runtime requests that contain labels not specified here are + # considered invalid. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The name of the log. It must be less than 512 characters long and can + # include the following characters: upper- and lower-case alphanumeric + # characters [A-Za-z0-9], and punctuation characters including + # slash, underscore, hyphen, period [/_-.]. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The human-readable name for this log. This information appears on + # the user interface and should be concise. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A human-readable description of this log. This information appears in + # the documentation and can contain details. + # 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) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @display_name = args[:display_name] if args.key?(:display_name) + @description = args[:description] if args.key?(:description) + end + end + + # Generic specification of a source configuration file + class ConfigFile + include Google::Apis::Core::Hashable + + # The type of configuration file this represents. + # Corresponds to the JSON property `fileType` + # @return [String] + attr_accessor :file_type + + # The bytes that constitute the file. + # Corresponds to the JSON property `fileContents` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :file_contents + + # The file name of the configuration file (full or relative path). + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_type = args[:file_type] if args.key?(:file_type) + @file_contents = args[:file_contents] if args.key?(:file_contents) + @file_path = args[:file_path] if args.key?(:file_path) + end + end + + # A custom error rule. + class CustomErrorRule + include Google::Apis::Core::Hashable + + # Mark this message as possible payload in error response. Otherwise, + # objects of this type will be filtered when they appear in error payload. + # Corresponds to the JSON property `isErrorType` + # @return [Boolean] + attr_accessor :is_error_type + alias_method :is_error_type?, :is_error_type + + # Selects messages to which this rule applies. + # Refer to selector for syntax details. + # Corresponds to the JSON property `selector` + # @return [String] + attr_accessor :selector + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_error_type = args[:is_error_type] if args.key?(:is_error_type) + @selector = args[:selector] if args.key?(:selector) + end + end + + # An object that describes the schema of a MonitoredResource object using a + # type name and a set of labels. For example, the monitored resource + # descriptor for Google Compute Engine VM instances has a type of + # `"gce_instance"` and specifies the use of the labels `"instance_id"` and + # `"zone"` to identify particular VM instances. + # Different APIs can support different monitored resource types. APIs generally + # provide a `list` method that returns the monitored resource descriptors used + # by the API. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # Required. A set of labels used to describe instances of this monitored + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Optional. The resource name of the monitored resource descriptor: + # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where + # `type` is the value of the `type` field in this object and + # `project_id` is a project ID that provides API-specific context for + # accessing the type. APIs that do not use project information can use the + # resource name format `"monitoredResourceDescriptors/`type`"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A detailed description of the monitored resource type that might + # be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A concise name for the monitored resource type that might be + # displayed in user interfaces. It should be a Title Cased Noun Phrase, + # without any article or other determiners. For example, + # `"Google Cloud SQL Database"`. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The monitored resource type. For example, the type + # `"cloudsql_database"` represents databases in Google Cloud SQL. + # The maximum length of this value is 256 characters. + # 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) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @type = args[:type] if args.key?(:type) + end + end + + # Configuration for a custom authentication provider. + class CustomAuthRequirements + include Google::Apis::Core::Hashable + + # A configuration string containing connection information for the + # authentication provider, typically formatted as a SmartService string + # (go/smartservice). + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @provider = args[:provider] if args.key?(:provider) + end + end + + # Defines the Media configuration for a service in case of a download. + # Use this only for Scotty Requests. Do not use this for media support using + # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to + # your configuration for Bytestream methods. + class MediaDownload + include Google::Apis::Core::Hashable + + # Whether download is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. + # Specify name of the download service if one is used for download. + # Corresponds to the JSON property `downloadService` + # @return [String] + attr_accessor :download_service + + # A boolean that determines whether a notification for the completion of a + # download should be sent to the backend. + # Corresponds to the JSON property `completeNotification` + # @return [Boolean] + attr_accessor :complete_notification + alias_method :complete_notification?, :complete_notification + + # Name of the Scotty dropzone to use for the current API. + # Corresponds to the JSON property `dropzone` + # @return [String] + attr_accessor :dropzone + + # Optional maximum acceptable size for direct download. + # The size is specified in bytes. + # Corresponds to the JSON property `maxDirectDownloadSize` + # @return [Fixnum] + attr_accessor :max_direct_download_size + + # A boolean that determines if direct download from ESF should be used for + # download of this media. + # Corresponds to the JSON property `useDirectDownload` + # @return [Boolean] + attr_accessor :use_direct_download + alias_method :use_direct_download?, :use_direct_download + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + @download_service = args[:download_service] if args.key?(:download_service) + @complete_notification = args[:complete_notification] if args.key?(:complete_notification) + @dropzone = args[:dropzone] if args.key?(:dropzone) + @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size) + @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download) + end + end + + # Change report associated with a particular service configuration. + # It contains a list of ConfigChanges based on the comparison between + # two service configurations. + class ChangeReport + include Google::Apis::Core::Hashable + + # List of changes between two service configurations. + # The changes will be alphabetically sorted based on the identifier + # of each change. + # A ConfigChange identifier is a dot separated path to the configuration. + # Example: visibility.rules[selector='LibraryService.CreateBook'].restriction + # Corresponds to the JSON property `configChanges` + # @return [Array] + attr_accessor :config_changes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config_changes = args[:config_changes] if args.key?(:config_changes) + end + end + + # Request message for DisableService method. + class DisableServiceRequest + include Google::Apis::Core::Hashable + + # The identity of consumer resource which service disablement will be + # applied to. + # The Google Service Management implementation accepts the following + # forms: + # - "project:" + # Note: this is made compatible with + # google.api.servicecontrol.v1.Operation.consumer_id. + # Corresponds to the JSON property `consumerId` + # @return [String] + attr_accessor :consumer_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_id = args[:consumer_id] if args.key?(:consumer_id) + end + end + + # Response message for SubmitConfigSource method. + class SubmitConfigSourceResponse + include Google::Apis::Core::Hashable + + # `Service` is the root object of Google service configuration schema. It + # describes basic information about a service, such as the name and the + # title, and delegates other aspects to sub-sections. Each sub-section is + # either a proto message or a repeated proto message that configures a + # specific aspect, such as auth. See each proto message definition for details. + # Example: + # type: google.api.Service + # config_version: 3 + # name: calendar.googleapis.com + # title: Google Calendar API + # apis: + # - name: google.calendar.v3.Calendar + # authentication: + # providers: + # - id: google_calendar_auth + # jwks_uri: https://www.googleapis.com/oauth2/v1/certs + # issuer: https://securetoken.google.com + # rules: + # - selector: "*" + # requirements: + # provider_id: google_calendar_auth + # Corresponds to the JSON property `serviceConfig` + # @return [Google::Apis::ServicemanagementV1::Service] + attr_accessor :service_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service_config = args[:service_config] if args.key?(:service_config) + end + end + # Defines the Media configuration for a service in case of an upload. # Use this only for Scotty Requests. Do not use this for media support using # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to @@ -29,6 +2649,30 @@ module Google class MediaUpload include Google::Apis::Core::Hashable + # Whether to receive a notification on the start of media upload. + # Corresponds to the JSON property `startNotification` + # @return [Boolean] + attr_accessor :start_notification + alias_method :start_notification?, :start_notification + + # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. + # Specify name of the upload service if one is used for upload. + # Corresponds to the JSON property `uploadService` + # @return [String] + attr_accessor :upload_service + + # An array of mimetype patterns. Esf will only accept uploads that match one + # of the given patterns. + # Corresponds to the JSON property `mimeTypes` + # @return [Array] + attr_accessor :mime_types + + # Optional maximum acceptable size for an upload. + # The size is specified in bytes. + # Corresponds to the JSON property `maxSize` + # @return [Fixnum] + attr_accessor :max_size + # A boolean that determines whether a notification for the completion of an # upload should be sent to the backend. These notifications will not be seen # by the client and will not consume quota. @@ -54,44 +2698,20 @@ module Google # @return [String] attr_accessor :dropzone - # Whether to receive a notification on the start of media upload. - # Corresponds to the JSON property `startNotification` - # @return [Boolean] - attr_accessor :start_notification - alias_method :start_notification?, :start_notification - - # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. - # Specify name of the upload service if one is used for upload. - # Corresponds to the JSON property `uploadService` - # @return [String] - attr_accessor :upload_service - - # An array of mimetype patterns. Esf will only accept uploads that match one - # of the given patterns. - # Corresponds to the JSON property `mimeTypes` - # @return [Array] - attr_accessor :mime_types - - # Optional maximum acceptable size for an upload. - # The size is specified in bytes. - # Corresponds to the JSON property `maxSize` - # @return [Fixnum] - attr_accessor :max_size - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @complete_notification = args[:complete_notification] if args.key?(:complete_notification) - @progress_notification = args[:progress_notification] if args.key?(:progress_notification) - @enabled = args[:enabled] if args.key?(:enabled) - @dropzone = args[:dropzone] if args.key?(:dropzone) @start_notification = args[:start_notification] if args.key?(:start_notification) @upload_service = args[:upload_service] if args.key?(:upload_service) @mime_types = args[:mime_types] if args.key?(:mime_types) @max_size = args[:max_size] if args.key?(:max_size) + @complete_notification = args[:complete_notification] if args.key?(:complete_notification) + @progress_notification = args[:progress_notification] if args.key?(:progress_notification) + @enabled = args[:enabled] if args.key?(:enabled) + @dropzone = args[:dropzone] if args.key?(:dropzone) end end @@ -164,6 +2784,12 @@ module Google class UsageRule include Google::Apis::Core::Hashable + # True, if the method allows unregistered calls; false otherwise. + # Corresponds to the JSON property `allowUnregisteredCalls` + # @return [Boolean] + attr_accessor :allow_unregistered_calls + alias_method :allow_unregistered_calls?, :allow_unregistered_calls + # Selects the methods to which this rule applies. Use '*' to indicate all # methods in all APIs. # Refer to selector for syntax details. @@ -171,11 +2797,12 @@ module Google # @return [String] attr_accessor :selector - # True, if the method allows unregistered calls; false otherwise. - # Corresponds to the JSON property `allowUnregisteredCalls` + # True, if the method should skip service control. If so, no control plane + # feature (like quota and billing) will be enabled. + # Corresponds to the JSON property `skipServiceControl` # @return [Boolean] - attr_accessor :allow_unregistered_calls - alias_method :allow_unregistered_calls?, :allow_unregistered_calls + attr_accessor :skip_service_control + alias_method :skip_service_control?, :skip_service_control def initialize(**args) update!(**args) @@ -183,51 +2810,9 @@ module Google # Update properties of this object def update!(**args) - @selector = args[:selector] if args.key?(:selector) @allow_unregistered_calls = args[:allow_unregistered_calls] if args.key?(:allow_unregistered_calls) - end - end - - # User-defined authentication requirements, including support for - # [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web- - # token-32). - class AuthRequirement - include Google::Apis::Core::Hashable - - # id from authentication provider. - # Example: - # provider_id: bookstore_auth - # Corresponds to the JSON property `providerId` - # @return [String] - attr_accessor :provider_id - - # NOTE: This will be deprecated soon, once AuthProvider.audiences is - # implemented and accepted in all the runtime components. - # The list of JWT - # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32# - # section-4.1.3). - # that are allowed to access. A JWT containing any of these audiences will - # be accepted. When this setting is absent, only JWTs with audience - # "https://Service_name/API_name" - # will be accepted. For example, if no audiences are in the setting, - # LibraryService API will only accept JWTs with the following audience - # "https://library-example.googleapis.com/google.example.library.v1. - # LibraryService". - # Example: - # audiences: bookstore_android.apps.googleusercontent.com, - # bookstore_web.apps.googleusercontent.com - # Corresponds to the JSON property `audiences` - # @return [String] - attr_accessor :audiences - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @provider_id = args[:provider_id] if args.key?(:provider_id) - @audiences = args[:audiences] if args.key?(:audiences) + @selector = args[:selector] if args.key?(:selector) + @skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control) end end @@ -277,6 +2862,99 @@ module Google end end + # User-defined authentication requirements, including support for + # [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web- + # token-32). + class AuthRequirement + include Google::Apis::Core::Hashable + + # NOTE: This will be deprecated soon, once AuthProvider.audiences is + # implemented and accepted in all the runtime components. + # The list of JWT + # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32# + # section-4.1.3). + # that are allowed to access. A JWT containing any of these audiences will + # be accepted. When this setting is absent, only JWTs with audience + # "https://Service_name/API_name" + # will be accepted. For example, if no audiences are in the setting, + # LibraryService API will only accept JWTs with the following audience + # "https://library-example.googleapis.com/google.example.library.v1. + # LibraryService". + # Example: + # audiences: bookstore_android.apps.googleusercontent.com, + # bookstore_web.apps.googleusercontent.com + # Corresponds to the JSON property `audiences` + # @return [String] + attr_accessor :audiences + + # id from authentication provider. + # Example: + # provider_id: bookstore_auth + # Corresponds to the JSON property `providerId` + # @return [String] + attr_accessor :provider_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audiences = args[:audiences] if args.key?(:audiences) + @provider_id = args[:provider_id] if args.key?(:provider_id) + end + end + + # A condition to be met. + class Condition + include Google::Apis::Core::Hashable + + # DEPRECATED. Use 'values' instead. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # Trusted attributes supplied by any service that owns resources and uses + # the IAM system for access control. + # Corresponds to the JSON property `sys` + # @return [String] + attr_accessor :sys + + # Trusted attributes supplied by the IAM system. + # Corresponds to the JSON property `iam` + # @return [String] + attr_accessor :iam + + # The objects of the condition. This is mutually exclusive with 'value'. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + # An operator to apply the subject with. + # Corresponds to the JSON property `op` + # @return [String] + attr_accessor :op + + # Trusted attributes discharged by the service. + # Corresponds to the JSON property `svc` + # @return [String] + attr_accessor :svc + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @sys = args[:sys] if args.key?(:sys) + @iam = args[:iam] if args.key?(:iam) + @values = args[:values] if args.key?(:values) + @op = args[:op] if args.key?(:op) + @svc = args[:svc] if args.key?(:svc) + end + end + # `Documentation` provides the information for describing a service. # Example: #
    documentation:
    @@ -333,11 +3011,16 @@ module Google
           class Documentation
             include Google::Apis::Core::Hashable
           
    -        # A list of documentation rules that apply to individual API elements.
    -        # **NOTE:** All service configuration rules follow "last one wins" order.
    -        # Corresponds to the JSON property `rules`
    -        # @return [Array]
    -        attr_accessor :rules
    +        # A short summary of what the service does. Can only be provided by
    +        # plain text.
    +        # Corresponds to the JSON property `summary`
    +        # @return [String]
    +        attr_accessor :summary
    +      
    +        # The URL to the root of documentation.
    +        # Corresponds to the JSON property `documentationRootUrl`
    +        # @return [String]
    +        attr_accessor :documentation_root_url
           
             # Declares a single overview page. For example:
             # 
    documentation:
    @@ -356,83 +3039,28 @@ module Google
             # @return [String]
             attr_accessor :overview
           
    +        # A list of documentation rules that apply to individual API elements.
    +        # **NOTE:** All service configuration rules follow "last one wins" order.
    +        # Corresponds to the JSON property `rules`
    +        # @return [Array]
    +        attr_accessor :rules
    +      
             # The top level pages for the documentation set.
             # Corresponds to the JSON property `pages`
             # @return [Array]
             attr_accessor :pages
           
    -        # A short summary of what the service does. Can only be provided by
    -        # plain text.
    -        # Corresponds to the JSON property `summary`
    -        # @return [String]
    -        attr_accessor :summary
    -      
    -        # The URL to the root of documentation.
    -        # Corresponds to the JSON property `documentationRootUrl`
    -        # @return [String]
    -        attr_accessor :documentation_root_url
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @rules = args[:rules] if args.key?(:rules)
    -          @overview = args[:overview] if args.key?(:overview)
    -          @pages = args[:pages] if args.key?(:pages)
               @summary = args[:summary] if args.key?(:summary)
               @documentation_root_url = args[:documentation_root_url] if args.key?(:documentation_root_url)
    -        end
    -      end
    -      
    -      # A condition to be met.
    -      class Condition
    -        include Google::Apis::Core::Hashable
    -      
    -        # An operator to apply the subject with.
    -        # Corresponds to the JSON property `op`
    -        # @return [String]
    -        attr_accessor :op
    -      
    -        # Trusted attributes discharged by the service.
    -        # Corresponds to the JSON property `svc`
    -        # @return [String]
    -        attr_accessor :svc
    -      
    -        # Trusted attributes supplied by any service that owns resources and uses
    -        # the IAM system for access control.
    -        # Corresponds to the JSON property `sys`
    -        # @return [String]
    -        attr_accessor :sys
    -      
    -        # DEPRECATED. Use 'values' instead.
    -        # Corresponds to the JSON property `value`
    -        # @return [String]
    -        attr_accessor :value
    -      
    -        # The objects of the condition. This is mutually exclusive with 'value'.
    -        # Corresponds to the JSON property `values`
    -        # @return [Array]
    -        attr_accessor :values
    -      
    -        # Trusted attributes supplied by the IAM system.
    -        # Corresponds to the JSON property `iam`
    -        # @return [String]
    -        attr_accessor :iam
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @op = args[:op] if args.key?(:op)
    -          @svc = args[:svc] if args.key?(:svc)
    -          @sys = args[:sys] if args.key?(:sys)
    -          @value = args[:value] if args.key?(:value)
    -          @values = args[:values] if args.key?(:values)
    -          @iam = args[:iam] if args.key?(:iam)
    +          @overview = args[:overview] if args.key?(:overview)
    +          @rules = args[:rules] if args.key?(:rules)
    +          @pages = args[:pages] if args.key?(:pages)
             end
           end
           
    @@ -456,6 +3084,11 @@ module Google
           class AuditLogConfig
             include Google::Apis::Core::Hashable
           
    +        # The log type that this config enables.
    +        # Corresponds to the JSON property `logType`
    +        # @return [String]
    +        attr_accessor :log_type
    +      
             # Specifies the identities that do not cause logging for this type of
             # permission.
             # Follows the same format of Binding.members.
    @@ -463,19 +3096,14 @@ module Google
             # @return [Array]
             attr_accessor :exempted_members
           
    -        # The log type that this config enables.
    -        # Corresponds to the JSON property `logType`
    -        # @return [String]
    -        attr_accessor :log_type
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
               @log_type = args[:log_type] if args.key?(:log_type)
    +          @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
             end
           end
           
    @@ -484,12 +3112,6 @@ module Google
           class ConfigSource
             include Google::Apis::Core::Hashable
           
    -        # Set of source configuration files that are used to generate a service
    -        # configuration (`google.api.Service`).
    -        # Corresponds to the JSON property `files`
    -        # @return [Array]
    -        attr_accessor :files
    -      
             # A unique ID for a specific instance of this message, typically assigned
             # by the client for tracking purpose. If empty, the server may choose to
             # generate one instead.
    @@ -497,14 +3119,60 @@ module Google
             # @return [String]
             attr_accessor :id
           
    +        # Set of source configuration files that are used to generate a service
    +        # configuration (`google.api.Service`).
    +        # Corresponds to the JSON property `files`
    +        # @return [Array]
    +        attr_accessor :files
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @files = args[:files] if args.key?(:files)
               @id = args[:id] if args.key?(:id)
    +          @files = args[:files] if args.key?(:files)
    +        end
    +      end
    +      
    +      # A backend rule provides configuration for an individual API element.
    +      class BackendRule
    +        include Google::Apis::Core::Hashable
    +      
    +        # Minimum deadline in seconds needed for this method. Calls having deadline
    +        # value lower than this will be rejected.
    +        # Corresponds to the JSON property `minDeadline`
    +        # @return [Float]
    +        attr_accessor :min_deadline
    +      
    +        # The address of the API backend.
    +        # Corresponds to the JSON property `address`
    +        # @return [String]
    +        attr_accessor :address
    +      
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
    +        # The number of seconds to wait for a response from a request.  The
    +        # default depends on the deployment context.
    +        # Corresponds to the JSON property `deadline`
    +        # @return [Float]
    +        attr_accessor :deadline
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
    +          @address = args[:address] if args.key?(:address)
    +          @selector = args[:selector] if args.key?(:selector)
    +          @deadline = args[:deadline] if args.key?(:deadline)
             end
           end
           
    @@ -523,12 +3191,6 @@ module Google
             # @return [Array]
             attr_accessor :requirements
           
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
             # Whether to allow requests without a credential. The credential can be
             # an OAuth token, Google cookies (first-party auth) or EndUserCreds.
             # For requests without credentials, if the service control environment is
    @@ -540,6 +3202,17 @@ module Google
             attr_accessor :allow_without_credential
             alias_method :allow_without_credential?, :allow_without_credential
           
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
    +        # Configuration for a custom authentication provider.
    +        # Corresponds to the JSON property `customAuth`
    +        # @return [Google::Apis::ServicemanagementV1::CustomAuthRequirements]
    +        attr_accessor :custom_auth
    +      
             # OAuth scopes are a way to define data and permissions on data. For example,
             # there are scopes defined for "Read-only access to Google Calendar" and
             # "Access to Cloud Platform". Users can consent to a scope for an application,
    @@ -558,11 +3231,6 @@ module Google
             # @return [Google::Apis::ServicemanagementV1::OAuthRequirements]
             attr_accessor :oauth
           
    -        # Configuration for a custom authentication provider.
    -        # Corresponds to the JSON property `customAuth`
    -        # @return [Google::Apis::ServicemanagementV1::CustomAuthRequirements]
    -        attr_accessor :custom_auth
    -      
             def initialize(**args)
                update!(**args)
             end
    @@ -570,39 +3238,22 @@ module Google
             # Update properties of this object
             def update!(**args)
               @requirements = args[:requirements] if args.key?(:requirements)
    -          @selector = args[:selector] if args.key?(:selector)
               @allow_without_credential = args[:allow_without_credential] if args.key?(:allow_without_credential)
    -          @oauth = args[:oauth] if args.key?(:oauth)
    +          @selector = args[:selector] if args.key?(:selector)
               @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
    +          @oauth = args[:oauth] if args.key?(:oauth)
             end
           end
           
    -      # A backend rule provides configuration for an individual API element.
    -      class BackendRule
    +      # Response message for UndeleteService method.
    +      class UndeleteServiceResponse
             include Google::Apis::Core::Hashable
           
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
    -        # The number of seconds to wait for a response from a request.  The
    -        # default depends on the deployment context.
    -        # Corresponds to the JSON property `deadline`
    -        # @return [Float]
    -        attr_accessor :deadline
    -      
    -        # Minimum deadline in seconds needed for this method. Calls having deadline
    -        # value lower than this will be rejected.
    -        # Corresponds to the JSON property `minDeadline`
    -        # @return [Float]
    -        attr_accessor :min_deadline
    -      
    -        # The address of the API backend.
    -        # Corresponds to the JSON property `address`
    -        # @return [String]
    -        attr_accessor :address
    +        # The full representation of a Service that is managed by
    +        # Google Service Management.
    +        # Corresponds to the JSON property `service`
    +        # @return [Google::Apis::ServicemanagementV1::ManagedService]
    +        attr_accessor :service
           
             def initialize(**args)
                update!(**args)
    @@ -610,10 +3261,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @selector = args[:selector] if args.key?(:selector)
    -          @deadline = args[:deadline] if args.key?(:deadline)
    -          @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
    -          @address = args[:address] if args.key?(:address)
    +          @service = args[:service] if args.key?(:service)
             end
           end
           
    @@ -710,40 +3358,14 @@ module Google
             end
           end
           
    -      # Response message for UndeleteService method.
    -      class UndeleteServiceResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The full representation of a Service that is managed by
    -        # Google Service Management.
    -        # Corresponds to the JSON property `service`
    -        # @return [Google::Apis::ServicemanagementV1::ManagedService]
    -        attr_accessor :service
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @service = args[:service] if args.key?(:service)
    -        end
    -      end
    -      
           # Api is a light-weight descriptor for a protocol buffer service.
           class Api
             include Google::Apis::Core::Hashable
           
    -        # The methods of this api, in unspecified order.
    -        # Corresponds to the JSON property `methods`
    -        # @return [Array]
    -        attr_accessor :methods_prop
    -      
    -        # The fully qualified name of this api, including package name
    -        # followed by the api's simple name.
    -        # Corresponds to the JSON property `name`
    +        # The source syntax of the service.
    +        # Corresponds to the JSON property `syntax`
             # @return [String]
    -        attr_accessor :name
    +        attr_accessor :syntax
           
             # `SourceContext` represents information about the source of a
             # protobuf element, like the file in which it is defined.
    @@ -751,11 +3373,6 @@ module Google
             # @return [Google::Apis::ServicemanagementV1::SourceContext]
             attr_accessor :source_context
           
    -        # The source syntax of the service.
    -        # Corresponds to the JSON property `syntax`
    -        # @return [String]
    -        attr_accessor :syntax
    -      
             # A version string for this api. If specified, must have the form
             # `major-version.minor-version`, as in `1.10`. If the minor version
             # is omitted, it defaults to zero. If the entire version field is
    @@ -788,50 +3405,30 @@ module Google
             # @return [Array]
             attr_accessor :options
           
    +        # The methods of this api, in unspecified order.
    +        # Corresponds to the JSON property `methods`
    +        # @return [Array]
    +        attr_accessor :methods_prop
    +      
    +        # The fully qualified name of this api, including package name
    +        # followed by the api's simple 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)
    -          @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
    -          @name = args[:name] if args.key?(:name)
    -          @source_context = args[:source_context] if args.key?(:source_context)
               @syntax = args[:syntax] if args.key?(:syntax)
    +          @source_context = args[:source_context] if args.key?(:source_context)
               @version = args[:version] if args.key?(:version)
               @mixins = args[:mixins] if args.key?(:mixins)
               @options = args[:options] if args.key?(:options)
    -        end
    -      end
    -      
    -      # Bind API methods to metrics. Binding a method to a metric causes that
    -      # metric's configured quota behaviors to apply to the method call.
    -      class MetricRule
    -        include Google::Apis::Core::Hashable
    -      
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
    -        # Metrics to update when the selected methods are called, and the associated
    -        # cost applied to each metric.
    -        # The key of the map is the metric name, and the values are the amount
    -        # increased for the metric against which the quota limits are defined.
    -        # The value must not be negative.
    -        # Corresponds to the JSON property `metricCosts`
    -        # @return [Hash]
    -        attr_accessor :metric_costs
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @selector = args[:selector] if args.key?(:selector)
    -          @metric_costs = args[:metric_costs] if args.key?(:metric_costs)
    +          @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
    +          @name = args[:name] if args.key?(:name)
             end
           end
           
    @@ -848,6 +3445,37 @@ module Google
             end
           end
           
    +      # Bind API methods to metrics. Binding a method to a metric causes that
    +      # metric's configured quota behaviors to apply to the method call.
    +      class MetricRule
    +        include Google::Apis::Core::Hashable
    +      
    +        # Metrics to update when the selected methods are called, and the associated
    +        # cost applied to each metric.
    +        # The key of the map is the metric name, and the values are the amount
    +        # increased for the metric against which the quota limits are defined.
    +        # The value must not be negative.
    +        # Corresponds to the JSON property `metricCosts`
    +        # @return [Hash]
    +        attr_accessor :metric_costs
    +      
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @metric_costs = args[:metric_costs] if args.key?(:metric_costs)
    +          @selector = args[:selector] if args.key?(:selector)
    +        end
    +      end
    +      
           # `Authentication` defines the authentication configuration for an API.
           # Example for an API targeted for external use:
           # name: calendar.googleapis.com
    @@ -890,26 +3518,6 @@ module Google
           class Operation
             include Google::Apis::Core::Hashable
           
    -        # 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
    -      
             # The server-assigned name, which is only unique within the same service that
             # originally returns it. If you use the default HTTP mapping, the
             # `name` should have the format of `operations/some/unique/name`.
    @@ -968,17 +3576,37 @@ module Google
             # @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 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)
    -          @done = args[:done] if args.key?(:done)
    -          @response = args[:response] if args.key?(:response)
               @name = args[:name] if args.key?(:name)
               @error = args[:error] if args.key?(:error)
               @metadata = args[:metadata] if args.key?(:metadata)
    +          @done = args[:done] if args.key?(:done)
    +          @response = args[:response] if args.key?(:response)
             end
           end
           
    @@ -987,12 +3615,6 @@ module Google
           class Page
             include Google::Apis::Core::Hashable
           
    -        # Subpages of this page. The order of subpages specified here will be
    -        # honored in the generated docset.
    -        # Corresponds to the JSON property `subpages`
    -        # @return [Array]
    -        attr_accessor :subpages
    -      
             # The name of the page. It will be used as an identity of the page to
             # generate URI of the page, text of the link to this page in navigation,
             # etc. The full page name (start from the root page name to this page
    @@ -1018,15 +3640,21 @@ module Google
             # @return [String]
             attr_accessor :content
           
    +        # Subpages of this page. The order of subpages specified here will be
    +        # honored in the generated docset.
    +        # Corresponds to the JSON property `subpages`
    +        # @return [Array]
    +        attr_accessor :subpages
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @subpages = args[:subpages] if args.key?(:subpages)
               @name = args[:name] if args.key?(:name)
               @content = args[:content] if args.key?(:content)
    +          @subpages = args[:subpages] if args.key?(:subpages)
             end
           end
           
    @@ -1072,6 +3700,12 @@ module Google
           class Status
             include Google::Apis::Core::Hashable
           
    +        # 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
    +      
             # The status code, which should be an enum value of google.rpc.Code.
             # Corresponds to the JSON property `code`
             # @return [Fixnum]
    @@ -1084,21 +3718,15 @@ module Google
             # @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)
    +          @details = args[:details] if args.key?(:details)
               @code = args[:code] if args.key?(:code)
               @message = args[:message] if args.key?(:message)
    -          @details = args[:details] if args.key?(:details)
             end
           end
           
    @@ -1157,21 +3785,6 @@ module Google
           class AuthProvider
             include Google::Apis::Core::Hashable
           
    -        # URL of the provider's public key set to validate signature of the JWT. See
    -        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
    -        # ProviderMetadata).
    -        # Optional if the key set document:
    -        # - can be retrieved from
    -        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
    -        # html
    -        # of the issuer.
    -        # - can be inferred from the email domain of the issuer (e.g. a Google service
    -        # account).
    -        # Example: https://www.googleapis.com/oauth2/v1/certs
    -        # Corresponds to the JSON property `jwksUri`
    -        # @return [String]
    -        attr_accessor :jwks_uri
    -      
             # The list of JWT
             # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
             # section-4.1.3).
    @@ -1189,13 +3802,6 @@ module Google
             # @return [String]
             attr_accessor :audiences
           
    -        # The unique identifier of the auth provider. It will be referred to by
    -        # `AuthRequirement.provider_id`.
    -        # Example: "bookstore_auth".
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
             # Identifies the principal that issued the JWT. See
             # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
             # Usually a URL or an email address.
    @@ -1205,16 +3811,38 @@ module Google
             # @return [String]
             attr_accessor :issuer
           
    +        # The unique identifier of the auth provider. It will be referred to by
    +        # `AuthRequirement.provider_id`.
    +        # Example: "bookstore_auth".
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        # URL of the provider's public key set to validate signature of the JWT. See
    +        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
    +        # ProviderMetadata).
    +        # Optional if the key set document:
    +        # - can be retrieved from
    +        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
    +        # html
    +        # of the issuer.
    +        # - can be inferred from the email domain of the issuer (e.g. a Google service
    +        # account).
    +        # Example: https://www.googleapis.com/oauth2/v1/certs
    +        # Corresponds to the JSON property `jwksUri`
    +        # @return [String]
    +        attr_accessor :jwks_uri
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
               @audiences = args[:audiences] if args.key?(:audiences)
    -          @id = args[:id] if args.key?(:id)
               @issuer = args[:issuer] if args.key?(:issuer)
    +          @id = args[:id] if args.key?(:id)
    +          @jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
             end
           end
           
    @@ -1273,15 +3901,136 @@ module Google
           class Service
             include Google::Apis::Core::Hashable
           
    -        # A list of all enum types included in this API service.  Enums
    -        # referenced directly or indirectly by the `apis` are automatically
    -        # included.  Enums which are not referenced but shall be included
    +        # A list of all proto message types included in this API service.
    +        # Types referenced directly or indirectly by the `apis` are
    +        # automatically included.  Messages which are not referenced but
    +        # shall be included, such as types used by the `google.protobuf.Any` type,
             # should be listed here by name. Example:
    -        # enums:
    -        # - name: google.someapi.v1.SomeEnum
    -        # Corresponds to the JSON property `enums`
    -        # @return [Array]
    -        attr_accessor :enums
    +        # types:
    +        # - name: google.protobuf.Int32
    +        # Corresponds to the JSON property `types`
    +        # @return [Array]
    +        attr_accessor :types
    +      
    +        # Source information used to create a Service Config
    +        # Corresponds to the JSON property `sourceInfo`
    +        # @return [Google::Apis::ServicemanagementV1::SourceInfo]
    +        attr_accessor :source_info
    +      
    +        # Defines the HTTP configuration for an API service. It contains a list of
    +        # HttpRule, each specifying the mapping of an RPC method
    +        # to one or more HTTP REST API methods.
    +        # Corresponds to the JSON property `http`
    +        # @return [Google::Apis::ServicemanagementV1::Http]
    +        attr_accessor :http
    +      
    +        # `Backend` defines the backend configuration for a service.
    +        # Corresponds to the JSON property `backend`
    +        # @return [Google::Apis::ServicemanagementV1::Backend]
    +        attr_accessor :backend
    +      
    +        # ### System parameter configuration
    +        # A system parameter is a special kind of parameter defined by the API
    +        # system, not by an individual API. It is typically mapped to an HTTP header
    +        # and/or a URL query parameter. This configuration specifies which methods
    +        # change the names of the system parameters.
    +        # Corresponds to the JSON property `systemParameters`
    +        # @return [Google::Apis::ServicemanagementV1::SystemParameters]
    +        attr_accessor :system_parameters
    +      
    +        # `Documentation` provides the information for describing a service.
    +        # Example:
    +        # 
    documentation:
    +        # summary: >
    +        # The Google Calendar API gives access
    +        # to most calendar features.
    +        # pages:
    +        # - name: Overview
    +        # content: (== include google/foo/overview.md ==)
    +        # - name: Tutorial
    +        # content: (== include google/foo/tutorial.md ==)
    +        # subpages;
    +        # - name: Java
    +        # content: (== include google/foo/tutorial_java.md ==)
    +        # rules:
    +        # - selector: google.calendar.Calendar.Get
    +        # description: >
    +        # ...
    +        # - selector: google.calendar.Calendar.Put
    +        # description: >
    +        # ...
    +        # 
    + # Documentation is provided in markdown syntax. In addition to + # standard markdown features, definition lists, tables and fenced + # code blocks are supported. Section headers can be provided and are + # interpreted relative to the section nesting of the context where + # a documentation fragment is embedded. + # Documentation from the IDL is merged with documentation defined + # via the config at normalization time, where documentation provided + # by config rules overrides IDL provided. + # A number of constructs specific to the API platform are supported + # in documentation text. + # In order to reference a proto element, the following + # notation can be used: + #
    [fully.qualified.proto.name][]
    + # To override the display text used for the link, this can be used: + #
    [display text][fully.qualified.proto.name]
    + # Text can be excluded from doc using the following notation: + #
    (-- internal comment --)
    + # Comments can be made conditional using a visibility label. The below + # text will be only rendered if the `BETA` label is available: + #
    (--BETA: comment for BETA users --)
    + # A few directives are available in documentation. Note that + # directives must appear on a single line to be properly + # identified. The `include` directive includes a markdown file from + # an external source: + #
    (== include path/to/file ==)
    + # The `resource_for` directive marks a message to be the resource of + # a collection in REST view. If it is not specified, tools attempt + # to infer the resource from the operations in a collection: + #
    (== resource_for v1.shelves.books ==)
    + # The directive `suppress_warning` does not directly affect documentation + # and is documented together with service config validation. + # Corresponds to the JSON property `documentation` + # @return [Google::Apis::ServicemanagementV1::Documentation] + attr_accessor :documentation + + # Logging configuration of the service. + # The following example shows how to configure logs to be sent to the + # producer and consumer projects. In the example, the `activity_history` + # log is sent to both the producer and consumer projects, whereas the + # `purchase_history` log is only sent to the producer project. + # monitored_resources: + # - type: library.googleapis.com/branch + # labels: + # - key: /city + # description: The city where the library branch is located in. + # - key: /name + # description: The name of the branch. + # logs: + # - name: activity_history + # labels: + # - key: /customer_id + # - name: purchase_history + # logging: + # producer_destinations: + # - monitored_resource: library.googleapis.com/branch + # logs: + # - activity_history + # - purchase_history + # consumer_destinations: + # - monitored_resource: library.googleapis.com/branch + # logs: + # - activity_history + # Corresponds to the JSON property `logging` + # @return [Google::Apis::ServicemanagementV1::Logging] + attr_accessor :logging + + # Defines the monitored resources used by this service. This is required + # by the Service.monitoring and Service.logging configurations. + # Corresponds to the JSON property `monitoredResources` + # @return [Array] + attr_accessor :monitored_resources # `Context` defines which contexts an API requests. # Example: @@ -1300,6 +4049,16 @@ module Google # @return [Google::Apis::ServicemanagementV1::Context] attr_accessor :context + # A list of all enum types included in this API service. Enums + # referenced directly or indirectly by the `apis` are automatically + # included. Enums which are not referenced but shall be included + # should be listed here by name. Example: + # enums: + # - name: google.someapi.v1.SomeEnum + # Corresponds to the JSON property `enums` + # @return [Array] + attr_accessor :enums + # A unique ID for a specific instance of this message, typically assigned # by the client for tracking purpose. If empty, the server may choose to # generate one instead. @@ -1501,6 +4260,11 @@ module Google # @return [Array] attr_accessor :endpoints + # Defines the logs used by this service. + # Corresponds to the JSON property `logs` + # @return [Array] + attr_accessor :logs + # A list of API interfaces exported by this service. Only the `name` field # of the google.protobuf.Api needs to be provided by the configuration # author, as the remaining fields will be derived from the IDL during the @@ -1510,150 +4274,22 @@ module Google # @return [Array] attr_accessor :apis - # Defines the logs used by this service. - # Corresponds to the JSON property `logs` - # @return [Array] - attr_accessor :logs - - # A list of all proto message types included in this API service. - # Types referenced directly or indirectly by the `apis` are - # automatically included. Messages which are not referenced but - # shall be included, such as types used by the `google.protobuf.Any` type, - # should be listed here by name. Example: - # types: - # - name: google.protobuf.Int32 - # Corresponds to the JSON property `types` - # @return [Array] - attr_accessor :types - - # Source information used to create a Service Config - # Corresponds to the JSON property `sourceInfo` - # @return [Google::Apis::ServicemanagementV1::SourceInfo] - attr_accessor :source_info - - # Defines the HTTP configuration for an API service. It contains a list of - # HttpRule, each specifying the mapping of an RPC method - # to one or more HTTP REST API methods. - # Corresponds to the JSON property `http` - # @return [Google::Apis::ServicemanagementV1::Http] - attr_accessor :http - - # `Backend` defines the backend configuration for a service. - # Corresponds to the JSON property `backend` - # @return [Google::Apis::ServicemanagementV1::Backend] - attr_accessor :backend - - # ### System parameter configuration - # A system parameter is a special kind of parameter defined by the API - # system, not by an individual API. It is typically mapped to an HTTP header - # and/or a URL query parameter. This configuration specifies which methods - # change the names of the system parameters. - # Corresponds to the JSON property `systemParameters` - # @return [Google::Apis::ServicemanagementV1::SystemParameters] - attr_accessor :system_parameters - - # `Documentation` provides the information for describing a service. - # Example: - #
    documentation:
    -        # summary: >
    -        # The Google Calendar API gives access
    -        # to most calendar features.
    -        # pages:
    -        # - name: Overview
    -        # content: (== include google/foo/overview.md ==)
    -        # - name: Tutorial
    -        # content: (== include google/foo/tutorial.md ==)
    -        # subpages;
    -        # - name: Java
    -        # content: (== include google/foo/tutorial_java.md ==)
    -        # rules:
    -        # - selector: google.calendar.Calendar.Get
    -        # description: >
    -        # ...
    -        # - selector: google.calendar.Calendar.Put
    -        # description: >
    -        # ...
    -        # 
    - # Documentation is provided in markdown syntax. In addition to - # standard markdown features, definition lists, tables and fenced - # code blocks are supported. Section headers can be provided and are - # interpreted relative to the section nesting of the context where - # a documentation fragment is embedded. - # Documentation from the IDL is merged with documentation defined - # via the config at normalization time, where documentation provided - # by config rules overrides IDL provided. - # A number of constructs specific to the API platform are supported - # in documentation text. - # In order to reference a proto element, the following - # notation can be used: - #
    [fully.qualified.proto.name][]
    - # To override the display text used for the link, this can be used: - #
    [display text][fully.qualified.proto.name]
    - # Text can be excluded from doc using the following notation: - #
    (-- internal comment --)
    - # Comments can be made conditional using a visibility label. The below - # text will be only rendered if the `BETA` label is available: - #
    (--BETA: comment for BETA users --)
    - # A few directives are available in documentation. Note that - # directives must appear on a single line to be properly - # identified. The `include` directive includes a markdown file from - # an external source: - #
    (== include path/to/file ==)
    - # The `resource_for` directive marks a message to be the resource of - # a collection in REST view. If it is not specified, tools attempt - # to infer the resource from the operations in a collection: - #
    (== resource_for v1.shelves.books ==)
    - # The directive `suppress_warning` does not directly affect documentation - # and is documented together with service config validation. - # Corresponds to the JSON property `documentation` - # @return [Google::Apis::ServicemanagementV1::Documentation] - attr_accessor :documentation - - # Logging configuration of the service. - # The following example shows how to configure logs to be sent to the - # producer and consumer projects. In the example, the `activity_history` - # log is sent to both the producer and consumer projects, whereas the - # `purchase_history` log is only sent to the producer project. - # monitored_resources: - # - type: library.googleapis.com/branch - # labels: - # - key: /city - # description: The city where the library branch is located in. - # - key: /name - # description: The name of the branch. - # logs: - # - name: activity_history - # labels: - # - key: /customer_id - # - name: purchase_history - # logging: - # producer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - # - purchase_history - # consumer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - # Corresponds to the JSON property `logging` - # @return [Google::Apis::ServicemanagementV1::Logging] - attr_accessor :logging - - # Defines the monitored resources used by this service. This is required - # by the Service.monitoring and Service.logging configurations. - # Corresponds to the JSON property `monitoredResources` - # @return [Array] - attr_accessor :monitored_resources - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @enums = args[:enums] if args.key?(:enums) + @types = args[:types] if args.key?(:types) + @source_info = args[:source_info] if args.key?(:source_info) + @http = args[:http] if args.key?(:http) + @backend = args[:backend] if args.key?(:backend) + @system_parameters = args[:system_parameters] if args.key?(:system_parameters) + @documentation = args[:documentation] if args.key?(:documentation) + @logging = args[:logging] if args.key?(:logging) + @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) @context = args[:context] if args.key?(:context) + @enums = args[:enums] if args.key?(:enums) @id = args[:id] if args.key?(:id) @usage = args[:usage] if args.key?(:usage) @metrics = args[:metrics] if args.key?(:metrics) @@ -1670,16 +4306,8 @@ module Google @custom_error = args[:custom_error] if args.key?(:custom_error) @title = args[:title] if args.key?(:title) @endpoints = args[:endpoints] if args.key?(:endpoints) - @apis = args[:apis] if args.key?(:apis) @logs = args[:logs] if args.key?(:logs) - @types = args[:types] if args.key?(:types) - @source_info = args[:source_info] if args.key?(:source_info) - @http = args[:http] if args.key?(:http) - @backend = args[:backend] if args.key?(:backend) - @system_parameters = args[:system_parameters] if args.key?(:system_parameters) - @documentation = args[:documentation] if args.key?(:documentation) - @logging = args[:logging] if args.key?(:logging) - @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources) + @apis = args[:apis] if args.key?(:apis) end end @@ -1687,49 +4315,24 @@ module Google 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 + # 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) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @operations = args[:operations] if args.key?(:operations) - end - end - - # A custom pattern is used for defining custom HTTP verb. - class CustomHttpPattern - include Google::Apis::Core::Hashable - - # The path matched by this custom verb. - # Corresponds to the JSON property `path` - # @return [String] - attr_accessor :path - - # The name of this custom HTTP verb. - # 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) - @path = args[:path] if args.key?(:path) - @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1737,26 +4340,53 @@ module Google class OperationMetadata include Google::Apis::Core::Hashable + # Percentage of completion of this operation, ranging from 0 to 100. + # Corresponds to the JSON property `progressPercentage` + # @return [Fixnum] + attr_accessor :progress_percentage + # The start time of the operation. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time + # Detailed status information for each step. The order is undetermined. + # Corresponds to the JSON property `steps` + # @return [Array] + attr_accessor :steps + # The full name of the resources that this operation is directly # associated with. # Corresponds to the JSON property `resourceNames` # @return [Array] attr_accessor :resource_names - # Detailed status information for each step. The order is undetermined. - # Corresponds to the JSON property `steps` - # @return [Array] - attr_accessor :steps + def initialize(**args) + update!(**args) + end - # Percentage of completion of this operation, ranging from 0 to 100. - # Corresponds to the JSON property `progressPercentage` - # @return [Fixnum] - attr_accessor :progress_percentage + # Update properties of this object + def update!(**args) + @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage) + @start_time = args[:start_time] if args.key?(:start_time) + @steps = args[:steps] if args.key?(:steps) + @resource_names = args[:resource_names] if args.key?(:resource_names) + end + end + + # A custom pattern is used for defining custom HTTP verb. + class CustomHttpPattern + include Google::Apis::Core::Hashable + + # The name of this custom HTTP verb. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The path matched by this custom verb. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path def initialize(**args) update!(**args) @@ -1764,10 +4394,8 @@ module Google # Update properties of this object def update!(**args) - @start_time = args[:start_time] if args.key?(:start_time) - @resource_names = args[:resource_names] if args.key?(:resource_names) - @steps = args[:steps] if args.key?(:steps) - @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage) + @kind = args[:kind] if args.key?(:kind) + @path = args[:path] if args.key?(:path) end end @@ -1776,6 +4404,13 @@ module Google class SystemParameterRule include Google::Apis::Core::Hashable + # Selects the methods to which this rule applies. Use '*' to indicate all + # methods in all APIs. + # Refer to selector for syntax details. + # Corresponds to the JSON property `selector` + # @return [String] + attr_accessor :selector + # Define parameters. Multiple names may be defined for a parameter. # For a given method call, only one of them should be used. If multiple # names are used the behavior is implementation-dependent. @@ -1785,21 +4420,14 @@ module Google # @return [Array] attr_accessor :parameters - # Selects the methods to which this rule applies. Use '*' to indicate all - # methods in all APIs. - # Refer to selector for syntax details. - # Corresponds to the JSON property `selector` - # @return [String] - attr_accessor :selector - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @parameters = args[:parameters] if args.key?(:parameters) @selector = args[:selector] if args.key?(:selector) + @parameters = args[:parameters] if args.key?(:parameters) end end @@ -2023,70 +4651,6 @@ module Google class HttpRule include Google::Apis::Core::Hashable - # Used for creating a resource. - # Corresponds to the JSON property `post` - # @return [String] - attr_accessor :post - - # Defines the Media configuration for a service in case of a download. - # Use this only for Scotty Requests. Do not use this for media support using - # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to - # your configuration for Bytestream methods. - # Corresponds to the JSON property `mediaDownload` - # @return [Google::Apis::ServicemanagementV1::MediaDownload] - attr_accessor :media_download - - # Optional. The rest method name is by default derived from the URL - # pattern. If specified, this field overrides the default method name. - # Example: - # rpc CreateResource(CreateResourceRequest) - # returns (CreateResourceResponse) ` - # option (google.api.http) = ` - # post: "/v1/resources", - # body: "resource", - # rest_method_name: "insert" - # `; - # ` - # This method has the automatically derived rest method name "create", but - # for backwards compatability with apiary, it is specified as insert. - # Corresponds to the JSON property `restMethodName` - # @return [String] - attr_accessor :rest_method_name - - # Additional HTTP bindings for the selector. Nested bindings must - # not contain an `additional_bindings` field themselves (that is, - # the nesting may only be one level deep). - # Corresponds to the JSON property `additionalBindings` - # @return [Array] - attr_accessor :additional_bindings - - # Optional. The REST collection name is by default derived from the URL - # pattern. If specified, this field overrides the default collection name. - # Example: - # rpc AddressesAggregatedList(AddressesAggregatedListRequest) - # returns (AddressesAggregatedListResponse) ` - # option (google.api.http) = ` - # get: "/v1/projects/`project_id`/aggregated/addresses" - # rest_collection: "projects.addresses" - # `; - # ` - # This method has the automatically derived collection name - # "projects.aggregated". Because, semantically, this rpc is actually an - # operation on the "projects.addresses" collection, the `rest_collection` - # field is configured to override the derived collection name. - # Corresponds to the JSON property `restCollection` - # @return [String] - attr_accessor :rest_collection - - # The name of the response field whose value is mapped to the HTTP body of - # response. Other response fields are ignored. This field is optional. When - # not set, the response message will be used as HTTP body of response. - # NOTE: the referred field must be not a repeated field and must be present - # at the top-level of response message type. - # Corresponds to the JSON property `responseBody` - # @return [String] - attr_accessor :response_body - # Defines the Media configuration for a service in case of an upload. # Use this only for Scotty Requests. Do not use this for media support using # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to @@ -2134,18 +4698,76 @@ module Google # @return [String] attr_accessor :body + # Defines the Media configuration for a service in case of a download. + # Use this only for Scotty Requests. Do not use this for media support using + # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to + # your configuration for Bytestream methods. + # Corresponds to the JSON property `mediaDownload` + # @return [Google::Apis::ServicemanagementV1::MediaDownload] + attr_accessor :media_download + + # Used for creating a resource. + # Corresponds to the JSON property `post` + # @return [String] + attr_accessor :post + + # Optional. The rest method name is by default derived from the URL + # pattern. If specified, this field overrides the default method name. + # Example: + # rpc CreateResource(CreateResourceRequest) + # returns (CreateResourceResponse) ` + # option (google.api.http) = ` + # post: "/v1/resources", + # body: "resource", + # rest_method_name: "insert" + # `; + # ` + # This method has the automatically derived rest method name "create", but + # for backwards compatability with apiary, it is specified as insert. + # Corresponds to the JSON property `restMethodName` + # @return [String] + attr_accessor :rest_method_name + + # Additional HTTP bindings for the selector. Nested bindings must + # not contain an `additional_bindings` field themselves (that is, + # the nesting may only be one level deep). + # Corresponds to the JSON property `additionalBindings` + # @return [Array] + attr_accessor :additional_bindings + + # The name of the response field whose value is mapped to the HTTP body of + # response. Other response fields are ignored. This field is optional. When + # not set, the response message will be used as HTTP body of response. + # NOTE: the referred field must be not a repeated field and must be present + # at the top-level of response message type. + # Corresponds to the JSON property `responseBody` + # @return [String] + attr_accessor :response_body + + # Optional. The REST collection name is by default derived from the URL + # pattern. If specified, this field overrides the default collection name. + # Example: + # rpc AddressesAggregatedList(AddressesAggregatedListRequest) + # returns (AddressesAggregatedListResponse) ` + # option (google.api.http) = ` + # get: "/v1/projects/`project_id`/aggregated/addresses" + # rest_collection: "projects.addresses" + # `; + # ` + # This method has the automatically derived collection name + # "projects.aggregated". Because, semantically, this rpc is actually an + # operation on the "projects.addresses" collection, the `rest_collection` + # field is configured to override the derived collection name. + # Corresponds to the JSON property `restCollection` + # @return [String] + attr_accessor :rest_collection + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @post = args[:post] if args.key?(:post) - @media_download = args[:media_download] if args.key?(:media_download) - @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name) - @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings) - @rest_collection = args[:rest_collection] if args.key?(:rest_collection) - @response_body = args[:response_body] if args.key?(:response_body) @media_upload = args[:media_upload] if args.key?(:media_upload) @selector = args[:selector] if args.key?(:selector) @custom = args[:custom] if args.key?(:custom) @@ -2154,6 +4776,12 @@ module Google @put = args[:put] if args.key?(:put) @delete = args[:delete] if args.key?(:delete) @body = args[:body] if args.key?(:body) + @media_download = args[:media_download] if args.key?(:media_download) + @post = args[:post] if args.key?(:post) + @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name) + @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings) + @response_body = args[:response_body] if args.key?(:response_body) + @rest_collection = args[:rest_collection] if args.key?(:rest_collection) end end @@ -2220,2602 +4848,6 @@ module Google @rules = args[:rules] if args.key?(:rules) end end - - # ### System parameter configuration - # A system parameter is a special kind of parameter defined by the API - # system, not by an individual API. It is typically mapped to an HTTP header - # and/or a URL query parameter. This configuration specifies which methods - # change the names of the system parameters. - class SystemParameters - include Google::Apis::Core::Hashable - - # Define system parameters. - # The parameters defined here will override the default parameters - # implemented by the system. If this field is missing from the service - # config, default system parameters will be used. Default system parameters - # and names is implementation-dependent. - # Example: define api key for all methods - # system_parameters - # rules: - # - selector: "*" - # parameters: - # - name: api_key - # url_query_parameter: api_key - # Example: define 2 api key names for a specific method. - # system_parameters - # rules: - # - selector: "/ListShelves" - # parameters: - # - name: api_key - # http_header: Api-Key1 - # - name: api_key - # http_header: Api-Key2 - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rules = args[:rules] if args.key?(:rules) - end - end - - # Output generated from semantically comparing two versions of a service - # configuration. - # Includes detailed information about a field that have changed with - # applicable advice about potential consequences for the change, such as - # backwards-incompatibility. - class ConfigChange - include Google::Apis::Core::Hashable - - # Value of the changed object in the new Service configuration, - # in JSON format. This field will not be populated if ChangeType == REMOVED. - # Corresponds to the JSON property `newValue` - # @return [String] - attr_accessor :new_value - - # The type for this change, either ADDED, REMOVED, or MODIFIED. - # Corresponds to the JSON property `changeType` - # @return [String] - attr_accessor :change_type - - # Object hierarchy path to the change, with levels separated by a '.' - # character. For repeated fields, an applicable unique identifier field is - # used for the index (usually selector, name, or id). For maps, the term - # 'key' is used. If the field has no unique identifier, the numeric index - # is used. - # Examples: - # - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction - # - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - # - logging.producer_destinations[0] - # Corresponds to the JSON property `element` - # @return [String] - attr_accessor :element - - # Value of the changed object in the old Service configuration, - # in JSON format. This field will not be populated if ChangeType == ADDED. - # Corresponds to the JSON property `oldValue` - # @return [String] - attr_accessor :old_value - - # Collection of advice provided for this change, useful for determining the - # possible impact of this change. - # Corresponds to the JSON property `advices` - # @return [Array] - attr_accessor :advices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @change_type = args[:change_type] if args.key?(:change_type) - @element = args[:element] if args.key?(:element) - @old_value = args[:old_value] if args.key?(:old_value) - @advices = args[:advices] if args.key?(:advices) - end - end - - # Quota configuration helps to achieve fairness and budgeting in service - # usage. - # The quota configuration works this way: - # - The service configuration defines a set of metrics. - # - For API calls, the quota.metric_rules maps methods to metrics with - # corresponding costs. - # - The quota.limits defines limits on the metrics, which will be used for - # quota checks at runtime. - # An example quota configuration in yaml format: - # quota: - # - name: apiWriteQpsPerProject - # metric: library.googleapis.com/write_calls - # unit: "1/min/`project`" # rate limit for consumer projects - # values: - # STANDARD: 10000 - # # The metric rules bind all methods to the read_calls metric, - # # except for the UpdateBook and DeleteBook methods. These two methods - # # are mapped to the write_calls metric, with the UpdateBook method - # # consuming at twice rate as the DeleteBook method. - # metric_rules: - # - selector: "*" - # metric_costs: - # library.googleapis.com/read_calls: 1 - # - selector: google.example.library.v1.LibraryService.UpdateBook - # metric_costs: - # library.googleapis.com/write_calls: 2 - # - selector: google.example.library.v1.LibraryService.DeleteBook - # metric_costs: - # library.googleapis.com/write_calls: 1 - # Corresponding Metric definition: - # metrics: - # - name: library.googleapis.com/read_calls - # display_name: Read requests - # metric_kind: DELTA - # value_type: INT64 - # - name: library.googleapis.com/write_calls - # display_name: Write requests - # metric_kind: DELTA - # value_type: INT64 - class Quota - include Google::Apis::Core::Hashable - - # List of `QuotaLimit` definitions for the service. - # Corresponds to the JSON property `limits` - # @return [Array] - attr_accessor :limits - - # List of `MetricRule` definitions, each one mapping a selected method to one - # or more metrics. - # Corresponds to the JSON property `metricRules` - # @return [Array] - attr_accessor :metric_rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @limits = args[:limits] if args.key?(:limits) - @metric_rules = args[:metric_rules] if args.key?(:metric_rules) - end - end - - # A rollout resource that defines how service configuration versions are pushed - # to control plane systems. Typically, you create a new version of the - # service config, and then create a Rollout to push the service config. - class Rollout - include Google::Apis::Core::Hashable - - # Strategy used to delete a service. This strategy is a placeholder only - # used by the system generated rollout to delete a service. - # Corresponds to the JSON property `deleteServiceStrategy` - # @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy] - attr_accessor :delete_service_strategy - - # Creation time of the rollout. Readonly. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The status of this rollout. Readonly. In case of a failed rollout, - # the system will automatically rollback to the current Rollout - # version. Readonly. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # The name of the service associated with this Rollout. - # Corresponds to the JSON property `serviceName` - # @return [String] - attr_accessor :service_name - - # The user who created the Rollout. Readonly. - # Corresponds to the JSON property `createdBy` - # @return [String] - attr_accessor :created_by - - # Strategy that specifies how clients of Google Service Controller want to - # send traffic to use different config versions. This is generally - # used by API proxy to split traffic based on your configured precentage for - # each config version. - # One example of how to gradually rollout a new service configuration using - # this - # strategy: - # Day 1 - # Rollout ` - # id: "example.googleapis.com/rollout_20160206" - # traffic_percent_strategy ` - # percentages: ` - # "example.googleapis.com/20160201": 70.00 - # "example.googleapis.com/20160206": 30.00 - # ` - # ` - # ` - # Day 2 - # Rollout ` - # id: "example.googleapis.com/rollout_20160207" - # traffic_percent_strategy: ` - # percentages: ` - # "example.googleapis.com/20160206": 100.00 - # ` - # ` - # ` - # Corresponds to the JSON property `trafficPercentStrategy` - # @return [Google::Apis::ServicemanagementV1::TrafficPercentStrategy] - attr_accessor :traffic_percent_strategy - - # Optional unique identifier of this Rollout. Only lower case letters, digits - # and '-' are allowed. - # If not specified by client, the server will generate one. The generated id - # will have the form of , where "date" is the create - # date in ISO 8601 format. "revision number" is a monotonically increasing - # positive number that is reset every day for each service. - # An example of the generated rollout_id is '2016-02-16r1' - # Corresponds to the JSON property `rolloutId` - # @return [String] - attr_accessor :rollout_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @delete_service_strategy = args[:delete_service_strategy] if args.key?(:delete_service_strategy) - @create_time = args[:create_time] if args.key?(:create_time) - @status = args[:status] if args.key?(:status) - @service_name = args[:service_name] if args.key?(:service_name) - @created_by = args[:created_by] if args.key?(:created_by) - @traffic_percent_strategy = args[:traffic_percent_strategy] if args.key?(:traffic_percent_strategy) - @rollout_id = args[:rollout_id] if args.key?(:rollout_id) - end - end - - # Request message for GenerateConfigReport method. - class GenerateConfigReportRequest - include Google::Apis::Core::Hashable - - # Service configuration against which the comparison will be done. - # For this version of API, the supported types are - # google.api.servicemanagement.v1.ConfigRef, - # google.api.servicemanagement.v1.ConfigSource, - # and google.api.Service - # Corresponds to the JSON property `oldConfig` - # @return [Hash] - attr_accessor :old_config - - # Service configuration for which we want to generate the report. - # For this version of API, the supported types are - # google.api.servicemanagement.v1.ConfigRef, - # google.api.servicemanagement.v1.ConfigSource, - # and google.api.Service - # Corresponds to the JSON property `newConfig` - # @return [Hash] - attr_accessor :new_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @old_config = args[:old_config] if args.key?(:old_config) - @new_config = args[:new_config] if args.key?(:new_config) - end - end - - # Request message for `SetIamPolicy` method. - class SetIamPolicyRequest - include Google::Apis::Core::Hashable - - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` - # "bindings": [ - # ` - # "role": "roles/owner", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com", - # ] - # `, - # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] - # ` - # ] - # ` - # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::ServicemanagementV1::Policy] - attr_accessor :policy - - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # paths: "bindings, etag" - # This field is only used by Cloud IAM. - # Corresponds to the JSON property `updateMask` - # @return [String] - attr_accessor :update_mask - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - @update_mask = args[:update_mask] if args.key?(:update_mask) - end - end - - # Represents the status of one operation step. - class Step - include Google::Apis::Core::Hashable - - # The short description of the step. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The status code. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @status = args[:status] if args.key?(:status) - end - end - - # Strategy used to delete a service. This strategy is a placeholder only - # used by the system generated rollout to delete a service. - class DeleteServiceStrategy - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Configuration of a specific logging destination (the producer project - # or the consumer project). - class LoggingDestination - include Google::Apis::Core::Hashable - - # Names of the logs to be sent to this destination. Each name must - # be defined in the Service.logs section. If the log name is - # not a domain scoped name, it will be automatically prefixed with - # the service name followed by "/". - # Corresponds to the JSON property `logs` - # @return [Array] - attr_accessor :logs - - # The monitored resource type. The type must be defined in the - # Service.monitored_resources section. - # Corresponds to the JSON property `monitoredResource` - # @return [String] - attr_accessor :monitored_resource - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @logs = args[:logs] if args.key?(:logs) - @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) - end - end - - # A protocol buffer option, which can be attached to a message, field, - # enumeration, etc. - class Option - include Google::Apis::Core::Hashable - - # The option's name. For protobuf built-in options (options defined in - # descriptor.proto), this is the short name. For example, `"map_entry"`. - # For custom options, it should be the fully-qualified name. For example, - # `"google.api.http"`. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The option's value packed in an Any message. If the value is a primitive, - # the corresponding wrapper type defined in google/protobuf/wrappers.proto - # should be used. If the value is an enum, it should be stored as an int32 - # value using the google.protobuf.Int32Value type. - # Corresponds to the JSON property `value` - # @return [Hash] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @value = args[:value] if args.key?(:value) - end - end - - # Logging configuration of the service. - # The following example shows how to configure logs to be sent to the - # producer and consumer projects. In the example, the `activity_history` - # log is sent to both the producer and consumer projects, whereas the - # `purchase_history` log is only sent to the producer project. - # monitored_resources: - # - type: library.googleapis.com/branch - # labels: - # - key: /city - # description: The city where the library branch is located in. - # - key: /name - # description: The name of the branch. - # logs: - # - name: activity_history - # labels: - # - key: /customer_id - # - name: purchase_history - # logging: - # producer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - # - purchase_history - # consumer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - class Logging - include Google::Apis::Core::Hashable - - # Logging configurations for sending logs to the consumer project. - # There can be multiple consumer destinations, each one must have a - # different monitored resource type. A log can be used in at most - # one consumer destination. - # Corresponds to the JSON property `consumerDestinations` - # @return [Array] - attr_accessor :consumer_destinations - - # Logging configurations for sending logs to the producer project. - # There can be multiple producer destinations, each one must have a - # different monitored resource type. A log can be used in at most - # one producer destination. - # Corresponds to the JSON property `producerDestinations` - # @return [Array] - attr_accessor :producer_destinations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations) - @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations) - end - end - - # Method represents a method of an api. - class MethodProp - include Google::Apis::Core::Hashable - - # The simple name of this method. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A URL of the input message type. - # Corresponds to the JSON property `requestTypeUrl` - # @return [String] - attr_accessor :request_type_url - - # If true, the request is streamed. - # Corresponds to the JSON property `requestStreaming` - # @return [Boolean] - attr_accessor :request_streaming - alias_method :request_streaming?, :request_streaming - - # The source syntax of this method. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax - - # The URL of the output message type. - # Corresponds to the JSON property `responseTypeUrl` - # @return [String] - attr_accessor :response_type_url - - # Any metadata attached to the method. - # Corresponds to the JSON property `options` - # @return [Array] - attr_accessor :options - - # If true, the response is streamed. - # Corresponds to the JSON property `responseStreaming` - # @return [Boolean] - attr_accessor :response_streaming - alias_method :response_streaming?, :response_streaming - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @request_type_url = args[:request_type_url] if args.key?(:request_type_url) - @request_streaming = args[:request_streaming] if args.key?(:request_streaming) - @syntax = args[:syntax] if args.key?(:syntax) - @response_type_url = args[:response_type_url] if args.key?(:response_type_url) - @options = args[:options] if args.key?(:options) - @response_streaming = args[:response_streaming] if args.key?(:response_streaming) - end - end - - # `QuotaLimit` defines a specific limit that applies over a specified duration - # for a limit type. There can be at most one limit for a duration and limit - # type combination defined within a `QuotaGroup`. - class QuotaLimit - include Google::Apis::Core::Hashable - - # Free tier value displayed in the Developers Console for this limit. - # The free tier is the number of tokens that will be subtracted from the - # billed amount when billing is enabled. - # This field can only be set on a limit with duration "1d", in a billable - # group; it is invalid on any other limit. If this field is not set, it - # defaults to 0, indicating that there is no free tier for this service. - # Used by group-based quotas only. - # Corresponds to the JSON property `freeTier` - # @return [Fixnum] - attr_accessor :free_tier - - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. - # Used by group-based quotas only. - # Corresponds to the JSON property `duration` - # @return [String] - attr_accessor :duration - - # Default number of tokens that can be consumed during the specified - # duration. This is the number of tokens assigned when a client - # application developer activates the service for his/her project. - # Specifying a value of 0 will block all requests. This can be used if you - # are provisioning quota to selected consumers and blocking others. - # Similarly, a value of -1 will indicate an unlimited quota. No other - # negative values are allowed. - # Used by group-based quotas only. - # Corresponds to the JSON property `defaultLimit` - # @return [Fixnum] - attr_accessor :default_limit - - # User-visible display name for this limit. - # Optional. If not set, the UI will provide a default display name based on - # the quota configuration. This field can be used to override the default - # display name generated from the configuration. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Optional. User-visible, extended description for this quota limit. - # Should be used only when more context is needed to understand this limit - # than provided by the limit's display name (see: `display_name`). - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The name of the metric this quota limit applies to. The quota limits with - # the same metric will be checked together during runtime. The metric must be - # defined within the service config. - # Used by metric-based quotas only. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - # Tiered limit values, currently only STANDARD is supported. - # Corresponds to the JSON property `values` - # @return [Hash] - attr_accessor :values - - # Specify the unit of the quota limit. It uses the same syntax as - # Metric.unit. The supported unit kinds are determined by the quota - # backend system. - # The [Google Service Control](https://cloud.google.com/service-control) - # supports the following unit components: - # * One of the time intevals: - # * "/min" for quota every minute. - # * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. - # * Otherwise the quota won't be reset by time, such as storage limit. - # * One and only one of the granted containers: - # * "/`project`" quota for a project - # Here are some examples: - # * "1/min/`project`" for quota per minute per project. - # Note: the order of unit components is insignificant. - # The "1" at the beginning is required to follow the metric unit syntax. - # Used by metric-based quotas only. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - # Maximum number of tokens that can be consumed during the specified - # duration. Client application developers can override the default limit up - # to this maximum. If specified, this value cannot be set to a value less - # than the default limit. If not specified, it is set to the default limit. - # To allow clients to apply overrides with no upper bound, set this to -1, - # indicating unlimited maximum quota. - # Used by group-based quotas only. - # Corresponds to the JSON property `maxLimit` - # @return [Fixnum] - attr_accessor :max_limit - - # Name of the quota limit. The name is used to refer to the limit when - # overriding the default limit on per-consumer basis. - # For metric-based quota limits, the name must be provided, and it must be - # unique within the service. The name can only include alphanumeric - # characters as well as '-'. - # The maximum length of the limit name is 64 characters. - # The name of a limit is used as a unique identifier for this limit. - # Therefore, once a limit has been put into use, its name should be - # immutable. You can use the display_name field to provide a user-friendly - # name for the limit. The display name can be evolved over time without - # affecting the identity of the limit. - # 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) - @free_tier = args[:free_tier] if args.key?(:free_tier) - @duration = args[:duration] if args.key?(:duration) - @default_limit = args[:default_limit] if args.key?(:default_limit) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @metric = args[:metric] if args.key?(:metric) - @values = args[:values] if args.key?(:values) - @unit = args[:unit] if args.key?(:unit) - @max_limit = args[:max_limit] if args.key?(:max_limit) - @name = args[:name] if args.key?(:name) - end - end - - # Response message for ListServiceRollouts method. - class ListServiceRolloutsResponse - include Google::Apis::Core::Hashable - - # The token of the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of rollout resources. - # Corresponds to the JSON property `rollouts` - # @return [Array] - attr_accessor :rollouts - - 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) - @rollouts = args[:rollouts] if args.key?(:rollouts) - end - end - - # Represents a service configuration with its name and id. - class ConfigRef - include Google::Apis::Core::Hashable - - # Resource name of a service config. It must have the following - # format: "services/`service name`/configs/`config id`". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - end - end - - # Declares an API to be included in this API. The including API must - # redeclare all the methods from the included API, but documentation - # and options are inherited as follows: - # - If after comment and whitespace stripping, the documentation - # string of the redeclared method is empty, it will be inherited - # from the original method. - # - Each annotation belonging to the service config (http, - # visibility) which is not set in the redeclared method will be - # inherited. - # - If an http annotation is inherited, the path pattern will be - # modified as follows. Any version prefix will be replaced by the - # version of the including API plus the root path if specified. - # Example of a simple mixin: - # package google.acl.v1; - # service AccessControl ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v1/`resource=**`:getAcl"; - # ` - # ` - # package google.storage.v2; - # service Storage ` - # // rpc GetAcl(GetAclRequest) returns (Acl); - # // Get a data record. - # rpc GetData(GetDataRequest) returns (Data) ` - # option (google.api.http).get = "/v2/`resource=**`"; - # ` - # ` - # Example of a mixin configuration: - # apis: - # - name: google.storage.v2.Storage - # mixins: - # - name: google.acl.v1.AccessControl - # The mixin construct implies that all methods in `AccessControl` are - # also declared with same name and request/response types in - # `Storage`. A documentation generator or annotation processor will - # see the effective `Storage.GetAcl` method after inherting - # documentation and annotations as follows: - # service Storage ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v2/`resource=**`:getAcl"; - # ` - # ... - # ` - # Note how the version in the path pattern changed from `v1` to `v2`. - # If the `root` field in the mixin is specified, it should be a - # relative path under which inherited HTTP paths are placed. Example: - # apis: - # - name: google.storage.v2.Storage - # mixins: - # - name: google.acl.v1.AccessControl - # root: acls - # This implies the following inherited HTTP annotation: - # service Storage ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v2/acls/`resource=**`:getAcl"; - # ` - # ... - # ` - class Mixin - include Google::Apis::Core::Hashable - - # The fully qualified name of the API which is included. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # If non-empty specifies a path under which inherited HTTP paths - # are rooted. - # Corresponds to the JSON property `root` - # @return [String] - attr_accessor :root - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @root = args[:root] if args.key?(:root) - end - end - - # The metadata associated with a long running operation resource. - class FlowOperationMetadata - include Google::Apis::Core::Hashable - - # The start time of the operation. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # The name of the top-level flow corresponding to this operation. - # Must be equal to the "name" field for a FlowName enum. - # Corresponds to the JSON property `flowName` - # @return [String] - attr_accessor :flow_name - - # The full name of the resources that this flow is directly associated with. - # Corresponds to the JSON property `resourceNames` - # @return [Array] - attr_accessor :resource_names - - # The state of the operation with respect to cancellation. - # Corresponds to the JSON property `cancelState` - # @return [String] - attr_accessor :cancel_state - - # Deadline for the flow to complete, to prevent orphaned Operations. - # If the flow has not completed by this time, it may be terminated by - # the engine, or force-failed by Operation lookup. - # Note that this is not a hard deadline after which the Flow will - # definitely be failed, rather it is a deadline after which it is reasonable - # to suspect a problem and other parts of the system may kill operation - # to ensure we don't have orphans. - # see also: go/prevent-orphaned-operations - # Corresponds to the JSON property `deadline` - # @return [String] - attr_accessor :deadline - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @start_time = args[:start_time] if args.key?(:start_time) - @flow_name = args[:flow_name] if args.key?(:flow_name) - @resource_names = args[:resource_names] if args.key?(:resource_names) - @cancel_state = args[:cancel_state] if args.key?(:cancel_state) - @deadline = args[:deadline] if args.key?(:deadline) - end - end - - # Customize service error responses. For example, list any service - # specific protobuf types that can appear in error detail lists of - # error responses. - # Example: - # custom_error: - # types: - # - google.foo.v1.CustomError - # - google.foo.v1.AnotherError - class CustomError - include Google::Apis::Core::Hashable - - # The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. - # Corresponds to the JSON property `types` - # @return [Array] - attr_accessor :types - - # The list of custom error rules that apply to individual API messages. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @types = args[:types] if args.key?(:types) - @rules = args[:rules] if args.key?(:rules) - end - end - - # Options for counters - class CounterOptions - include Google::Apis::Core::Hashable - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric = args[:metric] if args.key?(:metric) - @field = args[:field] if args.key?(:field) - end - end - - # Defines the HTTP configuration for an API service. It contains a list of - # HttpRule, each specifying the mapping of an RPC method - # to one or more HTTP REST API methods. - class Http - include Google::Apis::Core::Hashable - - # When set to true, URL path parmeters will be fully URI-decoded except in - # cases of single segment matches in reserved expansion, where "%2F" will be - # left encoded. - # The default behavior is to not decode RFC 6570 reserved characters in multi - # segment matches. - # Corresponds to the JSON property `fullyDecodeReservedExpansion` - # @return [Boolean] - attr_accessor :fully_decode_reserved_expansion - alias_method :fully_decode_reserved_expansion?, :fully_decode_reserved_expansion - - # A list of HTTP configuration rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @fully_decode_reserved_expansion = args[:fully_decode_reserved_expansion] if args.key?(:fully_decode_reserved_expansion) - @rules = args[:rules] if args.key?(:rules) - end - end - - # Source information used to create a Service Config - class SourceInfo - include Google::Apis::Core::Hashable - - # All files used during config generation. - # Corresponds to the JSON property `sourceFiles` - # @return [Array>] - attr_accessor :source_files - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source_files = args[:source_files] if args.key?(:source_files) - end - end - - # Selects and configures the service controller used by the service. The - # service controller handles features like abuse, quota, billing, logging, - # monitoring, etc. - class Control - include Google::Apis::Core::Hashable - - # The service control environment to use. If empty, no control plane - # feature (like quota and billing) will be enabled. - # Corresponds to the JSON property `environment` - # @return [String] - attr_accessor :environment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @environment = args[:environment] if args.key?(:environment) - end - end - - # Define a parameter's name and location. The parameter may be passed as either - # an HTTP header or a URL query parameter, and if both are passed the behavior - # is implementation-dependent. - class SystemParameter - include Google::Apis::Core::Hashable - - # Define the URL query parameter name to use for the parameter. It is case - # sensitive. - # Corresponds to the JSON property `urlQueryParameter` - # @return [String] - attr_accessor :url_query_parameter - - # Define the HTTP header name to use for the parameter. It is case - # insensitive. - # Corresponds to the JSON property `httpHeader` - # @return [String] - attr_accessor :http_header - - # Define the name of the parameter, such as "api_key" . It is case sensitive. - # 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) - @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter) - @http_header = args[:http_header] if args.key?(:http_header) - @name = args[:name] if args.key?(:name) - end - end - - # Monitoring configuration of the service. - # The example below shows how to configure monitored resources and metrics - # for monitoring. In the example, a monitored resource and two metrics are - # defined. The `library.googleapis.com/book/returned_count` metric is sent - # to both producer and consumer projects, whereas the - # `library.googleapis.com/book/overdue_count` metric is only sent to the - # consumer project. - # monitored_resources: - # - type: library.googleapis.com/branch - # labels: - # - key: /city - # description: The city where the library branch is located in. - # - key: /name - # description: The name of the branch. - # metrics: - # - name: library.googleapis.com/book/returned_count - # metric_kind: DELTA - # value_type: INT64 - # labels: - # - key: /customer_id - # - name: library.googleapis.com/book/overdue_count - # metric_kind: GAUGE - # value_type: INT64 - # labels: - # - key: /customer_id - # monitoring: - # producer_destinations: - # - monitored_resource: library.googleapis.com/branch - # metrics: - # - library.googleapis.com/book/returned_count - # consumer_destinations: - # - monitored_resource: library.googleapis.com/branch - # metrics: - # - library.googleapis.com/book/returned_count - # - library.googleapis.com/book/overdue_count - class Monitoring - include Google::Apis::Core::Hashable - - # Monitoring configurations for sending metrics to the consumer project. - # There can be multiple consumer destinations, each one must have a - # different monitored resource type. A metric can be used in at most - # one consumer destination. - # Corresponds to the JSON property `consumerDestinations` - # @return [Array] - attr_accessor :consumer_destinations - - # Monitoring configurations for sending metrics to the producer project. - # There can be multiple producer destinations, each one must have a - # different monitored resource type. A metric can be used in at most - # one producer destination. - # Corresponds to the JSON property `producerDestinations` - # @return [Array] - attr_accessor :producer_destinations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations) - @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations) - end - end - - # A single field of a message type. - class Field - include Google::Apis::Core::Hashable - - # The field name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The field type URL, without the scheme, for message or enumeration - # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - # Corresponds to the JSON property `typeUrl` - # @return [String] - attr_accessor :type_url - - # The field number. - # Corresponds to the JSON property `number` - # @return [Fixnum] - attr_accessor :number - - # The field JSON name. - # Corresponds to the JSON property `jsonName` - # @return [String] - attr_accessor :json_name - - # The field type. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The protocol buffer options. - # Corresponds to the JSON property `options` - # @return [Array] - attr_accessor :options - - # The index of the field type in `Type.oneofs`, for message or enumeration - # types. The first type has index 1; zero means the type is not in the list. - # Corresponds to the JSON property `oneofIndex` - # @return [Fixnum] - attr_accessor :oneof_index - - # The field cardinality. - # Corresponds to the JSON property `cardinality` - # @return [String] - attr_accessor :cardinality - - # Whether to use alternative packed wire representation. - # Corresponds to the JSON property `packed` - # @return [Boolean] - attr_accessor :packed - alias_method :packed?, :packed - - # The string value of the default value of this field. Proto2 syntax only. - # Corresponds to the JSON property `defaultValue` - # @return [String] - attr_accessor :default_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @type_url = args[:type_url] if args.key?(:type_url) - @number = args[:number] if args.key?(:number) - @json_name = args[:json_name] if args.key?(:json_name) - @kind = args[:kind] if args.key?(:kind) - @options = args[:options] if args.key?(:options) - @oneof_index = args[:oneof_index] if args.key?(:oneof_index) - @cardinality = args[:cardinality] if args.key?(:cardinality) - @packed = args[:packed] if args.key?(:packed) - @default_value = args[:default_value] if args.key?(:default_value) - end - end - - # Request message for `TestIamPermissions` method. - class TestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Enum type definition. - class Enum - include Google::Apis::Core::Hashable - - # Enum type name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Enum value definitions. - # Corresponds to the JSON property `enumvalue` - # @return [Array] - attr_accessor :enumvalue - - # Protocol buffer options. - # Corresponds to the JSON property `options` - # @return [Array] - attr_accessor :options - - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. - # Corresponds to the JSON property `sourceContext` - # @return [Google::Apis::ServicemanagementV1::SourceContext] - attr_accessor :source_context - - # The source syntax. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @enumvalue = args[:enumvalue] if args.key?(:enumvalue) - @options = args[:options] if args.key?(:options) - @source_context = args[:source_context] if args.key?(:source_context) - @syntax = args[:syntax] if args.key?(:syntax) - 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 - - # A human-readable description for the label. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The type of data that can be assigned to the label. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @description = args[:description] if args.key?(:description) - @value_type = args[:value_type] if args.key?(:value_type) - end - end - - # Request message for EnableService method. - class EnableServiceRequest - include Google::Apis::Core::Hashable - - # The identity of consumer resource which service enablement will be - # applied to. - # The Google Service Management implementation accepts the following - # forms: - # - "project:" - # Note: this is made compatible with - # google.api.servicecontrol.v1.Operation.consumer_id. - # Corresponds to the JSON property `consumerId` - # @return [String] - attr_accessor :consumer_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumer_id = args[:consumer_id] if args.key?(:consumer_id) - end - end - - # Represents a diagnostic message (error or warning) - class Diagnostic - include Google::Apis::Core::Hashable - - # Message describing the error or warning. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # File name and line number of the error or warning. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The kind of diagnostic information provided. - # 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) - @message = args[:message] if args.key?(:message) - @location = args[:location] if args.key?(:location) - @kind = args[:kind] if args.key?(:kind) - end - end - - # Response message for GenerateConfigReport method. - class GenerateConfigReportResponse - include Google::Apis::Core::Hashable - - # list of ChangeReport, each corresponding to comparison between two - # service configurations. - # Corresponds to the JSON property `changeReports` - # @return [Array] - attr_accessor :change_reports - - # ID of the service configuration this report belongs to. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Errors / Linter warnings associated with the service definition this - # report - # belongs to. - # Corresponds to the JSON property `diagnostics` - # @return [Array] - attr_accessor :diagnostics - - # Name of the service this report belongs to. - # Corresponds to the JSON property `serviceName` - # @return [String] - attr_accessor :service_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @change_reports = args[:change_reports] if args.key?(:change_reports) - @id = args[:id] if args.key?(:id) - @diagnostics = args[:diagnostics] if args.key?(:diagnostics) - @service_name = args[:service_name] if args.key?(:service_name) - end - end - - # A protocol buffer message type. - class Type - include Google::Apis::Core::Hashable - - # The protocol buffer options. - # Corresponds to the JSON property `options` - # @return [Array] - attr_accessor :options - - # The list of fields. - # Corresponds to the JSON property `fields` - # @return [Array] - attr_accessor :fields - - # The fully qualified message name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The list of types appearing in `oneof` definitions in this type. - # Corresponds to the JSON property `oneofs` - # @return [Array] - attr_accessor :oneofs - - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. - # Corresponds to the JSON property `sourceContext` - # @return [Google::Apis::ServicemanagementV1::SourceContext] - attr_accessor :source_context - - # The source syntax. - # Corresponds to the JSON property `syntax` - # @return [String] - attr_accessor :syntax - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @options = args[:options] if args.key?(:options) - @fields = args[:fields] if args.key?(:fields) - @name = args[:name] if args.key?(:name) - @oneofs = args[:oneofs] if args.key?(:oneofs) - @source_context = args[:source_context] if args.key?(:source_context) - @syntax = args[:syntax] if args.key?(:syntax) - end - end - - # Experimental service configuration. These configuration options can - # only be used by whitelisted users. - class Experimental - include Google::Apis::Core::Hashable - - # Configuration of authorization. - # This section determines the authorization provider, if unspecified, then no - # authorization check will be done. - # Example: - # experimental: - # authorization: - # provider: firebaserules.googleapis.com - # Corresponds to the JSON property `authorization` - # @return [Google::Apis::ServicemanagementV1::AuthorizationConfig] - attr_accessor :authorization - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @authorization = args[:authorization] if args.key?(:authorization) - end - end - - # Response message for ListServiceConfigs method. - class ListServiceConfigsResponse - include Google::Apis::Core::Hashable - - # The list of service configuration resources. - # Corresponds to the JSON property `serviceConfigs` - # @return [Array] - attr_accessor :service_configs - - # The token of 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) - @service_configs = args[:service_configs] if args.key?(:service_configs) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices" - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:foo@gmail.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE", - # `, - # ` - # "log_type": "ADMIN_READ", - # ` - # ] - # `, - # ` - # "service": "fooservice.googleapis.com" - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:bar@gmail.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and - # bar@gmail.com from DATA_WRITE logging. - class AuditConfig - include Google::Apis::Core::Hashable - - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - # The configuration for logging of each type of permission. - # Next ID: 4 - # Corresponds to the JSON property `auditLogConfigs` - # @return [Array] - attr_accessor :audit_log_configs - - # - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service = args[:service] if args.key?(:service) - @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - end - end - - # `Backend` defines the backend configuration for a service. - class Backend - include Google::Apis::Core::Hashable - - # A list of API backend rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rules = args[:rules] if args.key?(:rules) - end - end - - # Request message for SubmitConfigSource method. - class SubmitConfigSourceRequest - include Google::Apis::Core::Hashable - - # Optional. If set, this will result in the generation of a - # `google.api.Service` configuration based on the `ConfigSource` provided, - # but the generated config and the sources will NOT be persisted. - # Corresponds to the JSON property `validateOnly` - # @return [Boolean] - attr_accessor :validate_only - alias_method :validate_only?, :validate_only - - # Represents a source file which is used to generate the service configuration - # defined by `google.api.Service`. - # Corresponds to the JSON property `configSource` - # @return [Google::Apis::ServicemanagementV1::ConfigSource] - attr_accessor :config_source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @validate_only = args[:validate_only] if args.key?(:validate_only) - @config_source = args[:config_source] if args.key?(:config_source) - end - end - - # A documentation rule provides information about individual API elements. - class DocumentationRule - include Google::Apis::Core::Hashable - - # Description of the selected API(s). - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Deprecation description of the selected element(s). It can be provided if an - # element is marked as `deprecated`. - # Corresponds to the JSON property `deprecationDescription` - # @return [String] - attr_accessor :deprecation_description - - # The selector is a comma-separated list of patterns. Each pattern is a - # qualified name of the element which may end in "*", indicating a wildcard. - # Wildcards are only allowed at the end and for a whole component of the - # qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To - # specify a default for all applicable elements, the whole pattern "*" - # is used. - # Corresponds to the JSON property `selector` - # @return [String] - attr_accessor :selector - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @deprecation_description = args[:deprecation_description] if args.key?(:deprecation_description) - @selector = args[:selector] if args.key?(:selector) - end - end - - # Configuration of authorization. - # This section determines the authorization provider, if unspecified, then no - # authorization check will be done. - # Example: - # experimental: - # authorization: - # provider: firebaserules.googleapis.com - class AuthorizationConfig - include Google::Apis::Core::Hashable - - # The name of the authorization provider, such as - # firebaserules.googleapis.com. - # Corresponds to the JSON property `provider` - # @return [String] - attr_accessor :provider - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @provider = args[:provider] if args.key?(:provider) - end - end - - # A context rule provides information about the context for an individual API - # element. - class ContextRule - include Google::Apis::Core::Hashable - - # A list of full type names of provided contexts. - # Corresponds to the JSON property `provided` - # @return [Array] - attr_accessor :provided - - # A list of full type names of requested contexts. - # Corresponds to the JSON property `requested` - # @return [Array] - attr_accessor :requested - - # Selects the methods to which this rule applies. - # Refer to selector for syntax details. - # Corresponds to the JSON property `selector` - # @return [String] - attr_accessor :selector - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @provided = args[:provided] if args.key?(:provided) - @requested = args[:requested] if args.key?(:requested) - @selector = args[:selector] if args.key?(:selector) - end - end - - # Write a Cloud Audit log - class CloudAuditOptions - include Google::Apis::Core::Hashable - - # The log_name to populate in the Cloud Audit Record. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_name = args[:log_name] if args.key?(:log_name) - end - end - - # Defines a metric type and its schema. Once a metric descriptor is created, - # deleting or altering it stops data collection and makes the metric type's - # existing data unusable. - class MetricDescriptor - include Google::Apis::Core::Hashable - - # The resource name of the metric descriptor. Depending on the - # implementation, the name typically includes: (1) the parent resource name - # that defines the scope of the metric type or of its data; and (2) the - # metric's URL-encoded type, which also appears in the `type` field of this - # descriptor. For example, following is the resource name of a custom - # metric within the GCP project `my-project-id`: - # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice% - # 2Fpaid%2Famount" - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The metric type, including its DNS name prefix. The type is not - # URL-encoded. All user-defined custom metric types have the DNS name - # `custom.googleapis.com`. Metric types should use a natural hierarchical - # grouping. For example: - # "custom.googleapis.com/invoice/paid/amount" - # "appengine.googleapis.com/http/server/response_latencies" - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Whether the measurement is an integer, a floating-point number, etc. - # Some combinations of `metric_kind` and `value_type` might not be supported. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - # Whether the metric records instantaneous values, changes to a value, etc. - # Some combinations of `metric_kind` and `value_type` might not be supported. - # Corresponds to the JSON property `metricKind` - # @return [String] - attr_accessor :metric_kind - - # A concise name for the metric, which can be displayed in user interfaces. - # Use sentence case without an ending period, for example "Request count". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # A detailed description of the metric, which can be used in documentation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) - # **Grammar** - # The grammar includes the dimensionless unit `1`, such as `1/s`. - # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) - # The grammar for a unit is as follows: - # Expression = Component ` "." Component ` ` "/" Component ` ; - # Component = [ PREFIX ] UNIT [ Annotation ] - # | Annotation - # | "1" - # ; - # Annotation = "`" NAME "`" ; - # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. - # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - # The set of labels that can be used to describe a specific - # instance of this metric type. For example, the - # `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so - # you can look at latencies for successful responses or just - # for responses that failed. - # 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) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - @value_type = args[:value_type] if args.key?(:value_type) - @metric_kind = args[:metric_kind] if args.key?(:metric_kind) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @unit = args[:unit] if args.key?(:unit) - @labels = args[:labels] if args.key?(:labels) - end - end - - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. - class SourceContext - include Google::Apis::Core::Hashable - - # The path-qualified name of the .proto file that contained the associated - # protobuf element. For example: `"google/protobuf/source_context.proto"`. - # Corresponds to the JSON property `fileName` - # @return [String] - attr_accessor :file_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file_name = args[:file_name] if args.key?(:file_name) - end - end - - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" - class Expr - include Google::Apis::Core::Hashable - - # An optional title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @title = args[:title] if args.key?(:title) - @location = args[:location] if args.key?(:location) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - end - end - - # Response message for `ListServices` method. - class ListServicesResponse - include Google::Apis::Core::Hashable - - # The returned services will only have the name field set. - # Corresponds to the JSON property `services` - # @return [Array] - attr_accessor :services - - # Token that can be passed to `ListServices` to resume a paginated query. - # 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 - - # `Endpoint` describes a network endpoint that serves a set of APIs. - # A service may expose any number of endpoints, and all endpoints share the - # same service configuration, such as quota configuration and monitoring - # configuration. - # Example service configuration: - # name: library-example.googleapis.com - # endpoints: - # # Below entry makes 'google.example.library.v1.Library' - # # API be served from endpoint address library-example.googleapis.com. - # # It also allows HTTP OPTIONS calls to be passed to the backend, for - # # it to decide whether the subsequent cross-origin request is - # # allowed to proceed. - # - name: library-example.googleapis.com - # allow_cors: true - class Endpoint - include Google::Apis::Core::Hashable - - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - - # The list of APIs served by this endpoint. - # If no APIs are specified this translates to "all APIs" exported by the - # service, as defined in the top-level service configuration. - # Corresponds to the JSON property `apis` - # @return [Array] - attr_accessor :apis - - # Allowing - # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - # cross-domain traffic, would allow the backends served from this endpoint to - # receive and respond to HTTP OPTIONS requests. The response will be used by - # the browser to determine whether the subsequent cross-origin request is - # allowed to proceed. - # Corresponds to the JSON property `allowCors` - # @return [Boolean] - attr_accessor :allow_cors - alias_method :allow_cors?, :allow_cors - - # DEPRECATED: This field is no longer supported. Instead of using aliases, - # please specify multiple google.api.Endpoint for each of the intented - # alias. - # Additional names that this endpoint will be hosted on. - # Corresponds to the JSON property `aliases` - # @return [Array] - attr_accessor :aliases - - # The specification of an Internet routable address of API frontend that will - # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/ - # glossary). - # It should be either a valid IPv4 address or a fully-qualified domain name. - # For example, "8.8.8.8" or "myservice.appspot.com". - # Corresponds to the JSON property `target` - # @return [String] - attr_accessor :target - - # The canonical name of this endpoint. - # 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) - @features = args[:features] if args.key?(:features) - @apis = args[:apis] if args.key?(:apis) - @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @aliases = args[:aliases] if args.key?(:aliases) - @target = args[:target] if args.key?(:target) - @name = args[:name] if args.key?(:name) - end - end - - # OAuth scopes are a way to define data and permissions on data. For example, - # there are scopes defined for "Read-only access to Google Calendar" and - # "Access to Cloud Platform". Users can consent to a scope for an application, - # giving it permission to access that data on their behalf. - # OAuth scope specifications should be fairly coarse grained; a user will need - # to see and understand the text description of what your scope means. - # In most cases: use one or at most two OAuth scopes for an entire family of - # products. If your product has multiple APIs, you should probably be sharing - # the OAuth scope across all of those APIs. - # When you need finer grained OAuth consent screens: talk with your product - # management about how developers will use them in practice. - # Please note that even though each of the canonical scopes is enough for a - # request to be accepted and passed to the backend, a request can still fail - # due to the backend requiring additional scopes or permissions. - class OAuthRequirements - include Google::Apis::Core::Hashable - - # The list of publicly documented OAuth scopes that are allowed access. An - # OAuth token containing any of these scopes will be accepted. - # Example: - # canonical_scopes: https://www.googleapis.com/auth/calendar, - # https://www.googleapis.com/auth/calendar.read - # Corresponds to the JSON property `canonicalScopes` - # @return [String] - attr_accessor :canonical_scopes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @canonical_scopes = args[:canonical_scopes] if args.key?(:canonical_scopes) - end - end - - # Response message for `TestIamPermissions` method. - class TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Request message for `GetIamPolicy` method. - class GetIamPolicyRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Configuration controlling usage of a service. - class Usage - include Google::Apis::Core::Hashable - - # The full resource name of a channel used for sending notifications to the - # service producer. - # Google Service Management currently only supports - # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - # channel. To use Google Cloud Pub/Sub as the channel, this must be the name - # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - # documented in https://cloud.google.com/pubsub/docs/overview. - # Corresponds to the JSON property `producerNotificationChannel` - # @return [String] - attr_accessor :producer_notification_channel - - # A list of usage rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # Requirements that must be satisfied before a consumer project can use the - # service. Each requirement is of the form /; - # for example 'serviceusage.googleapis.com/billing-enabled'. - # Corresponds to the JSON property `requirements` - # @return [Array] - attr_accessor :requirements - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel) - @rules = args[:rules] if args.key?(:rules) - @requirements = args[:requirements] if args.key?(:requirements) - end - end - - # `Context` defines which contexts an API requests. - # Example: - # context: - # rules: - # - selector: "*" - # requested: - # - google.rpc.context.ProjectContext - # - google.rpc.context.OriginContext - # The above specifies that all methods in the API request - # `google.rpc.context.ProjectContext` and - # `google.rpc.context.OriginContext`. - # Available context types are defined in package - # `google.rpc.context`. - class Context - include Google::Apis::Core::Hashable - - # A list of RPC context rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rules = args[:rules] if args.key?(:rules) - end - end - - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries is the same as for members in a - # Binding (see google/iam/v1/policy.proto). - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @not_in = args[:not_in] if args.key?(:not_in) - @description = args[:description] if args.key?(:description) - @conditions = args[:conditions] if args.key?(:conditions) - @log_config = args[:log_config] if args.key?(:log_config) - @in = args[:in] if args.key?(:in) - @permissions = args[:permissions] if args.key?(:permissions) - @action = args[:action] if args.key?(:action) - end - end - - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::ServicemanagementV1::DataAccessOptions] - attr_accessor :data_access - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::ServicemanagementV1::CloudAuditOptions] - attr_accessor :cloud_audit - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::ServicemanagementV1::CounterOptions] - attr_accessor :counter - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_access = args[:data_access] if args.key?(:data_access) - @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) - @counter = args[:counter] if args.key?(:counter) - end - end - - # A description of a log type. Example in YAML format: - # - name: library.googleapis.com/activity_history - # description: The history of borrowing and returning library items. - # display_name: Activity - # labels: - # - key: /customer_id - # description: Identifier of a library customer - class LogDescriptor - include Google::Apis::Core::Hashable - - # The set of labels that are available to describe a specific log entry. - # Runtime requests that contain labels not specified here are - # considered invalid. - # Corresponds to the JSON property `labels` - # @return [Array] - attr_accessor :labels - - # The name of the log. It must be less than 512 characters long and can - # include the following characters: upper- and lower-case alphanumeric - # characters [A-Za-z0-9], and punctuation characters including - # slash, underscore, hyphen, period [/_-.]. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A human-readable description of this log. This information appears in - # the documentation and can contain details. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The human-readable name for this log. This information appears on - # the user interface and should be concise. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @description = args[:description] if args.key?(:description) - @display_name = args[:display_name] if args.key?(:display_name) - end - end - - # Generic specification of a source configuration file - class ConfigFile - include Google::Apis::Core::Hashable - - # The type of configuration file this represents. - # Corresponds to the JSON property `fileType` - # @return [String] - attr_accessor :file_type - - # The bytes that constitute the file. - # Corresponds to the JSON property `fileContents` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :file_contents - - # The file name of the configuration file (full or relative path). - # Corresponds to the JSON property `filePath` - # @return [String] - attr_accessor :file_path - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @file_type = args[:file_type] if args.key?(:file_type) - @file_contents = args[:file_contents] if args.key?(:file_contents) - @file_path = args[:file_path] if args.key?(:file_path) - end - end - - # An object that describes the schema of a MonitoredResource object using a - # type name and a set of labels. For example, the monitored resource - # descriptor for Google Compute Engine VM instances has a type of - # `"gce_instance"` and specifies the use of the labels `"instance_id"` and - # `"zone"` to identify particular VM instances. - # Different APIs can support different monitored resource types. APIs generally - # provide a `list` method that returns the monitored resource descriptors used - # by the API. - class MonitoredResourceDescriptor - include Google::Apis::Core::Hashable - - # Optional. A concise name for the monitored resource type that might be - # displayed in user interfaces. It should be a Title Cased Noun Phrase, - # without any article or other determiners. For example, - # `"Google Cloud SQL Database"`. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Optional. A detailed description of the monitored resource type that might - # be used in documentation. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Required. The monitored resource type. For example, the type - # `"cloudsql_database"` represents databases in Google Cloud SQL. - # The maximum length of this value is 256 characters. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Required. A set of labels used to describe instances of this monitored - # resource type. For example, an individual Google Cloud SQL database is - # identified by values for the labels `"database_id"` and `"zone"`. - # Corresponds to the JSON property `labels` - # @return [Array] - attr_accessor :labels - - # Optional. The resource name of the monitored resource descriptor: - # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where - # `type` is the value of the `type` field in this object and - # `project_id` is a project ID that provides API-specific context for - # accessing the type. APIs that do not use project information can use the - # resource name format `"monitoredResourceDescriptors/`type`"`. - # 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) - @display_name = args[:display_name] if args.key?(:display_name) - @description = args[:description] if args.key?(:description) - @type = args[:type] if args.key?(:type) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - end - end - - # A custom error rule. - class CustomErrorRule - include Google::Apis::Core::Hashable - - # Selects messages to which this rule applies. - # Refer to selector for syntax details. - # Corresponds to the JSON property `selector` - # @return [String] - attr_accessor :selector - - # Mark this message as possible payload in error response. Otherwise, - # objects of this type will be filtered when they appear in error payload. - # Corresponds to the JSON property `isErrorType` - # @return [Boolean] - attr_accessor :is_error_type - alias_method :is_error_type?, :is_error_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @selector = args[:selector] if args.key?(:selector) - @is_error_type = args[:is_error_type] if args.key?(:is_error_type) - end - end - - # Defines the Media configuration for a service in case of a download. - # Use this only for Scotty Requests. Do not use this for media support using - # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to - # your configuration for Bytestream methods. - class MediaDownload - include Google::Apis::Core::Hashable - - # A boolean that determines if direct download from ESF should be used for - # download of this media. - # Corresponds to the JSON property `useDirectDownload` - # @return [Boolean] - attr_accessor :use_direct_download - alias_method :use_direct_download?, :use_direct_download - - # Whether download is enabled. - # Corresponds to the JSON property `enabled` - # @return [Boolean] - attr_accessor :enabled - alias_method :enabled?, :enabled - - # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. - # Specify name of the download service if one is used for download. - # Corresponds to the JSON property `downloadService` - # @return [String] - attr_accessor :download_service - - # A boolean that determines whether a notification for the completion of a - # download should be sent to the backend. - # Corresponds to the JSON property `completeNotification` - # @return [Boolean] - attr_accessor :complete_notification - alias_method :complete_notification?, :complete_notification - - # Name of the Scotty dropzone to use for the current API. - # Corresponds to the JSON property `dropzone` - # @return [String] - attr_accessor :dropzone - - # Optional maximum acceptable size for direct download. - # The size is specified in bytes. - # Corresponds to the JSON property `maxDirectDownloadSize` - # @return [Fixnum] - attr_accessor :max_direct_download_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download) - @enabled = args[:enabled] if args.key?(:enabled) - @download_service = args[:download_service] if args.key?(:download_service) - @complete_notification = args[:complete_notification] if args.key?(:complete_notification) - @dropzone = args[:dropzone] if args.key?(:dropzone) - @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size) - end - end - - # Configuration for a custom authentication provider. - class CustomAuthRequirements - include Google::Apis::Core::Hashable - - # A configuration string containing connection information for the - # authentication provider, typically formatted as a SmartService string - # (go/smartservice). - # Corresponds to the JSON property `provider` - # @return [String] - attr_accessor :provider - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @provider = args[:provider] if args.key?(:provider) - end - end - - # Change report associated with a particular service configuration. - # It contains a list of ConfigChanges based on the comparison between - # two service configurations. - class ChangeReport - include Google::Apis::Core::Hashable - - # List of changes between two service configurations. - # The changes will be alphabetically sorted based on the identifier - # of each change. - # A ConfigChange identifier is a dot separated path to the configuration. - # Example: visibility.rules[selector='LibraryService.CreateBook'].restriction - # Corresponds to the JSON property `configChanges` - # @return [Array] - attr_accessor :config_changes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @config_changes = args[:config_changes] if args.key?(:config_changes) - end - end - - # Request message for DisableService method. - class DisableServiceRequest - include Google::Apis::Core::Hashable - - # The identity of consumer resource which service disablement will be - # applied to. - # The Google Service Management implementation accepts the following - # forms: - # - "project:" - # Note: this is made compatible with - # google.api.servicecontrol.v1.Operation.consumer_id. - # Corresponds to the JSON property `consumerId` - # @return [String] - attr_accessor :consumer_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consumer_id = args[:consumer_id] if args.key?(:consumer_id) - end - end - - # Response message for SubmitConfigSource method. - class SubmitConfigSourceResponse - include Google::Apis::Core::Hashable - - # `Service` is the root object of Google service configuration schema. It - # describes basic information about a service, such as the name and the - # title, and delegates other aspects to sub-sections. Each sub-section is - # either a proto message or a repeated proto message that configures a - # specific aspect, such as auth. See each proto message definition for details. - # Example: - # type: google.api.Service - # config_version: 3 - # name: calendar.googleapis.com - # title: Google Calendar API - # apis: - # - name: google.calendar.v3.Calendar - # authentication: - # providers: - # - id: google_calendar_auth - # jwks_uri: https://www.googleapis.com/oauth2/v1/certs - # issuer: https://securetoken.google.com - # rules: - # - selector: "*" - # requirements: - # provider_id: google_calendar_auth - # Corresponds to the JSON property `serviceConfig` - # @return [Google::Apis::ServicemanagementV1::Service] - attr_accessor :service_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @service_config = args[:service_config] if args.key?(:service_config) - end - end end end end diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index 4a7db7ae7..dfd73d3bf 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -22,199 +22,7 @@ module Google module Apis module ServicemanagementV1 - class MediaUpload - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Advice - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ManagedService - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UsageRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuthRequirement - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TrafficPercentStrategy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Documentation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuditLogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ConfigSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuthenticationRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BackendRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Policy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UndeleteServiceResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Api - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MetricRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Authentication - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Page - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AuthProvider - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EnumValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Service - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomHttpPattern - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemParameterRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class VisibilityRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class HttpRule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MonitoringDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Visibility + class ConfigChange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -226,7 +34,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ConfigChange + class Rollout class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -238,12 +46,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Rollout - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GenerateConfigReportRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -256,13 +58,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Step + class DeleteServiceStrategy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DeleteServiceStrategy + class Step class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -298,13 +100,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListServiceRolloutsResponse + class ConfigRef class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ConfigRef + class ListServiceRolloutsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -388,19 +190,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class EnableServiceRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Diagnostic class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GenerateConfigReportResponse + class EnableServiceRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -412,7 +208,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Experimental + class GenerateConfigReportResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -424,7 +220,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AuditConfig + class Experimental class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -436,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SubmitConfigSourceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,13 +256,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ContextRule + class CloudAuditOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CloudAuditOptions + class ContextRule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -502,7 +304,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class Usage class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -514,7 +316,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Usage + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -550,19 +352,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class MonitoredResourceDescriptor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CustomErrorRule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class MediaDownload + class MonitoredResourceDescriptor class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -574,6 +370,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MediaDownload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ChangeReport class Representation < Google::Apis::Core::JsonRepresentation; end @@ -593,387 +395,212 @@ module Google end class MediaUpload - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :complete_notification, as: 'completeNotification' - property :progress_notification, as: 'progressNotification' - property :enabled, as: 'enabled' - property :dropzone, as: 'dropzone' - property :start_notification, as: 'startNotification' - property :upload_service, as: 'uploadService' - collection :mime_types, as: 'mimeTypes' - property :max_size, :numeric_string => true, as: 'maxSize' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Advice - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ManagedService - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service_name, as: 'serviceName' - property :producer_project_id, as: 'producerProjectId' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class UsageRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - property :allow_unregistered_calls, as: 'allowUnregisteredCalls' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class AuthRequirement - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :provider_id, as: 'providerId' - property :audiences, as: 'audiences' - end + include Google::Apis::Core::JsonObjectSupport end class TrafficPercentStrategy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :percentages, as: 'percentages' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class Documentation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::DocumentationRule, decorator: Google::Apis::ServicemanagementV1::DocumentationRule::Representation + class AuthRequirement + class Representation < Google::Apis::Core::JsonRepresentation; end - property :overview, as: 'overview' - collection :pages, as: 'pages', class: Google::Apis::ServicemanagementV1::Page, decorator: Google::Apis::ServicemanagementV1::Page::Representation - - property :summary, as: 'summary' - property :documentation_root_url, as: 'documentationRootUrl' - end + include Google::Apis::Core::JsonObjectSupport end class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :op, as: 'op' - property :svc, as: 'svc' - property :sys, as: 'sys' - property :value, as: 'value' - collection :values, as: 'values' - property :iam, as: 'iam' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Documentation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class AuditLogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :log_type, as: 'logType' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class ConfigSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :files, as: 'files', class: Google::Apis::ServicemanagementV1::ConfigFile, decorator: Google::Apis::ServicemanagementV1::ConfigFile::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :id, as: 'id' - end - end - - class AuthenticationRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :requirements, as: 'requirements', class: Google::Apis::ServicemanagementV1::AuthRequirement, decorator: Google::Apis::ServicemanagementV1::AuthRequirement::Representation - - property :selector, as: 'selector' - property :allow_without_credential, as: 'allowWithoutCredential' - property :oauth, as: 'oauth', class: Google::Apis::ServicemanagementV1::OAuthRequirements, decorator: Google::Apis::ServicemanagementV1::OAuthRequirements::Representation - - property :custom_auth, as: 'customAuth', class: Google::Apis::ServicemanagementV1::CustomAuthRequirements, decorator: Google::Apis::ServicemanagementV1::CustomAuthRequirements::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class BackendRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - property :deadline, as: 'deadline' - property :min_deadline, as: 'minDeadline' - property :address, as: 'address' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - class Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::Rule, decorator: Google::Apis::ServicemanagementV1::Rule::Representation + class AuthenticationRule + class Representation < Google::Apis::Core::JsonRepresentation; end - property :version, as: 'version' - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ServicemanagementV1::AuditConfig, decorator: Google::Apis::ServicemanagementV1::AuditConfig::Representation - - collection :bindings, as: 'bindings', class: Google::Apis::ServicemanagementV1::Binding, decorator: Google::Apis::ServicemanagementV1::Binding::Representation - - property :etag, :base64 => true, as: 'etag' - end + include Google::Apis::Core::JsonObjectSupport end class UndeleteServiceResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :service, as: 'service', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Api - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :methods_prop, as: 'methods', class: Google::Apis::ServicemanagementV1::MethodProp, decorator: Google::Apis::ServicemanagementV1::MethodProp::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation - - property :syntax, as: 'syntax' - property :version, as: 'version' - collection :mixins, as: 'mixins', class: Google::Apis::ServicemanagementV1::Mixin, decorator: Google::Apis::ServicemanagementV1::Mixin::Representation - - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation - - end - end - - class MetricRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' - hash :metric_costs, as: 'metricCosts' - end + include Google::Apis::Core::JsonObjectSupport end class DataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Authentication - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::AuthenticationRule, decorator: Google::Apis::ServicemanagementV1::AuthenticationRule::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :providers, as: 'providers', class: Google::Apis::ServicemanagementV1::AuthProvider, decorator: Google::Apis::ServicemanagementV1::AuthProvider::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::ServicemanagementV1::Status, decorator: Google::Apis::ServicemanagementV1::Status::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - hash :metadata, as: 'metadata' - end + include Google::Apis::Core::JsonObjectSupport end class Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :subpages, as: 'subpages', class: Google::Apis::ServicemanagementV1::Page, decorator: Google::Apis::ServicemanagementV1::Page::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :name, as: 'name' - property :content, as: 'content' - end + include Google::Apis::Core::JsonObjectSupport end class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :message, as: 'message' - collection :details, as: 'details' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :condition, as: 'condition', class: Google::Apis::ServicemanagementV1::Expr, decorator: Google::Apis::ServicemanagementV1::Expr::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - collection :members, as: 'members' - property :role, as: 'role' - end + include Google::Apis::Core::JsonObjectSupport end class AuthProvider - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :jwks_uri, as: 'jwksUri' - property :audiences, as: 'audiences' - property :id, as: 'id' - property :issuer, as: 'issuer' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class EnumValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :number, as: 'number' - end + include Google::Apis::Core::JsonObjectSupport end class Service - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :enums, as: 'enums', class: Google::Apis::ServicemanagementV1::Enum, decorator: Google::Apis::ServicemanagementV1::Enum::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :context, as: 'context', class: Google::Apis::ServicemanagementV1::Context, decorator: Google::Apis::ServicemanagementV1::Context::Representation - - property :id, as: 'id' - property :usage, as: 'usage', class: Google::Apis::ServicemanagementV1::Usage, decorator: Google::Apis::ServicemanagementV1::Usage::Representation - - collection :metrics, as: 'metrics', class: Google::Apis::ServicemanagementV1::MetricDescriptor, decorator: Google::Apis::ServicemanagementV1::MetricDescriptor::Representation - - property :authentication, as: 'authentication', class: Google::Apis::ServicemanagementV1::Authentication, decorator: Google::Apis::ServicemanagementV1::Authentication::Representation - - property :experimental, as: 'experimental', class: Google::Apis::ServicemanagementV1::Experimental, decorator: Google::Apis::ServicemanagementV1::Experimental::Representation - - property :control, as: 'control', class: Google::Apis::ServicemanagementV1::Control, decorator: Google::Apis::ServicemanagementV1::Control::Representation - - property :config_version, as: 'configVersion' - property :monitoring, as: 'monitoring', class: Google::Apis::ServicemanagementV1::Monitoring, decorator: Google::Apis::ServicemanagementV1::Monitoring::Representation - - collection :system_types, as: 'systemTypes', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation - - property :producer_project_id, as: 'producerProjectId' - property :visibility, as: 'visibility', class: Google::Apis::ServicemanagementV1::Visibility, decorator: Google::Apis::ServicemanagementV1::Visibility::Representation - - property :quota, as: 'quota', class: Google::Apis::ServicemanagementV1::Quota, decorator: Google::Apis::ServicemanagementV1::Quota::Representation - - property :name, as: 'name' - property :custom_error, as: 'customError', class: Google::Apis::ServicemanagementV1::CustomError, decorator: Google::Apis::ServicemanagementV1::CustomError::Representation - - property :title, as: 'title' - collection :endpoints, as: 'endpoints', class: Google::Apis::ServicemanagementV1::Endpoint, decorator: Google::Apis::ServicemanagementV1::Endpoint::Representation - - collection :apis, as: 'apis', class: Google::Apis::ServicemanagementV1::Api, decorator: Google::Apis::ServicemanagementV1::Api::Representation - - collection :logs, as: 'logs', class: Google::Apis::ServicemanagementV1::LogDescriptor, decorator: Google::Apis::ServicemanagementV1::LogDescriptor::Representation - - collection :types, as: 'types', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation - - property :source_info, as: 'sourceInfo', class: Google::Apis::ServicemanagementV1::SourceInfo, decorator: Google::Apis::ServicemanagementV1::SourceInfo::Representation - - property :http, as: 'http', class: Google::Apis::ServicemanagementV1::Http, decorator: Google::Apis::ServicemanagementV1::Http::Representation - - property :backend, as: 'backend', class: Google::Apis::ServicemanagementV1::Backend, decorator: Google::Apis::ServicemanagementV1::Backend::Representation - - property :system_parameters, as: 'systemParameters', class: Google::Apis::ServicemanagementV1::SystemParameters, decorator: Google::Apis::ServicemanagementV1::SystemParameters::Representation - - property :documentation, as: 'documentation', class: Google::Apis::ServicemanagementV1::Documentation, decorator: Google::Apis::ServicemanagementV1::Documentation::Representation - - property :logging, as: 'logging', class: Google::Apis::ServicemanagementV1::Logging, decorator: Google::Apis::ServicemanagementV1::Logging::Representation - - collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::ServicemanagementV1::Operation, decorator: Google::Apis::ServicemanagementV1::Operation::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - end - end - - class CustomHttpPattern - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :path, as: 'path' - property :kind, as: 'kind' - end + include Google::Apis::Core::JsonObjectSupport end class OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - collection :resource_names, as: 'resourceNames' - collection :steps, as: 'steps', class: Google::Apis::ServicemanagementV1::Step, decorator: Google::Apis::ServicemanagementV1::Step::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :progress_percentage, as: 'progressPercentage' - end + include Google::Apis::Core::JsonObjectSupport + end + + class CustomHttpPattern + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class SystemParameterRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :parameters, as: 'parameters', class: Google::Apis::ServicemanagementV1::SystemParameter, decorator: Google::Apis::ServicemanagementV1::SystemParameter::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :selector, as: 'selector' - end + include Google::Apis::Core::JsonObjectSupport end class VisibilityRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :restriction, as: 'restriction' - property :selector, as: 'selector' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class HttpRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :post, as: 'post' - property :media_download, as: 'mediaDownload', class: Google::Apis::ServicemanagementV1::MediaDownload, decorator: Google::Apis::ServicemanagementV1::MediaDownload::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :rest_method_name, as: 'restMethodName' - collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation - - property :rest_collection, as: 'restCollection' - property :response_body, as: 'responseBody' - property :media_upload, as: 'mediaUpload', class: Google::Apis::ServicemanagementV1::MediaUpload, decorator: Google::Apis::ServicemanagementV1::MediaUpload::Representation - - property :selector, as: 'selector' - property :custom, as: 'custom', class: Google::Apis::ServicemanagementV1::CustomHttpPattern, decorator: Google::Apis::ServicemanagementV1::CustomHttpPattern::Representation - - property :get, as: 'get' - property :patch, as: 'patch' - property :put, as: 'put' - property :delete, as: 'delete' - property :body, as: 'body' - end + include Google::Apis::Core::JsonObjectSupport end class MonitoringDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :metrics, as: 'metrics' - property :monitored_resource, as: 'monitoredResource' - end + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Visibility + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConfigChange # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::VisibilityRule, decorator: Google::Apis::ServicemanagementV1::VisibilityRule::Representation + property :change_type, as: 'changeType' + property :element, as: 'element' + collection :advices, as: 'advices', class: Google::Apis::ServicemanagementV1::Advice, decorator: Google::Apis::ServicemanagementV1::Advice::Representation + property :old_value, as: 'oldValue' + property :new_value, as: 'newValue' end end @@ -985,15 +612,18 @@ module Google end end - class ConfigChange + class Rollout # @private class Representation < Google::Apis::Core::JsonRepresentation - property :new_value, as: 'newValue' - property :change_type, as: 'changeType' - property :element, as: 'element' - property :old_value, as: 'oldValue' - collection :advices, as: 'advices', class: Google::Apis::ServicemanagementV1::Advice, decorator: Google::Apis::ServicemanagementV1::Advice::Representation + property :status, as: 'status' + property :service_name, as: 'serviceName' + property :created_by, as: 'createdBy' + property :traffic_percent_strategy, as: 'trafficPercentStrategy', class: Google::Apis::ServicemanagementV1::TrafficPercentStrategy, decorator: Google::Apis::ServicemanagementV1::TrafficPercentStrategy::Representation + property :rollout_id, as: 'rolloutId' + property :delete_service_strategy, as: 'deleteServiceStrategy', class: Google::Apis::ServicemanagementV1::DeleteServiceStrategy, decorator: Google::Apis::ServicemanagementV1::DeleteServiceStrategy::Representation + + property :create_time, as: 'createTime' end end @@ -1007,21 +637,6 @@ module Google end end - class Rollout - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :delete_service_strategy, as: 'deleteServiceStrategy', class: Google::Apis::ServicemanagementV1::DeleteServiceStrategy, decorator: Google::Apis::ServicemanagementV1::DeleteServiceStrategy::Representation - - property :create_time, as: 'createTime' - property :status, as: 'status' - property :service_name, as: 'serviceName' - property :created_by, as: 'createdBy' - property :traffic_percent_strategy, as: 'trafficPercentStrategy', class: Google::Apis::ServicemanagementV1::TrafficPercentStrategy, decorator: Google::Apis::ServicemanagementV1::TrafficPercentStrategy::Representation - - property :rollout_id, as: 'rolloutId' - end - end - class GenerateConfigReportRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1033,17 +648,9 @@ module Google class SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :update_mask, as: 'updateMask' property :policy, as: 'policy', class: Google::Apis::ServicemanagementV1::Policy, decorator: Google::Apis::ServicemanagementV1::Policy::Representation - property :update_mask, as: 'updateMask' - end - end - - class Step - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :status, as: 'status' end end @@ -1053,6 +660,14 @@ module Google end end + class Step + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + property :description, as: 'description' + end + end + class LoggingDestination # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1064,8 +679,8 @@ module Google class Option # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' hash :value, as: 'value' + property :name, as: 'name' end end @@ -1082,6 +697,7 @@ module Google class MethodProp # @private class Representation < Google::Apis::Core::JsonRepresentation + property :response_streaming, as: 'responseStreaming' property :name, as: 'name' property :request_type_url, as: 'requestTypeUrl' property :request_streaming, as: 'requestStreaming' @@ -1089,22 +705,28 @@ module Google property :response_type_url, as: 'responseTypeUrl' collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation - property :response_streaming, as: 'responseStreaming' end end class QuotaLimit # @private class Representation < Google::Apis::Core::JsonRepresentation - property :free_tier, :numeric_string => true, as: 'freeTier' + property :unit, as: 'unit' + property :max_limit, :numeric_string => true, as: 'maxLimit' + property :name, as: 'name' property :duration, as: 'duration' + property :free_tier, :numeric_string => true, as: 'freeTier' property :default_limit, :numeric_string => true, as: 'defaultLimit' property :display_name, as: 'displayName' property :description, as: 'description' property :metric, as: 'metric' hash :values, as: 'values' - property :unit, as: 'unit' - property :max_limit, :numeric_string => true, as: 'maxLimit' + end + end + + class ConfigRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' end end @@ -1118,13 +740,6 @@ module Google end end - class ConfigRef - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - end - end - class Mixin # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1136,37 +751,37 @@ module Google class FlowOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :start_time, as: 'startTime' - property :flow_name, as: 'flowName' - collection :resource_names, as: 'resourceNames' - property :cancel_state, as: 'cancelState' property :deadline, as: 'deadline' + property :cancel_state, as: 'cancelState' + property :start_time, as: 'startTime' + collection :resource_names, as: 'resourceNames' + property :flow_name, as: 'flowName' end end class CustomError # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :types, as: 'types' collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::CustomErrorRule, decorator: Google::Apis::ServicemanagementV1::CustomErrorRule::Representation + collection :types, as: 'types' end end class CounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' property :field, as: 'field' + property :metric, as: 'metric' end end class Http # @private class Representation < Google::Apis::Core::JsonRepresentation - property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion' collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation + property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion' end end @@ -1206,17 +821,17 @@ module Google class Field # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :type_url, as: 'typeUrl' property :number, as: 'number' - property :json_name, as: 'jsonName' property :kind, as: 'kind' + property :json_name, as: 'jsonName' collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation property :oneof_index, as: 'oneofIndex' - property :cardinality, as: 'cardinality' property :packed, as: 'packed' + property :cardinality, as: 'cardinality' property :default_value, as: 'defaultValue' + property :name, as: 'name' + property :type_url, as: 'typeUrl' end end @@ -1230,23 +845,32 @@ module Google class Enum # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServicemanagementV1::EnumValue, decorator: Google::Apis::ServicemanagementV1::EnumValue::Representation - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + property :syntax, as: 'syntax' property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation - property :syntax, as: 'syntax' + collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServicemanagementV1::EnumValue, decorator: Google::Apis::ServicemanagementV1::EnumValue::Representation + + property :name, as: 'name' end end class LabelDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :value_type, as: 'valueType' property :key, as: 'key' property :description, as: 'description' - property :value_type, as: 'valueType' + end + end + + class Diagnostic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :message, as: 'message' + property :location, as: 'location' end end @@ -1257,47 +881,30 @@ module Google end end - class Diagnostic + class Type # @private class Representation < Google::Apis::Core::JsonRepresentation - property :message, as: 'message' - property :location, as: 'location' - property :kind, as: 'kind' + collection :fields, as: 'fields', class: Google::Apis::ServicemanagementV1::Field, decorator: Google::Apis::ServicemanagementV1::Field::Representation + + property :name, as: 'name' + collection :oneofs, as: 'oneofs' + property :syntax, as: 'syntax' + property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation + + collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + end end class GenerateConfigReportResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :change_reports, as: 'changeReports', class: Google::Apis::ServicemanagementV1::ChangeReport, decorator: Google::Apis::ServicemanagementV1::ChangeReport::Representation - - property :id, as: 'id' collection :diagnostics, as: 'diagnostics', class: Google::Apis::ServicemanagementV1::Diagnostic, decorator: Google::Apis::ServicemanagementV1::Diagnostic::Representation property :service_name, as: 'serviceName' - end - end - - class Type - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation - - collection :fields, as: 'fields', class: Google::Apis::ServicemanagementV1::Field, decorator: Google::Apis::ServicemanagementV1::Field::Representation - - property :name, as: 'name' - collection :oneofs, as: 'oneofs' - property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation - - property :syntax, as: 'syntax' - end - end - - class Experimental - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authorization, as: 'authorization', class: Google::Apis::ServicemanagementV1::AuthorizationConfig, decorator: Google::Apis::ServicemanagementV1::AuthorizationConfig::Representation + collection :change_reports, as: 'changeReports', class: Google::Apis::ServicemanagementV1::ChangeReport, decorator: Google::Apis::ServicemanagementV1::ChangeReport::Representation + property :id, as: 'id' end end @@ -1310,13 +917,11 @@ module Google end end - class AuditConfig + class Experimental # @private class Representation < Google::Apis::Core::JsonRepresentation - property :service, as: 'service' - collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ServicemanagementV1::AuditLogConfig, decorator: Google::Apis::ServicemanagementV1::AuditLogConfig::Representation + property :authorization, as: 'authorization', class: Google::Apis::ServicemanagementV1::AuthorizationConfig, decorator: Google::Apis::ServicemanagementV1::AuthorizationConfig::Representation - collection :exempted_members, as: 'exemptedMembers' end end @@ -1328,21 +933,31 @@ module Google end end + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :service, as: 'service' + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ServicemanagementV1::AuditLogConfig, decorator: Google::Apis::ServicemanagementV1::AuditLogConfig::Representation + + end + end + class SubmitConfigSourceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :validate_only, as: 'validateOnly' property :config_source, as: 'configSource', class: Google::Apis::ServicemanagementV1::ConfigSource, decorator: Google::Apis::ServicemanagementV1::ConfigSource::Representation + property :validate_only, as: 'validateOnly' end end class DocumentationRule # @private class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' property :deprecation_description, as: 'deprecationDescription' property :selector, as: 'selector' + property :description, as: 'description' end end @@ -1353,34 +968,35 @@ module Google end end - class ContextRule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :provided, as: 'provided' - collection :requested, as: 'requested' - property :selector, as: 'selector' - end - end - class CloudAuditOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :log_name, as: 'logName' + property :is_read_permission_type, as: 'isReadPermissionType' + end + end + + class ContextRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + collection :provided, as: 'provided' + collection :requested, as: 'requested' end end class MetricDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation + property :name, as: 'name' property :type, as: 'type' property :value_type, as: 'valueType' property :metric_kind, as: 'metricKind' - property :display_name, as: 'displayName' property :description, as: 'description' - property :unit, as: 'unit' - collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation - + property :display_name, as: 'displayName' end end @@ -1394,19 +1010,19 @@ module Google class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation - property :title, as: 'title' - property :location, as: 'location' property :description, as: 'description' property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' end end class ListServicesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' collection :services, as: 'services', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation - property :next_page_token, as: 'nextPageToken' end end @@ -1415,10 +1031,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :features, as: 'features' collection :apis, as: 'apis' - property :allow_cors, as: 'allowCors' collection :aliases, as: 'aliases' - property :target, as: 'target' + property :allow_cors, as: 'allowCors' property :name, as: 'name' + property :target, as: 'target' end end @@ -1429,10 +1045,13 @@ module Google end end - class TestIamPermissionsResponse + class Usage # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' + collection :requirements, as: 'requirements' + property :producer_notification_channel, as: 'producerNotificationChannel' + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::UsageRule, decorator: Google::Apis::ServicemanagementV1::UsageRule::Representation + end end @@ -1442,13 +1061,10 @@ module Google end end - class Usage + class TestIamPermissionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :producer_notification_channel, as: 'producerNotificationChannel' - collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::UsageRule, decorator: Google::Apis::ServicemanagementV1::UsageRule::Representation - - collection :requirements, as: 'requirements' + collection :permissions, as: 'permissions' end end @@ -1478,12 +1094,12 @@ module Google class LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :counter, as: 'counter', class: Google::Apis::ServicemanagementV1::CounterOptions, decorator: Google::Apis::ServicemanagementV1::CounterOptions::Representation + property :data_access, as: 'dataAccess', class: Google::Apis::ServicemanagementV1::DataAccessOptions, decorator: Google::Apis::ServicemanagementV1::DataAccessOptions::Representation property :cloud_audit, as: 'cloudAudit', class: Google::Apis::ServicemanagementV1::CloudAuditOptions, decorator: Google::Apis::ServicemanagementV1::CloudAuditOptions::Representation - property :counter, as: 'counter', class: Google::Apis::ServicemanagementV1::CounterOptions, decorator: Google::Apis::ServicemanagementV1::CounterOptions::Representation - end end @@ -1493,8 +1109,8 @@ module Google collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation property :name, as: 'name' - property :description, as: 'description' property :display_name, as: 'displayName' + property :description, as: 'description' end end @@ -1507,35 +1123,23 @@ module Google end end - class MonitoredResourceDescriptor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - property :description, as: 'description' - property :type, as: 'type' - collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation - - property :name, as: 'name' - end - end - class CustomErrorRule # @private class Representation < Google::Apis::Core::JsonRepresentation - property :selector, as: 'selector' property :is_error_type, as: 'isErrorType' + property :selector, as: 'selector' end end - class MediaDownload + class MonitoredResourceDescriptor # @private class Representation < Google::Apis::Core::JsonRepresentation - property :use_direct_download, as: 'useDirectDownload' - property :enabled, as: 'enabled' - property :download_service, as: 'downloadService' - property :complete_notification, as: 'completeNotification' - property :dropzone, as: 'dropzone' - property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize' + collection :labels, as: 'labels', class: Google::Apis::ServicemanagementV1::LabelDescriptor, decorator: Google::Apis::ServicemanagementV1::LabelDescriptor::Representation + + property :name, as: 'name' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :type, as: 'type' end end @@ -1546,6 +1150,18 @@ module Google end end + class MediaDownload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + property :download_service, as: 'downloadService' + property :complete_notification, as: 'completeNotification' + property :dropzone, as: 'dropzone' + property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize' + property :use_direct_download, as: 'useDirectDownload' + end + end + class ChangeReport # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1568,6 +1184,392 @@ module Google end end + + class MediaUpload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_notification, as: 'startNotification' + property :upload_service, as: 'uploadService' + collection :mime_types, as: 'mimeTypes' + property :max_size, :numeric_string => true, as: 'maxSize' + property :complete_notification, as: 'completeNotification' + property :progress_notification, as: 'progressNotification' + property :enabled, as: 'enabled' + property :dropzone, as: 'dropzone' + end + end + + class Advice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + end + end + + class ManagedService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_name, as: 'serviceName' + property :producer_project_id, as: 'producerProjectId' + end + end + + class UsageRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_unregistered_calls, as: 'allowUnregisteredCalls' + property :selector, as: 'selector' + property :skip_service_control, as: 'skipServiceControl' + end + end + + class TrafficPercentStrategy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :percentages, as: 'percentages' + end + end + + class AuthRequirement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audiences, as: 'audiences' + property :provider_id, as: 'providerId' + end + end + + class Condition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :sys, as: 'sys' + property :iam, as: 'iam' + collection :values, as: 'values' + property :op, as: 'op' + property :svc, as: 'svc' + end + end + + class Documentation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :summary, as: 'summary' + property :documentation_root_url, as: 'documentationRootUrl' + property :overview, as: 'overview' + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::DocumentationRule, decorator: Google::Apis::ServicemanagementV1::DocumentationRule::Representation + + collection :pages, as: 'pages', class: Google::Apis::ServicemanagementV1::Page, decorator: Google::Apis::ServicemanagementV1::Page::Representation + + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_type, as: 'logType' + collection :exempted_members, as: 'exemptedMembers' + end + end + + class ConfigSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :files, as: 'files', class: Google::Apis::ServicemanagementV1::ConfigFile, decorator: Google::Apis::ServicemanagementV1::ConfigFile::Representation + + end + end + + class BackendRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_deadline, as: 'minDeadline' + property :address, as: 'address' + property :selector, as: 'selector' + property :deadline, as: 'deadline' + end + end + + class AuthenticationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requirements, as: 'requirements', class: Google::Apis::ServicemanagementV1::AuthRequirement, decorator: Google::Apis::ServicemanagementV1::AuthRequirement::Representation + + property :allow_without_credential, as: 'allowWithoutCredential' + property :selector, as: 'selector' + property :custom_auth, as: 'customAuth', class: Google::Apis::ServicemanagementV1::CustomAuthRequirements, decorator: Google::Apis::ServicemanagementV1::CustomAuthRequirements::Representation + + property :oauth, as: 'oauth', class: Google::Apis::ServicemanagementV1::OAuthRequirements, decorator: Google::Apis::ServicemanagementV1::OAuthRequirements::Representation + + end + end + + class UndeleteServiceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service', class: Google::Apis::ServicemanagementV1::ManagedService, decorator: Google::Apis::ServicemanagementV1::ManagedService::Representation + + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :iam_owned, as: 'iamOwned' + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::Rule, decorator: Google::Apis::ServicemanagementV1::Rule::Representation + + property :version, as: 'version' + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ServicemanagementV1::AuditConfig, decorator: Google::Apis::ServicemanagementV1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::ServicemanagementV1::Binding, decorator: Google::Apis::ServicemanagementV1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + end + end + + class Api + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :syntax, as: 'syntax' + property :source_context, as: 'sourceContext', class: Google::Apis::ServicemanagementV1::SourceContext, decorator: Google::Apis::ServicemanagementV1::SourceContext::Representation + + property :version, as: 'version' + collection :mixins, as: 'mixins', class: Google::Apis::ServicemanagementV1::Mixin, decorator: Google::Apis::ServicemanagementV1::Mixin::Representation + + collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + + collection :methods_prop, as: 'methods', class: Google::Apis::ServicemanagementV1::MethodProp, decorator: Google::Apis::ServicemanagementV1::MethodProp::Representation + + property :name, as: 'name' + end + end + + class DataAccessOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class MetricRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metric_costs, as: 'metricCosts' + property :selector, as: 'selector' + end + end + + class Authentication + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::AuthenticationRule, decorator: Google::Apis::ServicemanagementV1::AuthenticationRule::Representation + + collection :providers, as: 'providers', class: Google::Apis::ServicemanagementV1::AuthProvider, decorator: Google::Apis::ServicemanagementV1::AuthProvider::Representation + + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::ServicemanagementV1::Status, decorator: Google::Apis::ServicemanagementV1::Status::Representation + + hash :metadata, as: 'metadata' + property :done, as: 'done' + hash :response, as: 'response' + end + end + + class Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :content, as: 'content' + collection :subpages, as: 'subpages', class: Google::Apis::ServicemanagementV1::Page, decorator: Google::Apis::ServicemanagementV1::Page::Representation + + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :code, as: 'code' + property :message, as: 'message' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::ServicemanagementV1::Expr, decorator: Google::Apis::ServicemanagementV1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class AuthProvider + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audiences, as: 'audiences' + property :issuer, as: 'issuer' + property :id, as: 'id' + property :jwks_uri, as: 'jwksUri' + end + end + + class EnumValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :options, as: 'options', class: Google::Apis::ServicemanagementV1::Option, decorator: Google::Apis::ServicemanagementV1::Option::Representation + + property :number, as: 'number' + end + end + + class Service + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :types, as: 'types', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation + + property :source_info, as: 'sourceInfo', class: Google::Apis::ServicemanagementV1::SourceInfo, decorator: Google::Apis::ServicemanagementV1::SourceInfo::Representation + + property :http, as: 'http', class: Google::Apis::ServicemanagementV1::Http, decorator: Google::Apis::ServicemanagementV1::Http::Representation + + property :backend, as: 'backend', class: Google::Apis::ServicemanagementV1::Backend, decorator: Google::Apis::ServicemanagementV1::Backend::Representation + + property :system_parameters, as: 'systemParameters', class: Google::Apis::ServicemanagementV1::SystemParameters, decorator: Google::Apis::ServicemanagementV1::SystemParameters::Representation + + property :documentation, as: 'documentation', class: Google::Apis::ServicemanagementV1::Documentation, decorator: Google::Apis::ServicemanagementV1::Documentation::Representation + + property :logging, as: 'logging', class: Google::Apis::ServicemanagementV1::Logging, decorator: Google::Apis::ServicemanagementV1::Logging::Representation + + collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor::Representation + + property :context, as: 'context', class: Google::Apis::ServicemanagementV1::Context, decorator: Google::Apis::ServicemanagementV1::Context::Representation + + collection :enums, as: 'enums', class: Google::Apis::ServicemanagementV1::Enum, decorator: Google::Apis::ServicemanagementV1::Enum::Representation + + property :id, as: 'id' + property :usage, as: 'usage', class: Google::Apis::ServicemanagementV1::Usage, decorator: Google::Apis::ServicemanagementV1::Usage::Representation + + collection :metrics, as: 'metrics', class: Google::Apis::ServicemanagementV1::MetricDescriptor, decorator: Google::Apis::ServicemanagementV1::MetricDescriptor::Representation + + property :authentication, as: 'authentication', class: Google::Apis::ServicemanagementV1::Authentication, decorator: Google::Apis::ServicemanagementV1::Authentication::Representation + + property :experimental, as: 'experimental', class: Google::Apis::ServicemanagementV1::Experimental, decorator: Google::Apis::ServicemanagementV1::Experimental::Representation + + property :control, as: 'control', class: Google::Apis::ServicemanagementV1::Control, decorator: Google::Apis::ServicemanagementV1::Control::Representation + + property :config_version, as: 'configVersion' + property :monitoring, as: 'monitoring', class: Google::Apis::ServicemanagementV1::Monitoring, decorator: Google::Apis::ServicemanagementV1::Monitoring::Representation + + collection :system_types, as: 'systemTypes', class: Google::Apis::ServicemanagementV1::Type, decorator: Google::Apis::ServicemanagementV1::Type::Representation + + property :producer_project_id, as: 'producerProjectId' + property :visibility, as: 'visibility', class: Google::Apis::ServicemanagementV1::Visibility, decorator: Google::Apis::ServicemanagementV1::Visibility::Representation + + property :quota, as: 'quota', class: Google::Apis::ServicemanagementV1::Quota, decorator: Google::Apis::ServicemanagementV1::Quota::Representation + + property :name, as: 'name' + property :custom_error, as: 'customError', class: Google::Apis::ServicemanagementV1::CustomError, decorator: Google::Apis::ServicemanagementV1::CustomError::Representation + + property :title, as: 'title' + collection :endpoints, as: 'endpoints', class: Google::Apis::ServicemanagementV1::Endpoint, decorator: Google::Apis::ServicemanagementV1::Endpoint::Representation + + collection :logs, as: 'logs', class: Google::Apis::ServicemanagementV1::LogDescriptor, decorator: Google::Apis::ServicemanagementV1::LogDescriptor::Representation + + collection :apis, as: 'apis', class: Google::Apis::ServicemanagementV1::Api, decorator: Google::Apis::ServicemanagementV1::Api::Representation + + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::ServicemanagementV1::Operation, decorator: Google::Apis::ServicemanagementV1::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :progress_percentage, as: 'progressPercentage' + property :start_time, as: 'startTime' + collection :steps, as: 'steps', class: Google::Apis::ServicemanagementV1::Step, decorator: Google::Apis::ServicemanagementV1::Step::Representation + + collection :resource_names, as: 'resourceNames' + end + end + + class CustomHttpPattern + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :path, as: 'path' + end + end + + class SystemParameterRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :selector, as: 'selector' + collection :parameters, as: 'parameters', class: Google::Apis::ServicemanagementV1::SystemParameter, decorator: Google::Apis::ServicemanagementV1::SystemParameter::Representation + + end + end + + class VisibilityRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :restriction, as: 'restriction' + property :selector, as: 'selector' + end + end + + class HttpRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :media_upload, as: 'mediaUpload', class: Google::Apis::ServicemanagementV1::MediaUpload, decorator: Google::Apis::ServicemanagementV1::MediaUpload::Representation + + property :selector, as: 'selector' + property :custom, as: 'custom', class: Google::Apis::ServicemanagementV1::CustomHttpPattern, decorator: Google::Apis::ServicemanagementV1::CustomHttpPattern::Representation + + property :get, as: 'get' + property :patch, as: 'patch' + property :put, as: 'put' + property :delete, as: 'delete' + property :body, as: 'body' + property :media_download, as: 'mediaDownload', class: Google::Apis::ServicemanagementV1::MediaDownload, decorator: Google::Apis::ServicemanagementV1::MediaDownload::Representation + + property :post, as: 'post' + property :rest_method_name, as: 'restMethodName' + collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicemanagementV1::HttpRule, decorator: Google::Apis::ServicemanagementV1::HttpRule::Representation + + property :response_body, as: 'responseBody' + property :rest_collection, as: 'restCollection' + end + end + + class MonitoringDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metrics, as: 'metrics' + property :monitored_resource, as: 'monitoredResource' + end + end + + class Visibility + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::VisibilityRule, decorator: Google::Apis::ServicemanagementV1::VisibilityRule::Representation + + end + end end end end diff --git a/generated/google/apis/servicemanagement_v1/service.rb b/generated/google/apis/servicemanagement_v1/service.rb index f2bbcf42c..7b15b52fe 100644 --- a/generated/google/apis/servicemanagement_v1/service.rb +++ b/generated/google/apis/servicemanagement_v1/service.rb @@ -49,14 +49,39 @@ module Google @batch_path = 'batch' end - # Lists service operations that match the specified filter in the request. + # 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 - # Not used. - # @param [String] page_token - # The standard list page token. - # @param [Fixnum] page_size - # The maximum number of operations to return. If unspecified, defaults to - # 50. The maximum value is 100. + # 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::ServicemanagementV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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::ServicemanagementV1::Operation::Representation + command.response_class = Google::Apis::ServicemanagementV1::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 service operations that match the specified filter in the request. # @param [String] filter # A string for filtering Operations. # The following filter fields are supported: @@ -75,11 +100,18 @@ module Google # * `serviceName=`some-service`.googleapis.com AND status=done` # * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>=" # 2017-02-01")` - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # @param [String] page_token + # The standard list page token. + # @param [String] name + # Not used. + # @param [Fixnum] page_size + # The maximum number of operations to return. If unspecified, defaults to + # 50. The maximum value is 100. # @param [String] quota_user # Available 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 # @@ -92,29 +124,68 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(name: nil, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_operations(filter: nil, page_token: nil, name: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/operations', options) command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse - command.query['name'] = name unless name.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['pageSize'] = page_size unless page_size.nil? command.query['filter'] = filter unless filter.nil? - command.query['fields'] = fields unless fields.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.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] fields - # Selector specifying which fields to include in a partial response. + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_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::ServicemanagementV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation + command.response_class = Google::Apis::ServicemanagementV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Revives a previously deleted managed service. The method restores the + # service using the configuration at the time the service was deleted. + # The target service must exist and must have been deleted within the + # last 30 days. + # Operation + # @param [String] service_name + # The name of the service. See the [overview](/service-management/overview) + # for naming requirements. For example: `example.googleapis.com`. + # @param [String] quota_user + # Available 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 # @@ -127,13 +198,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) + def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options) command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? + command.params['serviceName'] = service_name unless service_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 @@ -144,6 +215,10 @@ module Google # **BETA:** If the caller specifies the `consumer_id`, it returns only the # services enabled on the consumer. The `consumer_id` must have the format # of "project:`PROJECT-ID`". + # @param [Fixnum] page_size + # Requested size of the next page of data. + # @param [String] producer_project_id + # Include services produced by the specified project. # @param [String] consumer_id # Include services consumed by the specified consumer. # The Google Service Management implementation accepts the following @@ -152,15 +227,11 @@ module Google # @param [String] page_token # Token identifying which result to start with; returned by a previous list # call. - # @param [Fixnum] page_size - # Requested size of the next page of data. - # @param [String] producer_project_id - # Include services produced by the specified project. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -173,16 +244,16 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_services(consumer_id: nil, page_token: nil, page_size: nil, producer_project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_services(page_size: nil, producer_project_id: nil, consumer_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/services', options) command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse - command.query['consumerId'] = consumer_id unless consumer_id.nil? - command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil? - command.query['fields'] = fields unless fields.nil? + command.query['consumerId'] = consumer_id unless consumer_id.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 @@ -190,11 +261,11 @@ module Google # Please note one producer project can own no more than 20 services. # Operation # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -207,14 +278,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_service(managed_service_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services', options) command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation command.request_object = managed_service_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -229,11 +300,11 @@ module Google # will compare GenerateConfigReportRequest.new_value with the last pushed # service configuration. # @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -246,14 +317,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_service_config_report(generate_config_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services:generateConfigReport', options) command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation command.request_object = generate_config_report_request_object command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -262,11 +333,11 @@ module Google # @param [String] service_name # The name of the service. See the `ServiceManager` overview for naming # requirements. For example: `example.googleapis.com`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available 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 # @@ -279,13 +350,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service(service_name, fields: nil, quota_user: nil, options: nil, &block) + def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/services/{serviceName}', options) command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation command.response_class = Google::Apis::ServicemanagementV1::ManagedService command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -299,11 +370,11 @@ module Google # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -316,15 +387,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -337,11 +408,11 @@ module Google # @param [String] view # Specifies which parts of the Service Config should be returned in the # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -354,15 +425,50 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service_configuration(service_name, config_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/services/{serviceName}/config', options) command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation command.response_class = Google::Apis::ServicemanagementV1::Service command.params['serviceName'] = service_name unless service_name.nil? command.query['configId'] = config_id unless config_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? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a managed service. This method will change the service to the + # `Soft-Delete` state for 30 days. Within this period, service producers may + # call UndeleteService to restore the service. + # After 30 days, the service will be permanently deleted. + # Operation + # @param [String] service_name + # The name of the service. See the [overview](/service-management/overview) + # for naming requirements. For example: `example.googleapis.com`. + # @param [String] quota_user + # Available 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::ServicemanagementV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::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_service(service_name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/services/{serviceName}', options) + command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation + command.response_class = Google::Apis::ServicemanagementV1::Operation + command.params['serviceName'] = service_name unless service_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 @@ -375,11 +481,11 @@ module Google # Name of the service to enable. Specifying an unknown service name will # cause the request to fail. # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -392,50 +498,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options) command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation command.request_object = enable_service_request_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation command.params['serviceName'] = service_name unless service_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 managed service. This method will change the service to the - # `Soft-Delete` state for 30 days. Within this period, service producers may - # call UndeleteService to restore the service. - # After 30 days, the service will be permanently deleted. - # Operation - # @param [String] service_name - # The name of the service. See the [overview](/service-management/overview) - # for naming requirements. For example: `example.googleapis.com`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::ServicemanagementV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::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_service(service_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/services/{serviceName}', options) - command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation - command.response_class = Google::Apis::ServicemanagementV1::Operation - command.params['serviceName'] = service_name unless service_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 @@ -445,11 +516,11 @@ module Google # REQUIRED: The resource for which the policy is being specified. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -462,15 +533,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation command.response_class = Google::Apis::ServicemanagementV1::Policy command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -482,11 +553,11 @@ module Google # Name of the service to disable. Specifying an unknown service name # will cause the request to fail. # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -499,157 +570,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def disable_service(service_name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options) command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation command.request_object = disable_service_request_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation - command.request_object = get_iam_policy_request_object - command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation - command.response_class = Google::Apis::ServicemanagementV1::Policy - command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Revives a previously deleted managed service. The method restores the - # service using the configuration at the time the service was deleted. - # The target service must exist and must have been deleted within the - # last 30 days. - # Operation - # @param [String] service_name - # The name of the service. See the [overview](/service-management/overview) - # for naming requirements. For example: `example.googleapis.com`. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available 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::ServicemanagementV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::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 undelete_service(service_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options) - command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation - command.response_class = Google::Apis::ServicemanagementV1::Operation - command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation - command.request_object = get_iam_policy_request_object - command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation - command.response_class = Google::Apis::ServicemanagementV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation - command.response_class = Google::Apis::ServicemanagementV1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -663,11 +592,11 @@ module Google # REQUIRED: The resource for which the policy detail is being requested. # See the operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -680,63 +609,86 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end - # Lists the history of the service configuration rollouts for a managed - # service, from the newest to the oldest. - # @param [String] service_name - # The name of the service. See the [overview](/service-management/overview) - # for naming requirements. For example: `example.googleapis.com`. - # @param [Fixnum] page_size - # The max number of items to include in the response list. - # @param [String] filter - # Use `filter` to return subset of rollouts. - # The following filters are supported: - # -- To limit the results to only those in - # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', - # use filter='status=SUCCESS' - # -- To limit the results to those in - # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' - # or 'FAILED', use filter='status=CANCELLED OR status=FAILED' - # @param [String] page_token - # The token of the page to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_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::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object + # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] + # @return [Google::Apis::ServicemanagementV1::Policy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_service_rollouts(service_name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options) - command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation - command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse - command.params['serviceName'] = service_name unless service_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['fields'] = fields unless fields.nil? + def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation + command.response_class = Google::Apis::ServicemanagementV1::Policy + command.params['resource'] = resource unless resource.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_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::ServicemanagementV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation + command.response_class = Google::Apis::ServicemanagementV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -746,11 +698,11 @@ module Google # for naming requirements. For example: `example.googleapis.com`. # @param [String] rollout_id # The id of the rollout resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -763,14 +715,62 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block) + def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options) command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation command.response_class = Google::Apis::ServicemanagementV1::Rollout command.params['serviceName'] = service_name unless service_name.nil? command.params['rolloutId'] = rollout_id unless rollout_id.nil? - command.query['fields'] = fields unless fields.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 the history of the service configuration rollouts for a managed + # service, from the newest to the oldest. + # @param [String] service_name + # The name of the service. See the [overview](/service-management/overview) + # for naming requirements. For example: `example.googleapis.com`. + # @param [String] filter + # Use `filter` to return subset of rollouts. + # The following filters are supported: + # -- To limit the results to only those in + # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', + # use filter='status=SUCCESS' + # -- To limit the results to those in + # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' + # or 'FAILED', use filter='status=CANCELLED OR status=FAILED' + # @param [String] page_token + # The token of the page to retrieve. + # @param [Fixnum] page_size + # The max number of items to include in the response 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::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options) + command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation + command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse + command.params['serviceName'] = service_name unless service_name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -786,11 +786,11 @@ module Google # The name of the service. See the [overview](/service-management/overview) # for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -803,53 +803,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options) command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation command.request_object = rollout_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists the history of the service configuration for a managed service, - # from the newest to the oldest. - # @param [String] service_name - # The name of the service. See the [overview](/service-management/overview) - # for naming requirements. For example: `example.googleapis.com`. - # @param [String] page_token - # The token of the page to retrieve. - # @param [Fixnum] page_size - # The max number of items to include in the response list. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_configs(service_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options) - command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation - command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse - command.params['serviceName'] = service_name unless service_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 @@ -862,11 +824,11 @@ module Google # @param [String] view # Specifies which parts of the Service Config should be returned in the # 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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -879,15 +841,53 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service_config(service_name, config_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options) command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation command.response_class = Google::Apis::ServicemanagementV1::Service command.params['serviceName'] = service_name unless service_name.nil? command.params['configId'] = config_id unless config_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? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists the history of the service configuration for a managed service, + # from the newest to the oldest. + # @param [String] service_name + # The name of the service. See the [overview](/service-management/overview) + # for naming requirements. For example: `example.googleapis.com`. + # @param [String] page_token + # The token of the page to retrieve. + # @param [Fixnum] page_size + # The max number of items to include in the response 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::ServicemanagementV1::ListServiceConfigsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options) + command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation + command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse + command.params['serviceName'] = service_name unless service_name.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -899,11 +899,11 @@ module Google # The name of the service. See the [overview](/service-management/overview) # for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::Service] service_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -916,15 +916,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_service_config(service_name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_service_config(service_name, service_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options) command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation command.request_object = service_object command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation command.response_class = Google::Apis::ServicemanagementV1::Service command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end @@ -940,11 +940,11 @@ module Google # The name of the service. See the [overview](/service-management/overview) # for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_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 [String] fields + # Selector specifying which fields to include in a partial response. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -957,15 +957,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_config_source(service_name, submit_config_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options) command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation command.request_object = submit_config_source_request_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation command.params['serviceName'] = service_name unless service_name.nil? - command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end diff --git a/generated/google/apis/serviceuser_v1.rb b/generated/google/apis/serviceuser_v1.rb index 6a88ebaee..eaa351dde 100644 --- a/generated/google/apis/serviceuser_v1.rb +++ b/generated/google/apis/serviceuser_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServiceuserV1 VERSION = 'V1' - REVISION = '20170609' + REVISION = '20170630' # Manage your Google API service configuration AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management' diff --git a/generated/google/apis/serviceuser_v1/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index 397b51c76..5090e3463 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -22,6 +22,550 @@ module Google module Apis module ServiceuserV1 + # Response message for `ListEnabledServices` method. + class ListEnabledServicesResponse + include Google::Apis::Core::Hashable + + # Token that can be passed to `ListEnabledServices` to resume a paginated + # query. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Services enabled for the specified parent. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @services = args[:services] if args.key?(:services) + end + end + + # `Endpoint` describes a network endpoint that serves a set of APIs. + # A service may expose any number of endpoints, and all endpoints share the + # same service configuration, such as quota configuration and monitoring + # configuration. + # Example service configuration: + # name: library-example.googleapis.com + # endpoints: + # # Below entry makes 'google.example.library.v1.Library' + # # API be served from endpoint address library-example.googleapis.com. + # # It also allows HTTP OPTIONS calls to be passed to the backend, for + # # it to decide whether the subsequent cross-origin request is + # # allowed to proceed. + # - name: library-example.googleapis.com + # allow_cors: true + class Endpoint + include Google::Apis::Core::Hashable + + # The list of features enabled on this endpoint. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # The list of APIs served by this endpoint. + # If no APIs are specified this translates to "all APIs" exported by the + # service, as defined in the top-level service configuration. + # Corresponds to the JSON property `apis` + # @return [Array] + attr_accessor :apis + + # Allowing + # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + # cross-domain traffic, would allow the backends served from this endpoint to + # receive and respond to HTTP OPTIONS requests. The response will be used by + # the browser to determine whether the subsequent cross-origin request is + # allowed to proceed. + # Corresponds to the JSON property `allowCors` + # @return [Boolean] + attr_accessor :allow_cors + alias_method :allow_cors?, :allow_cors + + # DEPRECATED: This field is no longer supported. Instead of using aliases, + # please specify multiple google.api.Endpoint for each of the intented + # alias. + # Additional names that this endpoint will be hosted on. + # Corresponds to the JSON property `aliases` + # @return [Array] + attr_accessor :aliases + + # The canonical name of this endpoint. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The specification of an Internet routable address of API frontend that will + # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/ + # glossary). + # It should be either a valid IPv4 address or a fully-qualified domain name. + # For example, "8.8.8.8" or "myservice.appspot.com". + # 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) + @features = args[:features] if args.key?(:features) + @apis = args[:apis] if args.key?(:apis) + @allow_cors = args[:allow_cors] if args.key?(:allow_cors) + @aliases = args[:aliases] if args.key?(:aliases) + @name = args[:name] if args.key?(:name) + @target = args[:target] if args.key?(:target) + end + end + + # OAuth scopes are a way to define data and permissions on data. For example, + # there are scopes defined for "Read-only access to Google Calendar" and + # "Access to Cloud Platform". Users can consent to a scope for an application, + # giving it permission to access that data on their behalf. + # OAuth scope specifications should be fairly coarse grained; a user will need + # to see and understand the text description of what your scope means. + # In most cases: use one or at most two OAuth scopes for an entire family of + # products. If your product has multiple APIs, you should probably be sharing + # the OAuth scope across all of those APIs. + # When you need finer grained OAuth consent screens: talk with your product + # management about how developers will use them in practice. + # Please note that even though each of the canonical scopes is enough for a + # request to be accepted and passed to the backend, a request can still fail + # due to the backend requiring additional scopes or permissions. + class OAuthRequirements + include Google::Apis::Core::Hashable + + # The list of publicly documented OAuth scopes that are allowed access. An + # OAuth token containing any of these scopes will be accepted. + # Example: + # canonical_scopes: https://www.googleapis.com/auth/calendar, + # https://www.googleapis.com/auth/calendar.read + # Corresponds to the JSON property `canonicalScopes` + # @return [String] + attr_accessor :canonical_scopes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_scopes = args[:canonical_scopes] if args.key?(:canonical_scopes) + end + end + + # Configuration controlling usage of a service. + class Usage + include Google::Apis::Core::Hashable + + # Requirements that must be satisfied before a consumer project can use the + # service. Each requirement is of the form /; + # for example 'serviceusage.googleapis.com/billing-enabled'. + # Corresponds to the JSON property `requirements` + # @return [Array] + attr_accessor :requirements + + # The full resource name of a channel used for sending notifications to the + # service producer. + # Google Service Management currently only supports + # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + # channel. To use Google Cloud Pub/Sub as the channel, this must be the name + # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + # documented in https://cloud.google.com/pubsub/docs/overview. + # Corresponds to the JSON property `producerNotificationChannel` + # @return [String] + attr_accessor :producer_notification_channel + + # A list of usage rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requirements = args[:requirements] if args.key?(:requirements) + @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel) + @rules = args[:rules] if args.key?(:rules) + end + end + + # `Context` defines which contexts an API requests. + # Example: + # context: + # rules: + # - selector: "*" + # requested: + # - google.rpc.context.ProjectContext + # - google.rpc.context.OriginContext + # The above specifies that all methods in the API request + # `google.rpc.context.ProjectContext` and + # `google.rpc.context.OriginContext`. + # Available context types are defined in package + # `google.rpc.context`. + class Context + include Google::Apis::Core::Hashable + + # A list of RPC context rules that apply to individual API methods. + # **NOTE:** All service configuration rules follow "last one wins" order. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + end + end + + # A description of a log type. Example in YAML format: + # - name: library.googleapis.com/activity_history + # description: The history of borrowing and returning library items. + # display_name: Activity + # labels: + # - key: /customer_id + # description: Identifier of a library customer + class LogDescriptor + include Google::Apis::Core::Hashable + + # The set of labels that are available to describe a specific log entry. + # Runtime requests that contain labels not specified here are + # considered invalid. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The name of the log. It must be less than 512 characters long and can + # include the following characters: upper- and lower-case alphanumeric + # characters [A-Za-z0-9], and punctuation characters including + # slash, underscore, hyphen, period [/_-.]. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The human-readable name for this log. This information appears on + # the user interface and should be concise. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A human-readable description of this log. This information appears in + # the documentation and can contain details. + # 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) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @display_name = args[:display_name] if args.key?(:display_name) + @description = args[:description] if args.key?(:description) + end + end + + # An object that describes the schema of a MonitoredResource object using a + # type name and a set of labels. For example, the monitored resource + # descriptor for Google Compute Engine VM instances has a type of + # `"gce_instance"` and specifies the use of the labels `"instance_id"` and + # `"zone"` to identify particular VM instances. + # Different APIs can support different monitored resource types. APIs generally + # provide a `list` method that returns the monitored resource descriptors used + # by the API. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # Optional. The resource name of the monitored resource descriptor: + # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where + # `type` is the value of the `type` field in this object and + # `project_id` is a project ID that provides API-specific context for + # accessing the type. APIs that do not use project information can use the + # resource name format `"monitoredResourceDescriptors/`type`"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. A detailed description of the monitored resource type that might + # be used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A concise name for the monitored resource type that might be + # displayed in user interfaces. It should be a Title Cased Noun Phrase, + # without any article or other determiners. For example, + # `"Google Cloud SQL Database"`. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The monitored resource type. For example, the type + # `"cloudsql_database"` represents databases in Google Cloud SQL. + # The maximum length of this value is 256 characters. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required. A set of labels used to describe instances of this monitored + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"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) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @type = args[:type] if args.key?(:type) + @labels = args[:labels] if args.key?(:labels) + end + end + + # A custom error rule. + class CustomErrorRule + include Google::Apis::Core::Hashable + + # Mark this message as possible payload in error response. Otherwise, + # objects of this type will be filtered when they appear in error payload. + # Corresponds to the JSON property `isErrorType` + # @return [Boolean] + attr_accessor :is_error_type + alias_method :is_error_type?, :is_error_type + + # Selects messages to which this rule applies. + # Refer to selector for syntax details. + # Corresponds to the JSON property `selector` + # @return [String] + attr_accessor :selector + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_error_type = args[:is_error_type] if args.key?(:is_error_type) + @selector = args[:selector] if args.key?(:selector) + end + end + + # Configuration for a custom authentication provider. + class CustomAuthRequirements + include Google::Apis::Core::Hashable + + # A configuration string containing connection information for the + # authentication provider, typically formatted as a SmartService string + # (go/smartservice). + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @provider = args[:provider] if args.key?(:provider) + end + end + + # Defines the Media configuration for a service in case of a download. + # Use this only for Scotty Requests. Do not use this for media support using + # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to + # your configuration for Bytestream methods. + class MediaDownload + include Google::Apis::Core::Hashable + + # A boolean that determines whether a notification for the completion of a + # download should be sent to the backend. + # Corresponds to the JSON property `completeNotification` + # @return [Boolean] + attr_accessor :complete_notification + alias_method :complete_notification?, :complete_notification + + # Whether download is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. + # Specify name of the download service if one is used for download. + # Corresponds to the JSON property `downloadService` + # @return [String] + attr_accessor :download_service + + # Optional maximum acceptable size for direct download. + # The size is specified in bytes. + # Corresponds to the JSON property `maxDirectDownloadSize` + # @return [Fixnum] + attr_accessor :max_direct_download_size + + # Name of the Scotty dropzone to use for the current API. + # Corresponds to the JSON property `dropzone` + # @return [String] + attr_accessor :dropzone + + # A boolean that determines if direct download from ESF should be used for + # download of this media. + # Corresponds to the JSON property `useDirectDownload` + # @return [Boolean] + attr_accessor :use_direct_download + alias_method :use_direct_download?, :use_direct_download + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @complete_notification = args[:complete_notification] if args.key?(:complete_notification) + @enabled = args[:enabled] if args.key?(:enabled) + @download_service = args[:download_service] if args.key?(:download_service) + @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size) + @dropzone = args[:dropzone] if args.key?(:dropzone) + @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download) + end + end + + # Request message for DisableService method. + class DisableServiceRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for SearchServices method. + class SearchServicesResponse + include Google::Apis::Core::Hashable + + # Token that can be passed to `ListAvailableServices` to resume a paginated + # query. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Services available publicly or available to the authenticated caller. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @services = args[:services] if args.key?(:services) + end + end + + # Defines the Media configuration for a service in case of an upload. + # Use this only for Scotty Requests. Do not use this for media support using + # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to + # your configuration for Bytestream methods. + class MediaUpload + include Google::Apis::Core::Hashable + + # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. + # Specify name of the upload service if one is used for upload. + # Corresponds to the JSON property `uploadService` + # @return [String] + attr_accessor :upload_service + + # Optional maximum acceptable size for an upload. + # The size is specified in bytes. + # Corresponds to the JSON property `maxSize` + # @return [Fixnum] + attr_accessor :max_size + + # An array of mimetype patterns. Esf will only accept uploads that match one + # of the given patterns. + # Corresponds to the JSON property `mimeTypes` + # @return [Array] + attr_accessor :mime_types + + # Whether upload is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Whether to receive a notification for progress changes of media upload. + # Corresponds to the JSON property `progressNotification` + # @return [Boolean] + attr_accessor :progress_notification + alias_method :progress_notification?, :progress_notification + + # A boolean that determines whether a notification for the completion of an + # upload should be sent to the backend. These notifications will not be seen + # by the client and will not consume quota. + # Corresponds to the JSON property `completeNotification` + # @return [Boolean] + attr_accessor :complete_notification + alias_method :complete_notification?, :complete_notification + + # Name of the Scotty dropzone to use for the current API. + # Corresponds to the JSON property `dropzone` + # @return [String] + attr_accessor :dropzone + + # Whether to receive a notification on the start of media upload. + # Corresponds to the JSON property `startNotification` + # @return [Boolean] + attr_accessor :start_notification + alias_method :start_notification?, :start_notification + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @upload_service = args[:upload_service] if args.key?(:upload_service) + @max_size = args[:max_size] if args.key?(:max_size) + @mime_types = args[:mime_types] if args.key?(:mime_types) + @enabled = args[:enabled] if args.key?(:enabled) + @progress_notification = args[:progress_notification] if args.key?(:progress_notification) + @complete_notification = args[:complete_notification] if args.key?(:complete_notification) + @dropzone = args[:dropzone] if args.key?(:dropzone) + @start_notification = args[:start_notification] if args.key?(:start_notification) + end + end + # Usage configuration rules for the service. # NOTE: Under development. # Use this rule to configure unregistered calls for the service. Unregistered @@ -43,6 +587,12 @@ module Google class UsageRule include Google::Apis::Core::Hashable + # True, if the method allows unregistered calls; false otherwise. + # Corresponds to the JSON property `allowUnregisteredCalls` + # @return [Boolean] + attr_accessor :allow_unregistered_calls + alias_method :allow_unregistered_calls?, :allow_unregistered_calls + # Selects the methods to which this rule applies. Use '*' to indicate all # methods in all APIs. # Refer to selector for syntax details. @@ -50,11 +600,12 @@ module Google # @return [String] attr_accessor :selector - # True, if the method allows unregistered calls; false otherwise. - # Corresponds to the JSON property `allowUnregisteredCalls` + # True, if the method should skip service control. If so, no control plane + # feature (like quota and billing) will be enabled. + # Corresponds to the JSON property `skipServiceControl` # @return [Boolean] - attr_accessor :allow_unregistered_calls - alias_method :allow_unregistered_calls?, :allow_unregistered_calls + attr_accessor :skip_service_control + alias_method :skip_service_control?, :skip_service_control def initialize(**args) update!(**args) @@ -62,8 +613,9 @@ module Google # Update properties of this object def update!(**args) - @selector = args[:selector] if args.key?(:selector) @allow_unregistered_calls = args[:allow_unregistered_calls] if args.key?(:allow_unregistered_calls) + @selector = args[:selector] if args.key?(:selector) + @skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control) end end @@ -73,13 +625,6 @@ module Google class AuthRequirement include Google::Apis::Core::Hashable - # id from authentication provider. - # Example: - # provider_id: bookstore_auth - # Corresponds to the JSON property `providerId` - # @return [String] - attr_accessor :provider_id - # NOTE: This will be deprecated soon, once AuthProvider.audiences is # implemented and accepted in all the runtime components. # The list of JWT @@ -99,14 +644,21 @@ module Google # @return [String] attr_accessor :audiences + # id from authentication provider. + # Example: + # provider_id: bookstore_auth + # Corresponds to the JSON property `providerId` + # @return [String] + attr_accessor :provider_id + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @provider_id = args[:provider_id] if args.key?(:provider_id) @audiences = args[:audiences] if args.key?(:audiences) + @provider_id = args[:provider_id] if args.key?(:provider_id) end end @@ -166,17 +718,17 @@ module Google class Documentation include Google::Apis::Core::Hashable + # A short summary of what the service does. Can only be provided by + # plain text. + # Corresponds to the JSON property `summary` + # @return [String] + attr_accessor :summary + # The URL to the root of documentation. # Corresponds to the JSON property `documentationRootUrl` # @return [String] attr_accessor :documentation_root_url - # A list of documentation rules that apply to individual API elements. - # **NOTE:** All service configuration rules follow "last one wins" order. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - # Declares a single overview page. For example: #
    documentation:
             # summary: ...
    @@ -194,28 +746,28 @@ module Google
             # @return [String]
             attr_accessor :overview
           
    +        # A list of documentation rules that apply to individual API elements.
    +        # **NOTE:** All service configuration rules follow "last one wins" order.
    +        # Corresponds to the JSON property `rules`
    +        # @return [Array]
    +        attr_accessor :rules
    +      
             # The top level pages for the documentation set.
             # Corresponds to the JSON property `pages`
             # @return [Array]
             attr_accessor :pages
           
    -        # A short summary of what the service does. Can only be provided by
    -        # plain text.
    -        # Corresponds to the JSON property `summary`
    -        # @return [String]
    -        attr_accessor :summary
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @documentation_root_url = args[:documentation_root_url] if args.key?(:documentation_root_url)
    -          @rules = args[:rules] if args.key?(:rules)
    -          @overview = args[:overview] if args.key?(:overview)
    -          @pages = args[:pages] if args.key?(:pages)
               @summary = args[:summary] if args.key?(:summary)
    +          @documentation_root_url = args[:documentation_root_url] if args.key?(:documentation_root_url)
    +          @overview = args[:overview] if args.key?(:overview)
    +          @rules = args[:rules] if args.key?(:rules)
    +          @pages = args[:pages] if args.key?(:pages)
             end
           end
           
    @@ -229,6 +781,11 @@ module Google
           class AuthenticationRule
             include Google::Apis::Core::Hashable
           
    +        # Configuration for a custom authentication provider.
    +        # Corresponds to the JSON property `customAuth`
    +        # @return [Google::Apis::ServiceuserV1::CustomAuthRequirements]
    +        attr_accessor :custom_auth
    +      
             # OAuth scopes are a way to define data and permissions on data. For example,
             # there are scopes defined for "Read-only access to Google Calendar" and
             # "Access to Cloud Platform". Users can consent to a scope for an application,
    @@ -247,22 +804,11 @@ module Google
             # @return [Google::Apis::ServiceuserV1::OAuthRequirements]
             attr_accessor :oauth
           
    -        # Configuration for a custom authentication provider.
    -        # Corresponds to the JSON property `customAuth`
    -        # @return [Google::Apis::ServiceuserV1::CustomAuthRequirements]
    -        attr_accessor :custom_auth
    -      
             # Requirements for additional authentication providers.
             # Corresponds to the JSON property `requirements`
             # @return [Array]
             attr_accessor :requirements
           
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
             # Whether to allow requests without a credential. The credential can be
             # an OAuth token, Google cookies (first-party auth) or EndUserCreds.
             # For requests without credentials, if the service control environment is
    @@ -274,17 +820,23 @@ module Google
             attr_accessor :allow_without_credential
             alias_method :allow_without_credential?, :allow_without_credential
           
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @oauth = args[:oauth] if args.key?(:oauth)
               @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
    +          @oauth = args[:oauth] if args.key?(:oauth)
               @requirements = args[:requirements] if args.key?(:requirements)
    -          @selector = args[:selector] if args.key?(:selector)
               @allow_without_credential = args[:allow_without_credential] if args.key?(:allow_without_credential)
    +          @selector = args[:selector] if args.key?(:selector)
             end
           end
           
    @@ -407,12 +959,6 @@ module Google
           class MetricRule
             include Google::Apis::Core::Hashable
           
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
             # Metrics to update when the selected methods are called, and the associated
             # cost applied to each metric.
             # The key of the map is the metric name, and the values are the amount
    @@ -422,14 +968,20 @@ module Google
             # @return [Hash]
             attr_accessor :metric_costs
           
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @selector = args[:selector] if args.key?(:selector)
               @metric_costs = args[:metric_costs] if args.key?(:metric_costs)
    +          @selector = args[:selector] if args.key?(:selector)
             end
           end
           
    @@ -475,6 +1027,22 @@ module Google
           class Operation
             include Google::Apis::Core::Hashable
           
    +        # 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 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
    @@ -537,33 +1105,17 @@ module Google
             # @return [Google::Apis::ServiceuserV1::Status]
             attr_accessor :error
           
    -        # 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
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @metadata = args[:metadata] if args.key?(:metadata)
    +          @done = args[:done] if args.key?(:done)
               @response = args[:response] if args.key?(:response)
               @name = args[:name] if args.key?(:name)
               @error = args[:error] if args.key?(:error)
    -          @metadata = args[:metadata] if args.key?(:metadata)
    -          @done = args[:done] if args.key?(:done)
             end
           end
           
    @@ -572,19 +1124,6 @@ module Google
           class Page
             include Google::Apis::Core::Hashable
           
    -        # The Markdown content of the page. You can use (== include `path` ==&#
    -        # 41;
    -        # to include content from a Markdown file.
    -        # Corresponds to the JSON property `content`
    -        # @return [String]
    -        attr_accessor :content
    -      
    -        # Subpages of this page. The order of subpages specified here will be
    -        # honored in the generated docset.
    -        # Corresponds to the JSON property `subpages`
    -        # @return [Array]
    -        attr_accessor :subpages
    -      
             # The name of the page. It will be used as an identity of the page to
             # generate URI of the page, text of the link to this page in navigation,
             # etc. The full page name (start from the root page name to this page
    @@ -603,15 +1142,28 @@ module Google
             # @return [String]
             attr_accessor :name
           
    +        # The Markdown content of the page. You can use (== include `path` ==&#
    +        # 41;
    +        # to include content from a Markdown file.
    +        # Corresponds to the JSON property `content`
    +        # @return [String]
    +        attr_accessor :content
    +      
    +        # Subpages of this page. The order of subpages specified here will be
    +        # honored in the generated docset.
    +        # Corresponds to the JSON property `subpages`
    +        # @return [Array]
    +        attr_accessor :subpages
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @name = args[:name] if args.key?(:name)
               @content = args[:content] if args.key?(:content)
               @subpages = args[:subpages] if args.key?(:subpages)
    -          @name = args[:name] if args.key?(:name)
             end
           end
           
    @@ -657,12 +1209,6 @@ module Google
           class Status
             include Google::Apis::Core::Hashable
           
    -        # 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
    -      
             # The status code, which should be an enum value of google.rpc.Code.
             # Corresponds to the JSON property `code`
             # @return [Fixnum]
    @@ -675,15 +1221,21 @@ module Google
             # @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)
    -          @details = args[:details] if args.key?(:details)
               @code = args[:code] if args.key?(:code)
               @message = args[:message] if args.key?(:message)
    +          @details = args[:details] if args.key?(:details)
             end
           end
           
    @@ -693,6 +1245,21 @@ module Google
           class AuthProvider
             include Google::Apis::Core::Hashable
           
    +        # URL of the provider's public key set to validate signature of the JWT. See
    +        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
    +        # ProviderMetadata).
    +        # Optional if the key set document:
    +        # - can be retrieved from
    +        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
    +        # html
    +        # of the issuer.
    +        # - can be inferred from the email domain of the issuer (e.g. a Google service
    +        # account).
    +        # Example: https://www.googleapis.com/oauth2/v1/certs
    +        # Corresponds to the JSON property `jwksUri`
    +        # @return [String]
    +        attr_accessor :jwks_uri
    +      
             # The list of JWT
             # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
             # section-4.1.3).
    @@ -710,13 +1277,6 @@ module Google
             # @return [String]
             attr_accessor :audiences
           
    -        # The unique identifier of the auth provider. It will be referred to by
    -        # `AuthRequirement.provider_id`.
    -        # Example: "bookstore_auth".
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
             # Identifies the principal that issued the JWT. See
             # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
             # Usually a URL or an email address.
    @@ -726,20 +1286,12 @@ module Google
             # @return [String]
             attr_accessor :issuer
           
    -        # URL of the provider's public key set to validate signature of the JWT. See
    -        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
    -        # ProviderMetadata).
    -        # Optional if the key set document:
    -        # - can be retrieved from
    -        # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
    -        # html
    -        # of the issuer.
    -        # - can be inferred from the email domain of the issuer (e.g. a Google service
    -        # account).
    -        # Example: https://www.googleapis.com/oauth2/v1/certs
    -        # Corresponds to the JSON property `jwksUri`
    +        # The unique identifier of the auth provider. It will be referred to by
    +        # `AuthRequirement.provider_id`.
    +        # Example: "bookstore_auth".
    +        # Corresponds to the JSON property `id`
             # @return [String]
    -        attr_accessor :jwks_uri
    +        attr_accessor :id
           
             def initialize(**args)
                update!(**args)
    @@ -747,10 +1299,10 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @audiences = args[:audiences] if args.key?(:audiences)
    -          @id = args[:id] if args.key?(:id)
    -          @issuer = args[:issuer] if args.key?(:issuer)
               @jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
    +          @audiences = args[:audiences] if args.key?(:audiences)
    +          @issuer = args[:issuer] if args.key?(:issuer)
    +          @id = args[:id] if args.key?(:id)
             end
           end
           
    @@ -809,233 +1361,10 @@ module Google
           class Service
             include Google::Apis::Core::Hashable
           
    -        # A list of all enum types included in this API service.  Enums
    -        # referenced directly or indirectly by the `apis` are automatically
    -        # included.  Enums which are not referenced but shall be included
    -        # should be listed here by name. Example:
    -        # enums:
    -        # - name: google.someapi.v1.SomeEnum
    -        # Corresponds to the JSON property `enums`
    -        # @return [Array]
    -        attr_accessor :enums
    -      
    -        # `Context` defines which contexts an API requests.
    -        # Example:
    -        # context:
    -        # rules:
    -        # - selector: "*"
    -        # requested:
    -        # - google.rpc.context.ProjectContext
    -        # - google.rpc.context.OriginContext
    -        # The above specifies that all methods in the API request
    -        # `google.rpc.context.ProjectContext` and
    -        # `google.rpc.context.OriginContext`.
    -        # Available context types are defined in package
    -        # `google.rpc.context`.
    -        # Corresponds to the JSON property `context`
    -        # @return [Google::Apis::ServiceuserV1::Context]
    -        attr_accessor :context
    -      
    -        # A unique ID for a specific instance of this message, typically assigned
    -        # by the client for tracking purpose. If empty, the server may choose to
    -        # generate one instead.
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
    -        # Configuration controlling usage of a service.
    -        # Corresponds to the JSON property `usage`
    -        # @return [Google::Apis::ServiceuserV1::Usage]
    -        attr_accessor :usage
    -      
    -        # Defines the metrics used by this service.
    -        # Corresponds to the JSON property `metrics`
    -        # @return [Array]
    -        attr_accessor :metrics
    -      
    -        # `Authentication` defines the authentication configuration for an API.
    -        # Example for an API targeted for external use:
    -        # name: calendar.googleapis.com
    -        # authentication:
    -        # providers:
    -        # - id: google_calendar_auth
    -        # jwks_uri: https://www.googleapis.com/oauth2/v1/certs
    -        # issuer: https://securetoken.google.com
    -        # rules:
    -        # - selector: "*"
    -        # requirements:
    -        # provider_id: google_calendar_auth
    -        # Corresponds to the JSON property `authentication`
    -        # @return [Google::Apis::ServiceuserV1::Authentication]
    -        attr_accessor :authentication
    -      
    -        # Experimental service configuration. These configuration options can
    -        # only be used by whitelisted users.
    -        # Corresponds to the JSON property `experimental`
    -        # @return [Google::Apis::ServiceuserV1::Experimental]
    -        attr_accessor :experimental
    -      
    -        # Selects and configures the service controller used by the service.  The
    -        # service controller handles features like abuse, quota, billing, logging,
    -        # monitoring, etc.
    -        # Corresponds to the JSON property `control`
    -        # @return [Google::Apis::ServiceuserV1::Control]
    -        attr_accessor :control
    -      
    -        # The version of the service configuration. The config version may
    -        # influence interpretation of the configuration, for example, to
    -        # determine defaults. This is documented together with applicable
    -        # options. The current default for the config version itself is `3`.
    -        # Corresponds to the JSON property `configVersion`
    -        # @return [Fixnum]
    -        attr_accessor :config_version
    -      
    -        # Monitoring configuration of the service.
    -        # The example below shows how to configure monitored resources and metrics
    -        # for monitoring. In the example, a monitored resource and two metrics are
    -        # defined. The `library.googleapis.com/book/returned_count` metric is sent
    -        # to both producer and consumer projects, whereas the
    -        # `library.googleapis.com/book/overdue_count` metric is only sent to the
    -        # consumer project.
    -        # monitored_resources:
    -        # - type: library.googleapis.com/branch
    -        # labels:
    -        # - key: /city
    -        # description: The city where the library branch is located in.
    -        # - key: /name
    -        # description: The name of the branch.
    -        # metrics:
    -        # - name: library.googleapis.com/book/returned_count
    -        # metric_kind: DELTA
    -        # value_type: INT64
    -        # labels:
    -        # - key: /customer_id
    -        # - name: library.googleapis.com/book/overdue_count
    -        # metric_kind: GAUGE
    -        # value_type: INT64
    -        # labels:
    -        # - key: /customer_id
    -        # monitoring:
    -        # producer_destinations:
    -        # - monitored_resource: library.googleapis.com/branch
    -        # metrics:
    -        # - library.googleapis.com/book/returned_count
    -        # consumer_destinations:
    -        # - monitored_resource: library.googleapis.com/branch
    -        # metrics:
    -        # - library.googleapis.com/book/returned_count
    -        # - library.googleapis.com/book/overdue_count
    -        # Corresponds to the JSON property `monitoring`
    -        # @return [Google::Apis::ServiceuserV1::Monitoring]
    -        attr_accessor :monitoring
    -      
    -        # The Google project that owns this service.
    -        # Corresponds to the JSON property `producerProjectId`
    -        # @return [String]
    -        attr_accessor :producer_project_id
    -      
    -        # A list of all proto message types included in this API service.
    -        # It serves similar purpose as [google.api.Service.types], except that
    -        # these types are not needed by user-defined APIs. Therefore, they will not
    -        # show up in the generated discovery doc. This field should only be used
    -        # to define system APIs in ESF.
    -        # Corresponds to the JSON property `systemTypes`
    -        # @return [Array]
    -        attr_accessor :system_types
    -      
    -        # `Visibility` defines restrictions for the visibility of service
    -        # elements.  Restrictions are specified using visibility labels
    -        # (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
    -        # Users and projects can have access to more than one visibility label. The
    -        # effective visibility for multiple labels is the union of each label's
    -        # elements, plus any unrestricted elements.
    -        # If an element and its parents have no restrictions, visibility is
    -        # unconditionally granted.
    -        # Example:
    -        # visibility:
    -        # rules:
    -        # - selector: google.calendar.Calendar.EnhancedSearch
    -        # restriction: TRUSTED_TESTER
    -        # - selector: google.calendar.Calendar.Delegate
    -        # restriction: GOOGLE_INTERNAL
    -        # Here, all methods are publicly visible except for the restricted methods
    -        # EnhancedSearch and Delegate.
    -        # Corresponds to the JSON property `visibility`
    -        # @return [Google::Apis::ServiceuserV1::Visibility]
    -        attr_accessor :visibility
    -      
    -        # Quota configuration helps to achieve fairness and budgeting in service
    -        # usage.
    -        # The quota configuration works this way:
    -        # - The service configuration defines a set of metrics.
    -        # - For API calls, the quota.metric_rules maps methods to metrics with
    -        # corresponding costs.
    -        # - The quota.limits defines limits on the metrics, which will be used for
    -        # quota checks at runtime.
    -        # An example quota configuration in yaml format:
    -        # quota:
    -        # - name: apiWriteQpsPerProject
    -        # metric: library.googleapis.com/write_calls
    -        # unit: "1/min/`project`"  # rate limit for consumer projects
    -        # values:
    -        # STANDARD: 10000
    -        # # The metric rules bind all methods to the read_calls metric,
    -        # # except for the UpdateBook and DeleteBook methods. These two methods
    -        # # are mapped to the write_calls metric, with the UpdateBook method
    -        # # consuming at twice rate as the DeleteBook method.
    -        # metric_rules:
    -        # - selector: "*"
    -        # metric_costs:
    -        # library.googleapis.com/read_calls: 1
    -        # - selector: google.example.library.v1.LibraryService.UpdateBook
    -        # metric_costs:
    -        # library.googleapis.com/write_calls: 2
    -        # - selector: google.example.library.v1.LibraryService.DeleteBook
    -        # metric_costs:
    -        # library.googleapis.com/write_calls: 1
    -        # Corresponding Metric definition:
    -        # metrics:
    -        # - name: library.googleapis.com/read_calls
    -        # display_name: Read requests
    -        # metric_kind: DELTA
    -        # value_type: INT64
    -        # - name: library.googleapis.com/write_calls
    -        # display_name: Write requests
    -        # metric_kind: DELTA
    -        # value_type: INT64
    -        # Corresponds to the JSON property `quota`
    -        # @return [Google::Apis::ServiceuserV1::Quota]
    -        attr_accessor :quota
    -      
    -        # The DNS address at which this service is available,
    -        # e.g. `calendar.googleapis.com`.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # Customize service error responses.  For example, list any service
    -        # specific protobuf types that can appear in error detail lists of
    -        # error responses.
    -        # Example:
    -        # custom_error:
    -        # types:
    -        # - google.foo.v1.CustomError
    -        # - google.foo.v1.AnotherError
    -        # Corresponds to the JSON property `customError`
    -        # @return [Google::Apis::ServiceuserV1::CustomError]
    -        attr_accessor :custom_error
    -      
    -        # The product title for this service.
    -        # Corresponds to the JSON property `title`
    -        # @return [String]
    -        attr_accessor :title
    -      
    -        # Configuration for network endpoints.  If this is empty, then an endpoint
    -        # with the same name as the service is automatically generated to service all
    -        # defined APIs.
    -        # Corresponds to the JSON property `endpoints`
    -        # @return [Array]
    -        attr_accessor :endpoints
    +        # Defines the logs used by this service.
    +        # Corresponds to the JSON property `logs`
    +        # @return [Array]
    +        attr_accessor :logs
           
             # A list of API interfaces exported by this service. Only the `name` field
             # of the google.protobuf.Api needs to be provided by the configuration
    @@ -1046,11 +1375,6 @@ module Google
             # @return [Array]
             attr_accessor :apis
           
    -        # Defines the logs used by this service.
    -        # Corresponds to the JSON property `logs`
    -        # @return [Array]
    -        attr_accessor :logs
    -      
             # A list of all proto message types included in this API service.
             # Types referenced directly or indirectly by the `apis` are
             # automatically included.  Messages which are not referenced but
    @@ -1182,12 +1506,250 @@ module Google
             # @return [Google::Apis::ServiceuserV1::Logging]
             attr_accessor :logging
           
    +        # A list of all enum types included in this API service.  Enums
    +        # referenced directly or indirectly by the `apis` are automatically
    +        # included.  Enums which are not referenced but shall be included
    +        # should be listed here by name. Example:
    +        # enums:
    +        # - name: google.someapi.v1.SomeEnum
    +        # Corresponds to the JSON property `enums`
    +        # @return [Array]
    +        attr_accessor :enums
    +      
    +        # `Context` defines which contexts an API requests.
    +        # Example:
    +        # context:
    +        # rules:
    +        # - selector: "*"
    +        # requested:
    +        # - google.rpc.context.ProjectContext
    +        # - google.rpc.context.OriginContext
    +        # The above specifies that all methods in the API request
    +        # `google.rpc.context.ProjectContext` and
    +        # `google.rpc.context.OriginContext`.
    +        # Available context types are defined in package
    +        # `google.rpc.context`.
    +        # Corresponds to the JSON property `context`
    +        # @return [Google::Apis::ServiceuserV1::Context]
    +        attr_accessor :context
    +      
    +        # A unique ID for a specific instance of this message, typically assigned
    +        # by the client for tracking purpose. If empty, the server may choose to
    +        # generate one instead.
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        # Configuration controlling usage of a service.
    +        # Corresponds to the JSON property `usage`
    +        # @return [Google::Apis::ServiceuserV1::Usage]
    +        attr_accessor :usage
    +      
    +        # Defines the metrics used by this service.
    +        # Corresponds to the JSON property `metrics`
    +        # @return [Array]
    +        attr_accessor :metrics
    +      
    +        # `Authentication` defines the authentication configuration for an API.
    +        # Example for an API targeted for external use:
    +        # name: calendar.googleapis.com
    +        # authentication:
    +        # providers:
    +        # - id: google_calendar_auth
    +        # jwks_uri: https://www.googleapis.com/oauth2/v1/certs
    +        # issuer: https://securetoken.google.com
    +        # rules:
    +        # - selector: "*"
    +        # requirements:
    +        # provider_id: google_calendar_auth
    +        # Corresponds to the JSON property `authentication`
    +        # @return [Google::Apis::ServiceuserV1::Authentication]
    +        attr_accessor :authentication
    +      
    +        # Experimental service configuration. These configuration options can
    +        # only be used by whitelisted users.
    +        # Corresponds to the JSON property `experimental`
    +        # @return [Google::Apis::ServiceuserV1::Experimental]
    +        attr_accessor :experimental
    +      
    +        # Selects and configures the service controller used by the service.  The
    +        # service controller handles features like abuse, quota, billing, logging,
    +        # monitoring, etc.
    +        # Corresponds to the JSON property `control`
    +        # @return [Google::Apis::ServiceuserV1::Control]
    +        attr_accessor :control
    +      
    +        # The version of the service configuration. The config version may
    +        # influence interpretation of the configuration, for example, to
    +        # determine defaults. This is documented together with applicable
    +        # options. The current default for the config version itself is `3`.
    +        # Corresponds to the JSON property `configVersion`
    +        # @return [Fixnum]
    +        attr_accessor :config_version
    +      
    +        # Monitoring configuration of the service.
    +        # The example below shows how to configure monitored resources and metrics
    +        # for monitoring. In the example, a monitored resource and two metrics are
    +        # defined. The `library.googleapis.com/book/returned_count` metric is sent
    +        # to both producer and consumer projects, whereas the
    +        # `library.googleapis.com/book/overdue_count` metric is only sent to the
    +        # consumer project.
    +        # monitored_resources:
    +        # - type: library.googleapis.com/branch
    +        # labels:
    +        # - key: /city
    +        # description: The city where the library branch is located in.
    +        # - key: /name
    +        # description: The name of the branch.
    +        # metrics:
    +        # - name: library.googleapis.com/book/returned_count
    +        # metric_kind: DELTA
    +        # value_type: INT64
    +        # labels:
    +        # - key: /customer_id
    +        # - name: library.googleapis.com/book/overdue_count
    +        # metric_kind: GAUGE
    +        # value_type: INT64
    +        # labels:
    +        # - key: /customer_id
    +        # monitoring:
    +        # producer_destinations:
    +        # - monitored_resource: library.googleapis.com/branch
    +        # metrics:
    +        # - library.googleapis.com/book/returned_count
    +        # consumer_destinations:
    +        # - monitored_resource: library.googleapis.com/branch
    +        # metrics:
    +        # - library.googleapis.com/book/returned_count
    +        # - library.googleapis.com/book/overdue_count
    +        # Corresponds to the JSON property `monitoring`
    +        # @return [Google::Apis::ServiceuserV1::Monitoring]
    +        attr_accessor :monitoring
    +      
    +        # A list of all proto message types included in this API service.
    +        # It serves similar purpose as [google.api.Service.types], except that
    +        # these types are not needed by user-defined APIs. Therefore, they will not
    +        # show up in the generated discovery doc. This field should only be used
    +        # to define system APIs in ESF.
    +        # Corresponds to the JSON property `systemTypes`
    +        # @return [Array]
    +        attr_accessor :system_types
    +      
    +        # The Google project that owns this service.
    +        # Corresponds to the JSON property `producerProjectId`
    +        # @return [String]
    +        attr_accessor :producer_project_id
    +      
    +        # `Visibility` defines restrictions for the visibility of service
    +        # elements.  Restrictions are specified using visibility labels
    +        # (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
    +        # Users and projects can have access to more than one visibility label. The
    +        # effective visibility for multiple labels is the union of each label's
    +        # elements, plus any unrestricted elements.
    +        # If an element and its parents have no restrictions, visibility is
    +        # unconditionally granted.
    +        # Example:
    +        # visibility:
    +        # rules:
    +        # - selector: google.calendar.Calendar.EnhancedSearch
    +        # restriction: TRUSTED_TESTER
    +        # - selector: google.calendar.Calendar.Delegate
    +        # restriction: GOOGLE_INTERNAL
    +        # Here, all methods are publicly visible except for the restricted methods
    +        # EnhancedSearch and Delegate.
    +        # Corresponds to the JSON property `visibility`
    +        # @return [Google::Apis::ServiceuserV1::Visibility]
    +        attr_accessor :visibility
    +      
    +        # Quota configuration helps to achieve fairness and budgeting in service
    +        # usage.
    +        # The quota configuration works this way:
    +        # - The service configuration defines a set of metrics.
    +        # - For API calls, the quota.metric_rules maps methods to metrics with
    +        # corresponding costs.
    +        # - The quota.limits defines limits on the metrics, which will be used for
    +        # quota checks at runtime.
    +        # An example quota configuration in yaml format:
    +        # quota:
    +        # - name: apiWriteQpsPerProject
    +        # metric: library.googleapis.com/write_calls
    +        # unit: "1/min/`project`"  # rate limit for consumer projects
    +        # values:
    +        # STANDARD: 10000
    +        # # The metric rules bind all methods to the read_calls metric,
    +        # # except for the UpdateBook and DeleteBook methods. These two methods
    +        # # are mapped to the write_calls metric, with the UpdateBook method
    +        # # consuming at twice rate as the DeleteBook method.
    +        # metric_rules:
    +        # - selector: "*"
    +        # metric_costs:
    +        # library.googleapis.com/read_calls: 1
    +        # - selector: google.example.library.v1.LibraryService.UpdateBook
    +        # metric_costs:
    +        # library.googleapis.com/write_calls: 2
    +        # - selector: google.example.library.v1.LibraryService.DeleteBook
    +        # metric_costs:
    +        # library.googleapis.com/write_calls: 1
    +        # Corresponding Metric definition:
    +        # metrics:
    +        # - name: library.googleapis.com/read_calls
    +        # display_name: Read requests
    +        # metric_kind: DELTA
    +        # value_type: INT64
    +        # - name: library.googleapis.com/write_calls
    +        # display_name: Write requests
    +        # metric_kind: DELTA
    +        # value_type: INT64
    +        # Corresponds to the JSON property `quota`
    +        # @return [Google::Apis::ServiceuserV1::Quota]
    +        attr_accessor :quota
    +      
    +        # The DNS address at which this service is available,
    +        # e.g. `calendar.googleapis.com`.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # Customize service error responses.  For example, list any service
    +        # specific protobuf types that can appear in error detail lists of
    +        # error responses.
    +        # Example:
    +        # custom_error:
    +        # types:
    +        # - google.foo.v1.CustomError
    +        # - google.foo.v1.AnotherError
    +        # Corresponds to the JSON property `customError`
    +        # @return [Google::Apis::ServiceuserV1::CustomError]
    +        attr_accessor :custom_error
    +      
    +        # The product title for this service.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
    +        # Configuration for network endpoints.  If this is empty, then an endpoint
    +        # with the same name as the service is automatically generated to service all
    +        # defined APIs.
    +        # Corresponds to the JSON property `endpoints`
    +        # @return [Array]
    +        attr_accessor :endpoints
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @logs = args[:logs] if args.key?(:logs)
    +          @apis = args[:apis] if args.key?(:apis)
    +          @types = args[:types] if args.key?(:types)
    +          @source_info = args[:source_info] if args.key?(:source_info)
    +          @http = args[:http] if args.key?(:http)
    +          @backend = args[:backend] if args.key?(:backend)
    +          @system_parameters = args[:system_parameters] if args.key?(:system_parameters)
    +          @documentation = args[:documentation] if args.key?(:documentation)
    +          @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
    +          @logging = args[:logging] if args.key?(:logging)
               @enums = args[:enums] if args.key?(:enums)
               @context = args[:context] if args.key?(:context)
               @id = args[:id] if args.key?(:id)
    @@ -1198,24 +1760,14 @@ module Google
               @control = args[:control] if args.key?(:control)
               @config_version = args[:config_version] if args.key?(:config_version)
               @monitoring = args[:monitoring] if args.key?(:monitoring)
    -          @producer_project_id = args[:producer_project_id] if args.key?(:producer_project_id)
               @system_types = args[:system_types] if args.key?(:system_types)
    +          @producer_project_id = args[:producer_project_id] if args.key?(:producer_project_id)
               @visibility = args[:visibility] if args.key?(:visibility)
               @quota = args[:quota] if args.key?(:quota)
               @name = args[:name] if args.key?(:name)
               @custom_error = args[:custom_error] if args.key?(:custom_error)
               @title = args[:title] if args.key?(:title)
               @endpoints = args[:endpoints] if args.key?(:endpoints)
    -          @apis = args[:apis] if args.key?(:apis)
    -          @logs = args[:logs] if args.key?(:logs)
    -          @types = args[:types] if args.key?(:types)
    -          @source_info = args[:source_info] if args.key?(:source_info)
    -          @http = args[:http] if args.key?(:http)
    -          @backend = args[:backend] if args.key?(:backend)
    -          @system_parameters = args[:system_parameters] if args.key?(:system_parameters)
    -          @documentation = args[:documentation] if args.key?(:documentation)
    -          @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
    -          @logging = args[:logging] if args.key?(:logging)
             end
           end
           
    @@ -1223,10 +1775,10 @@ module Google
           class OperationMetadata
             include Google::Apis::Core::Hashable
           
    -        # The start time of the operation.
    -        # Corresponds to the JSON property `startTime`
    -        # @return [String]
    -        attr_accessor :start_time
    +        # Detailed status information for each step. The order is undetermined.
    +        # Corresponds to the JSON property `steps`
    +        # @return [Array]
    +        attr_accessor :steps
           
             # The full name of the resources that this operation is directly
             # associated with.
    @@ -1234,26 +1786,26 @@ module Google
             # @return [Array]
             attr_accessor :resource_names
           
    -        # Detailed status information for each step. The order is undetermined.
    -        # Corresponds to the JSON property `steps`
    -        # @return [Array]
    -        attr_accessor :steps
    -      
             # Percentage of completion of this operation, ranging from 0 to 100.
             # Corresponds to the JSON property `progressPercentage`
             # @return [Fixnum]
             attr_accessor :progress_percentage
           
    +        # The start time of the operation.
    +        # Corresponds to the JSON property `startTime`
    +        # @return [String]
    +        attr_accessor :start_time
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @start_time = args[:start_time] if args.key?(:start_time)
    -          @resource_names = args[:resource_names] if args.key?(:resource_names)
               @steps = args[:steps] if args.key?(:steps)
    +          @resource_names = args[:resource_names] if args.key?(:resource_names)
               @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
    +          @start_time = args[:start_time] if args.key?(:start_time)
             end
           end
           
    @@ -1362,43 +1914,6 @@ module Google
             end
           end
           
    -      # A visibility rule provides visibility configuration for an individual API
    -      # element.
    -      class VisibilityRule
    -        include Google::Apis::Core::Hashable
    -      
    -        # A comma-separated list of visibility labels that apply to the `selector`.
    -        # Any of the listed labels can be used to grant the visibility.
    -        # If a rule has multiple labels, removing one of the labels but not all of
    -        # them can break clients.
    -        # Example:
    -        # visibility:
    -        # rules:
    -        # - selector: google.calendar.Calendar.EnhancedSearch
    -        # restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
    -        # Removing GOOGLE_INTERNAL from this restriction will break clients that
    -        # rely on this method and only had access to it through GOOGLE_INTERNAL.
    -        # Corresponds to the JSON property `restriction`
    -        # @return [String]
    -        attr_accessor :restriction
    -      
    -        # Selects methods, messages, fields, enums, etc. to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @restriction = args[:restriction] if args.key?(:restriction)
    -          @selector = args[:selector] if args.key?(:selector)
    -        end
    -      end
    -      
           # `HttpRule` defines the mapping of an RPC method to one or more HTTP
           # REST API methods. The mapping specifies how different portions of the RPC
           # request message are mapped to URL path, URL query parameters, and
    @@ -1582,6 +2097,12 @@ module Google
           class HttpRule
             include Google::Apis::Core::Hashable
           
    +        # Selects methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
             # A custom pattern is used for defining custom HTTP verb.
             # Corresponds to the JSON property `custom`
             # @return [Google::Apis::ServiceuserV1::CustomHttpPattern]
    @@ -1615,11 +2136,6 @@ module Google
             # @return [String]
             attr_accessor :body
           
    -        # Used for creating a resource.
    -        # Corresponds to the JSON property `post`
    -        # @return [String]
    -        attr_accessor :post
    -      
             # Defines the Media configuration for a service in case of a download.
             # Use this only for Scotty Requests. Do not use this for media support using
             # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
    @@ -1628,6 +2144,11 @@ module Google
             # @return [Google::Apis::ServiceuserV1::MediaDownload]
             attr_accessor :media_download
           
    +        # Used for creating a resource.
    +        # Corresponds to the JSON property `post`
    +        # @return [String]
    +        attr_accessor :post
    +      
             # Optional. The rest method name is by default derived from the URL
             # pattern. If specified, this field overrides the default method name.
             # Example:
    @@ -1687,7 +2208,50 @@ module Google
             # @return [Google::Apis::ServiceuserV1::MediaUpload]
             attr_accessor :media_upload
           
    -        # Selects methods to which this rule applies.
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @selector = args[:selector] if args.key?(:selector)
    +          @custom = args[:custom] if args.key?(:custom)
    +          @get = args[:get] if args.key?(:get)
    +          @patch = args[:patch] if args.key?(:patch)
    +          @put = args[:put] if args.key?(:put)
    +          @delete = args[:delete] if args.key?(:delete)
    +          @body = args[:body] if args.key?(:body)
    +          @media_download = args[:media_download] if args.key?(:media_download)
    +          @post = args[:post] if args.key?(:post)
    +          @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name)
    +          @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
    +          @response_body = args[:response_body] if args.key?(:response_body)
    +          @rest_collection = args[:rest_collection] if args.key?(:rest_collection)
    +          @media_upload = args[:media_upload] if args.key?(:media_upload)
    +        end
    +      end
    +      
    +      # A visibility rule provides visibility configuration for an individual API
    +      # element.
    +      class VisibilityRule
    +        include Google::Apis::Core::Hashable
    +      
    +        # A comma-separated list of visibility labels that apply to the `selector`.
    +        # Any of the listed labels can be used to grant the visibility.
    +        # If a rule has multiple labels, removing one of the labels but not all of
    +        # them can break clients.
    +        # Example:
    +        # visibility:
    +        # rules:
    +        # - selector: google.calendar.Calendar.EnhancedSearch
    +        # restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
    +        # Removing GOOGLE_INTERNAL from this restriction will break clients that
    +        # rely on this method and only had access to it through GOOGLE_INTERNAL.
    +        # Corresponds to the JSON property `restriction`
    +        # @return [String]
    +        attr_accessor :restriction
    +      
    +        # Selects methods, messages, fields, enums, etc. to which this rule applies.
             # Refer to selector for syntax details.
             # Corresponds to the JSON property `selector`
             # @return [String]
    @@ -1699,19 +2263,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @custom = args[:custom] if args.key?(:custom)
    -          @get = args[:get] if args.key?(:get)
    -          @patch = args[:patch] if args.key?(:patch)
    -          @put = args[:put] if args.key?(:put)
    -          @delete = args[:delete] if args.key?(:delete)
    -          @body = args[:body] if args.key?(:body)
    -          @post = args[:post] if args.key?(:post)
    -          @media_download = args[:media_download] if args.key?(:media_download)
    -          @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name)
    -          @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
    -          @response_body = args[:response_body] if args.key?(:response_body)
    -          @rest_collection = args[:rest_collection] if args.key?(:rest_collection)
    -          @media_upload = args[:media_upload] if args.key?(:media_upload)
    +          @restriction = args[:restriction] if args.key?(:restriction)
               @selector = args[:selector] if args.key?(:selector)
             end
           end
    @@ -1866,25 +2418,25 @@ module Google
           class Quota
             include Google::Apis::Core::Hashable
           
    +        # List of `QuotaLimit` definitions for the service.
    +        # Corresponds to the JSON property `limits`
    +        # @return [Array]
    +        attr_accessor :limits
    +      
             # List of `MetricRule` definitions, each one mapping a selected method to one
             # or more metrics.
             # Corresponds to the JSON property `metricRules`
             # @return [Array]
             attr_accessor :metric_rules
           
    -        # List of `QuotaLimit` definitions for the service.
    -        # Corresponds to the JSON property `limits`
    -        # @return [Array]
    -        attr_accessor :limits
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @metric_rules = args[:metric_rules] if args.key?(:metric_rules)
               @limits = args[:limits] if args.key?(:limits)
    +          @metric_rules = args[:metric_rules] if args.key?(:metric_rules)
             end
           end
           
    @@ -1948,14 +2500,6 @@ module Google
           class Option
             include Google::Apis::Core::Hashable
           
    -        # The option's value packed in an Any message. If the value is a primitive,
    -        # the corresponding wrapper type defined in google/protobuf/wrappers.proto
    -        # should be used. If the value is an enum, it should be stored as an int32
    -        # value using the google.protobuf.Int32Value type.
    -        # Corresponds to the JSON property `value`
    -        # @return [Hash]
    -        attr_accessor :value
    -      
             # The option's name. For protobuf built-in options (options defined in
             # descriptor.proto), this is the short name. For example, `"map_entry"`.
             # For custom options, it should be the fully-qualified name. For example,
    @@ -1964,14 +2508,22 @@ module Google
             # @return [String]
             attr_accessor :name
           
    +        # The option's value packed in an Any message. If the value is a primitive,
    +        # the corresponding wrapper type defined in google/protobuf/wrappers.proto
    +        # should be used. If the value is an enum, it should be stored as an int32
    +        # value using the google.protobuf.Int32Value type.
    +        # Corresponds to the JSON property `value`
    +        # @return [Hash]
    +        attr_accessor :value
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @value = args[:value] if args.key?(:value)
               @name = args[:name] if args.key?(:name)
    +          @value = args[:value] if args.key?(:value)
             end
           end
           
    @@ -2005,14 +2557,6 @@ module Google
           class Logging
             include Google::Apis::Core::Hashable
           
    -        # Logging configurations for sending logs to the producer project.
    -        # There can be multiple producer destinations, each one must have a
    -        # different monitored resource type. A log can be used in at most
    -        # one producer destination.
    -        # Corresponds to the JSON property `producerDestinations`
    -        # @return [Array]
    -        attr_accessor :producer_destinations
    -      
             # Logging configurations for sending logs to the consumer project.
             # There can be multiple consumer destinations, each one must have a
             # different monitored resource type. A log can be used in at most
    @@ -2021,71 +2565,22 @@ module Google
             # @return [Array]
             attr_accessor :consumer_destinations
           
    +        # Logging configurations for sending logs to the producer project.
    +        # There can be multiple producer destinations, each one must have a
    +        # different monitored resource type. A log can be used in at most
    +        # one producer destination.
    +        # Corresponds to the JSON property `producerDestinations`
    +        # @return [Array]
    +        attr_accessor :producer_destinations
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations)
               @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations)
    -        end
    -      end
    -      
    -      # Method represents a method of an api.
    -      class MethodProp
    -        include Google::Apis::Core::Hashable
    -      
    -        # The URL of the output message type.
    -        # Corresponds to the JSON property `responseTypeUrl`
    -        # @return [String]
    -        attr_accessor :response_type_url
    -      
    -        # Any metadata attached to the method.
    -        # Corresponds to the JSON property `options`
    -        # @return [Array]
    -        attr_accessor :options
    -      
    -        # If true, the response is streamed.
    -        # Corresponds to the JSON property `responseStreaming`
    -        # @return [Boolean]
    -        attr_accessor :response_streaming
    -        alias_method :response_streaming?, :response_streaming
    -      
    -        # The simple name of this method.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # A URL of the input message type.
    -        # Corresponds to the JSON property `requestTypeUrl`
    -        # @return [String]
    -        attr_accessor :request_type_url
    -      
    -        # If true, the request is streamed.
    -        # Corresponds to the JSON property `requestStreaming`
    -        # @return [Boolean]
    -        attr_accessor :request_streaming
    -        alias_method :request_streaming?, :request_streaming
    -      
    -        # The source syntax of this method.
    -        # Corresponds to the JSON property `syntax`
    -        # @return [String]
    -        attr_accessor :syntax
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @response_type_url = args[:response_type_url] if args.key?(:response_type_url)
    -          @options = args[:options] if args.key?(:options)
    -          @response_streaming = args[:response_streaming] if args.key?(:response_streaming)
    -          @name = args[:name] if args.key?(:name)
    -          @request_type_url = args[:request_type_url] if args.key?(:request_type_url)
    -          @request_streaming = args[:request_streaming] if args.key?(:request_streaming)
    -          @syntax = args[:syntax] if args.key?(:syntax)
    +          @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations)
             end
           end
           
    @@ -2095,6 +2590,61 @@ module Google
           class QuotaLimit
             include Google::Apis::Core::Hashable
           
    +        # Free tier value displayed in the Developers Console for this limit.
    +        # The free tier is the number of tokens that will be subtracted from the
    +        # billed amount when billing is enabled.
    +        # This field can only be set on a limit with duration "1d", in a billable
    +        # group; it is invalid on any other limit. If this field is not set, it
    +        # defaults to 0, indicating that there is no free tier for this service.
    +        # Used by group-based quotas only.
    +        # Corresponds to the JSON property `freeTier`
    +        # @return [Fixnum]
    +        attr_accessor :free_tier
    +      
    +        # Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    +        # For duration longer than a day, only multiple of days is supported. We
    +        # support only "100s" and "1d" for now. Additional support will be added in
    +        # the future. "0" indicates indefinite duration.
    +        # Used by group-based quotas only.
    +        # Corresponds to the JSON property `duration`
    +        # @return [String]
    +        attr_accessor :duration
    +      
    +        # Default number of tokens that can be consumed during the specified
    +        # duration. This is the number of tokens assigned when a client
    +        # application developer activates the service for his/her project.
    +        # Specifying a value of 0 will block all requests. This can be used if you
    +        # are provisioning quota to selected consumers and blocking others.
    +        # Similarly, a value of -1 will indicate an unlimited quota. No other
    +        # negative values are allowed.
    +        # Used by group-based quotas only.
    +        # Corresponds to the JSON property `defaultLimit`
    +        # @return [Fixnum]
    +        attr_accessor :default_limit
    +      
    +        # User-visible display name for this limit.
    +        # Optional. If not set, the UI will provide a default display name based on
    +        # the quota configuration. This field can be used to override the default
    +        # display name generated from the configuration.
    +        # Corresponds to the JSON property `displayName`
    +        # @return [String]
    +        attr_accessor :display_name
    +      
    +        # The name of the metric this quota limit applies to. The quota limits with
    +        # the same metric will be checked together during runtime. The metric must be
    +        # defined within the service config.
    +        # Used by metric-based quotas only.
    +        # Corresponds to the JSON property `metric`
    +        # @return [String]
    +        attr_accessor :metric
    +      
    +        # Optional. User-visible, extended description for this quota limit.
    +        # Should be used only when more context is needed to understand this limit
    +        # than provided by the limit's display name (see: `display_name`).
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
             # Tiered limit values, currently only STANDARD is supported.
             # Corresponds to the JSON property `values`
             # @return [Hash]
    @@ -2146,60 +2696,65 @@ module Google
             # @return [String]
             attr_accessor :name
           
    -        # Duration of this limit in textual notation. Example: "100s", "24h", "1d".
    -        # For duration longer than a day, only multiple of days is supported. We
    -        # support only "100s" and "1d" for now. Additional support will be added in
    -        # the future. "0" indicates indefinite duration.
    -        # Used by group-based quotas only.
    -        # Corresponds to the JSON property `duration`
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @free_tier = args[:free_tier] if args.key?(:free_tier)
    +          @duration = args[:duration] if args.key?(:duration)
    +          @default_limit = args[:default_limit] if args.key?(:default_limit)
    +          @display_name = args[:display_name] if args.key?(:display_name)
    +          @metric = args[:metric] if args.key?(:metric)
    +          @description = args[:description] if args.key?(:description)
    +          @values = args[:values] if args.key?(:values)
    +          @unit = args[:unit] if args.key?(:unit)
    +          @max_limit = args[:max_limit] if args.key?(:max_limit)
    +          @name = args[:name] if args.key?(:name)
    +        end
    +      end
    +      
    +      # Method represents a method of an api.
    +      class MethodProp
    +        include Google::Apis::Core::Hashable
    +      
    +        # The simple name of this method.
    +        # Corresponds to the JSON property `name`
             # @return [String]
    -        attr_accessor :duration
    +        attr_accessor :name
           
    -        # Free tier value displayed in the Developers Console for this limit.
    -        # The free tier is the number of tokens that will be subtracted from the
    -        # billed amount when billing is enabled.
    -        # This field can only be set on a limit with duration "1d", in a billable
    -        # group; it is invalid on any other limit. If this field is not set, it
    -        # defaults to 0, indicating that there is no free tier for this service.
    -        # Used by group-based quotas only.
    -        # Corresponds to the JSON property `freeTier`
    -        # @return [Fixnum]
    -        attr_accessor :free_tier
    -      
    -        # Default number of tokens that can be consumed during the specified
    -        # duration. This is the number of tokens assigned when a client
    -        # application developer activates the service for his/her project.
    -        # Specifying a value of 0 will block all requests. This can be used if you
    -        # are provisioning quota to selected consumers and blocking others.
    -        # Similarly, a value of -1 will indicate an unlimited quota. No other
    -        # negative values are allowed.
    -        # Used by group-based quotas only.
    -        # Corresponds to the JSON property `defaultLimit`
    -        # @return [Fixnum]
    -        attr_accessor :default_limit
    -      
    -        # The name of the metric this quota limit applies to. The quota limits with
    -        # the same metric will be checked together during runtime. The metric must be
    -        # defined within the service config.
    -        # Used by metric-based quotas only.
    -        # Corresponds to the JSON property `metric`
    +        # A URL of the input message type.
    +        # Corresponds to the JSON property `requestTypeUrl`
             # @return [String]
    -        attr_accessor :metric
    +        attr_accessor :request_type_url
           
    -        # User-visible display name for this limit.
    -        # Optional. If not set, the UI will provide a default display name based on
    -        # the quota configuration. This field can be used to override the default
    -        # display name generated from the configuration.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    +        # If true, the request is streamed.
    +        # Corresponds to the JSON property `requestStreaming`
    +        # @return [Boolean]
    +        attr_accessor :request_streaming
    +        alias_method :request_streaming?, :request_streaming
           
    -        # Optional. User-visible, extended description for this quota limit.
    -        # Should be used only when more context is needed to understand this limit
    -        # than provided by the limit's display name (see: `display_name`).
    -        # Corresponds to the JSON property `description`
    +        # The source syntax of this method.
    +        # Corresponds to the JSON property `syntax`
             # @return [String]
    -        attr_accessor :description
    +        attr_accessor :syntax
    +      
    +        # The URL of the output message type.
    +        # Corresponds to the JSON property `responseTypeUrl`
    +        # @return [String]
    +        attr_accessor :response_type_url
    +      
    +        # Any metadata attached to the method.
    +        # Corresponds to the JSON property `options`
    +        # @return [Array]
    +        attr_accessor :options
    +      
    +        # If true, the response is streamed.
    +        # Corresponds to the JSON property `responseStreaming`
    +        # @return [Boolean]
    +        attr_accessor :response_streaming
    +        alias_method :response_streaming?, :response_streaming
           
             def initialize(**args)
                update!(**args)
    @@ -2207,16 +2762,13 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @values = args[:values] if args.key?(:values)
    -          @unit = args[:unit] if args.key?(:unit)
    -          @max_limit = args[:max_limit] if args.key?(:max_limit)
               @name = args[:name] if args.key?(:name)
    -          @duration = args[:duration] if args.key?(:duration)
    -          @free_tier = args[:free_tier] if args.key?(:free_tier)
    -          @default_limit = args[:default_limit] if args.key?(:default_limit)
    -          @metric = args[:metric] if args.key?(:metric)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -          @description = args[:description] if args.key?(:description)
    +          @request_type_url = args[:request_type_url] if args.key?(:request_type_url)
    +          @request_streaming = args[:request_streaming] if args.key?(:request_streaming)
    +          @syntax = args[:syntax] if args.key?(:syntax)
    +          @response_type_url = args[:response_type_url] if args.key?(:response_type_url)
    +          @options = args[:options] if args.key?(:options)
    +          @response_streaming = args[:response_streaming] if args.key?(:response_streaming)
             end
           end
           
    @@ -2345,6 +2897,12 @@ module Google
           class Http
             include Google::Apis::Core::Hashable
           
    +        # A list of HTTP configuration rules that apply to individual API methods.
    +        # **NOTE:** All service configuration rules follow "last one wins" order.
    +        # Corresponds to the JSON property `rules`
    +        # @return [Array]
    +        attr_accessor :rules
    +      
             # When set to true, URL path parmeters will be fully URI-decoded except in
             # cases of single segment matches in reserved expansion, where "%2F" will be
             # left encoded.
    @@ -2355,20 +2913,14 @@ module Google
             attr_accessor :fully_decode_reserved_expansion
             alias_method :fully_decode_reserved_expansion?, :fully_decode_reserved_expansion
           
    -        # A list of HTTP configuration rules that apply to individual API methods.
    -        # **NOTE:** All service configuration rules follow "last one wins" order.
    -        # Corresponds to the JSON property `rules`
    -        # @return [Array]
    -        attr_accessor :rules
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @fully_decode_reserved_expansion = args[:fully_decode_reserved_expansion] if args.key?(:fully_decode_reserved_expansion)
               @rules = args[:rules] if args.key?(:rules)
    +          @fully_decode_reserved_expansion = args[:fully_decode_reserved_expansion] if args.key?(:fully_decode_reserved_expansion)
             end
           end
           
    @@ -2448,82 +3000,6 @@ module Google
             end
           end
           
    -      # A single field of a message type.
    -      class Field
    -        include Google::Apis::Core::Hashable
    -      
    -        # The field cardinality.
    -        # Corresponds to the JSON property `cardinality`
    -        # @return [String]
    -        attr_accessor :cardinality
    -      
    -        # Whether to use alternative packed wire representation.
    -        # Corresponds to the JSON property `packed`
    -        # @return [Boolean]
    -        attr_accessor :packed
    -        alias_method :packed?, :packed
    -      
    -        # The string value of the default value of this field. Proto2 syntax only.
    -        # Corresponds to the JSON property `defaultValue`
    -        # @return [String]
    -        attr_accessor :default_value
    -      
    -        # The field name.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The field type URL, without the scheme, for message or enumeration
    -        # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
    -        # Corresponds to the JSON property `typeUrl`
    -        # @return [String]
    -        attr_accessor :type_url
    -      
    -        # The field number.
    -        # Corresponds to the JSON property `number`
    -        # @return [Fixnum]
    -        attr_accessor :number
    -      
    -        # The field JSON name.
    -        # Corresponds to the JSON property `jsonName`
    -        # @return [String]
    -        attr_accessor :json_name
    -      
    -        # The field type.
    -        # Corresponds to the JSON property `kind`
    -        # @return [String]
    -        attr_accessor :kind
    -      
    -        # The protocol buffer options.
    -        # Corresponds to the JSON property `options`
    -        # @return [Array]
    -        attr_accessor :options
    -      
    -        # The index of the field type in `Type.oneofs`, for message or enumeration
    -        # types. The first type has index 1; zero means the type is not in the list.
    -        # Corresponds to the JSON property `oneofIndex`
    -        # @return [Fixnum]
    -        attr_accessor :oneof_index
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cardinality = args[:cardinality] if args.key?(:cardinality)
    -          @packed = args[:packed] if args.key?(:packed)
    -          @default_value = args[:default_value] if args.key?(:default_value)
    -          @name = args[:name] if args.key?(:name)
    -          @type_url = args[:type_url] if args.key?(:type_url)
    -          @number = args[:number] if args.key?(:number)
    -          @json_name = args[:json_name] if args.key?(:json_name)
    -          @kind = args[:kind] if args.key?(:kind)
    -          @options = args[:options] if args.key?(:options)
    -          @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
    -        end
    -      end
    -      
           # Monitoring configuration of the service.
           # The example below shows how to configure monitored resources and metrics
           # for monitoring. In the example, a monitored resource and two metrics are
    @@ -2562,14 +3038,6 @@ module Google
           class Monitoring
             include Google::Apis::Core::Hashable
           
    -        # Monitoring configurations for sending metrics to the consumer project.
    -        # There can be multiple consumer destinations, each one must have a
    -        # different monitored resource type. A metric can be used in at most
    -        # one consumer destination.
    -        # Corresponds to the JSON property `consumerDestinations`
    -        # @return [Array]
    -        attr_accessor :consumer_destinations
    -      
             # Monitoring configurations for sending metrics to the producer project.
             # There can be multiple producer destinations, each one must have a
             # different monitored resource type. A metric can be used in at most
    @@ -2578,14 +3046,98 @@ module Google
             # @return [Array]
             attr_accessor :producer_destinations
           
    +        # Monitoring configurations for sending metrics to the consumer project.
    +        # There can be multiple consumer destinations, each one must have a
    +        # different monitored resource type. A metric can be used in at most
    +        # one consumer destination.
    +        # Corresponds to the JSON property `consumerDestinations`
    +        # @return [Array]
    +        attr_accessor :consumer_destinations
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations)
               @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations)
    +          @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations)
    +        end
    +      end
    +      
    +      # A single field of a message type.
    +      class Field
    +        include Google::Apis::Core::Hashable
    +      
    +        # The protocol buffer options.
    +        # Corresponds to the JSON property `options`
    +        # @return [Array]
    +        attr_accessor :options
    +      
    +        # The index of the field type in `Type.oneofs`, for message or enumeration
    +        # types. The first type has index 1; zero means the type is not in the list.
    +        # Corresponds to the JSON property `oneofIndex`
    +        # @return [Fixnum]
    +        attr_accessor :oneof_index
    +      
    +        # Whether to use alternative packed wire representation.
    +        # Corresponds to the JSON property `packed`
    +        # @return [Boolean]
    +        attr_accessor :packed
    +        alias_method :packed?, :packed
    +      
    +        # The field cardinality.
    +        # Corresponds to the JSON property `cardinality`
    +        # @return [String]
    +        attr_accessor :cardinality
    +      
    +        # The string value of the default value of this field. Proto2 syntax only.
    +        # Corresponds to the JSON property `defaultValue`
    +        # @return [String]
    +        attr_accessor :default_value
    +      
    +        # The field name.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # The field type URL, without the scheme, for message or enumeration
    +        # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
    +        # Corresponds to the JSON property `typeUrl`
    +        # @return [String]
    +        attr_accessor :type_url
    +      
    +        # The field number.
    +        # Corresponds to the JSON property `number`
    +        # @return [Fixnum]
    +        attr_accessor :number
    +      
    +        # The field JSON name.
    +        # Corresponds to the JSON property `jsonName`
    +        # @return [String]
    +        attr_accessor :json_name
    +      
    +        # The field 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)
    +          @options = args[:options] if args.key?(:options)
    +          @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
    +          @packed = args[:packed] if args.key?(:packed)
    +          @cardinality = args[:cardinality] if args.key?(:cardinality)
    +          @default_value = args[:default_value] if args.key?(:default_value)
    +          @name = args[:name] if args.key?(:name)
    +          @type_url = args[:type_url] if args.key?(:type_url)
    +          @number = args[:number] if args.key?(:number)
    +          @json_name = args[:json_name] if args.key?(:json_name)
    +          @kind = args[:kind] if args.key?(:kind)
             end
           end
           
    @@ -2593,31 +3145,31 @@ module Google
           class Enum
             include Google::Apis::Core::Hashable
           
    -        # Enum type name.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # Enum value definitions.
    -        # Corresponds to the JSON property `enumvalue`
    -        # @return [Array]
    -        attr_accessor :enumvalue
    -      
             # Protocol buffer options.
             # Corresponds to the JSON property `options`
             # @return [Array]
             attr_accessor :options
           
    +        # The source syntax.
    +        # Corresponds to the JSON property `syntax`
    +        # @return [String]
    +        attr_accessor :syntax
    +      
             # `SourceContext` represents information about the source of a
             # protobuf element, like the file in which it is defined.
             # Corresponds to the JSON property `sourceContext`
             # @return [Google::Apis::ServiceuserV1::SourceContext]
             attr_accessor :source_context
           
    -        # The source syntax.
    -        # Corresponds to the JSON property `syntax`
    +        # Enum value definitions.
    +        # Corresponds to the JSON property `enumvalue`
    +        # @return [Array]
    +        attr_accessor :enumvalue
    +      
    +        # Enum type name.
    +        # Corresponds to the JSON property `name`
             # @return [String]
    -        attr_accessor :syntax
    +        attr_accessor :name
           
             def initialize(**args)
                update!(**args)
    @@ -2625,11 +3177,11 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @name = args[:name] if args.key?(:name)
    -          @enumvalue = args[:enumvalue] if args.key?(:enumvalue)
               @options = args[:options] if args.key?(:options)
    -          @source_context = args[:source_context] if args.key?(:source_context)
               @syntax = args[:syntax] if args.key?(:syntax)
    +          @source_context = args[:source_context] if args.key?(:source_context)
    +          @enumvalue = args[:enumvalue] if args.key?(:enumvalue)
    +          @name = args[:name] if args.key?(:name)
             end
           end
           
    @@ -2841,6 +3393,12 @@ module Google
           class ContextRule
             include Google::Apis::Core::Hashable
           
    +        # Selects the methods to which this rule applies.
    +        # Refer to selector for syntax details.
    +        # Corresponds to the JSON property `selector`
    +        # @return [String]
    +        attr_accessor :selector
    +      
             # A list of full type names of provided contexts.
             # Corresponds to the JSON property `provided`
             # @return [Array]
    @@ -2851,21 +3409,15 @@ module Google
             # @return [Array]
             attr_accessor :requested
           
    -        # Selects the methods to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @selector = args[:selector] if args.key?(:selector)
               @provided = args[:provided] if args.key?(:provided)
               @requested = args[:requested] if args.key?(:requested)
    -          @selector = args[:selector] if args.key?(:selector)
             end
           end
           
    @@ -2875,34 +3427,6 @@ module Google
           class MetricDescriptor
             include Google::Apis::Core::Hashable
           
    -        # The resource name of the metric descriptor. Depending on the
    -        # implementation, the name typically includes: (1) the parent resource name
    -        # that defines the scope of the metric type or of its data; and (2) the
    -        # metric's URL-encoded type, which also appears in the `type` field of this
    -        # descriptor. For example, following is the resource name of a custom
    -        # metric within the GCP project `my-project-id`:
    -        # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
    -        # 2Fpaid%2Famount"
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The metric type, including its DNS name prefix. The type is not
    -        # URL-encoded.  All user-defined custom metric types have the DNS name
    -        # `custom.googleapis.com`.  Metric types should use a natural hierarchical
    -        # grouping. For example:
    -        # "custom.googleapis.com/invoice/paid/amount"
    -        # "appengine.googleapis.com/http/server/response_latencies"
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # Whether the measurement is an integer, a floating-point number, etc.
    -        # Some combinations of `metric_kind` and `value_type` might not be supported.
    -        # Corresponds to the JSON property `valueType`
    -        # @return [String]
    -        attr_accessor :value_type
    -      
             # Whether the metric records instantaneous values, changes to a value, etc.
             # Some combinations of `metric_kind` and `value_type` might not be supported.
             # Corresponds to the JSON property `metricKind`
    @@ -2984,20 +3508,48 @@ module Google
             # @return [Array]
             attr_accessor :labels
           
    +        # The resource name of the metric descriptor. Depending on the
    +        # implementation, the name typically includes: (1) the parent resource name
    +        # that defines the scope of the metric type or of its data; and (2) the
    +        # metric's URL-encoded type, which also appears in the `type` field of this
    +        # descriptor. For example, following is the resource name of a custom
    +        # metric within the GCP project `my-project-id`:
    +        # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
    +        # 2Fpaid%2Famount"
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # The metric type, including its DNS name prefix. The type is not
    +        # URL-encoded.  All user-defined custom metric types have the DNS name
    +        # `custom.googleapis.com`.  Metric types should use a natural hierarchical
    +        # grouping. For example:
    +        # "custom.googleapis.com/invoice/paid/amount"
    +        # "appengine.googleapis.com/http/server/response_latencies"
    +        # Corresponds to the JSON property `type`
    +        # @return [String]
    +        attr_accessor :type
    +      
    +        # Whether the measurement is an integer, a floating-point number, etc.
    +        # Some combinations of `metric_kind` and `value_type` might not be supported.
    +        # Corresponds to the JSON property `valueType`
    +        # @return [String]
    +        attr_accessor :value_type
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @name = args[:name] if args.key?(:name)
    -          @type = args[:type] if args.key?(:type)
    -          @value_type = args[:value_type] if args.key?(:value_type)
               @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
               @display_name = args[:display_name] if args.key?(:display_name)
               @description = args[:description] if args.key?(:description)
               @unit = args[:unit] if args.key?(:unit)
               @labels = args[:labels] if args.key?(:labels)
    +          @name = args[:name] if args.key?(:name)
    +          @type = args[:type] if args.key?(:type)
    +          @value_type = args[:value_type] if args.key?(:value_type)
             end
           end
           
    @@ -3021,550 +3573,6 @@ module Google
               @file_name = args[:file_name] if args.key?(:file_name)
             end
           end
    -      
    -      # `Endpoint` describes a network endpoint that serves a set of APIs.
    -      # A service may expose any number of endpoints, and all endpoints share the
    -      # same service configuration, such as quota configuration and monitoring
    -      # configuration.
    -      # Example service configuration:
    -      # name: library-example.googleapis.com
    -      # endpoints:
    -      # # Below entry makes 'google.example.library.v1.Library'
    -      # # API be served from endpoint address library-example.googleapis.com.
    -      # # It also allows HTTP OPTIONS calls to be passed to the backend, for
    -      # # it to decide whether the subsequent cross-origin request is
    -      # # allowed to proceed.
    -      # - name: library-example.googleapis.com
    -      # allow_cors: true
    -      class Endpoint
    -        include Google::Apis::Core::Hashable
    -      
    -        # Allowing
    -        # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
    -        # cross-domain traffic, would allow the backends served from this endpoint to
    -        # receive and respond to HTTP OPTIONS requests. The response will be used by
    -        # the browser to determine whether the subsequent cross-origin request is
    -        # allowed to proceed.
    -        # Corresponds to the JSON property `allowCors`
    -        # @return [Boolean]
    -        attr_accessor :allow_cors
    -        alias_method :allow_cors?, :allow_cors
    -      
    -        # DEPRECATED: This field is no longer supported. Instead of using aliases,
    -        # please specify multiple google.api.Endpoint for each of the intented
    -        # alias.
    -        # Additional names that this endpoint will be hosted on.
    -        # Corresponds to the JSON property `aliases`
    -        # @return [Array]
    -        attr_accessor :aliases
    -      
    -        # The canonical name of this endpoint.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The specification of an Internet routable address of API frontend that will
    -        # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
    -        # glossary).
    -        # It should be either a valid IPv4 address or a fully-qualified domain name.
    -        # For example, "8.8.8.8" or "myservice.appspot.com".
    -        # Corresponds to the JSON property `target`
    -        # @return [String]
    -        attr_accessor :target
    -      
    -        # The list of features enabled on this endpoint.
    -        # Corresponds to the JSON property `features`
    -        # @return [Array]
    -        attr_accessor :features
    -      
    -        # The list of APIs served by this endpoint.
    -        # If no APIs are specified this translates to "all APIs" exported by the
    -        # service, as defined in the top-level service configuration.
    -        # Corresponds to the JSON property `apis`
    -        # @return [Array]
    -        attr_accessor :apis
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @allow_cors = args[:allow_cors] if args.key?(:allow_cors)
    -          @aliases = args[:aliases] if args.key?(:aliases)
    -          @name = args[:name] if args.key?(:name)
    -          @target = args[:target] if args.key?(:target)
    -          @features = args[:features] if args.key?(:features)
    -          @apis = args[:apis] if args.key?(:apis)
    -        end
    -      end
    -      
    -      # Response message for `ListEnabledServices` method.
    -      class ListEnabledServicesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # Services enabled for the specified parent.
    -        # Corresponds to the JSON property `services`
    -        # @return [Array]
    -        attr_accessor :services
    -      
    -        # Token that can be passed to `ListEnabledServices` to resume a paginated
    -        # query.
    -        # 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
    -      
    -      # OAuth scopes are a way to define data and permissions on data. For example,
    -      # there are scopes defined for "Read-only access to Google Calendar" and
    -      # "Access to Cloud Platform". Users can consent to a scope for an application,
    -      # giving it permission to access that data on their behalf.
    -      # OAuth scope specifications should be fairly coarse grained; a user will need
    -      # to see and understand the text description of what your scope means.
    -      # In most cases: use one or at most two OAuth scopes for an entire family of
    -      # products. If your product has multiple APIs, you should probably be sharing
    -      # the OAuth scope across all of those APIs.
    -      # When you need finer grained OAuth consent screens: talk with your product
    -      # management about how developers will use them in practice.
    -      # Please note that even though each of the canonical scopes is enough for a
    -      # request to be accepted and passed to the backend, a request can still fail
    -      # due to the backend requiring additional scopes or permissions.
    -      class OAuthRequirements
    -        include Google::Apis::Core::Hashable
    -      
    -        # The list of publicly documented OAuth scopes that are allowed access. An
    -        # OAuth token containing any of these scopes will be accepted.
    -        # Example:
    -        # canonical_scopes: https://www.googleapis.com/auth/calendar,
    -        # https://www.googleapis.com/auth/calendar.read
    -        # Corresponds to the JSON property `canonicalScopes`
    -        # @return [String]
    -        attr_accessor :canonical_scopes
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @canonical_scopes = args[:canonical_scopes] if args.key?(:canonical_scopes)
    -        end
    -      end
    -      
    -      # Configuration controlling usage of a service.
    -      class Usage
    -        include Google::Apis::Core::Hashable
    -      
    -        # The full resource name of a channel used for sending notifications to the
    -        # service producer.
    -        # Google Service Management currently only supports
    -        # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
    -        # channel. To use Google Cloud Pub/Sub as the channel, this must be the name
    -        # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
    -        # documented in https://cloud.google.com/pubsub/docs/overview.
    -        # Corresponds to the JSON property `producerNotificationChannel`
    -        # @return [String]
    -        attr_accessor :producer_notification_channel
    -      
    -        # A list of usage rules that apply to individual API methods.
    -        # **NOTE:** All service configuration rules follow "last one wins" order.
    -        # Corresponds to the JSON property `rules`
    -        # @return [Array]
    -        attr_accessor :rules
    -      
    -        # Requirements that must be satisfied before a consumer project can use the
    -        # service. Each requirement is of the form /;
    -        # for example 'serviceusage.googleapis.com/billing-enabled'.
    -        # Corresponds to the JSON property `requirements`
    -        # @return [Array]
    -        attr_accessor :requirements
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel)
    -          @rules = args[:rules] if args.key?(:rules)
    -          @requirements = args[:requirements] if args.key?(:requirements)
    -        end
    -      end
    -      
    -      # `Context` defines which contexts an API requests.
    -      # Example:
    -      # context:
    -      # rules:
    -      # - selector: "*"
    -      # requested:
    -      # - google.rpc.context.ProjectContext
    -      # - google.rpc.context.OriginContext
    -      # The above specifies that all methods in the API request
    -      # `google.rpc.context.ProjectContext` and
    -      # `google.rpc.context.OriginContext`.
    -      # Available context types are defined in package
    -      # `google.rpc.context`.
    -      class Context
    -        include Google::Apis::Core::Hashable
    -      
    -        # A list of RPC context rules that apply to individual API methods.
    -        # **NOTE:** All service configuration rules follow "last one wins" order.
    -        # Corresponds to the JSON property `rules`
    -        # @return [Array]
    -        attr_accessor :rules
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rules = args[:rules] if args.key?(:rules)
    -        end
    -      end
    -      
    -      # A description of a log type. Example in YAML format:
    -      # - name: library.googleapis.com/activity_history
    -      # description: The history of borrowing and returning library items.
    -      # display_name: Activity
    -      # labels:
    -      # - key: /customer_id
    -      # description: Identifier of a library customer
    -      class LogDescriptor
    -        include Google::Apis::Core::Hashable
    -      
    -        # The set of labels that are available to describe a specific log entry.
    -        # Runtime requests that contain labels not specified here are
    -        # considered invalid.
    -        # Corresponds to the JSON property `labels`
    -        # @return [Array]
    -        attr_accessor :labels
    -      
    -        # The name of the log. It must be less than 512 characters long and can
    -        # include the following characters: upper- and lower-case alphanumeric
    -        # characters [A-Za-z0-9], and punctuation characters including
    -        # slash, underscore, hyphen, period [/_-.].
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # A human-readable description of this log. This information appears in
    -        # the documentation and can contain details.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        # The human-readable name for this log. This information appears on
    -        # the user interface and should be concise.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @labels = args[:labels] if args.key?(:labels)
    -          @name = args[:name] if args.key?(:name)
    -          @description = args[:description] if args.key?(:description)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -        end
    -      end
    -      
    -      # A custom error rule.
    -      class CustomErrorRule
    -        include Google::Apis::Core::Hashable
    -      
    -        # Selects messages to which this rule applies.
    -        # Refer to selector for syntax details.
    -        # Corresponds to the JSON property `selector`
    -        # @return [String]
    -        attr_accessor :selector
    -      
    -        # Mark this message as possible payload in error response.  Otherwise,
    -        # objects of this type will be filtered when they appear in error payload.
    -        # Corresponds to the JSON property `isErrorType`
    -        # @return [Boolean]
    -        attr_accessor :is_error_type
    -        alias_method :is_error_type?, :is_error_type
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @selector = args[:selector] if args.key?(:selector)
    -          @is_error_type = args[:is_error_type] if args.key?(:is_error_type)
    -        end
    -      end
    -      
    -      # An object that describes the schema of a MonitoredResource object using a
    -      # type name and a set of labels.  For example, the monitored resource
    -      # descriptor for Google Compute Engine VM instances has a type of
    -      # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
    -      # `"zone"` to identify particular VM instances.
    -      # Different APIs can support different monitored resource types. APIs generally
    -      # provide a `list` method that returns the monitored resource descriptors used
    -      # by the API.
    -      class MonitoredResourceDescriptor
    -        include Google::Apis::Core::Hashable
    -      
    -        # Optional. The resource name of the monitored resource descriptor:
    -        # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where
    -        # `type` is the value of the `type` field in this object and
    -        # `project_id` is a project ID that provides API-specific context for
    -        # accessing the type.  APIs that do not use project information can use the
    -        # resource name format `"monitoredResourceDescriptors/`type`"`.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # Optional. A concise name for the monitored resource type that might be
    -        # displayed in user interfaces. It should be a Title Cased Noun Phrase,
    -        # without any article or other determiners. For example,
    -        # `"Google Cloud SQL Database"`.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    -      
    -        # Optional. A detailed description of the monitored resource type that might
    -        # be used in documentation.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        # Required. The monitored resource type. For example, the type
    -        # `"cloudsql_database"` represents databases in Google Cloud SQL.
    -        # The maximum length of this value is 256 characters.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # Required. A set of labels used to describe instances of this monitored
    -        # resource type. For example, an individual Google Cloud SQL database is
    -        # identified by values for the labels `"database_id"` and `"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)
    -          @name = args[:name] if args.key?(:name)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -          @description = args[:description] if args.key?(:description)
    -          @type = args[:type] if args.key?(:type)
    -          @labels = args[:labels] if args.key?(:labels)
    -        end
    -      end
    -      
    -      # Defines the Media configuration for a service in case of a download.
    -      # Use this only for Scotty Requests. Do not use this for media support using
    -      # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
    -      # your configuration for Bytestream methods.
    -      class MediaDownload
    -        include Google::Apis::Core::Hashable
    -      
    -        # A boolean that determines if direct download from ESF should be used for
    -        # download of this media.
    -        # Corresponds to the JSON property `useDirectDownload`
    -        # @return [Boolean]
    -        attr_accessor :use_direct_download
    -        alias_method :use_direct_download?, :use_direct_download
    -      
    -        # Whether download is enabled.
    -        # Corresponds to the JSON property `enabled`
    -        # @return [Boolean]
    -        attr_accessor :enabled
    -        alias_method :enabled?, :enabled
    -      
    -        # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
    -        # Specify name of the download service if one is used for download.
    -        # Corresponds to the JSON property `downloadService`
    -        # @return [String]
    -        attr_accessor :download_service
    -      
    -        # A boolean that determines whether a notification for the completion of a
    -        # download should be sent to the backend.
    -        # Corresponds to the JSON property `completeNotification`
    -        # @return [Boolean]
    -        attr_accessor :complete_notification
    -        alias_method :complete_notification?, :complete_notification
    -      
    -        # Optional maximum acceptable size for direct download.
    -        # The size is specified in bytes.
    -        # Corresponds to the JSON property `maxDirectDownloadSize`
    -        # @return [Fixnum]
    -        attr_accessor :max_direct_download_size
    -      
    -        # Name of the Scotty dropzone to use for the current API.
    -        # Corresponds to the JSON property `dropzone`
    -        # @return [String]
    -        attr_accessor :dropzone
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download)
    -          @enabled = args[:enabled] if args.key?(:enabled)
    -          @download_service = args[:download_service] if args.key?(:download_service)
    -          @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
    -          @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size)
    -          @dropzone = args[:dropzone] if args.key?(:dropzone)
    -        end
    -      end
    -      
    -      # Configuration for a custom authentication provider.
    -      class CustomAuthRequirements
    -        include Google::Apis::Core::Hashable
    -      
    -        # A configuration string containing connection information for the
    -        # authentication provider, typically formatted as a SmartService string
    -        # (go/smartservice).
    -        # Corresponds to the JSON property `provider`
    -        # @return [String]
    -        attr_accessor :provider
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @provider = args[:provider] if args.key?(:provider)
    -        end
    -      end
    -      
    -      # Request message for DisableService method.
    -      class DisableServiceRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # Response message for SearchServices method.
    -      class SearchServicesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # Services available publicly or available to the authenticated caller.
    -        # Corresponds to the JSON property `services`
    -        # @return [Array]
    -        attr_accessor :services
    -      
    -        # Token that can be passed to `ListAvailableServices` to resume a paginated
    -        # query.
    -        # 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
    -      
    -      # Defines the Media configuration for a service in case of an upload.
    -      # Use this only for Scotty Requests. Do not use this for media support using
    -      # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
    -      # your configuration for Bytestream methods.
    -      class MediaUpload
    -        include Google::Apis::Core::Hashable
    -      
    -        # A boolean that determines whether a notification for the completion of an
    -        # upload should be sent to the backend. These notifications will not be seen
    -        # by the client and will not consume quota.
    -        # Corresponds to the JSON property `completeNotification`
    -        # @return [Boolean]
    -        attr_accessor :complete_notification
    -        alias_method :complete_notification?, :complete_notification
    -      
    -        # Whether to receive a notification for progress changes of media upload.
    -        # Corresponds to the JSON property `progressNotification`
    -        # @return [Boolean]
    -        attr_accessor :progress_notification
    -        alias_method :progress_notification?, :progress_notification
    -      
    -        # Whether upload is enabled.
    -        # Corresponds to the JSON property `enabled`
    -        # @return [Boolean]
    -        attr_accessor :enabled
    -        alias_method :enabled?, :enabled
    -      
    -        # Name of the Scotty dropzone to use for the current API.
    -        # Corresponds to the JSON property `dropzone`
    -        # @return [String]
    -        attr_accessor :dropzone
    -      
    -        # Whether to receive a notification on the start of media upload.
    -        # Corresponds to the JSON property `startNotification`
    -        # @return [Boolean]
    -        attr_accessor :start_notification
    -        alias_method :start_notification?, :start_notification
    -      
    -        # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
    -        # Specify name of the upload service if one is used for upload.
    -        # Corresponds to the JSON property `uploadService`
    -        # @return [String]
    -        attr_accessor :upload_service
    -      
    -        # An array of mimetype patterns. Esf will only accept uploads that match one
    -        # of the given patterns.
    -        # Corresponds to the JSON property `mimeTypes`
    -        # @return [Array]
    -        attr_accessor :mime_types
    -      
    -        # Optional maximum acceptable size for an upload.
    -        # The size is specified in bytes.
    -        # Corresponds to the JSON property `maxSize`
    -        # @return [Fixnum]
    -        attr_accessor :max_size
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
    -          @progress_notification = args[:progress_notification] if args.key?(:progress_notification)
    -          @enabled = args[:enabled] if args.key?(:enabled)
    -          @dropzone = args[:dropzone] if args.key?(:dropzone)
    -          @start_notification = args[:start_notification] if args.key?(:start_notification)
    -          @upload_service = args[:upload_service] if args.key?(:upload_service)
    -          @mime_types = args[:mime_types] if args.key?(:mime_types)
    -          @max_size = args[:max_size] if args.key?(:max_size)
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/serviceuser_v1/representations.rb b/generated/google/apis/serviceuser_v1/representations.rb
    index 41f5c46b3..fe753193a 100644
    --- a/generated/google/apis/serviceuser_v1/representations.rb
    +++ b/generated/google/apis/serviceuser_v1/representations.rb
    @@ -22,6 +22,84 @@ module Google
       module Apis
         module ServiceuserV1
           
    +      class ListEnabledServicesResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Endpoint
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class OAuthRequirements
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Usage
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Context
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LogDescriptor
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class MonitoredResourceDescriptor
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CustomErrorRule
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CustomAuthRequirements
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class MediaDownload
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DisableServiceRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SearchServicesResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class MediaUpload
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class UsageRule
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -130,13 +208,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class VisibilityRule
    +      class HttpRule
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class HttpRule
    +      class VisibilityRule
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -190,13 +268,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class MethodProp
    +      class QuotaLimit
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class QuotaLimit
    +      class MethodProp
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -238,13 +316,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Field
    +      class Monitoring
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Monitoring
    +      class Field
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -316,124 +394,172 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Endpoint
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      class ListEnabledServicesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :services, as: 'services', class: Google::Apis::ServiceuserV1::PublishedService, decorator: Google::Apis::ServiceuserV1::PublishedService::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
    -      class ListEnabledServicesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +      class Endpoint
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :features, as: 'features'
    +          collection :apis, as: 'apis'
    +          property :allow_cors, as: 'allowCors'
    +          collection :aliases, as: 'aliases'
    +          property :name, as: 'name'
    +          property :target, as: 'target'
    +        end
           end
           
           class OAuthRequirements
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :canonical_scopes, as: 'canonicalScopes'
    +        end
           end
           
           class Usage
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :requirements, as: 'requirements'
    +          property :producer_notification_channel, as: 'producerNotificationChannel'
    +          collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::UsageRule, decorator: Google::Apis::ServiceuserV1::UsageRule::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class Context
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::ContextRule, decorator: Google::Apis::ServiceuserV1::ContextRule::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class LogDescriptor
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CustomErrorRule
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :name, as: 'name'
    +          property :display_name, as: 'displayName'
    +          property :description, as: 'description'
    +        end
           end
           
           class MonitoredResourceDescriptor
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +          property :description, as: 'description'
    +          property :display_name, as: 'displayName'
    +          property :type, as: 'type'
    +          collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
    -      class MediaDownload
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +      class CustomErrorRule
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :is_error_type, as: 'isErrorType'
    +          property :selector, as: 'selector'
    +        end
           end
           
           class CustomAuthRequirements
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :provider, as: 'provider'
    +        end
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +      class MediaDownload
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :complete_notification, as: 'completeNotification'
    +          property :enabled, as: 'enabled'
    +          property :download_service, as: 'downloadService'
    +          property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize'
    +          property :dropzone, as: 'dropzone'
    +          property :use_direct_download, as: 'useDirectDownload'
    +        end
           end
           
           class DisableServiceRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
           end
           
           class SearchServicesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :services, as: 'services', class: Google::Apis::ServiceuserV1::PublishedService, decorator: Google::Apis::ServiceuserV1::PublishedService::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class MediaUpload
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :upload_service, as: 'uploadService'
    +          property :max_size, :numeric_string => true, as: 'maxSize'
    +          collection :mime_types, as: 'mimeTypes'
    +          property :enabled, as: 'enabled'
    +          property :progress_notification, as: 'progressNotification'
    +          property :complete_notification, as: 'completeNotification'
    +          property :dropzone, as: 'dropzone'
    +          property :start_notification, as: 'startNotification'
    +        end
           end
           
           class UsageRule
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :selector, as: 'selector'
               property :allow_unregistered_calls, as: 'allowUnregisteredCalls'
    +          property :selector, as: 'selector'
    +          property :skip_service_control, as: 'skipServiceControl'
             end
           end
           
           class AuthRequirement
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :provider_id, as: 'providerId'
               property :audiences, as: 'audiences'
    +          property :provider_id, as: 'providerId'
             end
           end
           
           class Documentation
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :summary, as: 'summary'
               property :documentation_root_url, as: 'documentationRootUrl'
    +          property :overview, as: 'overview'
               collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::DocumentationRule, decorator: Google::Apis::ServiceuserV1::DocumentationRule::Representation
           
    -          property :overview, as: 'overview'
               collection :pages, as: 'pages', class: Google::Apis::ServiceuserV1::Page, decorator: Google::Apis::ServiceuserV1::Page::Representation
           
    -          property :summary, as: 'summary'
             end
           end
           
           class AuthenticationRule
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :oauth, as: 'oauth', class: Google::Apis::ServiceuserV1::OAuthRequirements, decorator: Google::Apis::ServiceuserV1::OAuthRequirements::Representation
    -      
               property :custom_auth, as: 'customAuth', class: Google::Apis::ServiceuserV1::CustomAuthRequirements, decorator: Google::Apis::ServiceuserV1::CustomAuthRequirements::Representation
           
    +          property :oauth, as: 'oauth', class: Google::Apis::ServiceuserV1::OAuthRequirements, decorator: Google::Apis::ServiceuserV1::OAuthRequirements::Representation
    +      
               collection :requirements, as: 'requirements', class: Google::Apis::ServiceuserV1::AuthRequirement, decorator: Google::Apis::ServiceuserV1::AuthRequirement::Representation
           
    -          property :selector, as: 'selector'
               property :allow_without_credential, as: 'allowWithoutCredential'
    +          property :selector, as: 'selector'
             end
           end
           
    @@ -467,8 +593,8 @@ module Google
           class MetricRule
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :selector, as: 'selector'
               hash :metric_costs, as: 'metricCosts'
    +          property :selector, as: 'selector'
             end
           end
           
    @@ -485,41 +611,41 @@ module Google
           class Operation
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          hash :metadata, as: 'metadata'
    +          property :done, as: 'done'
               hash :response, as: 'response'
               property :name, as: 'name'
               property :error, as: 'error', class: Google::Apis::ServiceuserV1::Status, decorator: Google::Apis::ServiceuserV1::Status::Representation
           
    -          hash :metadata, as: 'metadata'
    -          property :done, as: 'done'
             end
           end
           
           class Page
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
               property :content, as: 'content'
               collection :subpages, as: 'subpages', class: Google::Apis::ServiceuserV1::Page, decorator: Google::Apis::ServiceuserV1::Page::Representation
           
    -          property :name, as: 'name'
             end
           end
           
           class Status
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :details, as: 'details'
               property :code, as: 'code'
               property :message, as: 'message'
    +          collection :details, as: 'details'
             end
           end
           
           class AuthProvider
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :audiences, as: 'audiences'
    -          property :id, as: 'id'
    -          property :issuer, as: 'issuer'
               property :jwks_uri, as: 'jwksUri'
    +          property :audiences, as: 'audiences'
    +          property :issuer, as: 'issuer'
    +          property :id, as: 'id'
             end
           end
           
    @@ -536,6 +662,26 @@ module Google
           class Service
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :logs, as: 'logs', class: Google::Apis::ServiceuserV1::LogDescriptor, decorator: Google::Apis::ServiceuserV1::LogDescriptor::Representation
    +      
    +          collection :apis, as: 'apis', class: Google::Apis::ServiceuserV1::Api, decorator: Google::Apis::ServiceuserV1::Api::Representation
    +      
    +          collection :types, as: 'types', class: Google::Apis::ServiceuserV1::Type, decorator: Google::Apis::ServiceuserV1::Type::Representation
    +      
    +          property :source_info, as: 'sourceInfo', class: Google::Apis::ServiceuserV1::SourceInfo, decorator: Google::Apis::ServiceuserV1::SourceInfo::Representation
    +      
    +          property :http, as: 'http', class: Google::Apis::ServiceuserV1::Http, decorator: Google::Apis::ServiceuserV1::Http::Representation
    +      
    +          property :backend, as: 'backend', class: Google::Apis::ServiceuserV1::Backend, decorator: Google::Apis::ServiceuserV1::Backend::Representation
    +      
    +          property :system_parameters, as: 'systemParameters', class: Google::Apis::ServiceuserV1::SystemParameters, decorator: Google::Apis::ServiceuserV1::SystemParameters::Representation
    +      
    +          property :documentation, as: 'documentation', class: Google::Apis::ServiceuserV1::Documentation, decorator: Google::Apis::ServiceuserV1::Documentation::Representation
    +      
    +          collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceuserV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceuserV1::MonitoredResourceDescriptor::Representation
    +      
    +          property :logging, as: 'logging', class: Google::Apis::ServiceuserV1::Logging, decorator: Google::Apis::ServiceuserV1::Logging::Representation
    +      
               collection :enums, as: 'enums', class: Google::Apis::ServiceuserV1::Enum, decorator: Google::Apis::ServiceuserV1::Enum::Representation
           
               property :context, as: 'context', class: Google::Apis::ServiceuserV1::Context, decorator: Google::Apis::ServiceuserV1::Context::Representation
    @@ -554,9 +700,9 @@ module Google
               property :config_version, as: 'configVersion'
               property :monitoring, as: 'monitoring', class: Google::Apis::ServiceuserV1::Monitoring, decorator: Google::Apis::ServiceuserV1::Monitoring::Representation
           
    -          property :producer_project_id, as: 'producerProjectId'
               collection :system_types, as: 'systemTypes', class: Google::Apis::ServiceuserV1::Type, decorator: Google::Apis::ServiceuserV1::Type::Representation
           
    +          property :producer_project_id, as: 'producerProjectId'
               property :visibility, as: 'visibility', class: Google::Apis::ServiceuserV1::Visibility, decorator: Google::Apis::ServiceuserV1::Visibility::Representation
           
               property :quota, as: 'quota', class: Google::Apis::ServiceuserV1::Quota, decorator: Google::Apis::ServiceuserV1::Quota::Representation
    @@ -567,37 +713,17 @@ module Google
               property :title, as: 'title'
               collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceuserV1::Endpoint, decorator: Google::Apis::ServiceuserV1::Endpoint::Representation
           
    -          collection :apis, as: 'apis', class: Google::Apis::ServiceuserV1::Api, decorator: Google::Apis::ServiceuserV1::Api::Representation
    -      
    -          collection :logs, as: 'logs', class: Google::Apis::ServiceuserV1::LogDescriptor, decorator: Google::Apis::ServiceuserV1::LogDescriptor::Representation
    -      
    -          collection :types, as: 'types', class: Google::Apis::ServiceuserV1::Type, decorator: Google::Apis::ServiceuserV1::Type::Representation
    -      
    -          property :source_info, as: 'sourceInfo', class: Google::Apis::ServiceuserV1::SourceInfo, decorator: Google::Apis::ServiceuserV1::SourceInfo::Representation
    -      
    -          property :http, as: 'http', class: Google::Apis::ServiceuserV1::Http, decorator: Google::Apis::ServiceuserV1::Http::Representation
    -      
    -          property :backend, as: 'backend', class: Google::Apis::ServiceuserV1::Backend, decorator: Google::Apis::ServiceuserV1::Backend::Representation
    -      
    -          property :system_parameters, as: 'systemParameters', class: Google::Apis::ServiceuserV1::SystemParameters, decorator: Google::Apis::ServiceuserV1::SystemParameters::Representation
    -      
    -          property :documentation, as: 'documentation', class: Google::Apis::ServiceuserV1::Documentation, decorator: Google::Apis::ServiceuserV1::Documentation::Representation
    -      
    -          collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceuserV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceuserV1::MonitoredResourceDescriptor::Representation
    -      
    -          property :logging, as: 'logging', class: Google::Apis::ServiceuserV1::Logging, decorator: Google::Apis::ServiceuserV1::Logging::Representation
    -      
             end
           end
           
           class OperationMetadata
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :start_time, as: 'startTime'
    -          collection :resource_names, as: 'resourceNames'
               collection :steps, as: 'steps', class: Google::Apis::ServiceuserV1::Step, decorator: Google::Apis::ServiceuserV1::Step::Representation
           
    +          collection :resource_names, as: 'resourceNames'
               property :progress_percentage, as: 'progressPercentage'
    +          property :start_time, as: 'startTime'
             end
           end
           
    @@ -627,17 +753,10 @@ module Google
             end
           end
           
    -      class VisibilityRule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :restriction, as: 'restriction'
    -          property :selector, as: 'selector'
    -        end
    -      end
    -      
           class HttpRule
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :selector, as: 'selector'
               property :custom, as: 'custom', class: Google::Apis::ServiceuserV1::CustomHttpPattern, decorator: Google::Apis::ServiceuserV1::CustomHttpPattern::Representation
           
               property :get, as: 'get'
    @@ -645,9 +764,9 @@ module Google
               property :put, as: 'put'
               property :delete, as: 'delete'
               property :body, as: 'body'
    -          property :post, as: 'post'
               property :media_download, as: 'mediaDownload', class: Google::Apis::ServiceuserV1::MediaDownload, decorator: Google::Apis::ServiceuserV1::MediaDownload::Representation
           
    +          property :post, as: 'post'
               property :rest_method_name, as: 'restMethodName'
               collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation
           
    @@ -655,6 +774,13 @@ module Google
               property :rest_collection, as: 'restCollection'
               property :media_upload, as: 'mediaUpload', class: Google::Apis::ServiceuserV1::MediaUpload, decorator: Google::Apis::ServiceuserV1::MediaUpload::Representation
           
    +        end
    +      end
    +      
    +      class VisibilityRule
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :restriction, as: 'restriction'
               property :selector, as: 'selector'
             end
           end
    @@ -686,10 +812,10 @@ module Google
           class Quota
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :metric_rules, as: 'metricRules', class: Google::Apis::ServiceuserV1::MetricRule, decorator: Google::Apis::ServiceuserV1::MetricRule::Representation
    -      
               collection :limits, as: 'limits', class: Google::Apis::ServiceuserV1::QuotaLimit, decorator: Google::Apis::ServiceuserV1::QuotaLimit::Representation
           
    +          collection :metric_rules, as: 'metricRules', class: Google::Apis::ServiceuserV1::MetricRule, decorator: Google::Apis::ServiceuserV1::MetricRule::Representation
    +      
             end
           end
           
    @@ -712,48 +838,48 @@ module Google
           class Option
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          hash :value, as: 'value'
               property :name, as: 'name'
    +          hash :value, as: 'value'
             end
           end
           
           class Logging
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation
    -      
               collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation
           
    -        end
    -      end
    +          collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::LoggingDestination, decorator: Google::Apis::ServiceuserV1::LoggingDestination::Representation
           
    -      class MethodProp
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :response_type_url, as: 'responseTypeUrl'
    -          collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation
    -      
    -          property :response_streaming, as: 'responseStreaming'
    -          property :name, as: 'name'
    -          property :request_type_url, as: 'requestTypeUrl'
    -          property :request_streaming, as: 'requestStreaming'
    -          property :syntax, as: 'syntax'
             end
           end
           
           class QuotaLimit
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :free_tier, :numeric_string => true, as: 'freeTier'
    +          property :duration, as: 'duration'
    +          property :default_limit, :numeric_string => true, as: 'defaultLimit'
    +          property :display_name, as: 'displayName'
    +          property :metric, as: 'metric'
    +          property :description, as: 'description'
               hash :values, as: 'values'
               property :unit, as: 'unit'
               property :max_limit, :numeric_string => true, as: 'maxLimit'
               property :name, as: 'name'
    -          property :duration, as: 'duration'
    -          property :free_tier, :numeric_string => true, as: 'freeTier'
    -          property :default_limit, :numeric_string => true, as: 'defaultLimit'
    -          property :metric, as: 'metric'
    -          property :display_name, as: 'displayName'
    -          property :description, as: 'description'
    +        end
    +      end
    +      
    +      class MethodProp
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +          property :request_type_url, as: 'requestTypeUrl'
    +          property :request_streaming, as: 'requestStreaming'
    +          property :syntax, as: 'syntax'
    +          property :response_type_url, as: 'responseTypeUrl'
    +          collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation
    +      
    +          property :response_streaming, as: 'responseStreaming'
             end
           end
           
    @@ -777,9 +903,9 @@ module Google
           class Http
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion'
               collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::HttpRule, decorator: Google::Apis::ServiceuserV1::HttpRule::Representation
           
    +          property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion'
             end
           end
           
    @@ -806,44 +932,44 @@ module Google
             end
           end
           
    +      class Monitoring
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::MonitoringDestination, decorator: Google::Apis::ServiceuserV1::MonitoringDestination::Representation
    +      
    +          collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServiceuserV1::MonitoringDestination, decorator: Google::Apis::ServiceuserV1::MonitoringDestination::Representation
    +      
    +        end
    +      end
    +      
           class Field
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cardinality, as: 'cardinality'
    +          collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation
    +      
    +          property :oneof_index, as: 'oneofIndex'
               property :packed, as: 'packed'
    +          property :cardinality, as: 'cardinality'
               property :default_value, as: 'defaultValue'
               property :name, as: 'name'
               property :type_url, as: 'typeUrl'
               property :number, as: 'number'
               property :json_name, as: 'jsonName'
               property :kind, as: 'kind'
    -          collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation
    -      
    -          property :oneof_index, as: 'oneofIndex'
    -        end
    -      end
    -      
    -      class Monitoring
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServiceuserV1::MonitoringDestination, decorator: Google::Apis::ServiceuserV1::MonitoringDestination::Representation
    -      
    -          collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServiceuserV1::MonitoringDestination, decorator: Google::Apis::ServiceuserV1::MonitoringDestination::Representation
    -      
             end
           end
           
           class Enum
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :name, as: 'name'
    -          collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServiceuserV1::EnumValue, decorator: Google::Apis::ServiceuserV1::EnumValue::Representation
    -      
               collection :options, as: 'options', class: Google::Apis::ServiceuserV1::Option, decorator: Google::Apis::ServiceuserV1::Option::Representation
           
    +          property :syntax, as: 'syntax'
               property :source_context, as: 'sourceContext', class: Google::Apis::ServiceuserV1::SourceContext, decorator: Google::Apis::ServiceuserV1::SourceContext::Representation
           
    -          property :syntax, as: 'syntax'
    +          collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServiceuserV1::EnumValue, decorator: Google::Apis::ServiceuserV1::EnumValue::Representation
    +      
    +          property :name, as: 'name'
             end
           end
           
    @@ -912,24 +1038,24 @@ module Google
           class ContextRule
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :selector, as: 'selector'
               collection :provided, as: 'provided'
               collection :requested, as: 'requested'
    -          property :selector, as: 'selector'
             end
           end
           
           class MetricDescriptor
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :name, as: 'name'
    -          property :type, as: 'type'
    -          property :value_type, as: 'valueType'
               property :metric_kind, as: 'metricKind'
               property :display_name, as: 'displayName'
               property :description, as: 'description'
               property :unit, as: 'unit'
               collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
           
    +          property :name, as: 'name'
    +          property :type, as: 'type'
    +          property :value_type, as: 'valueType'
             end
           end
           
    @@ -939,131 +1065,6 @@ module Google
               property :file_name, as: 'fileName'
             end
           end
    -      
    -      class Endpoint
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :allow_cors, as: 'allowCors'
    -          collection :aliases, as: 'aliases'
    -          property :name, as: 'name'
    -          property :target, as: 'target'
    -          collection :features, as: 'features'
    -          collection :apis, as: 'apis'
    -        end
    -      end
    -      
    -      class ListEnabledServicesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :services, as: 'services', class: Google::Apis::ServiceuserV1::PublishedService, decorator: Google::Apis::ServiceuserV1::PublishedService::Representation
    -      
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    -      end
    -      
    -      class OAuthRequirements
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :canonical_scopes, as: 'canonicalScopes'
    -        end
    -      end
    -      
    -      class Usage
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :producer_notification_channel, as: 'producerNotificationChannel'
    -          collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::UsageRule, decorator: Google::Apis::ServiceuserV1::UsageRule::Representation
    -      
    -          collection :requirements, as: 'requirements'
    -        end
    -      end
    -      
    -      class Context
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::ContextRule, decorator: Google::Apis::ServiceuserV1::ContextRule::Representation
    -      
    -        end
    -      end
    -      
    -      class LogDescriptor
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
    -      
    -          property :name, as: 'name'
    -          property :description, as: 'description'
    -          property :display_name, as: 'displayName'
    -        end
    -      end
    -      
    -      class CustomErrorRule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :selector, as: 'selector'
    -          property :is_error_type, as: 'isErrorType'
    -        end
    -      end
    -      
    -      class MonitoredResourceDescriptor
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :name, as: 'name'
    -          property :display_name, as: 'displayName'
    -          property :description, as: 'description'
    -          property :type, as: 'type'
    -          collection :labels, as: 'labels', class: Google::Apis::ServiceuserV1::LabelDescriptor, decorator: Google::Apis::ServiceuserV1::LabelDescriptor::Representation
    -      
    -        end
    -      end
    -      
    -      class MediaDownload
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :use_direct_download, as: 'useDirectDownload'
    -          property :enabled, as: 'enabled'
    -          property :download_service, as: 'downloadService'
    -          property :complete_notification, as: 'completeNotification'
    -          property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize'
    -          property :dropzone, as: 'dropzone'
    -        end
    -      end
    -      
    -      class CustomAuthRequirements
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :provider, as: 'provider'
    -        end
    -      end
    -      
    -      class DisableServiceRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    -      end
    -      
    -      class SearchServicesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :services, as: 'services', class: Google::Apis::ServiceuserV1::PublishedService, decorator: Google::Apis::ServiceuserV1::PublishedService::Representation
    -      
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    -      end
    -      
    -      class MediaUpload
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :complete_notification, as: 'completeNotification'
    -          property :progress_notification, as: 'progressNotification'
    -          property :enabled, as: 'enabled'
    -          property :dropzone, as: 'dropzone'
    -          property :start_notification, as: 'startNotification'
    -          property :upload_service, as: 'uploadService'
    -          collection :mime_types, as: 'mimeTypes'
    -          property :max_size, :numeric_string => true, as: 'maxSize'
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/serviceuser_v1/service.rb b/generated/google/apis/serviceuser_v1/service.rb
    index 2e09da0e8..91a5483c2 100644
    --- a/generated/google/apis/serviceuser_v1/service.rb
    +++ b/generated/google/apis/serviceuser_v1/service.rb
    @@ -49,81 +49,6 @@ module Google
               @batch_path = 'batch'
             end
             
    -        # Search available services.
    -        # When no filter is specified, returns all accessible services. For
    -        # authenticated users, also returns all services the calling user has
    -        # "servicemanagement.services.bind" permission for.
    -        # @param [String] page_token
    -        #   Token identifying which result to start with; returned by a previous list
    -        #   call.
    -        # @param [Fixnum] page_size
    -        #   Requested size of the next page of data.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    -        # @param [String] quota_user
    -        #   Available to use for quota purposes for server-side applications. Can be any
    -        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [Google::Apis::RequestOptions] options
    -        #   Request-specific options
    -        #
    -        # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::ServiceuserV1::SearchServicesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::ServiceuserV1::SearchServicesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_services(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/services:search', options)
    -          command.response_representation = Google::Apis::ServiceuserV1::SearchServicesResponse::Representation
    -          command.response_class = Google::Apis::ServiceuserV1::SearchServicesResponse
    -          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
    -        
    -        # Enable a service so it can be used with a project.
    -        # See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
    -        # more information.
    -        # Operation
    -        # @param [String] name
    -        #   Name of the consumer and the service to enable for that consumer.
    -        #   A valid path would be:
    -        #   - /v1/projects/my-project/services/servicemanagement.googleapis.com:enable
    -        # @param [Google::Apis::ServiceuserV1::EnableServiceRequest] enable_service_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::ServiceuserV1::Operation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::ServiceuserV1::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 enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+name}:enable', options)
    -          command.request_representation = Google::Apis::ServiceuserV1::EnableServiceRequest::Representation
    -          command.request_object = enable_service_request_object
    -          command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
    -          command.response_class = Google::Apis::ServiceuserV1::Operation
    -          command.params['name'] = name unless name.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
             # List enabled services for the specified consumer.
             # @param [String] parent
             #   List enabled services for the specified parent.
    @@ -202,6 +127,81 @@ module Google
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
    +        
    +        # Enable a service so it can be used with a project.
    +        # See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
    +        # more information.
    +        # Operation
    +        # @param [String] name
    +        #   Name of the consumer and the service to enable for that consumer.
    +        #   A valid path would be:
    +        #   - /v1/projects/my-project/services/servicemanagement.googleapis.com:enable
    +        # @param [Google::Apis::ServiceuserV1::EnableServiceRequest] enable_service_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::ServiceuserV1::Operation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::ServiceuserV1::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 enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+name}:enable', options)
    +          command.request_representation = Google::Apis::ServiceuserV1::EnableServiceRequest::Representation
    +          command.request_object = enable_service_request_object
    +          command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
    +          command.response_class = Google::Apis::ServiceuserV1::Operation
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Search available services.
    +        # When no filter is specified, returns all accessible services. For
    +        # authenticated users, also returns all services the calling user has
    +        # "servicemanagement.services.bind" permission for.
    +        # @param [String] page_token
    +        #   Token identifying which result to start with; returned by a previous list
    +        #   call.
    +        # @param [Fixnum] page_size
    +        #   Requested size of the next page of data.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::ServiceuserV1::SearchServicesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::ServiceuserV1::SearchServicesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_services(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/services:search', options)
    +          command.response_representation = Google::Apis::ServiceuserV1::SearchServicesResponse::Representation
    +          command.response_class = Google::Apis::ServiceuserV1::SearchServicesResponse
    +          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
     
             protected
     
    diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb
    index f1f7fdb5b..3de8dda79 100644
    --- a/generated/google/apis/sheets_v4.rb
    +++ b/generated/google/apis/sheets_v4.rb
    @@ -25,19 +25,19 @@ module Google
         # @see https://developers.google.com/sheets/
         module SheetsV4
           VERSION = 'V4'
    -      REVISION = '20170608'
    +      REVISION = '20170707'
     
           # View and manage Google Drive files and folders that you have opened or created with this app
           AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
     
    -      # View and manage the files in your Google Drive
    -      AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
    +      # View your Google Spreadsheets
    +      AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
     
           # View the files in your Google Drive
           AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
     
    -      # View your Google Spreadsheets
    -      AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
    +      # View and manage the files in your Google Drive
    +      AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
     
           # View and manage your spreadsheets in Google Drive
           AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
    diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb
    index fadbe86ae..15e00d6ba 100644
    --- a/generated/google/apis/sheets_v4/classes.rb
    +++ b/generated/google/apis/sheets_v4/classes.rb
    @@ -22,10 +22,2807 @@ module Google
       module Apis
         module SheetsV4
           
    +      # The result of adding a filter view.
    +      class AddFilterViewResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A filter view.
    +        # Corresponds to the JSON property `filter`
    +        # @return [Google::Apis::SheetsV4::FilterView]
    +        attr_accessor :filter
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @filter = args[:filter] if args.key?(:filter)
    +        end
    +      end
    +      
    +      # Settings to control how circular dependencies are resolved with iterative
    +      # calculation.
    +      class IterativeCalculationSettings
    +        include Google::Apis::Core::Hashable
    +      
    +        # When iterative calculation is enabled and successive results differ by
    +        # less than this threshold value, the calculation rounds stop.
    +        # Corresponds to the JSON property `convergenceThreshold`
    +        # @return [Float]
    +        attr_accessor :convergence_threshold
    +      
    +        # When iterative calculation is enabled, the maximum number of calculation
    +        # rounds to perform.
    +        # Corresponds to the JSON property `maxIterations`
    +        # @return [Fixnum]
    +        attr_accessor :max_iterations
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @convergence_threshold = args[:convergence_threshold] if args.key?(:convergence_threshold)
    +          @max_iterations = args[:max_iterations] if args.key?(:max_iterations)
    +        end
    +      end
    +      
    +      # Properties of a spreadsheet.
    +      class SpreadsheetProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The title of the spreadsheet.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
    +        # The time zone of the spreadsheet, in CLDR format such as
    +        # `America/New_York`. If the time zone isn't recognized, this may
    +        # be a custom time zone such as `GMT-07:00`.
    +        # Corresponds to the JSON property `timeZone`
    +        # @return [String]
    +        attr_accessor :time_zone
    +      
    +        # The locale of the spreadsheet in one of the following formats:
    +        # * an ISO 639-1 language code such as `en`
    +        # * an ISO 639-2 language code such as `fil`, if no 639-1 code exists
    +        # * a combination of the ISO language code and country code, such as `en_US`
    +        # Note: when updating this field, not all locales/languages are supported.
    +        # Corresponds to the JSON property `locale`
    +        # @return [String]
    +        attr_accessor :locale
    +      
    +        # Settings to control how circular dependencies are resolved with iterative
    +        # calculation.
    +        # Corresponds to the JSON property `iterativeCalculationSettings`
    +        # @return [Google::Apis::SheetsV4::IterativeCalculationSettings]
    +        attr_accessor :iterative_calculation_settings
    +      
    +        # The amount of time to wait before volatile functions are recalculated.
    +        # Corresponds to the JSON property `autoRecalc`
    +        # @return [String]
    +        attr_accessor :auto_recalc
    +      
    +        # The format of a cell.
    +        # Corresponds to the JSON property `defaultFormat`
    +        # @return [Google::Apis::SheetsV4::CellFormat]
    +        attr_accessor :default_format
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @title = args[:title] if args.key?(:title)
    +          @time_zone = args[:time_zone] if args.key?(:time_zone)
    +          @locale = args[:locale] if args.key?(:locale)
    +          @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
    +          @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc)
    +          @default_format = args[:default_format] if args.key?(:default_format)
    +        end
    +      end
    +      
    +      # The location an object is overlaid on top of a grid.
    +      class OverlayPosition
    +        include Google::Apis::Core::Hashable
    +      
    +        # The width of the object, in pixels. Defaults to 600.
    +        # Corresponds to the JSON property `widthPixels`
    +        # @return [Fixnum]
    +        attr_accessor :width_pixels
    +      
    +        # The horizontal offset, in pixels, that the object is offset
    +        # from the anchor cell.
    +        # Corresponds to the JSON property `offsetXPixels`
    +        # @return [Fixnum]
    +        attr_accessor :offset_x_pixels
    +      
    +        # A coordinate in a sheet.
    +        # All indexes are zero-based.
    +        # Corresponds to the JSON property `anchorCell`
    +        # @return [Google::Apis::SheetsV4::GridCoordinate]
    +        attr_accessor :anchor_cell
    +      
    +        # The height of the object, in pixels. Defaults to 371.
    +        # Corresponds to the JSON property `heightPixels`
    +        # @return [Fixnum]
    +        attr_accessor :height_pixels
    +      
    +        # The vertical offset, in pixels, that the object is offset
    +        # from the anchor cell.
    +        # Corresponds to the JSON property `offsetYPixels`
    +        # @return [Fixnum]
    +        attr_accessor :offset_y_pixels
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
    +          @offset_x_pixels = args[:offset_x_pixels] if args.key?(:offset_x_pixels)
    +          @anchor_cell = args[:anchor_cell] if args.key?(:anchor_cell)
    +          @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
    +          @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels)
    +        end
    +      end
    +      
    +      # Updates all cells in the range to the values in the given Cell object.
    +      # Only the fields listed in the fields field are updated; others are
    +      # unchanged.
    +      # If writing a cell with a formula, the formula's ranges will automatically
    +      # increment for each field in the range.
    +      # For example, if writing a cell with formula `=A1` into range B2:C4,
    +      # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`,
    +      # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`.
    +      # To keep the formula's ranges static, use the `$` indicator.
    +      # For example, use the formula `=$A$1` to prevent both the row and the
    +      # column from incrementing.
    +      class RepeatCellRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.  At least one field must be specified.
    +        # The root `cell` is implied and should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # Data about a specific cell.
    +        # Corresponds to the JSON property `cell`
    +        # @return [Google::Apis::SheetsV4::CellData]
    +        attr_accessor :cell
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @cell = args[:cell] if args.key?(:cell)
    +          @range = args[:range] if args.key?(:range)
    +        end
    +      end
    +      
    +      # The result of adding a chart to a spreadsheet.
    +      class AddChartResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A chart embedded in a sheet.
    +        # Corresponds to the JSON property `chart`
    +        # @return [Google::Apis::SheetsV4::EmbeddedChart]
    +        attr_accessor :chart
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @chart = args[:chart] if args.key?(:chart)
    +        end
    +      end
    +      
    +      # Inserts rows or columns in a sheet at a particular index.
    +      class InsertDimensionRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range along a single dimension on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open: the start index is inclusive
    +        # and the end index is exclusive.
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::DimensionRange]
    +        attr_accessor :range
    +      
    +        # Whether dimension properties should be extended from the dimensions
    +        # before or after the newly inserted dimensions.
    +        # True to inherit from the dimensions before (in which case the start
    +        # index must be greater than 0), and false to inherit from the dimensions
    +        # after.
    +        # For example, if row index 0 has red background and row index 1
    +        # has a green background, then inserting 2 rows at index 1 can inherit
    +        # either the green or red background.  If `inheritFromBefore` is true,
    +        # the two new rows will be red (because the row before the insertion point
    +        # was red), whereas if `inheritFromBefore` is false, the two new rows will
    +        # be green (because the row after the insertion point was green).
    +        # Corresponds to the JSON property `inheritFromBefore`
    +        # @return [Boolean]
    +        attr_accessor :inherit_from_before
    +        alias_method :inherit_from_before?, :inherit_from_before
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +          @inherit_from_before = args[:inherit_from_before] if args.key?(:inherit_from_before)
    +        end
    +      end
    +      
    +      # Updates properties of a spreadsheet.
    +      class UpdateSpreadsheetPropertiesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.  At least one field must be specified.
    +        # The root 'properties' is implied and should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # Properties of a spreadsheet.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
    +        attr_accessor :properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @properties = args[:properties] if args.key?(:properties)
    +        end
    +      end
    +      
    +      # A protected range.
    +      class ProtectedRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # The editors of a protected range.
    +        # Corresponds to the JSON property `editors`
    +        # @return [Google::Apis::SheetsV4::Editors]
    +        attr_accessor :editors
    +      
    +        # The description of this protected range.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # The list of unprotected ranges within a protected sheet.
    +        # Unprotected ranges are only supported on protected sheets.
    +        # Corresponds to the JSON property `unprotectedRanges`
    +        # @return [Array]
    +        attr_accessor :unprotected_ranges
    +      
    +        # The named range this protected range is backed by, if any.
    +        # When writing, only one of range or named_range_id
    +        # may be set.
    +        # Corresponds to the JSON property `namedRangeId`
    +        # @return [String]
    +        attr_accessor :named_range_id
    +      
    +        # The ID of the protected range.
    +        # This field is read-only.
    +        # Corresponds to the JSON property `protectedRangeId`
    +        # @return [Fixnum]
    +        attr_accessor :protected_range_id
    +      
    +        # True if this protected range will show a warning when editing.
    +        # Warning-based protection means that every user can edit data in the
    +        # protected range, except editing will prompt a warning asking the user
    +        # to confirm the edit.
    +        # When writing: if this field is true, then editors is ignored.
    +        # Additionally, if this field is changed from true to false and the
    +        # `editors` field is not set (nor included in the field mask), then
    +        # the editors will be set to all the editors in the document.
    +        # Corresponds to the JSON property `warningOnly`
    +        # @return [Boolean]
    +        attr_accessor :warning_only
    +        alias_method :warning_only?, :warning_only
    +      
    +        # True if the user who requested this protected range can edit the
    +        # protected area.
    +        # This field is read-only.
    +        # Corresponds to the JSON property `requestingUserCanEdit`
    +        # @return [Boolean]
    +        attr_accessor :requesting_user_can_edit
    +        alias_method :requesting_user_can_edit?, :requesting_user_can_edit
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +          @editors = args[:editors] if args.key?(:editors)
    +          @description = args[:description] if args.key?(:description)
    +          @unprotected_ranges = args[:unprotected_ranges] if args.key?(:unprotected_ranges)
    +          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    +          @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id)
    +          @warning_only = args[:warning_only] if args.key?(:warning_only)
    +          @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit)
    +        end
    +      end
    +      
    +      # The request for updating more than one range of values in a spreadsheet.
    +      class BatchUpdateValuesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Determines how values in the response should be rendered.
    +        # The default render option is ValueRenderOption.FORMATTED_VALUE.
    +        # Corresponds to the JSON property `responseValueRenderOption`
    +        # @return [String]
    +        attr_accessor :response_value_render_option
    +      
    +        # Determines if the update response should include the values
    +        # of the cells that were updated. By default, responses
    +        # do not include the updated values. The `updatedData` field within
    +        # each of the BatchUpdateValuesResponse.responses will contain
    +        # the updated values. If the range to write was larger than than the range
    +        # actually written, the response will include all values in the requested
    +        # range (excluding trailing empty rows and columns).
    +        # Corresponds to the JSON property `includeValuesInResponse`
    +        # @return [Boolean]
    +        attr_accessor :include_values_in_response
    +        alias_method :include_values_in_response?, :include_values_in_response
    +      
    +        # The new values to apply to the spreadsheet.
    +        # Corresponds to the JSON property `data`
    +        # @return [Array]
    +        attr_accessor :data
    +      
    +        # How the input data should be interpreted.
    +        # Corresponds to the JSON property `valueInputOption`
    +        # @return [String]
    +        attr_accessor :value_input_option
    +      
    +        # Determines how dates, times, and durations in the response should be
    +        # rendered. This is ignored if response_value_render_option is
    +        # FORMATTED_VALUE.
    +        # The default dateTime render option is
    +        # DateTimeRenderOption.SERIAL_NUMBER.
    +        # Corresponds to the JSON property `responseDateTimeRenderOption`
    +        # @return [String]
    +        attr_accessor :response_date_time_render_option
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option)
    +          @include_values_in_response = args[:include_values_in_response] if args.key?(:include_values_in_response)
    +          @data = args[:data] if args.key?(:data)
    +          @value_input_option = args[:value_input_option] if args.key?(:value_input_option)
    +          @response_date_time_render_option = args[:response_date_time_render_option] if args.key?(:response_date_time_render_option)
    +        end
    +      end
    +      
    +      # Properties about a dimension.
    +      class DimensionProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The height (if a row) or width (if a column) of the dimension in pixels.
    +        # Corresponds to the JSON property `pixelSize`
    +        # @return [Fixnum]
    +        attr_accessor :pixel_size
    +      
    +        # True if this dimension is explicitly hidden.
    +        # Corresponds to the JSON property `hiddenByUser`
    +        # @return [Boolean]
    +        attr_accessor :hidden_by_user
    +        alias_method :hidden_by_user?, :hidden_by_user
    +      
    +        # True if this dimension is being filtered.
    +        # This field is read-only.
    +        # Corresponds to the JSON property `hiddenByFilter`
    +        # @return [Boolean]
    +        attr_accessor :hidden_by_filter
    +        alias_method :hidden_by_filter?, :hidden_by_filter
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
    +          @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user)
    +          @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter)
    +        end
    +      end
    +      
    +      # A named range.
    +      class NamedRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # The ID of the named range.
    +        # Corresponds to the JSON property `namedRangeId`
    +        # @return [String]
    +        attr_accessor :named_range_id
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # The name of the named range.
    +        # 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)
    +          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    +          @range = args[:range] if args.key?(:range)
    +          @name = args[:name] if args.key?(:name)
    +        end
    +      end
    +      
    +      # A range along a single dimension on a sheet.
    +      # All indexes are zero-based.
    +      # Indexes are half open: the start index is inclusive
    +      # and the end index is exclusive.
    +      # Missing indexes indicate the range is unbounded on that side.
    +      class DimensionRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # The dimension of the span.
    +        # Corresponds to the JSON property `dimension`
    +        # @return [String]
    +        attr_accessor :dimension
    +      
    +        # The end (exclusive) of the span, or not set if unbounded.
    +        # Corresponds to the JSON property `endIndex`
    +        # @return [Fixnum]
    +        attr_accessor :end_index
    +      
    +        # The start (inclusive) of the span, or not set if unbounded.
    +        # Corresponds to the JSON property `startIndex`
    +        # @return [Fixnum]
    +        attr_accessor :start_index
    +      
    +        # The sheet this span is on.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @dimension = args[:dimension] if args.key?(:dimension)
    +          @end_index = args[:end_index] if args.key?(:end_index)
    +          @start_index = args[:start_index] if args.key?(:start_index)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +        end
    +      end
    +      
    +      # Moves data from the source to the destination.
    +      class CutPasteRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A coordinate in a sheet.
    +        # All indexes are zero-based.
    +        # Corresponds to the JSON property `destination`
    +        # @return [Google::Apis::SheetsV4::GridCoordinate]
    +        attr_accessor :destination
    +      
    +        # What kind of data to paste.  All the source data will be cut, regardless
    +        # of what is pasted.
    +        # Corresponds to the JSON property `pasteType`
    +        # @return [String]
    +        attr_accessor :paste_type
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `source`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :source
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @destination = args[:destination] if args.key?(:destination)
    +          @paste_type = args[:paste_type] if args.key?(:paste_type)
    +          @source = args[:source] if args.key?(:source)
    +        end
    +      end
    +      
    +      # The borders of the cell.
    +      class Borders
    +        include Google::Apis::Core::Hashable
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `right`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :right
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `bottom`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :bottom
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `top`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :top
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `left`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :left
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @right = args[:right] if args.key?(:right)
    +          @bottom = args[:bottom] if args.key?(:bottom)
    +          @top = args[:top] if args.key?(:top)
    +          @left = args[:left] if args.key?(:left)
    +        end
    +      end
    +      
    +      # A single series of data in a chart.
    +      # For example, if charting stock prices over time, multiple series may exist,
    +      # one for the "Open Price", "High Price", "Low Price" and "Close Price".
    +      class BasicChartSeries
    +        include Google::Apis::Core::Hashable
    +      
    +        # The minor axis that will specify the range of values for this series.
    +        # For example, if charting stocks over time, the "Volume" series
    +        # may want to be pinned to the right with the prices pinned to the left,
    +        # because the scale of trading volume is different than the scale of
    +        # prices.
    +        # It is an error to specify an axis that isn't a valid minor axis
    +        # for the chart's type.
    +        # Corresponds to the JSON property `targetAxis`
    +        # @return [String]
    +        attr_accessor :target_axis
    +      
    +        # The type of this series. Valid only if the
    +        # chartType is
    +        # COMBO.
    +        # Different types will change the way the series is visualized.
    +        # Only LINE, AREA,
    +        # and COLUMN are supported.
    +        # Corresponds to the JSON property `type`
    +        # @return [String]
    +        attr_accessor :type
    +      
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `series`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :series
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @target_axis = args[:target_axis] if args.key?(:target_axis)
    +          @type = args[:type] if args.key?(:type)
    +          @series = args[:series] if args.key?(:series)
    +        end
    +      end
    +      
    +      # Automatically resizes one or more dimensions based on the contents
    +      # of the cells in that dimension.
    +      class AutoResizeDimensionsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range along a single dimension on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open: the start index is inclusive
    +        # and the end index is exclusive.
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # Corresponds to the JSON property `dimensions`
    +        # @return [Google::Apis::SheetsV4::DimensionRange]
    +        attr_accessor :dimensions
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @dimensions = args[:dimensions] if args.key?(:dimensions)
    +        end
    +      end
    +      
    +      # Updates the borders of a range.
    +      # If a field is not set in the request, that means the border remains as-is.
    +      # For example, with two subsequent UpdateBordersRequest:
    +      # 1. range: A1:A5 `` top: RED, bottom: WHITE ``
    +      # 2. range: A1:A5 `` left: BLUE ``
    +      # That would result in A1:A5 having a borders of
    +      # `` top: RED, bottom: WHITE, left: BLUE ``.
    +      # If you want to clear a border, explicitly set the style to
    +      # NONE.
    +      class UpdateBordersRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `innerVertical`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :inner_vertical
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `right`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :right
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `innerHorizontal`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :inner_horizontal
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `top`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :top
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `left`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :left
    +      
    +        # A border along a cell.
    +        # Corresponds to the JSON property `bottom`
    +        # @return [Google::Apis::SheetsV4::Border]
    +        attr_accessor :bottom
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @inner_vertical = args[:inner_vertical] if args.key?(:inner_vertical)
    +          @right = args[:right] if args.key?(:right)
    +          @range = args[:range] if args.key?(:range)
    +          @inner_horizontal = args[:inner_horizontal] if args.key?(:inner_horizontal)
    +          @top = args[:top] if args.key?(:top)
    +          @left = args[:left] if args.key?(:left)
    +          @bottom = args[:bottom] if args.key?(:bottom)
    +        end
    +      end
    +      
    +      # The format of a cell.
    +      class CellFormat
    +        include Google::Apis::Core::Hashable
    +      
    +        # The number format of a cell.
    +        # Corresponds to the JSON property `numberFormat`
    +        # @return [Google::Apis::SheetsV4::NumberFormat]
    +        attr_accessor :number_format
    +      
    +        # How a hyperlink, if it exists, should be displayed in the cell.
    +        # Corresponds to the JSON property `hyperlinkDisplayType`
    +        # @return [String]
    +        attr_accessor :hyperlink_display_type
    +      
    +        # The horizontal alignment of the value in the cell.
    +        # Corresponds to the JSON property `horizontalAlignment`
    +        # @return [String]
    +        attr_accessor :horizontal_alignment
    +      
    +        # The format of a run of text in a cell.
    +        # Absent values indicate that the field isn't specified.
    +        # Corresponds to the JSON property `textFormat`
    +        # @return [Google::Apis::SheetsV4::TextFormat]
    +        attr_accessor :text_format
    +      
    +        # Represents a color in the RGBA color space. This representation is designed
    +        # for simplicity of conversion to/from color representations in various
    +        # languages over compactness; for example, the fields of this representation
    +        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    +        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    +        # method in iOS; and, with just a little work, it can be easily formatted into
    +        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    +        # Example (Java):
    +        # import com.google.type.Color;
    +        # // ...
    +        # public static java.awt.Color fromProto(Color protocolor) `
    +        # float alpha = protocolor.hasAlpha()
    +        # ? protocolor.getAlpha().getValue()
    +        # : 1.0;
    +        # return new java.awt.Color(
    +        # protocolor.getRed(),
    +        # protocolor.getGreen(),
    +        # protocolor.getBlue(),
    +        # alpha);
    +        # `
    +        # public static Color toProto(java.awt.Color color) `
    +        # float red = (float) color.getRed();
    +        # float green = (float) color.getGreen();
    +        # float blue = (float) color.getBlue();
    +        # float denominator = 255.0;
    +        # Color.Builder resultBuilder =
    +        # Color
    +        # .newBuilder()
    +        # .setRed(red / denominator)
    +        # .setGreen(green / denominator)
    +        # .setBlue(blue / denominator);
    +        # int alpha = color.getAlpha();
    +        # if (alpha != 255) `
    +        # result.setAlpha(
    +        # FloatValue
    +        # .newBuilder()
    +        # .setValue(((float) alpha) / denominator)
    +        # .build());
    +        # `
    +        # return resultBuilder.build();
    +        # `
    +        # // ...
    +        # Example (iOS / Obj-C):
    +        # // ...
    +        # static UIColor* fromProto(Color* protocolor) `
    +        # float red = [protocolor red];
    +        # float green = [protocolor green];
    +        # float blue = [protocolor blue];
    +        # FloatValue* alpha_wrapper = [protocolor alpha];
    +        # float alpha = 1.0;
    +        # if (alpha_wrapper != nil) `
    +        # alpha = [alpha_wrapper value];
    +        # `
    +        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    +        # `
    +        # static Color* toProto(UIColor* color) `
    +        # CGFloat red, green, blue, alpha;
    +        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    +        # return nil;
    +        # `
    +        # Color* result = [Color alloc] init];
    +        # [result setRed:red];
    +        # [result setGreen:green];
    +        # [result setBlue:blue];
    +        # if (alpha <= 0.9999) `
    +        # [result setAlpha:floatWrapperWithValue(alpha)];
    +        # `
    +        # [result autorelease];
    +        # return result;
    +        # `
    +        # // ...
    +        # Example (JavaScript):
    +        # // ...
    +        # var protoToCssColor = function(rgb_color) `
    +        # var redFrac = rgb_color.red || 0.0;
    +        # var greenFrac = rgb_color.green || 0.0;
    +        # var blueFrac = rgb_color.blue || 0.0;
    +        # var red = Math.floor(redFrac * 255);
    +        # var green = Math.floor(greenFrac * 255);
    +        # var blue = Math.floor(blueFrac * 255);
    +        # if (!('alpha' in rgb_color)) `
    +        # return rgbToCssColor_(red, green, blue);
    +        # `
    +        # var alphaFrac = rgb_color.alpha.value || 0.0;
    +        # var rgbParams = [red, green, blue].join(',');
    +        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    +        # `;
    +        # var rgbToCssColor_ = function(red, green, blue) `
    +        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    +        # var hexString = rgbNumber.toString(16);
    +        # var missingZeros = 6 - hexString.length;
    +        # var resultBuilder = ['#'];
    +        # for (var i = 0; i < missingZeros; i++) `
    +        # resultBuilder.push('0');
    +        # `
    +        # resultBuilder.push(hexString);
    +        # return resultBuilder.join('');
    +        # `;
    +        # // ...
    +        # Corresponds to the JSON property `backgroundColor`
    +        # @return [Google::Apis::SheetsV4::Color]
    +        attr_accessor :background_color
    +      
    +        # The vertical alignment of the value in the cell.
    +        # Corresponds to the JSON property `verticalAlignment`
    +        # @return [String]
    +        attr_accessor :vertical_alignment
    +      
    +        # The amount of padding around the cell, in pixels.
    +        # When updating padding, every field must be specified.
    +        # Corresponds to the JSON property `padding`
    +        # @return [Google::Apis::SheetsV4::Padding]
    +        attr_accessor :padding
    +      
    +        # The direction of the text in the cell.
    +        # Corresponds to the JSON property `textDirection`
    +        # @return [String]
    +        attr_accessor :text_direction
    +      
    +        # The borders of the cell.
    +        # Corresponds to the JSON property `borders`
    +        # @return [Google::Apis::SheetsV4::Borders]
    +        attr_accessor :borders
    +      
    +        # The rotation applied to text in a cell.
    +        # Corresponds to the JSON property `textRotation`
    +        # @return [Google::Apis::SheetsV4::TextRotation]
    +        attr_accessor :text_rotation
    +      
    +        # The wrap strategy for the value in the cell.
    +        # Corresponds to the JSON property `wrapStrategy`
    +        # @return [String]
    +        attr_accessor :wrap_strategy
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @number_format = args[:number_format] if args.key?(:number_format)
    +          @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type)
    +          @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
    +          @text_format = args[:text_format] if args.key?(:text_format)
    +          @background_color = args[:background_color] if args.key?(:background_color)
    +          @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
    +          @padding = args[:padding] if args.key?(:padding)
    +          @text_direction = args[:text_direction] if args.key?(:text_direction)
    +          @borders = args[:borders] if args.key?(:borders)
    +          @text_rotation = args[:text_rotation] if args.key?(:text_rotation)
    +          @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy)
    +        end
    +      end
    +      
    +      # The response when clearing a range of values in a spreadsheet.
    +      class ClearValuesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The spreadsheet the updates were applied to.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The range (in A1 notation) that was cleared.
    +        # (If the request was for an unbounded range or a ranger larger
    +        # than the bounds of the sheet, this will be the actual range
    +        # that was cleared, bounded to the sheet's limits.)
    +        # Corresponds to the JSON property `clearedRange`
    +        # @return [String]
    +        attr_accessor :cleared_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    +          @cleared_range = args[:cleared_range] if args.key?(:cleared_range)
    +        end
    +      end
    +      
    +      # Deletes a conditional format rule at the given index.
    +      # All subsequent rules' indexes are decremented.
    +      class DeleteConditionalFormatRuleRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The zero-based index of the rule to be deleted.
    +        # Corresponds to the JSON property `index`
    +        # @return [Fixnum]
    +        attr_accessor :index
    +      
    +        # The sheet the rule is being deleted from.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @index = args[:index] if args.key?(:index)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +        end
    +      end
    +      
    +      # Removes the named range with the given ID from the spreadsheet.
    +      class DeleteNamedRangeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The ID of the named range to delete.
    +        # Corresponds to the JSON property `namedRangeId`
    +        # @return [String]
    +        attr_accessor :named_range_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    +        end
    +      end
    +      
    +      # The result of adding a banded range.
    +      class AddBandingResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A banded (alternating colors) range in a sheet.
    +        # Corresponds to the JSON property `bandedRange`
    +        # @return [Google::Apis::SheetsV4::BandedRange]
    +        attr_accessor :banded_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @banded_range = args[:banded_range] if args.key?(:banded_range)
    +        end
    +      end
    +      
    +      # The data included in a domain or series.
    +      class ChartData
    +        include Google::Apis::Core::Hashable
    +      
    +        # Source ranges for a chart.
    +        # Corresponds to the JSON property `sourceRange`
    +        # @return [Google::Apis::SheetsV4::ChartSourceRange]
    +        attr_accessor :source_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @source_range = args[:source_range] if args.key?(:source_range)
    +        end
    +      end
    +      
    +      # The response when retrieving more than one range of values in a spreadsheet.
    +      class BatchGetValuesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The ID of the spreadsheet the data was retrieved from.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The requested values. The order of the ValueRanges is the same as the
    +        # order of the requested ranges.
    +        # Corresponds to the JSON property `valueRanges`
    +        # @return [Array]
    +        attr_accessor :value_ranges
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    +          @value_ranges = args[:value_ranges] if args.key?(:value_ranges)
    +        end
    +      end
    +      
    +      # Updates properties of the supplied banded range.
    +      class UpdateBandingRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.  At least one field must be specified.
    +        # The root `bandedRange` is implied and should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # A banded (alternating colors) range in a sheet.
    +        # Corresponds to the JSON property `bandedRange`
    +        # @return [Google::Apis::SheetsV4::BandedRange]
    +        attr_accessor :banded_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @banded_range = args[:banded_range] if args.key?(:banded_range)
    +        end
    +      end
    +      
    +      # Represents a color in the RGBA color space. This representation is designed
    +      # for simplicity of conversion to/from color representations in various
    +      # languages over compactness; for example, the fields of this representation
    +      # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    +      # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    +      # method in iOS; and, with just a little work, it can be easily formatted into
    +      # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    +      # Example (Java):
    +      # import com.google.type.Color;
    +      # // ...
    +      # public static java.awt.Color fromProto(Color protocolor) `
    +      # float alpha = protocolor.hasAlpha()
    +      # ? protocolor.getAlpha().getValue()
    +      # : 1.0;
    +      # return new java.awt.Color(
    +      # protocolor.getRed(),
    +      # protocolor.getGreen(),
    +      # protocolor.getBlue(),
    +      # alpha);
    +      # `
    +      # public static Color toProto(java.awt.Color color) `
    +      # float red = (float) color.getRed();
    +      # float green = (float) color.getGreen();
    +      # float blue = (float) color.getBlue();
    +      # float denominator = 255.0;
    +      # Color.Builder resultBuilder =
    +      # Color
    +      # .newBuilder()
    +      # .setRed(red / denominator)
    +      # .setGreen(green / denominator)
    +      # .setBlue(blue / denominator);
    +      # int alpha = color.getAlpha();
    +      # if (alpha != 255) `
    +      # result.setAlpha(
    +      # FloatValue
    +      # .newBuilder()
    +      # .setValue(((float) alpha) / denominator)
    +      # .build());
    +      # `
    +      # return resultBuilder.build();
    +      # `
    +      # // ...
    +      # Example (iOS / Obj-C):
    +      # // ...
    +      # static UIColor* fromProto(Color* protocolor) `
    +      # float red = [protocolor red];
    +      # float green = [protocolor green];
    +      # float blue = [protocolor blue];
    +      # FloatValue* alpha_wrapper = [protocolor alpha];
    +      # float alpha = 1.0;
    +      # if (alpha_wrapper != nil) `
    +      # alpha = [alpha_wrapper value];
    +      # `
    +      # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    +      # `
    +      # static Color* toProto(UIColor* color) `
    +      # CGFloat red, green, blue, alpha;
    +      # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    +      # return nil;
    +      # `
    +      # Color* result = [Color alloc] init];
    +      # [result setRed:red];
    +      # [result setGreen:green];
    +      # [result setBlue:blue];
    +      # if (alpha <= 0.9999) `
    +      # [result setAlpha:floatWrapperWithValue(alpha)];
    +      # `
    +      # [result autorelease];
    +      # return result;
    +      # `
    +      # // ...
    +      # Example (JavaScript):
    +      # // ...
    +      # var protoToCssColor = function(rgb_color) `
    +      # var redFrac = rgb_color.red || 0.0;
    +      # var greenFrac = rgb_color.green || 0.0;
    +      # var blueFrac = rgb_color.blue || 0.0;
    +      # var red = Math.floor(redFrac * 255);
    +      # var green = Math.floor(greenFrac * 255);
    +      # var blue = Math.floor(blueFrac * 255);
    +      # if (!('alpha' in rgb_color)) `
    +      # return rgbToCssColor_(red, green, blue);
    +      # `
    +      # var alphaFrac = rgb_color.alpha.value || 0.0;
    +      # var rgbParams = [red, green, blue].join(',');
    +      # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    +      # `;
    +      # var rgbToCssColor_ = function(red, green, blue) `
    +      # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    +      # var hexString = rgbNumber.toString(16);
    +      # var missingZeros = 6 - hexString.length;
    +      # var resultBuilder = ['#'];
    +      # for (var i = 0; i < missingZeros; i++) `
    +      # resultBuilder.push('0');
    +      # `
    +      # resultBuilder.push(hexString);
    +      # return resultBuilder.join('');
    +      # `;
    +      # // ...
    +      class Color
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fraction of this color that should be applied to the pixel. That is,
    +        # the final pixel color is defined by the equation:
    +        # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
    +        # This means that a value of 1.0 corresponds to a solid color, whereas
    +        # a value of 0.0 corresponds to a completely transparent color. This
    +        # uses a wrapper message rather than a simple float scalar so that it is
    +        # possible to distinguish between a default value and the value being unset.
    +        # If omitted, this color object is to be rendered as a solid color
    +        # (as if the alpha value had been explicitly given with a value of 1.0).
    +        # Corresponds to the JSON property `alpha`
    +        # @return [Float]
    +        attr_accessor :alpha
    +      
    +        # The amount of blue in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `blue`
    +        # @return [Float]
    +        attr_accessor :blue
    +      
    +        # The amount of green in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `green`
    +        # @return [Float]
    +        attr_accessor :green
    +      
    +        # The amount of red in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `red`
    +        # @return [Float]
    +        attr_accessor :red
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @alpha = args[:alpha] if args.key?(:alpha)
    +          @blue = args[:blue] if args.key?(:blue)
    +          @green = args[:green] if args.key?(:green)
    +          @red = args[:red] if args.key?(:red)
    +        end
    +      end
    +      
    +      # A single grouping (either row or column) in a pivot table.
    +      class PivotGroup
    +        include Google::Apis::Core::Hashable
    +      
    +        # Information about which values in a pivot group should be used for sorting.
    +        # Corresponds to the JSON property `valueBucket`
    +        # @return [Google::Apis::SheetsV4::PivotGroupSortValueBucket]
    +        attr_accessor :value_bucket
    +      
    +        # Metadata about values in the grouping.
    +        # Corresponds to the JSON property `valueMetadata`
    +        # @return [Array]
    +        attr_accessor :value_metadata
    +      
    +        # True if the pivot table should include the totals for this grouping.
    +        # Corresponds to the JSON property `showTotals`
    +        # @return [Boolean]
    +        attr_accessor :show_totals
    +        alias_method :show_totals?, :show_totals
    +      
    +        # The column offset of the source range that this grouping is based on.
    +        # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`
    +        # means this group refers to column `C`, whereas the offset `1` would refer
    +        # to column `D`.
    +        # Corresponds to the JSON property `sourceColumnOffset`
    +        # @return [Fixnum]
    +        attr_accessor :source_column_offset
    +      
    +        # The order the values in this group should be sorted.
    +        # Corresponds to the JSON property `sortOrder`
    +        # @return [String]
    +        attr_accessor :sort_order
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @value_bucket = args[:value_bucket] if args.key?(:value_bucket)
    +          @value_metadata = args[:value_metadata] if args.key?(:value_metadata)
    +          @show_totals = args[:show_totals] if args.key?(:show_totals)
    +          @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
    +          @sort_order = args[:sort_order] if args.key?(:sort_order)
    +        end
    +      end
    +      
    +      # A pivot table.
    +      class PivotTable
    +        include Google::Apis::Core::Hashable
    +      
    +        # An optional mapping of filters per source column offset.
    +        # The filters will be applied before aggregating data into the pivot table.
    +        # The map's key is the column offset of the source range that you want to
    +        # filter, and the value is the criteria for that column.
    +        # For example, if the source was `C10:E15`, a key of `0` will have the filter
    +        # for column `C`, whereas the key `1` is for column `D`.
    +        # Corresponds to the JSON property `criteria`
    +        # @return [Hash]
    +        attr_accessor :criteria
    +      
    +        # Each row grouping in the pivot table.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Array]
    +        attr_accessor :rows
    +      
    +        # Whether values should be listed horizontally (as columns)
    +        # or vertically (as rows).
    +        # Corresponds to the JSON property `valueLayout`
    +        # @return [String]
    +        attr_accessor :value_layout
    +      
    +        # Each column grouping in the pivot table.
    +        # Corresponds to the JSON property `columns`
    +        # @return [Array]
    +        attr_accessor :columns
    +      
    +        # A list of values to include in the pivot table.
    +        # Corresponds to the JSON property `values`
    +        # @return [Array]
    +        attr_accessor :values
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `source`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :source
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @criteria = args[:criteria] if args.key?(:criteria)
    +          @rows = args[:rows] if args.key?(:rows)
    +          @value_layout = args[:value_layout] if args.key?(:value_layout)
    +          @columns = args[:columns] if args.key?(:columns)
    +          @values = args[:values] if args.key?(:values)
    +          @source = args[:source] if args.key?(:source)
    +        end
    +      end
    +      
    +      # Source ranges for a chart.
    +      class ChartSourceRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # The ranges of data for a series or domain.
    +        # Exactly one dimension must have a length of 1,
    +        # and all sources in the list must have the same dimension
    +        # with length 1.
    +        # The domain (if it exists) & all series must have the same number
    +        # of source ranges. If using more than one source range, then the source
    +        # range at a given offset must be contiguous across the domain and series.
    +        # For example, these are valid configurations:
    +        # domain sources: A1:A5
    +        # series1 sources: B1:B5
    +        # series2 sources: D6:D10
    +        # domain sources: A1:A5, C10:C12
    +        # series1 sources: B1:B5, D10:D12
    +        # series2 sources: C1:C5, E10:E12
    +        # Corresponds to the JSON property `sources`
    +        # @return [Array]
    +        attr_accessor :sources
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @sources = args[:sources] if args.key?(:sources)
    +        end
    +      end
    +      
    +      # Data within a range of the spreadsheet.
    +      class ValueRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # The range the values cover, in A1 notation.
    +        # For output, this range indicates the entire requested range,
    +        # even though the values will exclude trailing rows and columns.
    +        # When appending values, this field represents the range to search for a
    +        # table, after which values will be appended.
    +        # Corresponds to the JSON property `range`
    +        # @return [String]
    +        attr_accessor :range
    +      
    +        # The data that was read or to be written.  This is an array of arrays,
    +        # the outer array representing all the data and each inner array
    +        # representing a major dimension. Each item in the inner array
    +        # corresponds with one cell.
    +        # For output, empty trailing rows and columns will not be included.
    +        # For input, supported value types are: bool, string, and double.
    +        # Null values will be skipped.
    +        # To set a cell to an empty value, set the string value to an empty string.
    +        # Corresponds to the JSON property `values`
    +        # @return [Array>]
    +        attr_accessor :values
    +      
    +        # The major dimension of the values.
    +        # For output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
    +        # then requesting `range=A1:B2,majorDimension=ROWS` will return
    +        # `[[1,2],[3,4]]`,
    +        # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
    +        # `[[1,3],[2,4]]`.
    +        # For input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]`
    +        # will set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS`
    +        # then `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`.
    +        # When writing, if this field is not set, it defaults to ROWS.
    +        # Corresponds to the JSON property `majorDimension`
    +        # @return [String]
    +        attr_accessor :major_dimension
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +          @values = args[:values] if args.key?(:values)
    +          @major_dimension = args[:major_dimension] if args.key?(:major_dimension)
    +        end
    +      end
    +      
    +      # Adds new cells after the last row with data in a sheet,
    +      # inserting new rows into the sheet if necessary.
    +      class AppendCellsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields of CellData that should be updated.
    +        # At least one field must be specified.
    +        # The root is the CellData; 'row.values.' should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # The data to append.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Array]
    +        attr_accessor :rows
    +      
    +        # The sheet ID to append the data to.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @rows = args[:rows] if args.key?(:rows)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +        end
    +      end
    +      
    +      # Adds a new banded range to the spreadsheet.
    +      class AddBandingRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A banded (alternating colors) range in a sheet.
    +        # Corresponds to the JSON property `bandedRange`
    +        # @return [Google::Apis::SheetsV4::BandedRange]
    +        attr_accessor :banded_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @banded_range = args[:banded_range] if args.key?(:banded_range)
    +        end
    +      end
    +      
    +      # A single response from an update.
    +      class Response
    +        include Google::Apis::Core::Hashable
    +      
    +        # The result of adding a filter view.
    +        # Corresponds to the JSON property `addFilterView`
    +        # @return [Google::Apis::SheetsV4::AddFilterViewResponse]
    +        attr_accessor :add_filter_view
    +      
    +        # The result of adding a banded range.
    +        # Corresponds to the JSON property `addBanding`
    +        # @return [Google::Apis::SheetsV4::AddBandingResponse]
    +        attr_accessor :add_banding
    +      
    +        # The result of adding a new protected range.
    +        # Corresponds to the JSON property `addProtectedRange`
    +        # @return [Google::Apis::SheetsV4::AddProtectedRangeResponse]
    +        attr_accessor :add_protected_range
    +      
    +        # The result of duplicating a sheet.
    +        # Corresponds to the JSON property `duplicateSheet`
    +        # @return [Google::Apis::SheetsV4::DuplicateSheetResponse]
    +        attr_accessor :duplicate_sheet
    +      
    +        # The result of updating an embedded object's position.
    +        # Corresponds to the JSON property `updateEmbeddedObjectPosition`
    +        # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse]
    +        attr_accessor :update_embedded_object_position
    +      
    +        # The result of deleting a conditional format rule.
    +        # Corresponds to the JSON property `deleteConditionalFormatRule`
    +        # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse]
    +        attr_accessor :delete_conditional_format_rule
    +      
    +        # The result of a filter view being duplicated.
    +        # Corresponds to the JSON property `duplicateFilterView`
    +        # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse]
    +        attr_accessor :duplicate_filter_view
    +      
    +        # The result of adding a chart to a spreadsheet.
    +        # Corresponds to the JSON property `addChart`
    +        # @return [Google::Apis::SheetsV4::AddChartResponse]
    +        attr_accessor :add_chart
    +      
    +        # The result of the find/replace.
    +        # Corresponds to the JSON property `findReplace`
    +        # @return [Google::Apis::SheetsV4::FindReplaceResponse]
    +        attr_accessor :find_replace
    +      
    +        # The result of adding a sheet.
    +        # Corresponds to the JSON property `addSheet`
    +        # @return [Google::Apis::SheetsV4::AddSheetResponse]
    +        attr_accessor :add_sheet
    +      
    +        # The result of updating a conditional format rule.
    +        # Corresponds to the JSON property `updateConditionalFormatRule`
    +        # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse]
    +        attr_accessor :update_conditional_format_rule
    +      
    +        # The result of adding a named range.
    +        # Corresponds to the JSON property `addNamedRange`
    +        # @return [Google::Apis::SheetsV4::AddNamedRangeResponse]
    +        attr_accessor :add_named_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
    +          @add_banding = args[:add_banding] if args.key?(:add_banding)
    +          @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
    +          @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
    +          @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
    +          @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
    +          @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
    +          @add_chart = args[:add_chart] if args.key?(:add_chart)
    +          @find_replace = args[:find_replace] if args.key?(:find_replace)
    +          @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
    +          @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
    +          @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
    +        end
    +      end
    +      
    +      # Inserts cells into a range, shifting the existing cells over or down.
    +      class InsertRangeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The dimension which will be shifted when inserting cells.
    +        # If ROWS, existing cells will be shifted down.
    +        # If COLUMNS, existing cells will be shifted right.
    +        # Corresponds to the JSON property `shiftDimension`
    +        # @return [String]
    +        attr_accessor :shift_dimension
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @shift_dimension = args[:shift_dimension] if args.key?(:shift_dimension)
    +          @range = args[:range] if args.key?(:range)
    +        end
    +      end
    +      
    +      # A run of a text format. The format of this run continues until the start
    +      # index of the next run.
    +      # When updating, all fields must be set.
    +      class TextFormatRun
    +        include Google::Apis::Core::Hashable
    +      
    +        # The format of a run of text in a cell.
    +        # Absent values indicate that the field isn't specified.
    +        # Corresponds to the JSON property `format`
    +        # @return [Google::Apis::SheetsV4::TextFormat]
    +        attr_accessor :format
    +      
    +        # The character index where this run starts.
    +        # Corresponds to the JSON property `startIndex`
    +        # @return [Fixnum]
    +        attr_accessor :start_index
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @format = args[:format] if args.key?(:format)
    +          @start_index = args[:start_index] if args.key?(:start_index)
    +        end
    +      end
    +      
    +      # A chart embedded in a sheet.
    +      class EmbeddedChart
    +        include Google::Apis::Core::Hashable
    +      
    +        # The specifications of a chart.
    +        # Corresponds to the JSON property `spec`
    +        # @return [Google::Apis::SheetsV4::ChartSpec]
    +        attr_accessor :spec
    +      
    +        # The ID of the chart.
    +        # Corresponds to the JSON property `chartId`
    +        # @return [Fixnum]
    +        attr_accessor :chart_id
    +      
    +        # The position of an embedded object such as a chart.
    +        # Corresponds to the JSON property `position`
    +        # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
    +        attr_accessor :position
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @spec = args[:spec] if args.key?(:spec)
    +          @chart_id = args[:chart_id] if args.key?(:chart_id)
    +          @position = args[:position] if args.key?(:position)
    +        end
    +      end
    +      
    +      # The result of adding a named range.
    +      class AddNamedRangeResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A named range.
    +        # Corresponds to the JSON property `namedRange`
    +        # @return [Google::Apis::SheetsV4::NamedRange]
    +        attr_accessor :named_range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @named_range = args[:named_range] if args.key?(:named_range)
    +        end
    +      end
    +      
    +      # Data about each cell in a row.
    +      class RowData
    +        include Google::Apis::Core::Hashable
    +      
    +        # The values in the row, one per column.
    +        # Corresponds to the JSON property `values`
    +        # @return [Array]
    +        attr_accessor :values
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @values = args[:values] if args.key?(:values)
    +        end
    +      end
    +      
    +      # A border along a cell.
    +      class Border
    +        include Google::Apis::Core::Hashable
    +      
    +        # The width of the border, in pixels.
    +        # Deprecated; the width is determined by the "style" field.
    +        # Corresponds to the JSON property `width`
    +        # @return [Fixnum]
    +        attr_accessor :width
    +      
    +        # The style of the border.
    +        # Corresponds to the JSON property `style`
    +        # @return [String]
    +        attr_accessor :style
    +      
    +        # Represents a color in the RGBA color space. This representation is designed
    +        # for simplicity of conversion to/from color representations in various
    +        # languages over compactness; for example, the fields of this representation
    +        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    +        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    +        # method in iOS; and, with just a little work, it can be easily formatted into
    +        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    +        # Example (Java):
    +        # import com.google.type.Color;
    +        # // ...
    +        # public static java.awt.Color fromProto(Color protocolor) `
    +        # float alpha = protocolor.hasAlpha()
    +        # ? protocolor.getAlpha().getValue()
    +        # : 1.0;
    +        # return new java.awt.Color(
    +        # protocolor.getRed(),
    +        # protocolor.getGreen(),
    +        # protocolor.getBlue(),
    +        # alpha);
    +        # `
    +        # public static Color toProto(java.awt.Color color) `
    +        # float red = (float) color.getRed();
    +        # float green = (float) color.getGreen();
    +        # float blue = (float) color.getBlue();
    +        # float denominator = 255.0;
    +        # Color.Builder resultBuilder =
    +        # Color
    +        # .newBuilder()
    +        # .setRed(red / denominator)
    +        # .setGreen(green / denominator)
    +        # .setBlue(blue / denominator);
    +        # int alpha = color.getAlpha();
    +        # if (alpha != 255) `
    +        # result.setAlpha(
    +        # FloatValue
    +        # .newBuilder()
    +        # .setValue(((float) alpha) / denominator)
    +        # .build());
    +        # `
    +        # return resultBuilder.build();
    +        # `
    +        # // ...
    +        # Example (iOS / Obj-C):
    +        # // ...
    +        # static UIColor* fromProto(Color* protocolor) `
    +        # float red = [protocolor red];
    +        # float green = [protocolor green];
    +        # float blue = [protocolor blue];
    +        # FloatValue* alpha_wrapper = [protocolor alpha];
    +        # float alpha = 1.0;
    +        # if (alpha_wrapper != nil) `
    +        # alpha = [alpha_wrapper value];
    +        # `
    +        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    +        # `
    +        # static Color* toProto(UIColor* color) `
    +        # CGFloat red, green, blue, alpha;
    +        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    +        # return nil;
    +        # `
    +        # Color* result = [Color alloc] init];
    +        # [result setRed:red];
    +        # [result setGreen:green];
    +        # [result setBlue:blue];
    +        # if (alpha <= 0.9999) `
    +        # [result setAlpha:floatWrapperWithValue(alpha)];
    +        # `
    +        # [result autorelease];
    +        # return result;
    +        # `
    +        # // ...
    +        # Example (JavaScript):
    +        # // ...
    +        # var protoToCssColor = function(rgb_color) `
    +        # var redFrac = rgb_color.red || 0.0;
    +        # var greenFrac = rgb_color.green || 0.0;
    +        # var blueFrac = rgb_color.blue || 0.0;
    +        # var red = Math.floor(redFrac * 255);
    +        # var green = Math.floor(greenFrac * 255);
    +        # var blue = Math.floor(blueFrac * 255);
    +        # if (!('alpha' in rgb_color)) `
    +        # return rgbToCssColor_(red, green, blue);
    +        # `
    +        # var alphaFrac = rgb_color.alpha.value || 0.0;
    +        # var rgbParams = [red, green, blue].join(',');
    +        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    +        # `;
    +        # var rgbToCssColor_ = function(red, green, blue) `
    +        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    +        # var hexString = rgbNumber.toString(16);
    +        # var missingZeros = 6 - hexString.length;
    +        # var resultBuilder = ['#'];
    +        # for (var i = 0; i < missingZeros; i++) `
    +        # resultBuilder.push('0');
    +        # `
    +        # resultBuilder.push(hexString);
    +        # return resultBuilder.join('');
    +        # `;
    +        # // ...
    +        # Corresponds to the JSON property `color`
    +        # @return [Google::Apis::SheetsV4::Color]
    +        attr_accessor :color
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @width = args[:width] if args.key?(:width)
    +          @style = args[:style] if args.key?(:style)
    +          @color = args[:color] if args.key?(:color)
    +        end
    +      end
    +      
    +      # Data in the grid, as well as metadata about the dimensions.
    +      class GridData
    +        include Google::Apis::Core::Hashable
    +      
    +        # The data in the grid, one entry per row,
    +        # starting with the row in startRow.
    +        # The values in RowData will correspond to columns starting
    +        # at start_column.
    +        # Corresponds to the JSON property `rowData`
    +        # @return [Array]
    +        attr_accessor :row_data
    +      
    +        # The first row this GridData refers to, zero-based.
    +        # Corresponds to the JSON property `startRow`
    +        # @return [Fixnum]
    +        attr_accessor :start_row
    +      
    +        # Metadata about the requested columns in the grid, starting with the column
    +        # in start_column.
    +        # Corresponds to the JSON property `columnMetadata`
    +        # @return [Array]
    +        attr_accessor :column_metadata
    +      
    +        # The first column this GridData refers to, zero-based.
    +        # Corresponds to the JSON property `startColumn`
    +        # @return [Fixnum]
    +        attr_accessor :start_column
    +      
    +        # Metadata about the requested rows in the grid, starting with the row
    +        # in start_row.
    +        # Corresponds to the JSON property `rowMetadata`
    +        # @return [Array]
    +        attr_accessor :row_metadata
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @row_data = args[:row_data] if args.key?(:row_data)
    +          @start_row = args[:start_row] if args.key?(:start_row)
    +          @column_metadata = args[:column_metadata] if args.key?(:column_metadata)
    +          @start_column = args[:start_column] if args.key?(:start_column)
    +          @row_metadata = args[:row_metadata] if args.key?(:row_metadata)
    +        end
    +      end
    +      
    +      # Updates properties of the named range with the specified
    +      # namedRangeId.
    +      class UpdateNamedRangeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A named range.
    +        # Corresponds to the JSON property `namedRange`
    +        # @return [Google::Apis::SheetsV4::NamedRange]
    +        attr_accessor :named_range
    +      
    +        # The fields that should be updated.  At least one field must be specified.
    +        # The root `namedRange` is implied and should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @named_range = args[:named_range] if args.key?(:named_range)
    +          @fields = args[:fields] if args.key?(:fields)
    +        end
    +      end
    +      
    +      # Finds and replaces data in cells over a range, sheet, or all sheets.
    +      class FindReplaceRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The value to use as the replacement.
    +        # Corresponds to the JSON property `replacement`
    +        # @return [String]
    +        attr_accessor :replacement
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # The sheet to find/replace over.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        # True if the search is case sensitive.
    +        # Corresponds to the JSON property `matchCase`
    +        # @return [Boolean]
    +        attr_accessor :match_case
    +        alias_method :match_case?, :match_case
    +      
    +        # True to find/replace over all sheets.
    +        # Corresponds to the JSON property `allSheets`
    +        # @return [Boolean]
    +        attr_accessor :all_sheets
    +        alias_method :all_sheets?, :all_sheets
    +      
    +        # True if the search should include cells with formulas.
    +        # False to skip cells with formulas.
    +        # Corresponds to the JSON property `includeFormulas`
    +        # @return [Boolean]
    +        attr_accessor :include_formulas
    +        alias_method :include_formulas?, :include_formulas
    +      
    +        # True if the find value should match the entire cell.
    +        # Corresponds to the JSON property `matchEntireCell`
    +        # @return [Boolean]
    +        attr_accessor :match_entire_cell
    +        alias_method :match_entire_cell?, :match_entire_cell
    +      
    +        # True if the find value is a regex.
    +        # The regular expression and replacement should follow Java regex rules
    +        # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.
    +        # The replacement string is allowed to refer to capturing groups.
    +        # For example, if one cell has the contents `"Google Sheets"` and another
    +        # has `"Google Docs"`, then searching for `"o.* (.*)"` with a replacement of
    +        # `"$1 Rocks"` would change the contents of the cells to
    +        # `"GSheets Rocks"` and `"GDocs Rocks"` respectively.
    +        # Corresponds to the JSON property `searchByRegex`
    +        # @return [Boolean]
    +        attr_accessor :search_by_regex
    +        alias_method :search_by_regex?, :search_by_regex
    +      
    +        # The value to search.
    +        # Corresponds to the JSON property `find`
    +        # @return [String]
    +        attr_accessor :find
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @replacement = args[:replacement] if args.key?(:replacement)
    +          @range = args[:range] if args.key?(:range)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +          @match_case = args[:match_case] if args.key?(:match_case)
    +          @all_sheets = args[:all_sheets] if args.key?(:all_sheets)
    +          @include_formulas = args[:include_formulas] if args.key?(:include_formulas)
    +          @match_entire_cell = args[:match_entire_cell] if args.key?(:match_entire_cell)
    +          @search_by_regex = args[:search_by_regex] if args.key?(:search_by_regex)
    +          @find = args[:find] if args.key?(:find)
    +        end
    +      end
    +      
    +      # Adds a new sheet.
    +      # When a sheet is added at a given index,
    +      # all subsequent sheets' indexes are incremented.
    +      # To add an object sheet, use AddChartRequest instead and specify
    +      # EmbeddedObjectPosition.sheetId or
    +      # EmbeddedObjectPosition.newSheet.
    +      class AddSheetRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Properties of a sheet.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::SheetProperties]
    +        attr_accessor :properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @properties = args[:properties] if args.key?(:properties)
    +        end
    +      end
    +      
    +      # Updates all cells in a range with new data.
    +      class UpdateCellsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A coordinate in a sheet.
    +        # All indexes are zero-based.
    +        # Corresponds to the JSON property `start`
    +        # @return [Google::Apis::SheetsV4::GridCoordinate]
    +        attr_accessor :start
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # The fields of CellData that should be updated.
    +        # At least one field must be specified.
    +        # The root is the CellData; 'row.values.' should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # The data to write.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Array]
    +        attr_accessor :rows
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @start = args[:start] if args.key?(:start)
    +          @range = args[:range] if args.key?(:range)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @rows = args[:rows] if args.key?(:rows)
    +        end
    +      end
    +      
    +      # Randomizes the order of the rows in a range.
    +      class RandomizeRangeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +        end
    +      end
    +      
    +      # The result of deleting a conditional format rule.
    +      class DeleteConditionalFormatRuleResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A rule describing a conditional format.
    +        # Corresponds to the JSON property `rule`
    +        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    +        attr_accessor :rule
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @rule = args[:rule] if args.key?(:rule)
    +        end
    +      end
    +      
    +      # Deletes a range of cells, shifting other cells into the deleted area.
    +      class DeleteRangeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The dimension from which deleted cells will be replaced with.
    +        # If ROWS, existing cells will be shifted upward to
    +        # replace the deleted cells. If COLUMNS, existing cells
    +        # will be shifted left to replace the deleted cells.
    +        # Corresponds to the JSON property `shiftDimension`
    +        # @return [String]
    +        attr_accessor :shift_dimension
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @shift_dimension = args[:shift_dimension] if args.key?(:shift_dimension)
    +          @range = args[:range] if args.key?(:range)
    +        end
    +      end
    +      
    +      # A coordinate in a sheet.
    +      # All indexes are zero-based.
    +      class GridCoordinate
    +        include Google::Apis::Core::Hashable
    +      
    +        # The column index of the coordinate.
    +        # Corresponds to the JSON property `columnIndex`
    +        # @return [Fixnum]
    +        attr_accessor :column_index
    +      
    +        # The row index of the coordinate.
    +        # Corresponds to the JSON property `rowIndex`
    +        # @return [Fixnum]
    +        attr_accessor :row_index
    +      
    +        # The sheet this coordinate is on.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @column_index = args[:column_index] if args.key?(:column_index)
    +          @row_index = args[:row_index] if args.key?(:row_index)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +        end
    +      end
    +      
    +      # Updates properties of the sheet with the specified
    +      # sheetId.
    +      class UpdateSheetPropertiesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.  At least one field must be specified.
    +        # The root `properties` is implied and should not be specified.
    +        # A single `"*"` can be used as short-hand for listing every field.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # Properties of a sheet.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::SheetProperties]
    +        attr_accessor :properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @properties = args[:properties] if args.key?(:properties)
    +        end
    +      end
    +      
    +      # Properties of a grid.
    +      class GridProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The number of rows in the grid.
    +        # Corresponds to the JSON property `rowCount`
    +        # @return [Fixnum]
    +        attr_accessor :row_count
    +      
    +        # True if the grid isn't showing gridlines in the UI.
    +        # Corresponds to the JSON property `hideGridlines`
    +        # @return [Boolean]
    +        attr_accessor :hide_gridlines
    +        alias_method :hide_gridlines?, :hide_gridlines
    +      
    +        # The number of rows that are frozen in the grid.
    +        # Corresponds to the JSON property `frozenRowCount`
    +        # @return [Fixnum]
    +        attr_accessor :frozen_row_count
    +      
    +        # The number of columns that are frozen in the grid.
    +        # Corresponds to the JSON property `frozenColumnCount`
    +        # @return [Fixnum]
    +        attr_accessor :frozen_column_count
    +      
    +        # The number of columns in the grid.
    +        # Corresponds to the JSON property `columnCount`
    +        # @return [Fixnum]
    +        attr_accessor :column_count
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @row_count = args[:row_count] if args.key?(:row_count)
    +          @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines)
    +          @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count)
    +          @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count)
    +          @column_count = args[:column_count] if args.key?(:column_count)
    +        end
    +      end
    +      
    +      # Unmerges cells in the given range.
    +      class UnmergeCellsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +        end
    +      end
    +      
    +      # A sort order associated with a specific column or row.
    +      class SortSpec
    +        include Google::Apis::Core::Hashable
    +      
    +        # The dimension the sort should be applied to.
    +        # Corresponds to the JSON property `dimensionIndex`
    +        # @return [Fixnum]
    +        attr_accessor :dimension_index
    +      
    +        # The order data should be sorted.
    +        # Corresponds to the JSON property `sortOrder`
    +        # @return [String]
    +        attr_accessor :sort_order
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @dimension_index = args[:dimension_index] if args.key?(:dimension_index)
    +          @sort_order = args[:sort_order] if args.key?(:sort_order)
    +        end
    +      end
    +      
    +      # A sheet in a spreadsheet.
    +      class Sheet
    +        include Google::Apis::Core::Hashable
    +      
    +        # The filter views in this sheet.
    +        # Corresponds to the JSON property `filterViews`
    +        # @return [Array]
    +        attr_accessor :filter_views
    +      
    +        # The protected ranges in this sheet.
    +        # Corresponds to the JSON property `protectedRanges`
    +        # @return [Array]
    +        attr_accessor :protected_ranges
    +      
    +        # The conditional format rules in this sheet.
    +        # Corresponds to the JSON property `conditionalFormats`
    +        # @return [Array]
    +        attr_accessor :conditional_formats
    +      
    +        # The default filter associated with a sheet.
    +        # Corresponds to the JSON property `basicFilter`
    +        # @return [Google::Apis::SheetsV4::BasicFilter]
    +        attr_accessor :basic_filter
    +      
    +        # The ranges that are merged together.
    +        # Corresponds to the JSON property `merges`
    +        # @return [Array]
    +        attr_accessor :merges
    +      
    +        # Data in the grid, if this is a grid sheet.
    +        # The number of GridData objects returned is dependent on the number of
    +        # ranges requested on this sheet. For example, if this is representing
    +        # `Sheet1`, and the spreadsheet was requested with ranges
    +        # `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a
    +        # startRow/startColumn of `0`,
    +        # while the second one will have `startRow 14` (zero-based row 15),
    +        # and `startColumn 3` (zero-based column D).
    +        # Corresponds to the JSON property `data`
    +        # @return [Array]
    +        attr_accessor :data
    +      
    +        # The banded (i.e. alternating colors) ranges on this sheet.
    +        # Corresponds to the JSON property `bandedRanges`
    +        # @return [Array]
    +        attr_accessor :banded_ranges
    +      
    +        # Properties of a sheet.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::SheetProperties]
    +        attr_accessor :properties
    +      
    +        # The specifications of every chart on this sheet.
    +        # Corresponds to the JSON property `charts`
    +        # @return [Array]
    +        attr_accessor :charts
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @filter_views = args[:filter_views] if args.key?(:filter_views)
    +          @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
    +          @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
    +          @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
    +          @merges = args[:merges] if args.key?(:merges)
    +          @data = args[:data] if args.key?(:data)
    +          @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
    +          @properties = args[:properties] if args.key?(:properties)
    +          @charts = args[:charts] if args.key?(:charts)
    +        end
    +      end
    +      
    +      # The result of updating an embedded object's position.
    +      class UpdateEmbeddedObjectPositionResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The position of an embedded object such as a chart.
    +        # Corresponds to the JSON property `position`
    +        # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
    +        attr_accessor :position
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @position = args[:position] if args.key?(:position)
    +        end
    +      end
    +      
    +      # A rule that may or may not match, depending on the condition.
    +      class BooleanRule
    +        include Google::Apis::Core::Hashable
    +      
    +        # A condition that can evaluate to true or false.
    +        # BooleanConditions are used by conditional formatting,
    +        # data validation, and the criteria in filters.
    +        # Corresponds to the JSON property `condition`
    +        # @return [Google::Apis::SheetsV4::BooleanCondition]
    +        attr_accessor :condition
    +      
    +        # The format of a cell.
    +        # Corresponds to the JSON property `format`
    +        # @return [Google::Apis::SheetsV4::CellFormat]
    +        attr_accessor :format
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @condition = args[:condition] if args.key?(:condition)
    +          @format = args[:format] if args.key?(:format)
    +        end
    +      end
    +      
    +      # Criteria for showing/hiding rows in a filter or filter view.
    +      class FilterCriteria
    +        include Google::Apis::Core::Hashable
    +      
    +        # A condition that can evaluate to true or false.
    +        # BooleanConditions are used by conditional formatting,
    +        # data validation, and the criteria in filters.
    +        # Corresponds to the JSON property `condition`
    +        # @return [Google::Apis::SheetsV4::BooleanCondition]
    +        attr_accessor :condition
    +      
    +        # Values that should be hidden.
    +        # Corresponds to the JSON property `hiddenValues`
    +        # @return [Array]
    +        attr_accessor :hidden_values
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @condition = args[:condition] if args.key?(:condition)
    +          @hidden_values = args[:hidden_values] if args.key?(:hidden_values)
    +        end
    +      end
    +      
    +      # Metadata about a value in a pivot grouping.
    +      class PivotGroupValueMetadata
    +        include Google::Apis::Core::Hashable
    +      
    +        # The kinds of value that a cell in a spreadsheet can have.
    +        # Corresponds to the JSON property `value`
    +        # @return [Google::Apis::SheetsV4::ExtendedValue]
    +        attr_accessor :value
    +      
    +        # True if the data corresponding to the value is collapsed.
    +        # Corresponds to the JSON property `collapsed`
    +        # @return [Boolean]
    +        attr_accessor :collapsed
    +        alias_method :collapsed?, :collapsed
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @value = args[:value] if args.key?(:value)
    +          @collapsed = args[:collapsed] if args.key?(:collapsed)
    +        end
    +      end
    +      
    +      # The editors of a protected range.
    +      class Editors
    +        include Google::Apis::Core::Hashable
    +      
    +        # The email addresses of users with edit access to the protected range.
    +        # Corresponds to the JSON property `users`
    +        # @return [Array]
    +        attr_accessor :users
    +      
    +        # True if anyone in the document's domain has edit access to the protected
    +        # range.  Domain protection is only supported on documents within a domain.
    +        # Corresponds to the JSON property `domainUsersCanEdit`
    +        # @return [Boolean]
    +        attr_accessor :domain_users_can_edit
    +        alias_method :domain_users_can_edit?, :domain_users_can_edit
    +      
    +        # The email addresses of groups with edit access to the protected range.
    +        # Corresponds to the JSON property `groups`
    +        # @return [Array]
    +        attr_accessor :groups
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @users = args[:users] if args.key?(:users)
    +          @domain_users_can_edit = args[:domain_users_can_edit] if args.key?(:domain_users_can_edit)
    +          @groups = args[:groups] if args.key?(:groups)
    +        end
    +      end
    +      
    +      # Updates a conditional format rule at the given index,
    +      # or moves a conditional format rule to another index.
    +      class UpdateConditionalFormatRuleRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The zero-based new index the rule should end up at.
    +        # Corresponds to the JSON property `newIndex`
    +        # @return [Fixnum]
    +        attr_accessor :new_index
    +      
    +        # A rule describing a conditional format.
    +        # Corresponds to the JSON property `rule`
    +        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    +        attr_accessor :rule
    +      
    +        # The zero-based index of the rule that should be replaced or moved.
    +        # Corresponds to the JSON property `index`
    +        # @return [Fixnum]
    +        attr_accessor :index
    +      
    +        # The sheet of the rule to move.  Required if new_index is set,
    +        # unused otherwise.
    +        # Corresponds to the JSON property `sheetId`
    +        # @return [Fixnum]
    +        attr_accessor :sheet_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @new_index = args[:new_index] if args.key?(:new_index)
    +          @rule = args[:rule] if args.key?(:rule)
    +          @index = args[:index] if args.key?(:index)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    +        end
    +      end
    +      
    +      # The domain of a chart.
    +      # For example, if charting stock prices over time, this would be the date.
    +      class BasicChartDomain
    +        include Google::Apis::Core::Hashable
    +      
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `domain`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :domain
    +      
    +        # True to reverse the order of the domain values (horizontal axis).
    +        # Corresponds to the JSON property `reversed`
    +        # @return [Boolean]
    +        attr_accessor :reversed
    +        alias_method :reversed?, :reversed
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @domain = args[:domain] if args.key?(:domain)
    +          @reversed = args[:reversed] if args.key?(:reversed)
    +        end
    +      end
    +      
    +      # A data validation rule.
    +      class DataValidationRule
    +        include Google::Apis::Core::Hashable
    +      
    +        # A condition that can evaluate to true or false.
    +        # BooleanConditions are used by conditional formatting,
    +        # data validation, and the criteria in filters.
    +        # Corresponds to the JSON property `condition`
    +        # @return [Google::Apis::SheetsV4::BooleanCondition]
    +        attr_accessor :condition
    +      
    +        # True if the UI should be customized based on the kind of condition.
    +        # If true, "List" conditions will show a dropdown.
    +        # Corresponds to the JSON property `showCustomUi`
    +        # @return [Boolean]
    +        attr_accessor :show_custom_ui
    +        alias_method :show_custom_ui?, :show_custom_ui
    +      
    +        # True if invalid data should be rejected.
    +        # Corresponds to the JSON property `strict`
    +        # @return [Boolean]
    +        attr_accessor :strict
    +        alias_method :strict?, :strict
    +      
    +        # A message to show the user when adding data to the cell.
    +        # Corresponds to the JSON property `inputMessage`
    +        # @return [String]
    +        attr_accessor :input_message
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @condition = args[:condition] if args.key?(:condition)
    +          @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui)
    +          @strict = args[:strict] if args.key?(:strict)
    +          @input_message = args[:input_message] if args.key?(:input_message)
    +        end
    +      end
    +      
           # Inserts data into the spreadsheet starting at the specified coordinate.
           class PasteDataRequest
             include Google::Apis::Core::Hashable
           
    +        # A coordinate in a sheet.
    +        # All indexes are zero-based.
    +        # Corresponds to the JSON property `coordinate`
    +        # @return [Google::Apis::SheetsV4::GridCoordinate]
    +        attr_accessor :coordinate
    +      
    +        # The delimiter in the data.
    +        # Corresponds to the JSON property `delimiter`
    +        # @return [String]
    +        attr_accessor :delimiter
    +      
    +        # The data to insert.
    +        # Corresponds to the JSON property `data`
    +        # @return [String]
    +        attr_accessor :data
    +      
             # How the data should be pasted.
             # Corresponds to the JSON property `type`
             # @return [String]
    @@ -37,33 +2834,17 @@ module Google
             attr_accessor :html
             alias_method :html?, :html
           
    -        # A coordinate in a sheet.
    -        # All indexes are zero-based.
    -        # Corresponds to the JSON property `coordinate`
    -        # @return [Google::Apis::SheetsV4::GridCoordinate]
    -        attr_accessor :coordinate
    -      
    -        # The data to insert.
    -        # Corresponds to the JSON property `data`
    -        # @return [String]
    -        attr_accessor :data
    -      
    -        # The delimiter in the data.
    -        # Corresponds to the JSON property `delimiter`
    -        # @return [String]
    -        attr_accessor :delimiter
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @coordinate = args[:coordinate] if args.key?(:coordinate)
    +          @delimiter = args[:delimiter] if args.key?(:delimiter)
    +          @data = args[:data] if args.key?(:data)
               @type = args[:type] if args.key?(:type)
               @html = args[:html] if args.key?(:html)
    -          @coordinate = args[:coordinate] if args.key?(:coordinate)
    -          @data = args[:data] if args.key?(:data)
    -          @delimiter = args[:delimiter] if args.key?(:delimiter)
             end
           end
           
    @@ -122,11 +2903,6 @@ module Google
           class UpdateEmbeddedObjectPositionRequest
             include Google::Apis::Core::Hashable
           
    -        # The ID of the object to moved.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [Fixnum]
    -        attr_accessor :object_id_prop
    -      
             # The position of an embedded object such as a chart.
             # Corresponds to the JSON property `newPosition`
             # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
    @@ -143,15 +2919,20 @@ module Google
             # @return [String]
             attr_accessor :fields
           
    +        # The ID of the object to moved.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [Fixnum]
    +        attr_accessor :object_id_prop
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @new_position = args[:new_position] if args.key?(:new_position)
               @fields = args[:fields] if args.key?(:fields)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
             end
           end
           
    @@ -200,9 +2981,19 @@ module Google
             include Google::Apis::Core::Hashable
           
             # The data included in a domain or series.
    -        # Corresponds to the JSON property `domain`
    +        # Corresponds to the JSON property `series`
             # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :domain
    +        attr_accessor :series
    +      
    +        # The size of the hole in the pie chart.
    +        # Corresponds to the JSON property `pieHole`
    +        # @return [Float]
    +        attr_accessor :pie_hole
    +      
    +        # Where the legend of the pie chart should be drawn.
    +        # Corresponds to the JSON property `legendPosition`
    +        # @return [String]
    +        attr_accessor :legend_position
           
             # True if the pie is three dimensional.
             # Corresponds to the JSON property `threeDimensional`
    @@ -211,19 +3002,9 @@ module Google
             alias_method :three_dimensional?, :three_dimensional
           
             # The data included in a domain or series.
    -        # Corresponds to the JSON property `series`
    +        # Corresponds to the JSON property `domain`
             # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :series
    -      
    -        # Where the legend of the pie chart should be drawn.
    -        # Corresponds to the JSON property `legendPosition`
    -        # @return [String]
    -        attr_accessor :legend_position
    -      
    -        # The size of the hole in the pie chart.
    -        # Corresponds to the JSON property `pieHole`
    -        # @return [Float]
    -        attr_accessor :pie_hole
    +        attr_accessor :domain
           
             def initialize(**args)
                update!(**args)
    @@ -231,11 +3012,11 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @domain = args[:domain] if args.key?(:domain)
    -          @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
               @series = args[:series] if args.key?(:series)
    -          @legend_position = args[:legend_position] if args.key?(:legend_position)
               @pie_hole = args[:pie_hole] if args.key?(:pie_hole)
    +          @legend_position = args[:legend_position] if args.key?(:legend_position)
    +          @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
    +          @domain = args[:domain] if args.key?(:domain)
             end
           end
           
    @@ -305,6 +3086,11 @@ module Google
           class CopyPasteRequest
             include Google::Apis::Core::Hashable
           
    +        # What kind of data to paste.
    +        # Corresponds to the JSON property `pasteType`
    +        # @return [String]
    +        attr_accessor :paste_type
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -331,11 +3117,6 @@ module Google
             # @return [Google::Apis::SheetsV4::GridRange]
             attr_accessor :source
           
    -        # What kind of data to paste.
    -        # Corresponds to the JSON property `pasteType`
    -        # @return [String]
    -        attr_accessor :paste_type
    -      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -373,8 +3154,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @source = args[:source] if args.key?(:source)
               @paste_type = args[:paste_type] if args.key?(:paste_type)
    +          @source = args[:source] if args.key?(:source)
               @destination = args[:destination] if args.key?(:destination)
               @paste_orientation = args[:paste_orientation] if args.key?(:paste_orientation)
             end
    @@ -384,60 +3165,6 @@ module Google
           class Request
             include Google::Apis::Core::Hashable
           
    -        # Updates properties of the filter view.
    -        # Corresponds to the JSON property `updateFilterView`
    -        # @return [Google::Apis::SheetsV4::UpdateFilterViewRequest]
    -        attr_accessor :update_filter_view
    -      
    -        # Adds a new banded range to the spreadsheet.
    -        # Corresponds to the JSON property `addBanding`
    -        # @return [Google::Apis::SheetsV4::AddBandingRequest]
    -        attr_accessor :add_banding
    -      
    -        # Adds new cells after the last row with data in a sheet,
    -        # inserting new rows into the sheet if necessary.
    -        # Corresponds to the JSON property `appendCells`
    -        # @return [Google::Apis::SheetsV4::AppendCellsRequest]
    -        attr_accessor :append_cells
    -      
    -        # Automatically resizes one or more dimensions based on the contents
    -        # of the cells in that dimension.
    -        # Corresponds to the JSON property `autoResizeDimensions`
    -        # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
    -        attr_accessor :auto_resize_dimensions
    -      
    -        # Moves data from the source to the destination.
    -        # Corresponds to the JSON property `cutPaste`
    -        # @return [Google::Apis::SheetsV4::CutPasteRequest]
    -        attr_accessor :cut_paste
    -      
    -        # Merges all cells in the range.
    -        # Corresponds to the JSON property `mergeCells`
    -        # @return [Google::Apis::SheetsV4::MergeCellsRequest]
    -        attr_accessor :merge_cells
    -      
    -        # Updates properties of the named range with the specified
    -        # namedRangeId.
    -        # Corresponds to the JSON property `updateNamedRange`
    -        # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest]
    -        attr_accessor :update_named_range
    -      
    -        # Updates properties of the sheet with the specified
    -        # sheetId.
    -        # Corresponds to the JSON property `updateSheetProperties`
    -        # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
    -        attr_accessor :update_sheet_properties
    -      
    -        # Deletes the dimensions from the sheet.
    -        # Corresponds to the JSON property `deleteDimension`
    -        # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
    -        attr_accessor :delete_dimension
    -      
    -        # Fills in more data based on existing data.
    -        # Corresponds to the JSON property `autoFill`
    -        # @return [Google::Apis::SheetsV4::AutoFillRequest]
    -        attr_accessor :auto_fill
    -      
             # Sorts data in rows based on a sort order per column.
             # Corresponds to the JSON property `sortRange`
             # @return [Google::Apis::SheetsV4::SortRangeRequest]
    @@ -463,24 +3190,18 @@ module Google
             # @return [Google::Apis::SheetsV4::FindReplaceRequest]
             attr_accessor :find_replace
           
    -        # Updates a chart's specifications.
    -        # (This does not move or resize a chart. To move or resize a chart, use
    -        # UpdateEmbeddedObjectPositionRequest.)
    -        # Corresponds to the JSON property `updateChartSpec`
    -        # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest]
    -        attr_accessor :update_chart_spec
    -      
             # Splits a column of text into multiple columns,
             # based on a delimiter in each cell.
             # Corresponds to the JSON property `textToColumns`
             # @return [Google::Apis::SheetsV4::TextToColumnsRequest]
             attr_accessor :text_to_columns
           
    -        # Updates an existing protected range with the specified
    -        # protectedRangeId.
    -        # Corresponds to the JSON property `updateProtectedRange`
    -        # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest]
    -        attr_accessor :update_protected_range
    +        # Updates a chart's specifications.
    +        # (This does not move or resize a chart. To move or resize a chart, use
    +        # UpdateEmbeddedObjectPositionRequest.)
    +        # Corresponds to the JSON property `updateChartSpec`
    +        # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest]
    +        attr_accessor :update_chart_spec
           
             # Adds a new sheet.
             # When a sheet is added at a given index,
    @@ -492,6 +3213,12 @@ module Google
             # @return [Google::Apis::SheetsV4::AddSheetRequest]
             attr_accessor :add_sheet
           
    +        # Updates an existing protected range with the specified
    +        # protectedRangeId.
    +        # Corresponds to the JSON property `updateProtectedRange`
    +        # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest]
    +        attr_accessor :update_protected_range
    +      
             # Deletes a particular filter view.
             # Corresponds to the JSON property `deleteFilterView`
             # @return [Google::Apis::SheetsV4::DeleteFilterViewRequest]
    @@ -588,36 +3315,41 @@ module Google
             # @return [Google::Apis::SheetsV4::MoveDimensionRequest]
             attr_accessor :move_dimension
           
    +        # Randomizes the order of the rows in a range.
    +        # Corresponds to the JSON property `randomizeRange`
    +        # @return [Google::Apis::SheetsV4::RandomizeRangeRequest]
    +        attr_accessor :randomize_range
    +      
             # Updates properties of the supplied banded range.
             # Corresponds to the JSON property `updateBanding`
             # @return [Google::Apis::SheetsV4::UpdateBandingRequest]
             attr_accessor :update_banding
           
    -        # Adds a new protected range.
    -        # Corresponds to the JSON property `addProtectedRange`
    -        # @return [Google::Apis::SheetsV4::AddProtectedRangeRequest]
    -        attr_accessor :add_protected_range
    -      
             # Removes the named range with the given ID from the spreadsheet.
             # Corresponds to the JSON property `deleteNamedRange`
             # @return [Google::Apis::SheetsV4::DeleteNamedRangeRequest]
             attr_accessor :delete_named_range
           
    +        # Adds a new protected range.
    +        # Corresponds to the JSON property `addProtectedRange`
    +        # @return [Google::Apis::SheetsV4::AddProtectedRangeRequest]
    +        attr_accessor :add_protected_range
    +      
             # Duplicates the contents of a sheet.
             # Corresponds to the JSON property `duplicateSheet`
             # @return [Google::Apis::SheetsV4::DuplicateSheetRequest]
             attr_accessor :duplicate_sheet
           
    -        # Unmerges cells in the given range.
    -        # Corresponds to the JSON property `unmergeCells`
    -        # @return [Google::Apis::SheetsV4::UnmergeCellsRequest]
    -        attr_accessor :unmerge_cells
    -      
             # Deletes the requested sheet.
             # Corresponds to the JSON property `deleteSheet`
             # @return [Google::Apis::SheetsV4::DeleteSheetRequest]
             attr_accessor :delete_sheet
           
    +        # Unmerges cells in the given range.
    +        # Corresponds to the JSON property `unmergeCells`
    +        # @return [Google::Apis::SheetsV4::UnmergeCellsRequest]
    +        attr_accessor :unmerge_cells
    +      
             # Update an embedded object's position (such as a moving or resizing a
             # chart or image).
             # Corresponds to the JSON property `updateEmbeddedObjectPosition`
    @@ -665,31 +3397,75 @@ module Google
             # @return [Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest]
             attr_accessor :delete_embedded_object
           
    +        # Updates properties of the filter view.
    +        # Corresponds to the JSON property `updateFilterView`
    +        # @return [Google::Apis::SheetsV4::UpdateFilterViewRequest]
    +        attr_accessor :update_filter_view
    +      
    +        # Adds a new banded range to the spreadsheet.
    +        # Corresponds to the JSON property `addBanding`
    +        # @return [Google::Apis::SheetsV4::AddBandingRequest]
    +        attr_accessor :add_banding
    +      
    +        # Automatically resizes one or more dimensions based on the contents
    +        # of the cells in that dimension.
    +        # Corresponds to the JSON property `autoResizeDimensions`
    +        # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
    +        attr_accessor :auto_resize_dimensions
    +      
    +        # Adds new cells after the last row with data in a sheet,
    +        # inserting new rows into the sheet if necessary.
    +        # Corresponds to the JSON property `appendCells`
    +        # @return [Google::Apis::SheetsV4::AppendCellsRequest]
    +        attr_accessor :append_cells
    +      
    +        # Moves data from the source to the destination.
    +        # Corresponds to the JSON property `cutPaste`
    +        # @return [Google::Apis::SheetsV4::CutPasteRequest]
    +        attr_accessor :cut_paste
    +      
    +        # Merges all cells in the range.
    +        # Corresponds to the JSON property `mergeCells`
    +        # @return [Google::Apis::SheetsV4::MergeCellsRequest]
    +        attr_accessor :merge_cells
    +      
    +        # Updates properties of the named range with the specified
    +        # namedRangeId.
    +        # Corresponds to the JSON property `updateNamedRange`
    +        # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest]
    +        attr_accessor :update_named_range
    +      
    +        # Updates properties of the sheet with the specified
    +        # sheetId.
    +        # Corresponds to the JSON property `updateSheetProperties`
    +        # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
    +        attr_accessor :update_sheet_properties
    +      
    +        # Deletes the dimensions from the sheet.
    +        # Corresponds to the JSON property `deleteDimension`
    +        # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
    +        attr_accessor :delete_dimension
    +      
    +        # Fills in more data based on existing data.
    +        # Corresponds to the JSON property `autoFill`
    +        # @return [Google::Apis::SheetsV4::AutoFillRequest]
    +        attr_accessor :auto_fill
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view)
    -          @add_banding = args[:add_banding] if args.key?(:add_banding)
    -          @append_cells = args[:append_cells] if args.key?(:append_cells)
    -          @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
    -          @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
    -          @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
    -          @update_named_range = args[:update_named_range] if args.key?(:update_named_range)
    -          @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
    -          @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
    -          @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
               @sort_range = args[:sort_range] if args.key?(:sort_range)
               @delete_protected_range = args[:delete_protected_range] if args.key?(:delete_protected_range)
               @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
               @add_chart = args[:add_chart] if args.key?(:add_chart)
               @find_replace = args[:find_replace] if args.key?(:find_replace)
    -          @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
               @text_to_columns = args[:text_to_columns] if args.key?(:text_to_columns)
    -          @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range)
    +          @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
               @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
    +          @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range)
               @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view)
               @copy_paste = args[:copy_paste] if args.key?(:copy_paste)
               @insert_dimension = args[:insert_dimension] if args.key?(:insert_dimension)
    @@ -705,12 +3481,13 @@ module Google
               @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
               @insert_range = args[:insert_range] if args.key?(:insert_range)
               @move_dimension = args[:move_dimension] if args.key?(:move_dimension)
    +          @randomize_range = args[:randomize_range] if args.key?(:randomize_range)
               @update_banding = args[:update_banding] if args.key?(:update_banding)
    -          @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
               @delete_named_range = args[:delete_named_range] if args.key?(:delete_named_range)
    +          @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
               @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
    -          @unmerge_cells = args[:unmerge_cells] if args.key?(:unmerge_cells)
               @delete_sheet = args[:delete_sheet] if args.key?(:delete_sheet)
    +          @unmerge_cells = args[:unmerge_cells] if args.key?(:unmerge_cells)
               @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
               @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties)
               @paste_data = args[:paste_data] if args.key?(:paste_data)
    @@ -720,6 +3497,16 @@ module Google
               @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
               @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties)
               @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object)
    +          @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view)
    +          @add_banding = args[:add_banding] if args.key?(:add_banding)
    +          @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
    +          @append_cells = args[:append_cells] if args.key?(:append_cells)
    +          @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
    +          @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
    +          @update_named_range = args[:update_named_range] if args.key?(:update_named_range)
    +          @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
    +          @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
    +          @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
             end
           end
           
    @@ -729,11 +3516,6 @@ module Google
           class BooleanCondition
             include Google::Apis::Core::Hashable
           
    -        # The type of condition.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
             # The values of the condition. The number of supported values depends
             # on the condition type.  Some support zero values,
             # others one or two values,
    @@ -742,14 +3524,19 @@ module Google
             # @return [Array]
             attr_accessor :values
           
    +        # The type of condition.
    +        # 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)
    -          @type = args[:type] if args.key?(:type)
               @values = args[:values] if args.key?(:values)
    +          @type = args[:type] if args.key?(:type)
             end
           end
           
    @@ -778,16 +3565,21 @@ module Google
           class GridRange
             include Google::Apis::Core::Hashable
           
    -        # The end row (exclusive) of the range, or not set if unbounded.
    -        # Corresponds to the JSON property `endRowIndex`
    +        # The sheet this range is on.
    +        # Corresponds to the JSON property `sheetId`
             # @return [Fixnum]
    -        attr_accessor :end_row_index
    +        attr_accessor :sheet_id
           
             # The end column (exclusive) of the range, or not set if unbounded.
             # Corresponds to the JSON property `endColumnIndex`
             # @return [Fixnum]
             attr_accessor :end_column_index
           
    +        # The end row (exclusive) of the range, or not set if unbounded.
    +        # Corresponds to the JSON property `endRowIndex`
    +        # @return [Fixnum]
    +        attr_accessor :end_row_index
    +      
             # The start row (inclusive) of the range, or not set if unbounded.
             # Corresponds to the JSON property `startRowIndex`
             # @return [Fixnum]
    @@ -798,22 +3590,17 @@ module Google
             # @return [Fixnum]
             attr_accessor :start_column_index
           
    -        # The sheet this range is on.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @end_row_index = args[:end_row_index] if args.key?(:end_row_index)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
               @end_column_index = args[:end_column_index] if args.key?(:end_column_index)
    +          @end_row_index = args[:end_row_index] if args.key?(:end_row_index)
               @start_row_index = args[:start_row_index] if args.key?(:start_row_index)
               @start_column_index = args[:start_column_index] if args.key?(:start_column_index)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
             end
           end
           
    @@ -822,12 +3609,6 @@ module Google
           class BasicChartSpec
             include Google::Apis::Core::Hashable
           
    -        # The domain of data this is charting.
    -        # Only a single domain is supported.
    -        # Corresponds to the JSON property `domains`
    -        # @return [Array]
    -        attr_accessor :domains
    -      
             # Gets whether all lines should be rendered smooth or straight by default.
             # Applies to Line charts.
             # Corresponds to the JSON property `lineSmoothing`
    @@ -850,6 +3631,11 @@ module Google
             # @return [String]
             attr_accessor :stacked_type
           
    +        # The axis on the chart.
    +        # Corresponds to the JSON property `axis`
    +        # @return [Array]
    +        attr_accessor :axis
    +      
             # True to make the chart 3D.
             # Applies to Bar and Column charts.
             # Corresponds to the JSON property `threeDimensional`
    @@ -857,11 +3643,6 @@ module Google
             attr_accessor :three_dimensional
             alias_method :three_dimensional?, :three_dimensional
           
    -        # The axis on the chart.
    -        # Corresponds to the JSON property `axis`
    -        # @return [Array]
    -        attr_accessor :axis
    -      
             # If some values in a series are missing, gaps may appear in the chart (e.g,
             # segments of lines in a line chart will be missing).  To eliminate these
             # gaps set this to true.
    @@ -886,22 +3667,75 @@ module Google
             # @return [String]
             attr_accessor :legend_position
           
    +        # The domain of data this is charting.
    +        # Only a single domain is supported.
    +        # Corresponds to the JSON property `domains`
    +        # @return [Array]
    +        attr_accessor :domains
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @domains = args[:domains] if args.key?(:domains)
               @line_smoothing = args[:line_smoothing] if args.key?(:line_smoothing)
               @header_count = args[:header_count] if args.key?(:header_count)
               @stacked_type = args[:stacked_type] if args.key?(:stacked_type)
    -          @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
               @axis = args[:axis] if args.key?(:axis)
    +          @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
               @interpolate_nulls = args[:interpolate_nulls] if args.key?(:interpolate_nulls)
               @chart_type = args[:chart_type] if args.key?(:chart_type)
               @series = args[:series] if args.key?(:series)
               @legend_position = args[:legend_position] if args.key?(:legend_position)
    +          @domains = args[:domains] if args.key?(:domains)
    +        end
    +      end
    +      
    +      # Sets a data validation rule to every cell in the range.
    +      # To clear validation in a range, call this with no rule specified.
    +      class SetDataValidationRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # A data validation rule.
    +        # Corresponds to the JSON property `rule`
    +        # @return [Google::Apis::SheetsV4::DataValidationRule]
    +        attr_accessor :rule
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @range = args[:range] if args.key?(:range)
    +          @rule = args[:rule] if args.key?(:rule)
             end
           end
           
    @@ -909,22 +3743,6 @@ module Google
           class BubbleChartSpec
             include Google::Apis::Core::Hashable
           
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `groupIds`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :group_ids
    -      
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `bubbleLabels`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :bubble_labels
    -      
    -        # The minimum radius size of the bubbles, in pixels.
    -        # If specific, the field must be a positive value.
    -        # Corresponds to the JSON property `bubbleMinRadiusSize`
    -        # @return [Fixnum]
    -        attr_accessor :bubble_min_radius_size
    -      
             # The max radius size of the bubbles, in pixels.
             # If specified, the field must be a positive value.
             # Corresponds to the JSON property `bubbleMaxRadiusSize`
    @@ -941,6 +3759,11 @@ module Google
             # @return [String]
             attr_accessor :legend_position
           
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `bubbleSizes`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :bubble_sizes
    +      
             # The data included in a domain or series.
             # Corresponds to the JSON property `domain`
             # @return [Google::Apis::SheetsV4::ChartData]
    @@ -952,10 +3775,11 @@ module Google
             # @return [Float]
             attr_accessor :bubble_opacity
           
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `bubbleSizes`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :bubble_sizes
    +        # The format of a run of text in a cell.
    +        # Absent values indicate that the field isn't specified.
    +        # Corresponds to the JSON property `bubbleTextStyle`
    +        # @return [Google::Apis::SheetsV4::TextFormat]
    +        attr_accessor :bubble_text_style
           
             # Represents a color in the RGBA color space. This representation is designed
             # for simplicity of conversion to/from color representations in various
    @@ -1060,11 +3884,21 @@ module Google
             # @return [Google::Apis::SheetsV4::Color]
             attr_accessor :bubble_border_color
           
    -        # The format of a run of text in a cell.
    -        # Absent values indicate that the field isn't specified.
    -        # Corresponds to the JSON property `bubbleTextStyle`
    -        # @return [Google::Apis::SheetsV4::TextFormat]
    -        attr_accessor :bubble_text_style
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `groupIds`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :group_ids
    +      
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `bubbleLabels`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :bubble_labels
    +      
    +        # The minimum radius size of the bubbles, in pixels.
    +        # If specific, the field must be a positive value.
    +        # Corresponds to the JSON property `bubbleMinRadiusSize`
    +        # @return [Fixnum]
    +        attr_accessor :bubble_min_radius_size
           
             def initialize(**args)
                update!(**args)
    @@ -1072,64 +3906,17 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @group_ids = args[:group_ids] if args.key?(:group_ids)
    -          @bubble_labels = args[:bubble_labels] if args.key?(:bubble_labels)
    -          @bubble_min_radius_size = args[:bubble_min_radius_size] if args.key?(:bubble_min_radius_size)
               @bubble_max_radius_size = args[:bubble_max_radius_size] if args.key?(:bubble_max_radius_size)
               @series = args[:series] if args.key?(:series)
               @legend_position = args[:legend_position] if args.key?(:legend_position)
    +          @bubble_sizes = args[:bubble_sizes] if args.key?(:bubble_sizes)
               @domain = args[:domain] if args.key?(:domain)
               @bubble_opacity = args[:bubble_opacity] if args.key?(:bubble_opacity)
    -          @bubble_sizes = args[:bubble_sizes] if args.key?(:bubble_sizes)
    -          @bubble_border_color = args[:bubble_border_color] if args.key?(:bubble_border_color)
               @bubble_text_style = args[:bubble_text_style] if args.key?(:bubble_text_style)
    -        end
    -      end
    -      
    -      # Sets a data validation rule to every cell in the range.
    -      # To clear validation in a range, call this with no rule specified.
    -      class SetDataValidationRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A data validation rule.
    -        # Corresponds to the JSON property `rule`
    -        # @return [Google::Apis::SheetsV4::DataValidationRule]
    -        attr_accessor :rule
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rule = args[:rule] if args.key?(:rule)
    -          @range = args[:range] if args.key?(:range)
    +          @bubble_border_color = args[:bubble_border_color] if args.key?(:bubble_border_color)
    +          @group_ids = args[:group_ids] if args.key?(:group_ids)
    +          @bubble_labels = args[:bubble_labels] if args.key?(:bubble_labels)
    +          @bubble_min_radius_size = args[:bubble_min_radius_size] if args.key?(:bubble_min_radius_size)
             end
           end
           
    @@ -1147,26 +3934,26 @@ module Google
             # @return [Google::Apis::SheetsV4::CellFormat]
             attr_accessor :user_entered_format
           
    -        # The format of a cell.
    -        # Corresponds to the JSON property `effectiveFormat`
    -        # @return [Google::Apis::SheetsV4::CellFormat]
    -        attr_accessor :effective_format
    -      
             # Any note on the cell.
             # Corresponds to the JSON property `note`
             # @return [String]
             attr_accessor :note
           
    -        # The kinds of value that a cell in a spreadsheet can have.
    -        # Corresponds to the JSON property `userEnteredValue`
    -        # @return [Google::Apis::SheetsV4::ExtendedValue]
    -        attr_accessor :user_entered_value
    +        # The format of a cell.
    +        # Corresponds to the JSON property `effectiveFormat`
    +        # @return [Google::Apis::SheetsV4::CellFormat]
    +        attr_accessor :effective_format
           
             # A data validation rule.
             # Corresponds to the JSON property `dataValidation`
             # @return [Google::Apis::SheetsV4::DataValidationRule]
             attr_accessor :data_validation
           
    +        # The kinds of value that a cell in a spreadsheet can have.
    +        # Corresponds to the JSON property `userEnteredValue`
    +        # @return [Google::Apis::SheetsV4::ExtendedValue]
    +        attr_accessor :user_entered_value
    +      
             # The kinds of value that a cell in a spreadsheet can have.
             # Corresponds to the JSON property `effectiveValue`
             # @return [Google::Apis::SheetsV4::ExtendedValue]
    @@ -1207,10 +3994,10 @@ module Google
             def update!(**args)
               @pivot_table = args[:pivot_table] if args.key?(:pivot_table)
               @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format)
    -          @effective_format = args[:effective_format] if args.key?(:effective_format)
               @note = args[:note] if args.key?(:note)
    -          @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
    +          @effective_format = args[:effective_format] if args.key?(:effective_format)
               @data_validation = args[:data_validation] if args.key?(:data_validation)
    +          @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
               @effective_value = args[:effective_value] if args.key?(:effective_value)
               @text_format_runs = args[:text_format_runs] if args.key?(:text_format_runs)
               @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
    @@ -1222,26 +4009,6 @@ module Google
           class BatchUpdateSpreadsheetRequest
             include Google::Apis::Core::Hashable
           
    -        # A list of updates to apply to the spreadsheet.
    -        # Requests will be applied in the order they are specified.
    -        # If any request is not valid, no requests will be applied.
    -        # Corresponds to the JSON property `requests`
    -        # @return [Array]
    -        attr_accessor :requests
    -      
    -        # Determines if the update response should include the spreadsheet
    -        # resource.
    -        # Corresponds to the JSON property `includeSpreadsheetInResponse`
    -        # @return [Boolean]
    -        attr_accessor :include_spreadsheet_in_response
    -        alias_method :include_spreadsheet_in_response?, :include_spreadsheet_in_response
    -      
    -        # Limits the ranges included in the response spreadsheet.
    -        # Meaningful only if include_spreadsheet_response is 'true'.
    -        # Corresponds to the JSON property `responseRanges`
    -        # @return [Array]
    -        attr_accessor :response_ranges
    -      
             # True if grid data should be returned. Meaningful only if
             # if include_spreadsheet_response is 'true'.
             # This parameter is ignored if a field mask was set in the request.
    @@ -1250,16 +4017,36 @@ module Google
             attr_accessor :response_include_grid_data
             alias_method :response_include_grid_data?, :response_include_grid_data
           
    +        # Limits the ranges included in the response spreadsheet.
    +        # Meaningful only if include_spreadsheet_response is 'true'.
    +        # Corresponds to the JSON property `responseRanges`
    +        # @return [Array]
    +        attr_accessor :response_ranges
    +      
    +        # Determines if the update response should include the spreadsheet
    +        # resource.
    +        # Corresponds to the JSON property `includeSpreadsheetInResponse`
    +        # @return [Boolean]
    +        attr_accessor :include_spreadsheet_in_response
    +        alias_method :include_spreadsheet_in_response?, :include_spreadsheet_in_response
    +      
    +        # A list of updates to apply to the spreadsheet.
    +        # Requests will be applied in the order they are specified.
    +        # If any request is not valid, no requests will be applied.
    +        # Corresponds to the JSON property `requests`
    +        # @return [Array]
    +        attr_accessor :requests
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @requests = args[:requests] if args.key?(:requests)
    -          @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
    -          @response_ranges = args[:response_ranges] if args.key?(:response_ranges)
               @response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
    +          @response_ranges = args[:response_ranges] if args.key?(:response_ranges)
    +          @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
    +          @requests = args[:requests] if args.key?(:requests)
             end
           end
           
    @@ -1307,10 +4094,11 @@ module Google
           class BasicChartAxis
             include Google::Apis::Core::Hashable
           
    -        # The position of this axis.
    -        # Corresponds to the JSON property `position`
    -        # @return [String]
    -        attr_accessor :position
    +        # The format of a run of text in a cell.
    +        # Absent values indicate that the field isn't specified.
    +        # Corresponds to the JSON property `format`
    +        # @return [Google::Apis::SheetsV4::TextFormat]
    +        attr_accessor :format
           
             # The title of this axis. If set, this overrides any title inferred
             # from headers of the data.
    @@ -1318,11 +4106,10 @@ module Google
             # @return [String]
             attr_accessor :title
           
    -        # The format of a run of text in a cell.
    -        # Absent values indicate that the field isn't specified.
    -        # Corresponds to the JSON property `format`
    -        # @return [Google::Apis::SheetsV4::TextFormat]
    -        attr_accessor :format
    +        # The position of this axis.
    +        # Corresponds to the JSON property `position`
    +        # @return [String]
    +        attr_accessor :position
           
             def initialize(**args)
                update!(**args)
    @@ -1330,9 +4117,9 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @position = args[:position] if args.key?(:position)
    -          @title = args[:title] if args.key?(:title)
               @format = args[:format] if args.key?(:format)
    +          @title = args[:title] if args.key?(:title)
    +          @position = args[:position] if args.key?(:position)
             end
           end
           
    @@ -1365,24 +4152,24 @@ module Google
           class UpdateChartSpecRequest
             include Google::Apis::Core::Hashable
           
    -        # The ID of the chart to update.
    -        # Corresponds to the JSON property `chartId`
    -        # @return [Fixnum]
    -        attr_accessor :chart_id
    -      
             # The specifications of a chart.
             # Corresponds to the JSON property `spec`
             # @return [Google::Apis::SheetsV4::ChartSpec]
             attr_accessor :spec
           
    +        # The ID of the chart to update.
    +        # Corresponds to the JSON property `chartId`
    +        # @return [Fixnum]
    +        attr_accessor :chart_id
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @chart_id = args[:chart_id] if args.key?(:chart_id)
               @spec = args[:spec] if args.key?(:spec)
    +          @chart_id = args[:chart_id] if args.key?(:chart_id)
             end
           end
           
    @@ -1409,6 +4196,22 @@ module Google
           class BatchUpdateValuesResponse
             include Google::Apis::Core::Hashable
           
    +        # The spreadsheet the updates were applied to.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The total number of rows where at least one cell in the row was updated.
    +        # Corresponds to the JSON property `totalUpdatedRows`
    +        # @return [Fixnum]
    +        attr_accessor :total_updated_rows
    +      
    +        # One UpdateValuesResponse per requested range, in the same order as
    +        # the requests appeared.
    +        # Corresponds to the JSON property `responses`
    +        # @return [Array]
    +        attr_accessor :responses
    +      
             # The total number of sheets where at least one cell in the sheet was
             # updated.
             # Corresponds to the JSON property `totalUpdatedSheets`
    @@ -1426,34 +4229,18 @@ module Google
             # @return [Fixnum]
             attr_accessor :total_updated_columns
           
    -        # The spreadsheet the updates were applied to.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        # The total number of rows where at least one cell in the row was updated.
    -        # Corresponds to the JSON property `totalUpdatedRows`
    -        # @return [Fixnum]
    -        attr_accessor :total_updated_rows
    -      
    -        # One UpdateValuesResponse per requested range, in the same order as
    -        # the requests appeared.
    -        # Corresponds to the JSON property `responses`
    -        # @return [Array]
    -        attr_accessor :responses
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
    -          @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
    -          @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
               @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
               @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows)
               @responses = args[:responses] if args.key?(:responses)
    +          @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
    +          @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
    +          @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
             end
           end
           
    @@ -1637,6 +4424,11 @@ module Google
             # @return [String]
             attr_accessor :delimiter
           
    +        # The delimiter type to use.
    +        # Corresponds to the JSON property `delimiterType`
    +        # @return [String]
    +        attr_accessor :delimiter_type
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -1663,11 +4455,6 @@ module Google
             # @return [Google::Apis::SheetsV4::GridRange]
             attr_accessor :source
           
    -        # The delimiter type to use.
    -        # Corresponds to the JSON property `delimiterType`
    -        # @return [String]
    -        attr_accessor :delimiter_type
    -      
             def initialize(**args)
                update!(**args)
             end
    @@ -1675,8 +4462,8 @@ module Google
             # Update properties of this object
             def update!(**args)
               @delimiter = args[:delimiter] if args.key?(:delimiter)
    -          @source = args[:source] if args.key?(:source)
               @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type)
    +          @source = args[:source] if args.key?(:source)
             end
           end
           
    @@ -1703,17 +4490,17 @@ module Google
           class BatchUpdateSpreadsheetResponse
             include Google::Apis::Core::Hashable
           
    +        # Resource that represents a spreadsheet.
    +        # Corresponds to the JSON property `updatedSpreadsheet`
    +        # @return [Google::Apis::SheetsV4::Spreadsheet]
    +        attr_accessor :updated_spreadsheet
    +      
             # The reply of the updates.  This maps 1:1 with the updates, although
             # replies to some requests may be empty.
             # Corresponds to the JSON property `replies`
             # @return [Array]
             attr_accessor :replies
           
    -        # Resource that represents a spreadsheet.
    -        # Corresponds to the JSON property `updatedSpreadsheet`
    -        # @return [Google::Apis::SheetsV4::Spreadsheet]
    -        attr_accessor :updated_spreadsheet
    -      
             # The spreadsheet the updates were applied to.
             # Corresponds to the JSON property `spreadsheetId`
             # @return [String]
    @@ -1725,8 +4512,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @replies = args[:replies] if args.key?(:replies)
               @updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
    +          @replies = args[:replies] if args.key?(:replies)
               @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
             end
           end
    @@ -1783,44 +4570,6 @@ module Google
             end
           end
           
    -      # Adds a filter view.
    -      class AddFilterViewRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A filter view.
    -        # Corresponds to the JSON property `filter`
    -        # @return [Google::Apis::SheetsV4::FilterView]
    -        attr_accessor :filter
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @filter = args[:filter] if args.key?(:filter)
    -        end
    -      end
    -      
    -      # Criteria for showing/hiding rows in a pivot table.
    -      class PivotFilterCriteria
    -        include Google::Apis::Core::Hashable
    -      
    -        # Values that should be included.  Values not listed here are excluded.
    -        # Corresponds to the JSON property `visibleValues`
    -        # @return [Array]
    -        attr_accessor :visible_values
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @visible_values = args[:visible_values] if args.key?(:visible_values)
    -        end
    -      end
    -      
           # Moves one or more rows or columns.
           class MoveDimensionRequest
             include Google::Apis::Core::Hashable
    @@ -1860,6 +4609,44 @@ module Google
             end
           end
           
    +      # Criteria for showing/hiding rows in a pivot table.
    +      class PivotFilterCriteria
    +        include Google::Apis::Core::Hashable
    +      
    +        # Values that should be included.  Values not listed here are excluded.
    +        # Corresponds to the JSON property `visibleValues`
    +        # @return [Array]
    +        attr_accessor :visible_values
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @visible_values = args[:visible_values] if args.key?(:visible_values)
    +        end
    +      end
    +      
    +      # Adds a filter view.
    +      class AddFilterViewRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A filter view.
    +        # Corresponds to the JSON property `filter`
    +        # @return [Google::Apis::SheetsV4::FilterView]
    +        attr_accessor :filter
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @filter = args[:filter] if args.key?(:filter)
    +        end
    +      end
    +      
           # Adds a new conditional format rule at the given index.
           # All subsequent rules' indexes are incremented.
           class AddConditionalFormatRuleRequest
    @@ -1890,17 +4677,6 @@ module Google
           class ChartSpec
             include Google::Apis::Core::Hashable
           
    -        # A pie chart.
    -        # Corresponds to the JSON property `pieChart`
    -        # @return [Google::Apis::SheetsV4::PieChartSpec]
    -        attr_accessor :pie_chart
    -      
    -        # The format of a run of text in a cell.
    -        # Absent values indicate that the field isn't specified.
    -        # Corresponds to the JSON property `titleTextFormat`
    -        # @return [Google::Apis::SheetsV4::TextFormat]
    -        attr_accessor :title_text_format
    -      
             # The title of the chart.
             # Corresponds to the JSON property `title`
             # @return [String]
    @@ -2070,14 +4846,23 @@ module Google
             # @return [Google::Apis::SheetsV4::OrgChartSpec]
             attr_accessor :org_chart
           
    +        # A pie chart.
    +        # Corresponds to the JSON property `pieChart`
    +        # @return [Google::Apis::SheetsV4::PieChartSpec]
    +        attr_accessor :pie_chart
    +      
    +        # The format of a run of text in a cell.
    +        # Absent values indicate that the field isn't specified.
    +        # Corresponds to the JSON property `titleTextFormat`
    +        # @return [Google::Apis::SheetsV4::TextFormat]
    +        attr_accessor :title_text_format
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
    -          @title_text_format = args[:title_text_format] if args.key?(:title_text_format)
               @title = args[:title] if args.key?(:title)
               @histogram_chart = args[:histogram_chart] if args.key?(:histogram_chart)
               @candlestick_chart = args[:candlestick_chart] if args.key?(:candlestick_chart)
    @@ -2088,6 +4873,8 @@ module Google
               @background_color = args[:background_color] if args.key?(:background_color)
               @basic_chart = args[:basic_chart] if args.key?(:basic_chart)
               @org_chart = args[:org_chart] if args.key?(:org_chart)
    +          @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
    +          @title_text_format = args[:title_text_format] if args.key?(:title_text_format)
             end
           end
           
    @@ -2095,12 +4882,6 @@ module Google
           class NumberFormat
             include Google::Apis::Core::Hashable
           
    -        # The type of the number format.
    -        # When writing, this field must be set.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
             # Pattern string used for formatting.  If not set, a default pattern based on
             # the user's locale will be used if necessary for the given type.
             # See the [Date and Number Formats guide](/sheets/api/guides/formats) for more
    @@ -2109,14 +4890,20 @@ module Google
             # @return [String]
             attr_accessor :pattern
           
    +        # The type of the number format.
    +        # When writing, this field must be set.
    +        # 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)
    -          @type = args[:type] if args.key?(:type)
               @pattern = args[:pattern] if args.key?(:pattern)
    +          @type = args[:type] if args.key?(:type)
             end
           end
           
    @@ -2124,6 +4911,12 @@ module Google
           class CandlestickDomain
             include Google::Apis::Core::Hashable
           
    +        # True to reverse the order of the domain values (horizontal axis).
    +        # Corresponds to the JSON property `reversed`
    +        # @return [Boolean]
    +        attr_accessor :reversed
    +        alias_method :reversed?, :reversed
    +      
             # The data included in a domain or series.
             # Corresponds to the JSON property `data`
             # @return [Google::Apis::SheetsV4::ChartData]
    @@ -2135,6 +4928,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    +          @reversed = args[:reversed] if args.key?(:reversed)
               @data = args[:data] if args.key?(:data)
             end
           end
    @@ -2143,11 +4937,6 @@ module Google
           class SheetProperties
             include Google::Apis::Core::Hashable
           
    -        # The name of the sheet.
    -        # Corresponds to the JSON property `title`
    -        # @return [String]
    -        attr_accessor :title
    -      
             # Represents a color in the RGBA color space. This representation is designed
             # for simplicity of conversion to/from color representations in various
             # languages over compactness; for example, the fields of this representation
    @@ -2294,13 +5083,17 @@ module Google
             # @return [Google::Apis::SheetsV4::GridProperties]
             attr_accessor :grid_properties
           
    +        # The name of the sheet.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @title = args[:title] if args.key?(:title)
               @tab_color = args[:tab_color] if args.key?(:tab_color)
               @index = args[:index] if args.key?(:index)
               @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    @@ -2308,6 +5101,7 @@ module Google
               @hidden = args[:hidden] if args.key?(:hidden)
               @sheet_type = args[:sheet_type] if args.key?(:sheet_type)
               @grid_properties = args[:grid_properties] if args.key?(:grid_properties)
    +          @title = args[:title] if args.key?(:title)
             end
           end
           
    @@ -2315,6 +5109,11 @@ module Google
           class UpdateDimensionPropertiesRequest
             include Google::Apis::Core::Hashable
           
    +        # Properties about a dimension.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::DimensionProperties]
    +        attr_accessor :properties
    +      
             # A range along a single dimension on a sheet.
             # All indexes are zero-based.
             # Indexes are half open: the start index is inclusive
    @@ -2331,20 +5130,15 @@ module Google
             # @return [String]
             attr_accessor :fields
           
    -        # Properties about a dimension.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::DimensionProperties]
    -        attr_accessor :properties
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @properties = args[:properties] if args.key?(:properties)
               @range = args[:range] if args.key?(:range)
               @fields = args[:fields] if args.key?(:fields)
    -          @properties = args[:properties] if args.key?(:properties)
             end
           end
           
    @@ -2352,6 +5146,14 @@ module Google
           class SourceAndDestination
             include Google::Apis::Core::Hashable
           
    +        # The number of rows or columns that data should be filled into.
    +        # Positive numbers expand beyond the last row or last column
    +        # of the source.  Negative numbers expand before the first row
    +        # or first column of the source.
    +        # Corresponds to the JSON property `fillLength`
    +        # @return [Fixnum]
    +        attr_accessor :fill_length
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -2383,98 +5185,15 @@ module Google
             # @return [String]
             attr_accessor :dimension
           
    -        # The number of rows or columns that data should be filled into.
    -        # Positive numbers expand beyond the last row or last column
    -        # of the source.  Negative numbers expand before the first row
    -        # or first column of the source.
    -        # Corresponds to the JSON property `fillLength`
    -        # @return [Fixnum]
    -        attr_accessor :fill_length
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @fill_length = args[:fill_length] if args.key?(:fill_length)
               @source = args[:source] if args.key?(:source)
               @dimension = args[:dimension] if args.key?(:dimension)
    -          @fill_length = args[:fill_length] if args.key?(:fill_length)
    -        end
    -      end
    -      
    -      # A filter view.
    -      class FilterView
    -        include Google::Apis::Core::Hashable
    -      
    -        # The named range this filter view is backed by, if any.
    -        # When writing, only one of range or named_range_id
    -        # may be set.
    -        # Corresponds to the JSON property `namedRangeId`
    -        # @return [String]
    -        attr_accessor :named_range_id
    -      
    -        # The ID of the filter view.
    -        # Corresponds to the JSON property `filterViewId`
    -        # @return [Fixnum]
    -        attr_accessor :filter_view_id
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The criteria for showing/hiding values per column.
    -        # The map's key is the column index, and the value is the criteria for
    -        # that column.
    -        # Corresponds to the JSON property `criteria`
    -        # @return [Hash]
    -        attr_accessor :criteria
    -      
    -        # The name of the filter view.
    -        # Corresponds to the JSON property `title`
    -        # @return [String]
    -        attr_accessor :title
    -      
    -        # The sort order per column. Later specifications are used when values
    -        # are equal in the earlier specifications.
    -        # Corresponds to the JSON property `sortSpecs`
    -        # @return [Array]
    -        attr_accessor :sort_specs
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    -          @filter_view_id = args[:filter_view_id] if args.key?(:filter_view_id)
    -          @range = args[:range] if args.key?(:range)
    -          @criteria = args[:criteria] if args.key?(:criteria)
    -          @title = args[:title] if args.key?(:title)
    -          @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
             end
           end
           
    @@ -2491,6 +5210,109 @@ module Google
           class OrgChartSpec
             include Google::Apis::Core::Hashable
           
    +        # Represents a color in the RGBA color space. This representation is designed
    +        # for simplicity of conversion to/from color representations in various
    +        # languages over compactness; for example, the fields of this representation
    +        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    +        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    +        # method in iOS; and, with just a little work, it can be easily formatted into
    +        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    +        # Example (Java):
    +        # import com.google.type.Color;
    +        # // ...
    +        # public static java.awt.Color fromProto(Color protocolor) `
    +        # float alpha = protocolor.hasAlpha()
    +        # ? protocolor.getAlpha().getValue()
    +        # : 1.0;
    +        # return new java.awt.Color(
    +        # protocolor.getRed(),
    +        # protocolor.getGreen(),
    +        # protocolor.getBlue(),
    +        # alpha);
    +        # `
    +        # public static Color toProto(java.awt.Color color) `
    +        # float red = (float) color.getRed();
    +        # float green = (float) color.getGreen();
    +        # float blue = (float) color.getBlue();
    +        # float denominator = 255.0;
    +        # Color.Builder resultBuilder =
    +        # Color
    +        # .newBuilder()
    +        # .setRed(red / denominator)
    +        # .setGreen(green / denominator)
    +        # .setBlue(blue / denominator);
    +        # int alpha = color.getAlpha();
    +        # if (alpha != 255) `
    +        # result.setAlpha(
    +        # FloatValue
    +        # .newBuilder()
    +        # .setValue(((float) alpha) / denominator)
    +        # .build());
    +        # `
    +        # return resultBuilder.build();
    +        # `
    +        # // ...
    +        # Example (iOS / Obj-C):
    +        # // ...
    +        # static UIColor* fromProto(Color* protocolor) `
    +        # float red = [protocolor red];
    +        # float green = [protocolor green];
    +        # float blue = [protocolor blue];
    +        # FloatValue* alpha_wrapper = [protocolor alpha];
    +        # float alpha = 1.0;
    +        # if (alpha_wrapper != nil) `
    +        # alpha = [alpha_wrapper value];
    +        # `
    +        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    +        # `
    +        # static Color* toProto(UIColor* color) `
    +        # CGFloat red, green, blue, alpha;
    +        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    +        # return nil;
    +        # `
    +        # Color* result = [Color alloc] init];
    +        # [result setRed:red];
    +        # [result setGreen:green];
    +        # [result setBlue:blue];
    +        # if (alpha <= 0.9999) `
    +        # [result setAlpha:floatWrapperWithValue(alpha)];
    +        # `
    +        # [result autorelease];
    +        # return result;
    +        # `
    +        # // ...
    +        # Example (JavaScript):
    +        # // ...
    +        # var protoToCssColor = function(rgb_color) `
    +        # var redFrac = rgb_color.red || 0.0;
    +        # var greenFrac = rgb_color.green || 0.0;
    +        # var blueFrac = rgb_color.blue || 0.0;
    +        # var red = Math.floor(redFrac * 255);
    +        # var green = Math.floor(greenFrac * 255);
    +        # var blue = Math.floor(blueFrac * 255);
    +        # if (!('alpha' in rgb_color)) `
    +        # return rgbToCssColor_(red, green, blue);
    +        # `
    +        # var alphaFrac = rgb_color.alpha.value || 0.0;
    +        # var rgbParams = [red, green, blue].join(',');
    +        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    +        # `;
    +        # var rgbToCssColor_ = function(red, green, blue) `
    +        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    +        # var hexString = rgbNumber.toString(16);
    +        # var missingZeros = 6 - hexString.length;
    +        # var resultBuilder = ['#'];
    +        # for (var i = 0; i < missingZeros; i++) `
    +        # resultBuilder.push('0');
    +        # `
    +        # resultBuilder.push(hexString);
    +        # return resultBuilder.join('');
    +        # `;
    +        # // ...
    +        # Corresponds to the JSON property `nodeColor`
    +        # @return [Google::Apis::SheetsV4::Color]
    +        attr_accessor :node_color
    +      
             # The data included in a domain or series.
             # Corresponds to the JSON property `tooltips`
             # @return [Google::Apis::SheetsV4::ChartData]
    @@ -2604,15 +5426,119 @@ module Google
             # @return [Google::Apis::SheetsV4::ChartData]
             attr_accessor :parent_labels
           
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `labels`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :labels
    +      
             # The size of the org chart nodes.
             # Corresponds to the JSON property `nodeSize`
             # @return [String]
             attr_accessor :node_size
           
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `labels`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :labels
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @node_color = args[:node_color] if args.key?(:node_color)
    +          @tooltips = args[:tooltips] if args.key?(:tooltips)
    +          @selected_node_color = args[:selected_node_color] if args.key?(:selected_node_color)
    +          @parent_labels = args[:parent_labels] if args.key?(:parent_labels)
    +          @labels = args[:labels] if args.key?(:labels)
    +          @node_size = args[:node_size] if args.key?(:node_size)
    +        end
    +      end
    +      
    +      # A filter view.
    +      class FilterView
    +        include Google::Apis::Core::Hashable
    +      
    +        # The named range this filter view is backed by, if any.
    +        # When writing, only one of range or named_range_id
    +        # may be set.
    +        # Corresponds to the JSON property `namedRangeId`
    +        # @return [String]
    +        attr_accessor :named_range_id
    +      
    +        # The ID of the filter view.
    +        # Corresponds to the JSON property `filterViewId`
    +        # @return [Fixnum]
    +        attr_accessor :filter_view_id
    +      
    +        # The criteria for showing/hiding values per column.
    +        # The map's key is the column index, and the value is the criteria for
    +        # that column.
    +        # Corresponds to the JSON property `criteria`
    +        # @return [Hash]
    +        attr_accessor :criteria
    +      
    +        # The name of the filter view.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
    +        # A range on a sheet.
    +        # All indexes are zero-based.
    +        # Indexes are half open, e.g the start index is inclusive
    +        # and the end index is exclusive -- [start_index, end_index).
    +        # Missing indexes indicate the range is unbounded on that side.
    +        # For example, if `"Sheet1"` is sheet ID 0, then:
    +        # `Sheet1!A1:A1 == sheet_id: 0,
    +        # start_row_index: 0, end_row_index: 1,
    +        # start_column_index: 0, end_column_index: 1`
    +        # `Sheet1!A3:B4 == sheet_id: 0,
    +        # start_row_index: 2, end_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A:B == sheet_id: 0,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1!A5:B == sheet_id: 0,
    +        # start_row_index: 4,
    +        # start_column_index: 0, end_column_index: 2`
    +        # `Sheet1 == sheet_id:0`
    +        # The start index must always be less than or equal to the end index.
    +        # If the start index equals the end index, then the range is empty.
    +        # Empty ranges are typically not meaningful and are usually rendered in the
    +        # UI as `#REF!`.
    +        # Corresponds to the JSON property `range`
    +        # @return [Google::Apis::SheetsV4::GridRange]
    +        attr_accessor :range
    +      
    +        # The sort order per column. Later specifications are used when values
    +        # are equal in the earlier specifications.
    +        # Corresponds to the JSON property `sortSpecs`
    +        # @return [Array]
    +        attr_accessor :sort_specs
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    +          @filter_view_id = args[:filter_view_id] if args.key?(:filter_view_id)
    +          @criteria = args[:criteria] if args.key?(:criteria)
    +          @title = args[:title] if args.key?(:title)
    +          @range = args[:range] if args.key?(:range)
    +          @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
    +        end
    +      end
    +      
    +      # Properties referring a single dimension (either row or column). If both
    +      # BandedRange.row_properties and BandedRange.column_properties are
    +      # set, the fill colors are applied to cells according to the following rules:
    +      # * header_color and footer_color take priority over band colors.
    +      # * first_band_color takes priority over second_band_color.
    +      # * row_properties takes priority over column_properties.
    +      # For example, the first row color takes priority over the first column
    +      # color, but the first column color takes priority over the second row color.
    +      # Similarly, the row header takes priority over the column header in the
    +      # top left cell, but the column header takes priority over the first row
    +      # color if the row header is not set.
    +      class BandingProperties
    +        include Google::Apis::Core::Hashable
           
             # Represents a color in the RGBA color space. This representation is designed
             # for simplicity of conversion to/from color representations in various
    @@ -2713,38 +5639,9 @@ module Google
             # return resultBuilder.join('');
             # `;
             # // ...
    -        # Corresponds to the JSON property `nodeColor`
    +        # Corresponds to the JSON property `secondBandColor`
             # @return [Google::Apis::SheetsV4::Color]
    -        attr_accessor :node_color
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @tooltips = args[:tooltips] if args.key?(:tooltips)
    -          @selected_node_color = args[:selected_node_color] if args.key?(:selected_node_color)
    -          @parent_labels = args[:parent_labels] if args.key?(:parent_labels)
    -          @node_size = args[:node_size] if args.key?(:node_size)
    -          @labels = args[:labels] if args.key?(:labels)
    -          @node_color = args[:node_color] if args.key?(:node_color)
    -        end
    -      end
    -      
    -      # Properties referring a single dimension (either row or column). If both
    -      # BandedRange.row_properties and BandedRange.column_properties are
    -      # set, the fill colors are applied to cells according to the following rules:
    -      # * header_color and footer_color take priority over band colors.
    -      # * first_band_color takes priority over second_band_color.
    -      # * row_properties takes priority over column_properties.
    -      # For example, the first row color takes priority over the first column
    -      # color, but the first column color takes priority over the second row color.
    -      # Similarly, the row header takes priority over the column header in the
    -      # top left cell, but the column header takes priority over the first row
    -      # color if the row header is not set.
    -      class BandingProperties
    -        include Google::Apis::Core::Hashable
    +        attr_accessor :second_band_color
           
             # Represents a color in the RGBA color space. This representation is designed
             # for simplicity of conversion to/from color representations in various
    @@ -3055,130 +5952,27 @@ module Google
             # @return [Google::Apis::SheetsV4::Color]
             attr_accessor :first_band_color
           
    -        # Represents a color in the RGBA color space. This representation is designed
    -        # for simplicity of conversion to/from color representations in various
    -        # languages over compactness; for example, the fields of this representation
    -        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    -        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    -        # method in iOS; and, with just a little work, it can be easily formatted into
    -        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    -        # Example (Java):
    -        # import com.google.type.Color;
    -        # // ...
    -        # public static java.awt.Color fromProto(Color protocolor) `
    -        # float alpha = protocolor.hasAlpha()
    -        # ? protocolor.getAlpha().getValue()
    -        # : 1.0;
    -        # return new java.awt.Color(
    -        # protocolor.getRed(),
    -        # protocolor.getGreen(),
    -        # protocolor.getBlue(),
    -        # alpha);
    -        # `
    -        # public static Color toProto(java.awt.Color color) `
    -        # float red = (float) color.getRed();
    -        # float green = (float) color.getGreen();
    -        # float blue = (float) color.getBlue();
    -        # float denominator = 255.0;
    -        # Color.Builder resultBuilder =
    -        # Color
    -        # .newBuilder()
    -        # .setRed(red / denominator)
    -        # .setGreen(green / denominator)
    -        # .setBlue(blue / denominator);
    -        # int alpha = color.getAlpha();
    -        # if (alpha != 255) `
    -        # result.setAlpha(
    -        # FloatValue
    -        # .newBuilder()
    -        # .setValue(((float) alpha) / denominator)
    -        # .build());
    -        # `
    -        # return resultBuilder.build();
    -        # `
    -        # // ...
    -        # Example (iOS / Obj-C):
    -        # // ...
    -        # static UIColor* fromProto(Color* protocolor) `
    -        # float red = [protocolor red];
    -        # float green = [protocolor green];
    -        # float blue = [protocolor blue];
    -        # FloatValue* alpha_wrapper = [protocolor alpha];
    -        # float alpha = 1.0;
    -        # if (alpha_wrapper != nil) `
    -        # alpha = [alpha_wrapper value];
    -        # `
    -        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    -        # `
    -        # static Color* toProto(UIColor* color) `
    -        # CGFloat red, green, blue, alpha;
    -        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    -        # return nil;
    -        # `
    -        # Color* result = [Color alloc] init];
    -        # [result setRed:red];
    -        # [result setGreen:green];
    -        # [result setBlue:blue];
    -        # if (alpha <= 0.9999) `
    -        # [result setAlpha:floatWrapperWithValue(alpha)];
    -        # `
    -        # [result autorelease];
    -        # return result;
    -        # `
    -        # // ...
    -        # Example (JavaScript):
    -        # // ...
    -        # var protoToCssColor = function(rgb_color) `
    -        # var redFrac = rgb_color.red || 0.0;
    -        # var greenFrac = rgb_color.green || 0.0;
    -        # var blueFrac = rgb_color.blue || 0.0;
    -        # var red = Math.floor(redFrac * 255);
    -        # var green = Math.floor(greenFrac * 255);
    -        # var blue = Math.floor(blueFrac * 255);
    -        # if (!('alpha' in rgb_color)) `
    -        # return rgbToCssColor_(red, green, blue);
    -        # `
    -        # var alphaFrac = rgb_color.alpha.value || 0.0;
    -        # var rgbParams = [red, green, blue].join(',');
    -        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    -        # `;
    -        # var rgbToCssColor_ = function(red, green, blue) `
    -        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    -        # var hexString = rgbNumber.toString(16);
    -        # var missingZeros = 6 - hexString.length;
    -        # var resultBuilder = ['#'];
    -        # for (var i = 0; i < missingZeros; i++) `
    -        # resultBuilder.push('0');
    -        # `
    -        # resultBuilder.push(hexString);
    -        # return resultBuilder.join('');
    -        # `;
    -        # // ...
    -        # Corresponds to the JSON property `secondBandColor`
    -        # @return [Google::Apis::SheetsV4::Color]
    -        attr_accessor :second_band_color
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @second_band_color = args[:second_band_color] if args.key?(:second_band_color)
               @footer_color = args[:footer_color] if args.key?(:footer_color)
               @header_color = args[:header_color] if args.key?(:header_color)
               @first_band_color = args[:first_band_color] if args.key?(:first_band_color)
    -          @second_band_color = args[:second_band_color] if args.key?(:second_band_color)
             end
           end
           
    -      # The result of adding a new protected range.
    -      class AddProtectedRangeResponse
    +      # The series of a CandlestickData.
    +      class CandlestickSeries
             include Google::Apis::Core::Hashable
           
    -        # A protected range.
    -        # Corresponds to the JSON property `protectedRange`
    -        # @return [Google::Apis::SheetsV4::ProtectedRange]
    -        attr_accessor :protected_range
    +        # The data included in a domain or series.
    +        # Corresponds to the JSON property `data`
    +        # @return [Google::Apis::SheetsV4::ChartData]
    +        attr_accessor :data
           
             def initialize(**args)
                update!(**args)
    @@ -3186,7 +5980,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @protected_range = args[:protected_range] if args.key?(:protected_range)
    +          @data = args[:data] if args.key?(:data)
             end
           end
           
    @@ -3194,6 +5988,19 @@ module Google
           class BasicFilter
             include Google::Apis::Core::Hashable
           
    +        # The sort order per column. Later specifications are used when values
    +        # are equal in the earlier specifications.
    +        # Corresponds to the JSON property `sortSpecs`
    +        # @return [Array]
    +        attr_accessor :sort_specs
    +      
    +        # The criteria for showing/hiding values per column.
    +        # The map's key is the column index, and the value is the criteria for
    +        # that column.
    +        # Corresponds to the JSON property `criteria`
    +        # @return [Hash]
    +        attr_accessor :criteria
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -3220,39 +6027,26 @@ module Google
             # @return [Google::Apis::SheetsV4::GridRange]
             attr_accessor :range
           
    -        # The criteria for showing/hiding values per column.
    -        # The map's key is the column index, and the value is the criteria for
    -        # that column.
    -        # Corresponds to the JSON property `criteria`
    -        # @return [Hash]
    -        attr_accessor :criteria
    -      
    -        # The sort order per column. Later specifications are used when values
    -        # are equal in the earlier specifications.
    -        # Corresponds to the JSON property `sortSpecs`
    -        # @return [Array]
    -        attr_accessor :sort_specs
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @range = args[:range] if args.key?(:range)
    -          @criteria = args[:criteria] if args.key?(:criteria)
               @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
    +          @criteria = args[:criteria] if args.key?(:criteria)
    +          @range = args[:range] if args.key?(:range)
             end
           end
           
    -      # The series of a CandlestickData.
    -      class CandlestickSeries
    +      # The result of adding a new protected range.
    +      class AddProtectedRangeResponse
             include Google::Apis::Core::Hashable
           
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `data`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :data
    +        # A protected range.
    +        # Corresponds to the JSON property `protectedRange`
    +        # @return [Google::Apis::SheetsV4::ProtectedRange]
    +        attr_accessor :protected_range
           
             def initialize(**args)
                update!(**args)
    @@ -3260,7 +6054,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @data = args[:data] if args.key?(:data)
    +          @protected_range = args[:protected_range] if args.key?(:protected_range)
             end
           end
           
    @@ -3273,15 +6067,6 @@ module Google
           class HistogramChartSpec
             include Google::Apis::Core::Hashable
           
    -        # By default the bucket size (the range of values stacked in a single
    -        # column) is chosen automatically, but it may be overridden here.
    -        # E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc.
    -        # Cannot be negative.
    -        # This field is optional.
    -        # Corresponds to the JSON property `bucketSize`
    -        # @return [Float]
    -        attr_accessor :bucket_size
    -      
             # The outlier percentile is used to ensure that outliers do not adversely
             # affect the calculation of bucket sizes.  For example, setting an outlier
             # percentile of 0.05 indicates that the top and bottom 5% of values when
    @@ -3311,17 +6096,26 @@ module Google
             # @return [String]
             attr_accessor :legend_position
           
    +        # By default the bucket size (the range of values stacked in a single
    +        # column) is chosen automatically, but it may be overridden here.
    +        # E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc.
    +        # Cannot be negative.
    +        # This field is optional.
    +        # Corresponds to the JSON property `bucketSize`
    +        # @return [Float]
    +        attr_accessor :bucket_size
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @bucket_size = args[:bucket_size] if args.key?(:bucket_size)
               @outlier_percentile = args[:outlier_percentile] if args.key?(:outlier_percentile)
               @show_item_dividers = args[:show_item_dividers] if args.key?(:show_item_dividers)
               @series = args[:series] if args.key?(:series)
               @legend_position = args[:legend_position] if args.key?(:legend_position)
    +          @bucket_size = args[:bucket_size] if args.key?(:bucket_size)
             end
           end
           
    @@ -3329,16 +6123,16 @@ module Google
           class UpdateValuesResponse
             include Google::Apis::Core::Hashable
           
    -        # The number of rows where at least one cell in the row was updated.
    -        # Corresponds to the JSON property `updatedRows`
    -        # @return [Fixnum]
    -        attr_accessor :updated_rows
    -      
             # Data within a range of the spreadsheet.
             # Corresponds to the JSON property `updatedData`
             # @return [Google::Apis::SheetsV4::ValueRange]
             attr_accessor :updated_data
           
    +        # The number of rows where at least one cell in the row was updated.
    +        # Corresponds to the JSON property `updatedRows`
    +        # @return [Fixnum]
    +        attr_accessor :updated_rows
    +      
             # The number of columns where at least one cell in the column was updated.
             # Corresponds to the JSON property `updatedColumns`
             # @return [Fixnum]
    @@ -3365,8 +6159,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @updated_rows = args[:updated_rows] if args.key?(:updated_rows)
               @updated_data = args[:updated_data] if args.key?(:updated_data)
    +          @updated_rows = args[:updated_rows] if args.key?(:updated_rows)
               @updated_columns = args[:updated_columns] if args.key?(:updated_columns)
               @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
               @updated_range = args[:updated_range] if args.key?(:updated_range)
    @@ -3378,25 +6172,25 @@ module Google
           class ErrorValue
             include Google::Apis::Core::Hashable
           
    -        # The type of error.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
             # A message with more information about the error
             # (in the spreadsheet's locale).
             # Corresponds to the JSON property `message`
             # @return [String]
             attr_accessor :message
           
    +        # The type of error.
    +        # 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)
    -          @type = args[:type] if args.key?(:type)
               @message = args[:message] if args.key?(:message)
    +          @type = args[:type] if args.key?(:type)
             end
           end
           
    @@ -3404,6 +6198,12 @@ module Google
           class PivotValue
             include Google::Apis::Core::Hashable
           
    +        # A custom formula to calculate the value.  The formula must start
    +        # with an `=` character.
    +        # Corresponds to the JSON property `formula`
    +        # @return [String]
    +        attr_accessor :formula
    +      
             # A function to summarize the value.
             # If formula is set, the only supported values are
             # SUM and
    @@ -3428,22 +6228,16 @@ module Google
             # @return [String]
             attr_accessor :name
           
    -        # A custom formula to calculate the value.  The formula must start
    -        # with an `=` character.
    -        # Corresponds to the JSON property `formula`
    -        # @return [String]
    -        attr_accessor :formula
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @formula = args[:formula] if args.key?(:formula)
               @summarize_function = args[:summarize_function] if args.key?(:summarize_function)
               @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
               @name = args[:name] if args.key?(:name)
    -          @formula = args[:formula] if args.key?(:formula)
             end
           end
           
    @@ -3470,12 +6264,6 @@ module Google
           class PivotGroupSortValueBucket
             include Google::Apis::Core::Hashable
           
    -        # The offset in the PivotTable.values list which the values in this
    -        # grouping should be sorted by.
    -        # Corresponds to the JSON property `valuesIndex`
    -        # @return [Fixnum]
    -        attr_accessor :values_index
    -      
             # Determines the bucket from which values are chosen to sort.
             # For example, in a pivot table with one row group & two column groups,
             # the row group can list up to two values. The first value corresponds
    @@ -3488,14 +6276,20 @@ module Google
             # @return [Array]
             attr_accessor :buckets
           
    +        # The offset in the PivotTable.values list which the values in this
    +        # grouping should be sorted by.
    +        # Corresponds to the JSON property `valuesIndex`
    +        # @return [Fixnum]
    +        attr_accessor :values_index
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @values_index = args[:values_index] if args.key?(:values_index)
               @buckets = args[:buckets] if args.key?(:buckets)
    +          @values_index = args[:values_index] if args.key?(:values_index)
             end
           end
           
    @@ -3504,25 +6298,25 @@ module Google
           class CandlestickChartSpec
             include Google::Apis::Core::Hashable
           
    -        # The domain of a CandlestickChart.
    -        # Corresponds to the JSON property `domain`
    -        # @return [Google::Apis::SheetsV4::CandlestickDomain]
    -        attr_accessor :domain
    -      
             # The Candlestick chart data.
             # Only one CandlestickData is supported.
             # Corresponds to the JSON property `data`
             # @return [Array]
             attr_accessor :data
           
    +        # The domain of a CandlestickChart.
    +        # Corresponds to the JSON property `domain`
    +        # @return [Google::Apis::SheetsV4::CandlestickDomain]
    +        attr_accessor :domain
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @domain = args[:domain] if args.key?(:domain)
               @data = args[:data] if args.key?(:data)
    +          @domain = args[:domain] if args.key?(:domain)
             end
           end
           
    @@ -3532,35 +6326,35 @@ module Google
             include Google::Apis::Core::Hashable
           
             # The series of a CandlestickData.
    -        # Corresponds to the JSON property `highSeries`
    +        # Corresponds to the JSON property `closeSeries`
             # @return [Google::Apis::SheetsV4::CandlestickSeries]
    -        attr_accessor :high_series
    +        attr_accessor :close_series
           
             # The series of a CandlestickData.
             # Corresponds to the JSON property `lowSeries`
             # @return [Google::Apis::SheetsV4::CandlestickSeries]
             attr_accessor :low_series
           
    -        # The series of a CandlestickData.
    -        # Corresponds to the JSON property `closeSeries`
    -        # @return [Google::Apis::SheetsV4::CandlestickSeries]
    -        attr_accessor :close_series
    -      
             # The series of a CandlestickData.
             # Corresponds to the JSON property `openSeries`
             # @return [Google::Apis::SheetsV4::CandlestickSeries]
             attr_accessor :open_series
           
    +        # The series of a CandlestickData.
    +        # Corresponds to the JSON property `highSeries`
    +        # @return [Google::Apis::SheetsV4::CandlestickSeries]
    +        attr_accessor :high_series
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @high_series = args[:high_series] if args.key?(:high_series)
    -          @low_series = args[:low_series] if args.key?(:low_series)
               @close_series = args[:close_series] if args.key?(:close_series)
    +          @low_series = args[:low_series] if args.key?(:low_series)
               @open_series = args[:open_series] if args.key?(:open_series)
    +          @high_series = args[:high_series] if args.key?(:high_series)
             end
           end
           
    @@ -3575,17 +6369,17 @@ module Google
             attr_accessor :new_sheet
             alias_method :new_sheet?, :new_sheet
           
    +        # The location an object is overlaid on top of a grid.
    +        # Corresponds to the JSON property `overlayPosition`
    +        # @return [Google::Apis::SheetsV4::OverlayPosition]
    +        attr_accessor :overlay_position
    +      
             # The sheet this is on. Set only if the embedded object
             # is on its own sheet. Must be non-negative.
             # Corresponds to the JSON property `sheetId`
             # @return [Fixnum]
             attr_accessor :sheet_id
           
    -        # The location an object is overlaid on top of a grid.
    -        # Corresponds to the JSON property `overlayPosition`
    -        # @return [Google::Apis::SheetsV4::OverlayPosition]
    -        attr_accessor :overlay_position
    -      
             def initialize(**args)
                update!(**args)
             end
    @@ -3593,8 +6387,8 @@ module Google
             # Update properties of this object
             def update!(**args)
               @new_sheet = args[:new_sheet] if args.key?(:new_sheet)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
               @overlay_position = args[:overlay_position] if args.key?(:overlay_position)
    +          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
             end
           end
           
    @@ -3621,6 +6415,18 @@ module Google
           class AutoFillRequest
             include Google::Apis::Core::Hashable
           
    +        # True if we should generate data with the "alternate" series.
    +        # This differs based on the type and amount of source data.
    +        # Corresponds to the JSON property `useAlternateSeries`
    +        # @return [Boolean]
    +        attr_accessor :use_alternate_series
    +        alias_method :use_alternate_series?, :use_alternate_series
    +      
    +        # A combination of a source range and how to extend that source.
    +        # Corresponds to the JSON property `sourceAndDestination`
    +        # @return [Google::Apis::SheetsV4::SourceAndDestination]
    +        attr_accessor :source_and_destination
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -3647,27 +6453,15 @@ module Google
             # @return [Google::Apis::SheetsV4::GridRange]
             attr_accessor :range
           
    -        # True if we should generate data with the "alternate" series.
    -        # This differs based on the type and amount of source data.
    -        # Corresponds to the JSON property `useAlternateSeries`
    -        # @return [Boolean]
    -        attr_accessor :use_alternate_series
    -        alias_method :use_alternate_series?, :use_alternate_series
    -      
    -        # A combination of a source range and how to extend that source.
    -        # Corresponds to the JSON property `sourceAndDestination`
    -        # @return [Google::Apis::SheetsV4::SourceAndDestination]
    -        attr_accessor :source_and_destination
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @range = args[:range] if args.key?(:range)
               @use_alternate_series = args[:use_alternate_series] if args.key?(:use_alternate_series)
               @source_and_destination = args[:source_and_destination] if args.key?(:source_and_destination)
    +          @range = args[:range] if args.key?(:range)
             end
           end
           
    @@ -3688,16 +6482,16 @@ module Google
             # A single interpolation point on a gradient conditional format.
             # These pin the gradient color scale according to the color,
             # type and value chosen.
    -        # Corresponds to the JSON property `minpoint`
    +        # Corresponds to the JSON property `maxpoint`
             # @return [Google::Apis::SheetsV4::InterpolationPoint]
    -        attr_accessor :minpoint
    +        attr_accessor :maxpoint
           
             # A single interpolation point on a gradient conditional format.
             # These pin the gradient color scale according to the color,
             # type and value chosen.
    -        # Corresponds to the JSON property `maxpoint`
    +        # Corresponds to the JSON property `minpoint`
             # @return [Google::Apis::SheetsV4::InterpolationPoint]
    -        attr_accessor :maxpoint
    +        attr_accessor :minpoint
           
             def initialize(**args)
                update!(**args)
    @@ -3706,21 +6500,8 @@ module Google
             # Update properties of this object
             def update!(**args)
               @midpoint = args[:midpoint] if args.key?(:midpoint)
    -          @minpoint = args[:minpoint] if args.key?(:minpoint)
               @maxpoint = args[:maxpoint] if args.key?(:maxpoint)
    -        end
    -      end
    -      
    -      # The request for clearing a range of values in a spreadsheet.
    -      class ClearValuesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    +          @minpoint = args[:minpoint] if args.key?(:minpoint)
             end
           end
           
    @@ -3743,24 +6524,25 @@ module Google
             end
           end
           
    +      # The request for clearing a range of values in a spreadsheet.
    +      class ClearValuesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
           # A single interpolation point on a gradient conditional format.
           # These pin the gradient color scale according to the color,
           # type and value chosen.
           class InterpolationPoint
             include Google::Apis::Core::Hashable
           
    -        # How the value should be interpreted.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # The value this interpolation point uses.  May be a formula.
    -        # Unused if type is MIN or
    -        # MAX.
    -        # Corresponds to the JSON property `value`
    -        # @return [String]
    -        attr_accessor :value
    -      
             # Represents a color in the RGBA color space. This representation is designed
             # for simplicity of conversion to/from color representations in various
             # languages over compactness; for example, the fields of this representation
    @@ -3864,15 +6646,27 @@ module Google
             # @return [Google::Apis::SheetsV4::Color]
             attr_accessor :color
           
    +        # How the value should be interpreted.
    +        # Corresponds to the JSON property `type`
    +        # @return [String]
    +        attr_accessor :type
    +      
    +        # The value this interpolation point uses.  May be a formula.
    +        # Unused if type is MIN or
    +        # MAX.
    +        # 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)
    +          @color = args[:color] if args.key?(:color)
               @type = args[:type] if args.key?(:type)
               @value = args[:value] if args.key?(:value)
    -          @color = args[:color] if args.key?(:color)
             end
           end
           
    @@ -3880,6 +6674,11 @@ module Google
           class FindReplaceResponse
             include Google::Apis::Core::Hashable
           
    +        # The number of sheets changed.
    +        # Corresponds to the JSON property `sheetsChanged`
    +        # @return [Fixnum]
    +        attr_accessor :sheets_changed
    +      
             # The number of formula cells changed.
             # Corresponds to the JSON property `formulasChanged`
             # @return [Fixnum]
    @@ -3902,22 +6701,17 @@ module Google
             # @return [Fixnum]
             attr_accessor :rows_changed
           
    -        # The number of sheets changed.
    -        # Corresponds to the JSON property `sheetsChanged`
    -        # @return [Fixnum]
    -        attr_accessor :sheets_changed
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @sheets_changed = args[:sheets_changed] if args.key?(:sheets_changed)
               @formulas_changed = args[:formulas_changed] if args.key?(:formulas_changed)
               @values_changed = args[:values_changed] if args.key?(:values_changed)
               @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
               @rows_changed = args[:rows_changed] if args.key?(:rows_changed)
    -          @sheets_changed = args[:sheets_changed] if args.key?(:sheets_changed)
             end
           end
           
    @@ -3992,17 +6786,17 @@ module Google
             # @return [Fixnum]
             attr_accessor :new_index
           
    +        # A rule describing a conditional format.
    +        # Corresponds to the JSON property `newRule`
    +        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    +        attr_accessor :new_rule
    +      
             # The old index of the rule. Not set if a rule was replaced
             # (because it is the same as new_index).
             # Corresponds to the JSON property `oldIndex`
             # @return [Fixnum]
             attr_accessor :old_index
           
    -        # A rule describing a conditional format.
    -        # Corresponds to the JSON property `newRule`
    -        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    -        attr_accessor :new_rule
    -      
             def initialize(**args)
                update!(**args)
             end
    @@ -4011,8 +6805,8 @@ module Google
             def update!(**args)
               @old_rule = args[:old_rule] if args.key?(:old_rule)
               @new_index = args[:new_index] if args.key?(:new_index)
    -          @old_index = args[:old_index] if args.key?(:old_index)
               @new_rule = args[:new_rule] if args.key?(:new_rule)
    +          @old_index = args[:old_index] if args.key?(:old_index)
             end
           end
           
    @@ -4020,17 +6814,6 @@ module Google
           class DuplicateSheetRequest
             include Google::Apis::Core::Hashable
           
    -        # The zero-based index where the new sheet should be inserted.
    -        # The index of all sheets after this are incremented.
    -        # Corresponds to the JSON property `insertSheetIndex`
    -        # @return [Fixnum]
    -        attr_accessor :insert_sheet_index
    -      
    -        # The name of the new sheet.  If empty, a new name is chosen for you.
    -        # Corresponds to the JSON property `newSheetName`
    -        # @return [String]
    -        attr_accessor :new_sheet_name
    -      
             # The sheet to duplicate.
             # Corresponds to the JSON property `sourceSheetId`
             # @return [Fixnum]
    @@ -4043,16 +6826,27 @@ module Google
             # @return [Fixnum]
             attr_accessor :new_sheet_id
           
    +        # The zero-based index where the new sheet should be inserted.
    +        # The index of all sheets after this are incremented.
    +        # Corresponds to the JSON property `insertSheetIndex`
    +        # @return [Fixnum]
    +        attr_accessor :insert_sheet_index
    +      
    +        # The name of the new sheet.  If empty, a new name is chosen for you.
    +        # Corresponds to the JSON property `newSheetName`
    +        # @return [String]
    +        attr_accessor :new_sheet_name
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @insert_sheet_index = args[:insert_sheet_index] if args.key?(:insert_sheet_index)
    -          @new_sheet_name = args[:new_sheet_name] if args.key?(:new_sheet_name)
               @source_sheet_id = args[:source_sheet_id] if args.key?(:source_sheet_id)
               @new_sheet_id = args[:new_sheet_id] if args.key?(:new_sheet_id)
    +          @insert_sheet_index = args[:insert_sheet_index] if args.key?(:insert_sheet_index)
    +          @new_sheet_name = args[:new_sheet_name] if args.key?(:new_sheet_name)
             end
           end
           
    @@ -4060,6 +6854,13 @@ module Google
           class ConditionValue
             include Google::Apis::Core::Hashable
           
    +        # A value the condition is based on.
    +        # The value will be parsed as if the user typed into a cell.
    +        # Formulas are supported (and must begin with an `=`).
    +        # Corresponds to the JSON property `userEnteredValue`
    +        # @return [String]
    +        attr_accessor :user_entered_value
    +      
             # A relative date (based on the current date).
             # Valid only if the type is
             # DATE_BEFORE,
    @@ -4073,21 +6874,14 @@ module Google
             # @return [String]
             attr_accessor :relative_date
           
    -        # A value the condition is based on.
    -        # The value will be parsed as if the user typed into a cell.
    -        # Formulas are supported (and must begin with an `=`).
    -        # Corresponds to the JSON property `userEnteredValue`
    -        # @return [String]
    -        attr_accessor :user_entered_value
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @relative_date = args[:relative_date] if args.key?(:relative_date)
               @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
    +          @relative_date = args[:relative_date] if args.key?(:relative_date)
             end
           end
           
    @@ -4095,6 +6889,22 @@ module Google
           class ExtendedValue
             include Google::Apis::Core::Hashable
           
    +        # An error in a cell.
    +        # Corresponds to the JSON property `errorValue`
    +        # @return [Google::Apis::SheetsV4::ErrorValue]
    +        attr_accessor :error_value
    +      
    +        # Represents a formula.
    +        # Corresponds to the JSON property `formulaValue`
    +        # @return [String]
    +        attr_accessor :formula_value
    +      
    +        # Represents a boolean value.
    +        # Corresponds to the JSON property `boolValue`
    +        # @return [Boolean]
    +        attr_accessor :bool_value
    +        alias_method :bool_value?, :bool_value
    +      
             # Represents a string value.
             # Leading single quotes are not included. For example, if the user typed
             # `'123` into the UI, this would be represented as a `stringValue` of
    @@ -4103,17 +6913,6 @@ module Google
             # @return [String]
             attr_accessor :string_value
           
    -        # Represents a boolean value.
    -        # Corresponds to the JSON property `boolValue`
    -        # @return [Boolean]
    -        attr_accessor :bool_value
    -        alias_method :bool_value?, :bool_value
    -      
    -        # Represents a formula.
    -        # Corresponds to the JSON property `formulaValue`
    -        # @return [String]
    -        attr_accessor :formula_value
    -      
             # Represents a double value.
             # Note: Dates, Times and DateTimes are represented as doubles in
             # "serial number" format.
    @@ -4121,10 +6920,28 @@ module Google
             # @return [Float]
             attr_accessor :number_value
           
    -        # An error in a cell.
    -        # Corresponds to the JSON property `errorValue`
    -        # @return [Google::Apis::SheetsV4::ErrorValue]
    -        attr_accessor :error_value
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @error_value = args[:error_value] if args.key?(:error_value)
    +          @formula_value = args[:formula_value] if args.key?(:formula_value)
    +          @bool_value = args[:bool_value] if args.key?(:bool_value)
    +          @string_value = args[:string_value] if args.key?(:string_value)
    +          @number_value = args[:number_value] if args.key?(:number_value)
    +        end
    +      end
    +      
    +      # Adds a chart to a sheet in the spreadsheet.
    +      class AddChartRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A chart embedded in a sheet.
    +        # Corresponds to the JSON property `chart`
    +        # @return [Google::Apis::SheetsV4::EmbeddedChart]
    +        attr_accessor :chart
           
             def initialize(**args)
                update!(**args)
    @@ -4132,11 +6949,52 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @string_value = args[:string_value] if args.key?(:string_value)
    -          @bool_value = args[:bool_value] if args.key?(:bool_value)
    -          @formula_value = args[:formula_value] if args.key?(:formula_value)
    -          @number_value = args[:number_value] if args.key?(:number_value)
    -          @error_value = args[:error_value] if args.key?(:error_value)
    +          @chart = args[:chart] if args.key?(:chart)
    +        end
    +      end
    +      
    +      # Resource that represents a spreadsheet.
    +      class Spreadsheet
    +        include Google::Apis::Core::Hashable
    +      
    +        # The named ranges defined in a spreadsheet.
    +        # Corresponds to the JSON property `namedRanges`
    +        # @return [Array]
    +        attr_accessor :named_ranges
    +      
    +        # The sheets that are part of a spreadsheet.
    +        # Corresponds to the JSON property `sheets`
    +        # @return [Array]
    +        attr_accessor :sheets
    +      
    +        # The ID of the spreadsheet.
    +        # This field is read-only.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The url of the spreadsheet.
    +        # This field is read-only.
    +        # Corresponds to the JSON property `spreadsheetUrl`
    +        # @return [String]
    +        attr_accessor :spreadsheet_url
    +      
    +        # Properties of a spreadsheet.
    +        # Corresponds to the JSON property `properties`
    +        # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
    +        attr_accessor :properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
    +          @sheets = args[:sheets] if args.key?(:sheets)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    +          @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url)
    +          @properties = args[:properties] if args.key?(:properties)
             end
           end
           
    @@ -4168,70 +7026,6 @@ module Google
             end
           end
           
    -      # Resource that represents a spreadsheet.
    -      class Spreadsheet
    -        include Google::Apis::Core::Hashable
    -      
    -        # Properties of a spreadsheet.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
    -        attr_accessor :properties
    -      
    -        # The ID of the spreadsheet.
    -        # This field is read-only.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        # The sheets that are part of a spreadsheet.
    -        # Corresponds to the JSON property `sheets`
    -        # @return [Array]
    -        attr_accessor :sheets
    -      
    -        # The named ranges defined in a spreadsheet.
    -        # Corresponds to the JSON property `namedRanges`
    -        # @return [Array]
    -        attr_accessor :named_ranges
    -      
    -        # The url of the spreadsheet.
    -        # This field is read-only.
    -        # Corresponds to the JSON property `spreadsheetUrl`
    -        # @return [String]
    -        attr_accessor :spreadsheet_url
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @properties = args[:properties] if args.key?(:properties)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    -          @sheets = args[:sheets] if args.key?(:sheets)
    -          @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
    -          @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url)
    -        end
    -      end
    -      
    -      # Adds a chart to a sheet in the spreadsheet.
    -      class AddChartRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A chart embedded in a sheet.
    -        # Corresponds to the JSON property `chart`
    -        # @return [Google::Apis::SheetsV4::EmbeddedChart]
    -        attr_accessor :chart
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @chart = args[:chart] if args.key?(:chart)
    -        end
    -      end
    -      
           # A histogram series containing the series color and data.
           class HistogramSeries
             include Google::Apis::Core::Hashable
    @@ -4359,6 +7153,36 @@ module Google
           class BandedRange
             include Google::Apis::Core::Hashable
           
    +        # Properties referring a single dimension (either row or column). If both
    +        # BandedRange.row_properties and BandedRange.column_properties are
    +        # set, the fill colors are applied to cells according to the following rules:
    +        # * header_color and footer_color take priority over band colors.
    +        # * first_band_color takes priority over second_band_color.
    +        # * row_properties takes priority over column_properties.
    +        # For example, the first row color takes priority over the first column
    +        # color, but the first column color takes priority over the second row color.
    +        # Similarly, the row header takes priority over the column header in the
    +        # top left cell, but the column header takes priority over the first row
    +        # color if the row header is not set.
    +        # Corresponds to the JSON property `columnProperties`
    +        # @return [Google::Apis::SheetsV4::BandingProperties]
    +        attr_accessor :column_properties
    +      
    +        # Properties referring a single dimension (either row or column). If both
    +        # BandedRange.row_properties and BandedRange.column_properties are
    +        # set, the fill colors are applied to cells according to the following rules:
    +        # * header_color and footer_color take priority over band colors.
    +        # * first_band_color takes priority over second_band_color.
    +        # * row_properties takes priority over column_properties.
    +        # For example, the first row color takes priority over the first column
    +        # color, but the first column color takes priority over the second row color.
    +        # Similarly, the row header takes priority over the column header in the
    +        # top left cell, but the column header takes priority over the first row
    +        # color if the row header is not set.
    +        # Corresponds to the JSON property `rowProperties`
    +        # @return [Google::Apis::SheetsV4::BandingProperties]
    +        attr_accessor :row_properties
    +      
             # A range on a sheet.
             # All indexes are zero-based.
             # Indexes are half open, e.g the start index is inclusive
    @@ -4390,46 +7214,16 @@ module Google
             # @return [Fixnum]
             attr_accessor :banded_range_id
           
    -        # Properties referring a single dimension (either row or column). If both
    -        # BandedRange.row_properties and BandedRange.column_properties are
    -        # set, the fill colors are applied to cells according to the following rules:
    -        # * header_color and footer_color take priority over band colors.
    -        # * first_band_color takes priority over second_band_color.
    -        # * row_properties takes priority over column_properties.
    -        # For example, the first row color takes priority over the first column
    -        # color, but the first column color takes priority over the second row color.
    -        # Similarly, the row header takes priority over the column header in the
    -        # top left cell, but the column header takes priority over the first row
    -        # color if the row header is not set.
    -        # Corresponds to the JSON property `rowProperties`
    -        # @return [Google::Apis::SheetsV4::BandingProperties]
    -        attr_accessor :row_properties
    -      
    -        # Properties referring a single dimension (either row or column). If both
    -        # BandedRange.row_properties and BandedRange.column_properties are
    -        # set, the fill colors are applied to cells according to the following rules:
    -        # * header_color and footer_color take priority over band colors.
    -        # * first_band_color takes priority over second_band_color.
    -        # * row_properties takes priority over column_properties.
    -        # For example, the first row color takes priority over the first column
    -        # color, but the first column color takes priority over the second row color.
    -        # Similarly, the row header takes priority over the column header in the
    -        # top left cell, but the column header takes priority over the first row
    -        # color if the row header is not set.
    -        # Corresponds to the JSON property `columnProperties`
    -        # @return [Google::Apis::SheetsV4::BandingProperties]
    -        attr_accessor :column_properties
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @column_properties = args[:column_properties] if args.key?(:column_properties)
    +          @row_properties = args[:row_properties] if args.key?(:row_properties)
               @range = args[:range] if args.key?(:range)
               @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
    -          @row_properties = args[:row_properties] if args.key?(:row_properties)
    -          @column_properties = args[:column_properties] if args.key?(:column_properties)
             end
           end
           
    @@ -4438,11 +7232,6 @@ module Google
           class UpdateProtectedRangeRequest
             include Google::Apis::Core::Hashable
           
    -        # A protected range.
    -        # Corresponds to the JSON property `protectedRange`
    -        # @return [Google::Apis::SheetsV4::ProtectedRange]
    -        attr_accessor :protected_range
    -      
             # The fields that should be updated.  At least one field must be specified.
             # The root `protectedRange` is implied and should not be specified.
             # A single `"*"` can be used as short-hand for listing every field.
    @@ -4450,14 +7239,19 @@ module Google
             # @return [String]
             attr_accessor :fields
           
    +        # A protected range.
    +        # Corresponds to the JSON property `protectedRange`
    +        # @return [Google::Apis::SheetsV4::ProtectedRange]
    +        attr_accessor :protected_range
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @protected_range = args[:protected_range] if args.key?(:protected_range)
               @fields = args[:fields] if args.key?(:fields)
    +          @protected_range = args[:protected_range] if args.key?(:protected_range)
             end
           end
           
    @@ -4466,6 +7260,11 @@ module Google
           class TextFormat
             include Google::Apis::Core::Hashable
           
    +        # The size of the font.
    +        # Corresponds to the JSON property `fontSize`
    +        # @return [Fixnum]
    +        attr_accessor :font_size
    +      
             # True if the text is underlined.
             # Corresponds to the JSON property `underline`
             # @return [Boolean]
    @@ -4586,22 +7385,17 @@ module Google
             # @return [String]
             attr_accessor :font_family
           
    -        # True if the text is italicized.
    -        # Corresponds to the JSON property `italic`
    -        # @return [Boolean]
    -        attr_accessor :italic
    -        alias_method :italic?, :italic
    -      
             # True if the text has a strikethrough.
             # Corresponds to the JSON property `strikethrough`
             # @return [Boolean]
             attr_accessor :strikethrough
             alias_method :strikethrough?, :strikethrough
           
    -        # The size of the font.
    -        # Corresponds to the JSON property `fontSize`
    -        # @return [Fixnum]
    -        attr_accessor :font_size
    +        # True if the text is italicized.
    +        # Corresponds to the JSON property `italic`
    +        # @return [Boolean]
    +        attr_accessor :italic
    +        alias_method :italic?, :italic
           
             def initialize(**args)
                update!(**args)
    @@ -4609,13 +7403,13 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    +          @font_size = args[:font_size] if args.key?(:font_size)
               @underline = args[:underline] if args.key?(:underline)
               @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
               @bold = args[:bold] if args.key?(:bold)
               @font_family = args[:font_family] if args.key?(:font_family)
    -          @italic = args[:italic] if args.key?(:italic)
               @strikethrough = args[:strikethrough] if args.key?(:strikethrough)
    -          @font_size = args[:font_size] if args.key?(:font_size)
    +          @italic = args[:italic] if args.key?(:italic)
             end
           end
           
    @@ -4637,2749 +7431,6 @@ module Google
               @properties = args[:properties] if args.key?(:properties)
             end
           end
    -      
    -      # The result of adding a filter view.
    -      class AddFilterViewResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A filter view.
    -        # Corresponds to the JSON property `filter`
    -        # @return [Google::Apis::SheetsV4::FilterView]
    -        attr_accessor :filter
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @filter = args[:filter] if args.key?(:filter)
    -        end
    -      end
    -      
    -      # Settings to control how circular dependencies are resolved with iterative
    -      # calculation.
    -      class IterativeCalculationSettings
    -        include Google::Apis::Core::Hashable
    -      
    -        # When iterative calculation is enabled and successive results differ by
    -        # less than this threshold value, the calculation rounds stop.
    -        # Corresponds to the JSON property `convergenceThreshold`
    -        # @return [Float]
    -        attr_accessor :convergence_threshold
    -      
    -        # When iterative calculation is enabled, the maximum number of calculation
    -        # rounds to perform.
    -        # Corresponds to the JSON property `maxIterations`
    -        # @return [Fixnum]
    -        attr_accessor :max_iterations
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @convergence_threshold = args[:convergence_threshold] if args.key?(:convergence_threshold)
    -          @max_iterations = args[:max_iterations] if args.key?(:max_iterations)
    -        end
    -      end
    -      
    -      # Properties of a spreadsheet.
    -      class SpreadsheetProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The title of the spreadsheet.
    -        # Corresponds to the JSON property `title`
    -        # @return [String]
    -        attr_accessor :title
    -      
    -        # The time zone of the spreadsheet, in CLDR format such as
    -        # `America/New_York`. If the time zone isn't recognized, this may
    -        # be a custom time zone such as `GMT-07:00`.
    -        # Corresponds to the JSON property `timeZone`
    -        # @return [String]
    -        attr_accessor :time_zone
    -      
    -        # The locale of the spreadsheet in one of the following formats:
    -        # * an ISO 639-1 language code such as `en`
    -        # * an ISO 639-2 language code such as `fil`, if no 639-1 code exists
    -        # * a combination of the ISO language code and country code, such as `en_US`
    -        # Note: when updating this field, not all locales/languages are supported.
    -        # Corresponds to the JSON property `locale`
    -        # @return [String]
    -        attr_accessor :locale
    -      
    -        # Settings to control how circular dependencies are resolved with iterative
    -        # calculation.
    -        # Corresponds to the JSON property `iterativeCalculationSettings`
    -        # @return [Google::Apis::SheetsV4::IterativeCalculationSettings]
    -        attr_accessor :iterative_calculation_settings
    -      
    -        # The amount of time to wait before volatile functions are recalculated.
    -        # Corresponds to the JSON property `autoRecalc`
    -        # @return [String]
    -        attr_accessor :auto_recalc
    -      
    -        # The format of a cell.
    -        # Corresponds to the JSON property `defaultFormat`
    -        # @return [Google::Apis::SheetsV4::CellFormat]
    -        attr_accessor :default_format
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @title = args[:title] if args.key?(:title)
    -          @time_zone = args[:time_zone] if args.key?(:time_zone)
    -          @locale = args[:locale] if args.key?(:locale)
    -          @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
    -          @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc)
    -          @default_format = args[:default_format] if args.key?(:default_format)
    -        end
    -      end
    -      
    -      # The location an object is overlaid on top of a grid.
    -      class OverlayPosition
    -        include Google::Apis::Core::Hashable
    -      
    -        # A coordinate in a sheet.
    -        # All indexes are zero-based.
    -        # Corresponds to the JSON property `anchorCell`
    -        # @return [Google::Apis::SheetsV4::GridCoordinate]
    -        attr_accessor :anchor_cell
    -      
    -        # The vertical offset, in pixels, that the object is offset
    -        # from the anchor cell.
    -        # Corresponds to the JSON property `offsetYPixels`
    -        # @return [Fixnum]
    -        attr_accessor :offset_y_pixels
    -      
    -        # The height of the object, in pixels. Defaults to 371.
    -        # Corresponds to the JSON property `heightPixels`
    -        # @return [Fixnum]
    -        attr_accessor :height_pixels
    -      
    -        # The width of the object, in pixels. Defaults to 600.
    -        # Corresponds to the JSON property `widthPixels`
    -        # @return [Fixnum]
    -        attr_accessor :width_pixels
    -      
    -        # The horizontal offset, in pixels, that the object is offset
    -        # from the anchor cell.
    -        # Corresponds to the JSON property `offsetXPixels`
    -        # @return [Fixnum]
    -        attr_accessor :offset_x_pixels
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @anchor_cell = args[:anchor_cell] if args.key?(:anchor_cell)
    -          @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels)
    -          @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
    -          @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
    -          @offset_x_pixels = args[:offset_x_pixels] if args.key?(:offset_x_pixels)
    -        end
    -      end
    -      
    -      # Updates all cells in the range to the values in the given Cell object.
    -      # Only the fields listed in the fields field are updated; others are
    -      # unchanged.
    -      # If writing a cell with a formula, the formula's ranges will automatically
    -      # increment for each field in the range.
    -      # For example, if writing a cell with formula `=A1` into range B2:C4,
    -      # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`,
    -      # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`.
    -      # To keep the formula's ranges static, use the `$` indicator.
    -      # For example, use the formula `=$A$1` to prevent both the row and the
    -      # column from incrementing.
    -      class RepeatCellRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Data about a specific cell.
    -        # Corresponds to the JSON property `cell`
    -        # @return [Google::Apis::SheetsV4::CellData]
    -        attr_accessor :cell
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The fields that should be updated.  At least one field must be specified.
    -        # The root `cell` is implied and should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cell = args[:cell] if args.key?(:cell)
    -          @range = args[:range] if args.key?(:range)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # The result of adding a chart to a spreadsheet.
    -      class AddChartResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A chart embedded in a sheet.
    -        # Corresponds to the JSON property `chart`
    -        # @return [Google::Apis::SheetsV4::EmbeddedChart]
    -        attr_accessor :chart
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @chart = args[:chart] if args.key?(:chart)
    -        end
    -      end
    -      
    -      # Inserts rows or columns in a sheet at a particular index.
    -      class InsertDimensionRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A range along a single dimension on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open: the start index is inclusive
    -        # and the end index is exclusive.
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::DimensionRange]
    -        attr_accessor :range
    -      
    -        # Whether dimension properties should be extended from the dimensions
    -        # before or after the newly inserted dimensions.
    -        # True to inherit from the dimensions before (in which case the start
    -        # index must be greater than 0), and false to inherit from the dimensions
    -        # after.
    -        # For example, if row index 0 has red background and row index 1
    -        # has a green background, then inserting 2 rows at index 1 can inherit
    -        # either the green or red background.  If `inheritFromBefore` is true,
    -        # the two new rows will be red (because the row before the insertion point
    -        # was red), whereas if `inheritFromBefore` is false, the two new rows will
    -        # be green (because the row after the insertion point was green).
    -        # Corresponds to the JSON property `inheritFromBefore`
    -        # @return [Boolean]
    -        attr_accessor :inherit_from_before
    -        alias_method :inherit_from_before?, :inherit_from_before
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @range = args[:range] if args.key?(:range)
    -          @inherit_from_before = args[:inherit_from_before] if args.key?(:inherit_from_before)
    -        end
    -      end
    -      
    -      # Updates properties of a spreadsheet.
    -      class UpdateSpreadsheetPropertiesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Properties of a spreadsheet.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
    -        attr_accessor :properties
    -      
    -        # The fields that should be updated.  At least one field must be specified.
    -        # The root 'properties' is implied and should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @properties = args[:properties] if args.key?(:properties)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # The request for updating more than one range of values in a spreadsheet.
    -      class BatchUpdateValuesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Determines how values in the response should be rendered.
    -        # The default render option is ValueRenderOption.FORMATTED_VALUE.
    -        # Corresponds to the JSON property `responseValueRenderOption`
    -        # @return [String]
    -        attr_accessor :response_value_render_option
    -      
    -        # Determines if the update response should include the values
    -        # of the cells that were updated. By default, responses
    -        # do not include the updated values. The `updatedData` field within
    -        # each of the BatchUpdateValuesResponse.responses will contain
    -        # the updated values. If the range to write was larger than than the range
    -        # actually written, the response will include all values in the requested
    -        # range (excluding trailing empty rows and columns).
    -        # Corresponds to the JSON property `includeValuesInResponse`
    -        # @return [Boolean]
    -        attr_accessor :include_values_in_response
    -        alias_method :include_values_in_response?, :include_values_in_response
    -      
    -        # How the input data should be interpreted.
    -        # Corresponds to the JSON property `valueInputOption`
    -        # @return [String]
    -        attr_accessor :value_input_option
    -      
    -        # The new values to apply to the spreadsheet.
    -        # Corresponds to the JSON property `data`
    -        # @return [Array]
    -        attr_accessor :data
    -      
    -        # Determines how dates, times, and durations in the response should be
    -        # rendered. This is ignored if response_value_render_option is
    -        # FORMATTED_VALUE.
    -        # The default dateTime render option is
    -        # DateTimeRenderOption.SERIAL_NUMBER.
    -        # Corresponds to the JSON property `responseDateTimeRenderOption`
    -        # @return [String]
    -        attr_accessor :response_date_time_render_option
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option)
    -          @include_values_in_response = args[:include_values_in_response] if args.key?(:include_values_in_response)
    -          @value_input_option = args[:value_input_option] if args.key?(:value_input_option)
    -          @data = args[:data] if args.key?(:data)
    -          @response_date_time_render_option = args[:response_date_time_render_option] if args.key?(:response_date_time_render_option)
    -        end
    -      end
    -      
    -      # A protected range.
    -      class ProtectedRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # The named range this protected range is backed by, if any.
    -        # When writing, only one of range or named_range_id
    -        # may be set.
    -        # Corresponds to the JSON property `namedRangeId`
    -        # @return [String]
    -        attr_accessor :named_range_id
    -      
    -        # The ID of the protected range.
    -        # This field is read-only.
    -        # Corresponds to the JSON property `protectedRangeId`
    -        # @return [Fixnum]
    -        attr_accessor :protected_range_id
    -      
    -        # True if this protected range will show a warning when editing.
    -        # Warning-based protection means that every user can edit data in the
    -        # protected range, except editing will prompt a warning asking the user
    -        # to confirm the edit.
    -        # When writing: if this field is true, then editors is ignored.
    -        # Additionally, if this field is changed from true to false and the
    -        # `editors` field is not set (nor included in the field mask), then
    -        # the editors will be set to all the editors in the document.
    -        # Corresponds to the JSON property `warningOnly`
    -        # @return [Boolean]
    -        attr_accessor :warning_only
    -        alias_method :warning_only?, :warning_only
    -      
    -        # True if the user who requested this protected range can edit the
    -        # protected area.
    -        # This field is read-only.
    -        # Corresponds to the JSON property `requestingUserCanEdit`
    -        # @return [Boolean]
    -        attr_accessor :requesting_user_can_edit
    -        alias_method :requesting_user_can_edit?, :requesting_user_can_edit
    -      
    -        # The editors of a protected range.
    -        # Corresponds to the JSON property `editors`
    -        # @return [Google::Apis::SheetsV4::Editors]
    -        attr_accessor :editors
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The description of this protected range.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        # The list of unprotected ranges within a protected sheet.
    -        # Unprotected ranges are only supported on protected sheets.
    -        # Corresponds to the JSON property `unprotectedRanges`
    -        # @return [Array]
    -        attr_accessor :unprotected_ranges
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    -          @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id)
    -          @warning_only = args[:warning_only] if args.key?(:warning_only)
    -          @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit)
    -          @editors = args[:editors] if args.key?(:editors)
    -          @range = args[:range] if args.key?(:range)
    -          @description = args[:description] if args.key?(:description)
    -          @unprotected_ranges = args[:unprotected_ranges] if args.key?(:unprotected_ranges)
    -        end
    -      end
    -      
    -      # Properties about a dimension.
    -      class DimensionProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The height (if a row) or width (if a column) of the dimension in pixels.
    -        # Corresponds to the JSON property `pixelSize`
    -        # @return [Fixnum]
    -        attr_accessor :pixel_size
    -      
    -        # True if this dimension is being filtered.
    -        # This field is read-only.
    -        # Corresponds to the JSON property `hiddenByFilter`
    -        # @return [Boolean]
    -        attr_accessor :hidden_by_filter
    -        alias_method :hidden_by_filter?, :hidden_by_filter
    -      
    -        # True if this dimension is explicitly hidden.
    -        # Corresponds to the JSON property `hiddenByUser`
    -        # @return [Boolean]
    -        attr_accessor :hidden_by_user
    -        alias_method :hidden_by_user?, :hidden_by_user
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
    -          @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter)
    -          @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user)
    -        end
    -      end
    -      
    -      # A named range.
    -      class NamedRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # The ID of the named range.
    -        # Corresponds to the JSON property `namedRangeId`
    -        # @return [String]
    -        attr_accessor :named_range_id
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The name of the named range.
    -        # 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)
    -          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    -          @range = args[:range] if args.key?(:range)
    -          @name = args[:name] if args.key?(:name)
    -        end
    -      end
    -      
    -      # A range along a single dimension on a sheet.
    -      # All indexes are zero-based.
    -      # Indexes are half open: the start index is inclusive
    -      # and the end index is exclusive.
    -      # Missing indexes indicate the range is unbounded on that side.
    -      class DimensionRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # The dimension of the span.
    -        # Corresponds to the JSON property `dimension`
    -        # @return [String]
    -        attr_accessor :dimension
    -      
    -        # The start (inclusive) of the span, or not set if unbounded.
    -        # Corresponds to the JSON property `startIndex`
    -        # @return [Fixnum]
    -        attr_accessor :start_index
    -      
    -        # The end (exclusive) of the span, or not set if unbounded.
    -        # Corresponds to the JSON property `endIndex`
    -        # @return [Fixnum]
    -        attr_accessor :end_index
    -      
    -        # The sheet this span is on.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @dimension = args[:dimension] if args.key?(:dimension)
    -          @start_index = args[:start_index] if args.key?(:start_index)
    -          @end_index = args[:end_index] if args.key?(:end_index)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -        end
    -      end
    -      
    -      # Moves data from the source to the destination.
    -      class CutPasteRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `source`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :source
    -      
    -        # What kind of data to paste.  All the source data will be cut, regardless
    -        # of what is pasted.
    -        # Corresponds to the JSON property `pasteType`
    -        # @return [String]
    -        attr_accessor :paste_type
    -      
    -        # A coordinate in a sheet.
    -        # All indexes are zero-based.
    -        # Corresponds to the JSON property `destination`
    -        # @return [Google::Apis::SheetsV4::GridCoordinate]
    -        attr_accessor :destination
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @source = args[:source] if args.key?(:source)
    -          @paste_type = args[:paste_type] if args.key?(:paste_type)
    -          @destination = args[:destination] if args.key?(:destination)
    -        end
    -      end
    -      
    -      # The borders of the cell.
    -      class Borders
    -        include Google::Apis::Core::Hashable
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `right`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :right
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `bottom`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :bottom
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `top`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :top
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `left`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :left
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @right = args[:right] if args.key?(:right)
    -          @bottom = args[:bottom] if args.key?(:bottom)
    -          @top = args[:top] if args.key?(:top)
    -          @left = args[:left] if args.key?(:left)
    -        end
    -      end
    -      
    -      # A single series of data in a chart.
    -      # For example, if charting stock prices over time, multiple series may exist,
    -      # one for the "Open Price", "High Price", "Low Price" and "Close Price".
    -      class BasicChartSeries
    -        include Google::Apis::Core::Hashable
    -      
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `series`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :series
    -      
    -        # The type of this series. Valid only if the
    -        # chartType is
    -        # COMBO.
    -        # Different types will change the way the series is visualized.
    -        # Only LINE, AREA,
    -        # and COLUMN are supported.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # The minor axis that will specify the range of values for this series.
    -        # For example, if charting stocks over time, the "Volume" series
    -        # may want to be pinned to the right with the prices pinned to the left,
    -        # because the scale of trading volume is different than the scale of
    -        # prices.
    -        # It is an error to specify an axis that isn't a valid minor axis
    -        # for the chart's type.
    -        # Corresponds to the JSON property `targetAxis`
    -        # @return [String]
    -        attr_accessor :target_axis
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @series = args[:series] if args.key?(:series)
    -          @type = args[:type] if args.key?(:type)
    -          @target_axis = args[:target_axis] if args.key?(:target_axis)
    -        end
    -      end
    -      
    -      # Automatically resizes one or more dimensions based on the contents
    -      # of the cells in that dimension.
    -      class AutoResizeDimensionsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A range along a single dimension on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open: the start index is inclusive
    -        # and the end index is exclusive.
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # Corresponds to the JSON property `dimensions`
    -        # @return [Google::Apis::SheetsV4::DimensionRange]
    -        attr_accessor :dimensions
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @dimensions = args[:dimensions] if args.key?(:dimensions)
    -        end
    -      end
    -      
    -      # Updates the borders of a range.
    -      # If a field is not set in the request, that means the border remains as-is.
    -      # For example, with two subsequent UpdateBordersRequest:
    -      # 1. range: A1:A5 `` top: RED, bottom: WHITE ``
    -      # 2. range: A1:A5 `` left: BLUE ``
    -      # That would result in A1:A5 having a borders of
    -      # `` top: RED, bottom: WHITE, left: BLUE ``.
    -      # If you want to clear a border, explicitly set the style to
    -      # NONE.
    -      class UpdateBordersRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `bottom`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :bottom
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `innerVertical`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :inner_vertical
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `right`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :right
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `innerHorizontal`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :inner_horizontal
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `top`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :top
    -      
    -        # A border along a cell.
    -        # Corresponds to the JSON property `left`
    -        # @return [Google::Apis::SheetsV4::Border]
    -        attr_accessor :left
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @bottom = args[:bottom] if args.key?(:bottom)
    -          @inner_vertical = args[:inner_vertical] if args.key?(:inner_vertical)
    -          @right = args[:right] if args.key?(:right)
    -          @range = args[:range] if args.key?(:range)
    -          @inner_horizontal = args[:inner_horizontal] if args.key?(:inner_horizontal)
    -          @top = args[:top] if args.key?(:top)
    -          @left = args[:left] if args.key?(:left)
    -        end
    -      end
    -      
    -      # The format of a cell.
    -      class CellFormat
    -        include Google::Apis::Core::Hashable
    -      
    -        # The number format of a cell.
    -        # Corresponds to the JSON property `numberFormat`
    -        # @return [Google::Apis::SheetsV4::NumberFormat]
    -        attr_accessor :number_format
    -      
    -        # How a hyperlink, if it exists, should be displayed in the cell.
    -        # Corresponds to the JSON property `hyperlinkDisplayType`
    -        # @return [String]
    -        attr_accessor :hyperlink_display_type
    -      
    -        # The horizontal alignment of the value in the cell.
    -        # Corresponds to the JSON property `horizontalAlignment`
    -        # @return [String]
    -        attr_accessor :horizontal_alignment
    -      
    -        # The format of a run of text in a cell.
    -        # Absent values indicate that the field isn't specified.
    -        # Corresponds to the JSON property `textFormat`
    -        # @return [Google::Apis::SheetsV4::TextFormat]
    -        attr_accessor :text_format
    -      
    -        # Represents a color in the RGBA color space. This representation is designed
    -        # for simplicity of conversion to/from color representations in various
    -        # languages over compactness; for example, the fields of this representation
    -        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    -        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    -        # method in iOS; and, with just a little work, it can be easily formatted into
    -        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    -        # Example (Java):
    -        # import com.google.type.Color;
    -        # // ...
    -        # public static java.awt.Color fromProto(Color protocolor) `
    -        # float alpha = protocolor.hasAlpha()
    -        # ? protocolor.getAlpha().getValue()
    -        # : 1.0;
    -        # return new java.awt.Color(
    -        # protocolor.getRed(),
    -        # protocolor.getGreen(),
    -        # protocolor.getBlue(),
    -        # alpha);
    -        # `
    -        # public static Color toProto(java.awt.Color color) `
    -        # float red = (float) color.getRed();
    -        # float green = (float) color.getGreen();
    -        # float blue = (float) color.getBlue();
    -        # float denominator = 255.0;
    -        # Color.Builder resultBuilder =
    -        # Color
    -        # .newBuilder()
    -        # .setRed(red / denominator)
    -        # .setGreen(green / denominator)
    -        # .setBlue(blue / denominator);
    -        # int alpha = color.getAlpha();
    -        # if (alpha != 255) `
    -        # result.setAlpha(
    -        # FloatValue
    -        # .newBuilder()
    -        # .setValue(((float) alpha) / denominator)
    -        # .build());
    -        # `
    -        # return resultBuilder.build();
    -        # `
    -        # // ...
    -        # Example (iOS / Obj-C):
    -        # // ...
    -        # static UIColor* fromProto(Color* protocolor) `
    -        # float red = [protocolor red];
    -        # float green = [protocolor green];
    -        # float blue = [protocolor blue];
    -        # FloatValue* alpha_wrapper = [protocolor alpha];
    -        # float alpha = 1.0;
    -        # if (alpha_wrapper != nil) `
    -        # alpha = [alpha_wrapper value];
    -        # `
    -        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    -        # `
    -        # static Color* toProto(UIColor* color) `
    -        # CGFloat red, green, blue, alpha;
    -        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    -        # return nil;
    -        # `
    -        # Color* result = [Color alloc] init];
    -        # [result setRed:red];
    -        # [result setGreen:green];
    -        # [result setBlue:blue];
    -        # if (alpha <= 0.9999) `
    -        # [result setAlpha:floatWrapperWithValue(alpha)];
    -        # `
    -        # [result autorelease];
    -        # return result;
    -        # `
    -        # // ...
    -        # Example (JavaScript):
    -        # // ...
    -        # var protoToCssColor = function(rgb_color) `
    -        # var redFrac = rgb_color.red || 0.0;
    -        # var greenFrac = rgb_color.green || 0.0;
    -        # var blueFrac = rgb_color.blue || 0.0;
    -        # var red = Math.floor(redFrac * 255);
    -        # var green = Math.floor(greenFrac * 255);
    -        # var blue = Math.floor(blueFrac * 255);
    -        # if (!('alpha' in rgb_color)) `
    -        # return rgbToCssColor_(red, green, blue);
    -        # `
    -        # var alphaFrac = rgb_color.alpha.value || 0.0;
    -        # var rgbParams = [red, green, blue].join(',');
    -        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    -        # `;
    -        # var rgbToCssColor_ = function(red, green, blue) `
    -        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    -        # var hexString = rgbNumber.toString(16);
    -        # var missingZeros = 6 - hexString.length;
    -        # var resultBuilder = ['#'];
    -        # for (var i = 0; i < missingZeros; i++) `
    -        # resultBuilder.push('0');
    -        # `
    -        # resultBuilder.push(hexString);
    -        # return resultBuilder.join('');
    -        # `;
    -        # // ...
    -        # Corresponds to the JSON property `backgroundColor`
    -        # @return [Google::Apis::SheetsV4::Color]
    -        attr_accessor :background_color
    -      
    -        # The amount of padding around the cell, in pixels.
    -        # When updating padding, every field must be specified.
    -        # Corresponds to the JSON property `padding`
    -        # @return [Google::Apis::SheetsV4::Padding]
    -        attr_accessor :padding
    -      
    -        # The vertical alignment of the value in the cell.
    -        # Corresponds to the JSON property `verticalAlignment`
    -        # @return [String]
    -        attr_accessor :vertical_alignment
    -      
    -        # The borders of the cell.
    -        # Corresponds to the JSON property `borders`
    -        # @return [Google::Apis::SheetsV4::Borders]
    -        attr_accessor :borders
    -      
    -        # The direction of the text in the cell.
    -        # Corresponds to the JSON property `textDirection`
    -        # @return [String]
    -        attr_accessor :text_direction
    -      
    -        # The rotation applied to text in a cell.
    -        # Corresponds to the JSON property `textRotation`
    -        # @return [Google::Apis::SheetsV4::TextRotation]
    -        attr_accessor :text_rotation
    -      
    -        # The wrap strategy for the value in the cell.
    -        # Corresponds to the JSON property `wrapStrategy`
    -        # @return [String]
    -        attr_accessor :wrap_strategy
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @number_format = args[:number_format] if args.key?(:number_format)
    -          @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type)
    -          @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
    -          @text_format = args[:text_format] if args.key?(:text_format)
    -          @background_color = args[:background_color] if args.key?(:background_color)
    -          @padding = args[:padding] if args.key?(:padding)
    -          @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
    -          @borders = args[:borders] if args.key?(:borders)
    -          @text_direction = args[:text_direction] if args.key?(:text_direction)
    -          @text_rotation = args[:text_rotation] if args.key?(:text_rotation)
    -          @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy)
    -        end
    -      end
    -      
    -      # The response when clearing a range of values in a spreadsheet.
    -      class ClearValuesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The range (in A1 notation) that was cleared.
    -        # (If the request was for an unbounded range or a ranger larger
    -        # than the bounds of the sheet, this will be the actual range
    -        # that was cleared, bounded to the sheet's limits.)
    -        # Corresponds to the JSON property `clearedRange`
    -        # @return [String]
    -        attr_accessor :cleared_range
    -      
    -        # The spreadsheet the updates were applied to.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cleared_range = args[:cleared_range] if args.key?(:cleared_range)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    -        end
    -      end
    -      
    -      # Deletes a conditional format rule at the given index.
    -      # All subsequent rules' indexes are decremented.
    -      class DeleteConditionalFormatRuleRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The zero-based index of the rule to be deleted.
    -        # Corresponds to the JSON property `index`
    -        # @return [Fixnum]
    -        attr_accessor :index
    -      
    -        # The sheet the rule is being deleted from.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @index = args[:index] if args.key?(:index)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -        end
    -      end
    -      
    -      # The result of adding a banded range.
    -      class AddBandingResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A banded (alternating colors) range in a sheet.
    -        # Corresponds to the JSON property `bandedRange`
    -        # @return [Google::Apis::SheetsV4::BandedRange]
    -        attr_accessor :banded_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @banded_range = args[:banded_range] if args.key?(:banded_range)
    -        end
    -      end
    -      
    -      # Removes the named range with the given ID from the spreadsheet.
    -      class DeleteNamedRangeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The ID of the named range to delete.
    -        # Corresponds to the JSON property `namedRangeId`
    -        # @return [String]
    -        attr_accessor :named_range_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
    -        end
    -      end
    -      
    -      # The data included in a domain or series.
    -      class ChartData
    -        include Google::Apis::Core::Hashable
    -      
    -        # Source ranges for a chart.
    -        # Corresponds to the JSON property `sourceRange`
    -        # @return [Google::Apis::SheetsV4::ChartSourceRange]
    -        attr_accessor :source_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @source_range = args[:source_range] if args.key?(:source_range)
    -        end
    -      end
    -      
    -      # The response when retrieving more than one range of values in a spreadsheet.
    -      class BatchGetValuesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The requested values. The order of the ValueRanges is the same as the
    -        # order of the requested ranges.
    -        # Corresponds to the JSON property `valueRanges`
    -        # @return [Array]
    -        attr_accessor :value_ranges
    -      
    -        # The ID of the spreadsheet the data was retrieved from.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @value_ranges = args[:value_ranges] if args.key?(:value_ranges)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    -        end
    -      end
    -      
    -      # Updates properties of the supplied banded range.
    -      class UpdateBandingRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The fields that should be updated.  At least one field must be specified.
    -        # The root `bandedRange` is implied and should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # A banded (alternating colors) range in a sheet.
    -        # Corresponds to the JSON property `bandedRange`
    -        # @return [Google::Apis::SheetsV4::BandedRange]
    -        attr_accessor :banded_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @banded_range = args[:banded_range] if args.key?(:banded_range)
    -        end
    -      end
    -      
    -      # Represents a color in the RGBA color space. This representation is designed
    -      # for simplicity of conversion to/from color representations in various
    -      # languages over compactness; for example, the fields of this representation
    -      # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    -      # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    -      # method in iOS; and, with just a little work, it can be easily formatted into
    -      # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    -      # Example (Java):
    -      # import com.google.type.Color;
    -      # // ...
    -      # public static java.awt.Color fromProto(Color protocolor) `
    -      # float alpha = protocolor.hasAlpha()
    -      # ? protocolor.getAlpha().getValue()
    -      # : 1.0;
    -      # return new java.awt.Color(
    -      # protocolor.getRed(),
    -      # protocolor.getGreen(),
    -      # protocolor.getBlue(),
    -      # alpha);
    -      # `
    -      # public static Color toProto(java.awt.Color color) `
    -      # float red = (float) color.getRed();
    -      # float green = (float) color.getGreen();
    -      # float blue = (float) color.getBlue();
    -      # float denominator = 255.0;
    -      # Color.Builder resultBuilder =
    -      # Color
    -      # .newBuilder()
    -      # .setRed(red / denominator)
    -      # .setGreen(green / denominator)
    -      # .setBlue(blue / denominator);
    -      # int alpha = color.getAlpha();
    -      # if (alpha != 255) `
    -      # result.setAlpha(
    -      # FloatValue
    -      # .newBuilder()
    -      # .setValue(((float) alpha) / denominator)
    -      # .build());
    -      # `
    -      # return resultBuilder.build();
    -      # `
    -      # // ...
    -      # Example (iOS / Obj-C):
    -      # // ...
    -      # static UIColor* fromProto(Color* protocolor) `
    -      # float red = [protocolor red];
    -      # float green = [protocolor green];
    -      # float blue = [protocolor blue];
    -      # FloatValue* alpha_wrapper = [protocolor alpha];
    -      # float alpha = 1.0;
    -      # if (alpha_wrapper != nil) `
    -      # alpha = [alpha_wrapper value];
    -      # `
    -      # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    -      # `
    -      # static Color* toProto(UIColor* color) `
    -      # CGFloat red, green, blue, alpha;
    -      # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    -      # return nil;
    -      # `
    -      # Color* result = [Color alloc] init];
    -      # [result setRed:red];
    -      # [result setGreen:green];
    -      # [result setBlue:blue];
    -      # if (alpha <= 0.9999) `
    -      # [result setAlpha:floatWrapperWithValue(alpha)];
    -      # `
    -      # [result autorelease];
    -      # return result;
    -      # `
    -      # // ...
    -      # Example (JavaScript):
    -      # // ...
    -      # var protoToCssColor = function(rgb_color) `
    -      # var redFrac = rgb_color.red || 0.0;
    -      # var greenFrac = rgb_color.green || 0.0;
    -      # var blueFrac = rgb_color.blue || 0.0;
    -      # var red = Math.floor(redFrac * 255);
    -      # var green = Math.floor(greenFrac * 255);
    -      # var blue = Math.floor(blueFrac * 255);
    -      # if (!('alpha' in rgb_color)) `
    -      # return rgbToCssColor_(red, green, blue);
    -      # `
    -      # var alphaFrac = rgb_color.alpha.value || 0.0;
    -      # var rgbParams = [red, green, blue].join(',');
    -      # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    -      # `;
    -      # var rgbToCssColor_ = function(red, green, blue) `
    -      # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    -      # var hexString = rgbNumber.toString(16);
    -      # var missingZeros = 6 - hexString.length;
    -      # var resultBuilder = ['#'];
    -      # for (var i = 0; i < missingZeros; i++) `
    -      # resultBuilder.push('0');
    -      # `
    -      # resultBuilder.push(hexString);
    -      # return resultBuilder.join('');
    -      # `;
    -      # // ...
    -      class Color
    -        include Google::Apis::Core::Hashable
    -      
    -        # The amount of red in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `red`
    -        # @return [Float]
    -        attr_accessor :red
    -      
    -        # The amount of green in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `green`
    -        # @return [Float]
    -        attr_accessor :green
    -      
    -        # The amount of blue in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `blue`
    -        # @return [Float]
    -        attr_accessor :blue
    -      
    -        # The fraction of this color that should be applied to the pixel. That is,
    -        # the final pixel color is defined by the equation:
    -        # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
    -        # This means that a value of 1.0 corresponds to a solid color, whereas
    -        # a value of 0.0 corresponds to a completely transparent color. This
    -        # uses a wrapper message rather than a simple float scalar so that it is
    -        # possible to distinguish between a default value and the value being unset.
    -        # If omitted, this color object is to be rendered as a solid color
    -        # (as if the alpha value had been explicitly given with a value of 1.0).
    -        # Corresponds to the JSON property `alpha`
    -        # @return [Float]
    -        attr_accessor :alpha
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @red = args[:red] if args.key?(:red)
    -          @green = args[:green] if args.key?(:green)
    -          @blue = args[:blue] if args.key?(:blue)
    -          @alpha = args[:alpha] if args.key?(:alpha)
    -        end
    -      end
    -      
    -      # A single grouping (either row or column) in a pivot table.
    -      class PivotGroup
    -        include Google::Apis::Core::Hashable
    -      
    -        # The order the values in this group should be sorted.
    -        # Corresponds to the JSON property `sortOrder`
    -        # @return [String]
    -        attr_accessor :sort_order
    -      
    -        # Information about which values in a pivot group should be used for sorting.
    -        # Corresponds to the JSON property `valueBucket`
    -        # @return [Google::Apis::SheetsV4::PivotGroupSortValueBucket]
    -        attr_accessor :value_bucket
    -      
    -        # The column offset of the source range that this grouping is based on.
    -        # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`
    -        # means this group refers to column `C`, whereas the offset `1` would refer
    -        # to column `D`.
    -        # Corresponds to the JSON property `sourceColumnOffset`
    -        # @return [Fixnum]
    -        attr_accessor :source_column_offset
    -      
    -        # True if the pivot table should include the totals for this grouping.
    -        # Corresponds to the JSON property `showTotals`
    -        # @return [Boolean]
    -        attr_accessor :show_totals
    -        alias_method :show_totals?, :show_totals
    -      
    -        # Metadata about values in the grouping.
    -        # Corresponds to the JSON property `valueMetadata`
    -        # @return [Array]
    -        attr_accessor :value_metadata
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @sort_order = args[:sort_order] if args.key?(:sort_order)
    -          @value_bucket = args[:value_bucket] if args.key?(:value_bucket)
    -          @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
    -          @show_totals = args[:show_totals] if args.key?(:show_totals)
    -          @value_metadata = args[:value_metadata] if args.key?(:value_metadata)
    -        end
    -      end
    -      
    -      # A pivot table.
    -      class PivotTable
    -        include Google::Apis::Core::Hashable
    -      
    -        # Whether values should be listed horizontally (as columns)
    -        # or vertically (as rows).
    -        # Corresponds to the JSON property `valueLayout`
    -        # @return [String]
    -        attr_accessor :value_layout
    -      
    -        # Each column grouping in the pivot table.
    -        # Corresponds to the JSON property `columns`
    -        # @return [Array]
    -        attr_accessor :columns
    -      
    -        # A list of values to include in the pivot table.
    -        # Corresponds to the JSON property `values`
    -        # @return [Array]
    -        attr_accessor :values
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `source`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :source
    -      
    -        # An optional mapping of filters per source column offset.
    -        # The filters will be applied before aggregating data into the pivot table.
    -        # The map's key is the column offset of the source range that you want to
    -        # filter, and the value is the criteria for that column.
    -        # For example, if the source was `C10:E15`, a key of `0` will have the filter
    -        # for column `C`, whereas the key `1` is for column `D`.
    -        # Corresponds to the JSON property `criteria`
    -        # @return [Hash]
    -        attr_accessor :criteria
    -      
    -        # Each row grouping in the pivot table.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Array]
    -        attr_accessor :rows
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @value_layout = args[:value_layout] if args.key?(:value_layout)
    -          @columns = args[:columns] if args.key?(:columns)
    -          @values = args[:values] if args.key?(:values)
    -          @source = args[:source] if args.key?(:source)
    -          @criteria = args[:criteria] if args.key?(:criteria)
    -          @rows = args[:rows] if args.key?(:rows)
    -        end
    -      end
    -      
    -      # Source ranges for a chart.
    -      class ChartSourceRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # The ranges of data for a series or domain.
    -        # Exactly one dimension must have a length of 1,
    -        # and all sources in the list must have the same dimension
    -        # with length 1.
    -        # The domain (if it exists) & all series must have the same number
    -        # of source ranges. If using more than one source range, then the source
    -        # range at a given offset must be contiguous across the domain and series.
    -        # For example, these are valid configurations:
    -        # domain sources: A1:A5
    -        # series1 sources: B1:B5
    -        # series2 sources: D6:D10
    -        # domain sources: A1:A5, C10:C12
    -        # series1 sources: B1:B5, D10:D12
    -        # series2 sources: C1:C5, E10:E12
    -        # Corresponds to the JSON property `sources`
    -        # @return [Array]
    -        attr_accessor :sources
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @sources = args[:sources] if args.key?(:sources)
    -        end
    -      end
    -      
    -      # Adds new cells after the last row with data in a sheet,
    -      # inserting new rows into the sheet if necessary.
    -      class AppendCellsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The data to append.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Array]
    -        attr_accessor :rows
    -      
    -        # The fields of CellData that should be updated.
    -        # At least one field must be specified.
    -        # The root is the CellData; 'row.values.' should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The sheet ID to append the data to.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rows = args[:rows] if args.key?(:rows)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -        end
    -      end
    -      
    -      # Data within a range of the spreadsheet.
    -      class ValueRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # The major dimension of the values.
    -        # For output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
    -        # then requesting `range=A1:B2,majorDimension=ROWS` will return
    -        # `[[1,2],[3,4]]`,
    -        # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
    -        # `[[1,3],[2,4]]`.
    -        # For input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]`
    -        # will set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS`
    -        # then `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`.
    -        # When writing, if this field is not set, it defaults to ROWS.
    -        # Corresponds to the JSON property `majorDimension`
    -        # @return [String]
    -        attr_accessor :major_dimension
    -      
    -        # The data that was read or to be written.  This is an array of arrays,
    -        # the outer array representing all the data and each inner array
    -        # representing a major dimension. Each item in the inner array
    -        # corresponds with one cell.
    -        # For output, empty trailing rows and columns will not be included.
    -        # For input, supported value types are: bool, string, and double.
    -        # Null values will be skipped.
    -        # To set a cell to an empty value, set the string value to an empty string.
    -        # Corresponds to the JSON property `values`
    -        # @return [Array>]
    -        attr_accessor :values
    -      
    -        # The range the values cover, in A1 notation.
    -        # For output, this range indicates the entire requested range,
    -        # even though the values will exclude trailing rows and columns.
    -        # When appending values, this field represents the range to search for a
    -        # table, after which values will be appended.
    -        # Corresponds to the JSON property `range`
    -        # @return [String]
    -        attr_accessor :range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @major_dimension = args[:major_dimension] if args.key?(:major_dimension)
    -          @values = args[:values] if args.key?(:values)
    -          @range = args[:range] if args.key?(:range)
    -        end
    -      end
    -      
    -      # Adds a new banded range to the spreadsheet.
    -      class AddBandingRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A banded (alternating colors) range in a sheet.
    -        # Corresponds to the JSON property `bandedRange`
    -        # @return [Google::Apis::SheetsV4::BandedRange]
    -        attr_accessor :banded_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @banded_range = args[:banded_range] if args.key?(:banded_range)
    -        end
    -      end
    -      
    -      # A single response from an update.
    -      class Response
    -        include Google::Apis::Core::Hashable
    -      
    -        # The result of updating a conditional format rule.
    -        # Corresponds to the JSON property `updateConditionalFormatRule`
    -        # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse]
    -        attr_accessor :update_conditional_format_rule
    -      
    -        # The result of adding a named range.
    -        # Corresponds to the JSON property `addNamedRange`
    -        # @return [Google::Apis::SheetsV4::AddNamedRangeResponse]
    -        attr_accessor :add_named_range
    -      
    -        # The result of adding a filter view.
    -        # Corresponds to the JSON property `addFilterView`
    -        # @return [Google::Apis::SheetsV4::AddFilterViewResponse]
    -        attr_accessor :add_filter_view
    -      
    -        # The result of adding a banded range.
    -        # Corresponds to the JSON property `addBanding`
    -        # @return [Google::Apis::SheetsV4::AddBandingResponse]
    -        attr_accessor :add_banding
    -      
    -        # The result of adding a new protected range.
    -        # Corresponds to the JSON property `addProtectedRange`
    -        # @return [Google::Apis::SheetsV4::AddProtectedRangeResponse]
    -        attr_accessor :add_protected_range
    -      
    -        # The result of duplicating a sheet.
    -        # Corresponds to the JSON property `duplicateSheet`
    -        # @return [Google::Apis::SheetsV4::DuplicateSheetResponse]
    -        attr_accessor :duplicate_sheet
    -      
    -        # The result of updating an embedded object's position.
    -        # Corresponds to the JSON property `updateEmbeddedObjectPosition`
    -        # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse]
    -        attr_accessor :update_embedded_object_position
    -      
    -        # The result of deleting a conditional format rule.
    -        # Corresponds to the JSON property `deleteConditionalFormatRule`
    -        # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse]
    -        attr_accessor :delete_conditional_format_rule
    -      
    -        # The result of a filter view being duplicated.
    -        # Corresponds to the JSON property `duplicateFilterView`
    -        # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse]
    -        attr_accessor :duplicate_filter_view
    -      
    -        # The result of adding a chart to a spreadsheet.
    -        # Corresponds to the JSON property `addChart`
    -        # @return [Google::Apis::SheetsV4::AddChartResponse]
    -        attr_accessor :add_chart
    -      
    -        # The result of the find/replace.
    -        # Corresponds to the JSON property `findReplace`
    -        # @return [Google::Apis::SheetsV4::FindReplaceResponse]
    -        attr_accessor :find_replace
    -      
    -        # The result of adding a sheet.
    -        # Corresponds to the JSON property `addSheet`
    -        # @return [Google::Apis::SheetsV4::AddSheetResponse]
    -        attr_accessor :add_sheet
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
    -          @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
    -          @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
    -          @add_banding = args[:add_banding] if args.key?(:add_banding)
    -          @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
    -          @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
    -          @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
    -          @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
    -          @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
    -          @add_chart = args[:add_chart] if args.key?(:add_chart)
    -          @find_replace = args[:find_replace] if args.key?(:find_replace)
    -          @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
    -        end
    -      end
    -      
    -      # A chart embedded in a sheet.
    -      class EmbeddedChart
    -        include Google::Apis::Core::Hashable
    -      
    -        # The ID of the chart.
    -        # Corresponds to the JSON property `chartId`
    -        # @return [Fixnum]
    -        attr_accessor :chart_id
    -      
    -        # The position of an embedded object such as a chart.
    -        # Corresponds to the JSON property `position`
    -        # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
    -        attr_accessor :position
    -      
    -        # The specifications of a chart.
    -        # Corresponds to the JSON property `spec`
    -        # @return [Google::Apis::SheetsV4::ChartSpec]
    -        attr_accessor :spec
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @chart_id = args[:chart_id] if args.key?(:chart_id)
    -          @position = args[:position] if args.key?(:position)
    -          @spec = args[:spec] if args.key?(:spec)
    -        end
    -      end
    -      
    -      # A run of a text format. The format of this run continues until the start
    -      # index of the next run.
    -      # When updating, all fields must be set.
    -      class TextFormatRun
    -        include Google::Apis::Core::Hashable
    -      
    -        # The format of a run of text in a cell.
    -        # Absent values indicate that the field isn't specified.
    -        # Corresponds to the JSON property `format`
    -        # @return [Google::Apis::SheetsV4::TextFormat]
    -        attr_accessor :format
    -      
    -        # The character index where this run starts.
    -        # Corresponds to the JSON property `startIndex`
    -        # @return [Fixnum]
    -        attr_accessor :start_index
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @format = args[:format] if args.key?(:format)
    -          @start_index = args[:start_index] if args.key?(:start_index)
    -        end
    -      end
    -      
    -      # Inserts cells into a range, shifting the existing cells over or down.
    -      class InsertRangeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The dimension which will be shifted when inserting cells.
    -        # If ROWS, existing cells will be shifted down.
    -        # If COLUMNS, existing cells will be shifted right.
    -        # Corresponds to the JSON property `shiftDimension`
    -        # @return [String]
    -        attr_accessor :shift_dimension
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @shift_dimension = args[:shift_dimension] if args.key?(:shift_dimension)
    -          @range = args[:range] if args.key?(:range)
    -        end
    -      end
    -      
    -      # The result of adding a named range.
    -      class AddNamedRangeResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A named range.
    -        # Corresponds to the JSON property `namedRange`
    -        # @return [Google::Apis::SheetsV4::NamedRange]
    -        attr_accessor :named_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @named_range = args[:named_range] if args.key?(:named_range)
    -        end
    -      end
    -      
    -      # Data about each cell in a row.
    -      class RowData
    -        include Google::Apis::Core::Hashable
    -      
    -        # The values in the row, one per column.
    -        # Corresponds to the JSON property `values`
    -        # @return [Array]
    -        attr_accessor :values
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @values = args[:values] if args.key?(:values)
    -        end
    -      end
    -      
    -      # A border along a cell.
    -      class Border
    -        include Google::Apis::Core::Hashable
    -      
    -        # The width of the border, in pixels.
    -        # Deprecated; the width is determined by the "style" field.
    -        # Corresponds to the JSON property `width`
    -        # @return [Fixnum]
    -        attr_accessor :width
    -      
    -        # The style of the border.
    -        # Corresponds to the JSON property `style`
    -        # @return [String]
    -        attr_accessor :style
    -      
    -        # Represents a color in the RGBA color space. This representation is designed
    -        # for simplicity of conversion to/from color representations in various
    -        # languages over compactness; for example, the fields of this representation
    -        # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    -        # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    -        # method in iOS; and, with just a little work, it can be easily formatted into
    -        # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    -        # Example (Java):
    -        # import com.google.type.Color;
    -        # // ...
    -        # public static java.awt.Color fromProto(Color protocolor) `
    -        # float alpha = protocolor.hasAlpha()
    -        # ? protocolor.getAlpha().getValue()
    -        # : 1.0;
    -        # return new java.awt.Color(
    -        # protocolor.getRed(),
    -        # protocolor.getGreen(),
    -        # protocolor.getBlue(),
    -        # alpha);
    -        # `
    -        # public static Color toProto(java.awt.Color color) `
    -        # float red = (float) color.getRed();
    -        # float green = (float) color.getGreen();
    -        # float blue = (float) color.getBlue();
    -        # float denominator = 255.0;
    -        # Color.Builder resultBuilder =
    -        # Color
    -        # .newBuilder()
    -        # .setRed(red / denominator)
    -        # .setGreen(green / denominator)
    -        # .setBlue(blue / denominator);
    -        # int alpha = color.getAlpha();
    -        # if (alpha != 255) `
    -        # result.setAlpha(
    -        # FloatValue
    -        # .newBuilder()
    -        # .setValue(((float) alpha) / denominator)
    -        # .build());
    -        # `
    -        # return resultBuilder.build();
    -        # `
    -        # // ...
    -        # Example (iOS / Obj-C):
    -        # // ...
    -        # static UIColor* fromProto(Color* protocolor) `
    -        # float red = [protocolor red];
    -        # float green = [protocolor green];
    -        # float blue = [protocolor blue];
    -        # FloatValue* alpha_wrapper = [protocolor alpha];
    -        # float alpha = 1.0;
    -        # if (alpha_wrapper != nil) `
    -        # alpha = [alpha_wrapper value];
    -        # `
    -        # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    -        # `
    -        # static Color* toProto(UIColor* color) `
    -        # CGFloat red, green, blue, alpha;
    -        # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    -        # return nil;
    -        # `
    -        # Color* result = [Color alloc] init];
    -        # [result setRed:red];
    -        # [result setGreen:green];
    -        # [result setBlue:blue];
    -        # if (alpha <= 0.9999) `
    -        # [result setAlpha:floatWrapperWithValue(alpha)];
    -        # `
    -        # [result autorelease];
    -        # return result;
    -        # `
    -        # // ...
    -        # Example (JavaScript):
    -        # // ...
    -        # var protoToCssColor = function(rgb_color) `
    -        # var redFrac = rgb_color.red || 0.0;
    -        # var greenFrac = rgb_color.green || 0.0;
    -        # var blueFrac = rgb_color.blue || 0.0;
    -        # var red = Math.floor(redFrac * 255);
    -        # var green = Math.floor(greenFrac * 255);
    -        # var blue = Math.floor(blueFrac * 255);
    -        # if (!('alpha' in rgb_color)) `
    -        # return rgbToCssColor_(red, green, blue);
    -        # `
    -        # var alphaFrac = rgb_color.alpha.value || 0.0;
    -        # var rgbParams = [red, green, blue].join(',');
    -        # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    -        # `;
    -        # var rgbToCssColor_ = function(red, green, blue) `
    -        # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    -        # var hexString = rgbNumber.toString(16);
    -        # var missingZeros = 6 - hexString.length;
    -        # var resultBuilder = ['#'];
    -        # for (var i = 0; i < missingZeros; i++) `
    -        # resultBuilder.push('0');
    -        # `
    -        # resultBuilder.push(hexString);
    -        # return resultBuilder.join('');
    -        # `;
    -        # // ...
    -        # Corresponds to the JSON property `color`
    -        # @return [Google::Apis::SheetsV4::Color]
    -        attr_accessor :color
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @width = args[:width] if args.key?(:width)
    -          @style = args[:style] if args.key?(:style)
    -          @color = args[:color] if args.key?(:color)
    -        end
    -      end
    -      
    -      # Data in the grid, as well as metadata about the dimensions.
    -      class GridData
    -        include Google::Apis::Core::Hashable
    -      
    -        # The first row this GridData refers to, zero-based.
    -        # Corresponds to the JSON property `startRow`
    -        # @return [Fixnum]
    -        attr_accessor :start_row
    -      
    -        # Metadata about the requested columns in the grid, starting with the column
    -        # in start_column.
    -        # Corresponds to the JSON property `columnMetadata`
    -        # @return [Array]
    -        attr_accessor :column_metadata
    -      
    -        # The first column this GridData refers to, zero-based.
    -        # Corresponds to the JSON property `startColumn`
    -        # @return [Fixnum]
    -        attr_accessor :start_column
    -      
    -        # Metadata about the requested rows in the grid, starting with the row
    -        # in start_row.
    -        # Corresponds to the JSON property `rowMetadata`
    -        # @return [Array]
    -        attr_accessor :row_metadata
    -      
    -        # The data in the grid, one entry per row,
    -        # starting with the row in startRow.
    -        # The values in RowData will correspond to columns starting
    -        # at start_column.
    -        # Corresponds to the JSON property `rowData`
    -        # @return [Array]
    -        attr_accessor :row_data
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @start_row = args[:start_row] if args.key?(:start_row)
    -          @column_metadata = args[:column_metadata] if args.key?(:column_metadata)
    -          @start_column = args[:start_column] if args.key?(:start_column)
    -          @row_metadata = args[:row_metadata] if args.key?(:row_metadata)
    -          @row_data = args[:row_data] if args.key?(:row_data)
    -        end
    -      end
    -      
    -      # Updates properties of the named range with the specified
    -      # namedRangeId.
    -      class UpdateNamedRangeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A named range.
    -        # Corresponds to the JSON property `namedRange`
    -        # @return [Google::Apis::SheetsV4::NamedRange]
    -        attr_accessor :named_range
    -      
    -        # The fields that should be updated.  At least one field must be specified.
    -        # The root `namedRange` is implied and should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @named_range = args[:named_range] if args.key?(:named_range)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # Finds and replaces data in cells over a range, sheet, or all sheets.
    -      class FindReplaceRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # True if the search should include cells with formulas.
    -        # False to skip cells with formulas.
    -        # Corresponds to the JSON property `includeFormulas`
    -        # @return [Boolean]
    -        attr_accessor :include_formulas
    -        alias_method :include_formulas?, :include_formulas
    -      
    -        # True if the find value should match the entire cell.
    -        # Corresponds to the JSON property `matchEntireCell`
    -        # @return [Boolean]
    -        attr_accessor :match_entire_cell
    -        alias_method :match_entire_cell?, :match_entire_cell
    -      
    -        # The value to search.
    -        # Corresponds to the JSON property `find`
    -        # @return [String]
    -        attr_accessor :find
    -      
    -        # True if the find value is a regex.
    -        # The regular expression and replacement should follow Java regex rules
    -        # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.
    -        # The replacement string is allowed to refer to capturing groups.
    -        # For example, if one cell has the contents `"Google Sheets"` and another
    -        # has `"Google Docs"`, then searching for `"o.* (.*)"` with a replacement of
    -        # `"$1 Rocks"` would change the contents of the cells to
    -        # `"GSheets Rocks"` and `"GDocs Rocks"` respectively.
    -        # Corresponds to the JSON property `searchByRegex`
    -        # @return [Boolean]
    -        attr_accessor :search_by_regex
    -        alias_method :search_by_regex?, :search_by_regex
    -      
    -        # The value to use as the replacement.
    -        # Corresponds to the JSON property `replacement`
    -        # @return [String]
    -        attr_accessor :replacement
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The sheet to find/replace over.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        # True if the search is case sensitive.
    -        # Corresponds to the JSON property `matchCase`
    -        # @return [Boolean]
    -        attr_accessor :match_case
    -        alias_method :match_case?, :match_case
    -      
    -        # True to find/replace over all sheets.
    -        # Corresponds to the JSON property `allSheets`
    -        # @return [Boolean]
    -        attr_accessor :all_sheets
    -        alias_method :all_sheets?, :all_sheets
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @include_formulas = args[:include_formulas] if args.key?(:include_formulas)
    -          @match_entire_cell = args[:match_entire_cell] if args.key?(:match_entire_cell)
    -          @find = args[:find] if args.key?(:find)
    -          @search_by_regex = args[:search_by_regex] if args.key?(:search_by_regex)
    -          @replacement = args[:replacement] if args.key?(:replacement)
    -          @range = args[:range] if args.key?(:range)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -          @match_case = args[:match_case] if args.key?(:match_case)
    -          @all_sheets = args[:all_sheets] if args.key?(:all_sheets)
    -        end
    -      end
    -      
    -      # Adds a new sheet.
    -      # When a sheet is added at a given index,
    -      # all subsequent sheets' indexes are incremented.
    -      # To add an object sheet, use AddChartRequest instead and specify
    -      # EmbeddedObjectPosition.sheetId or
    -      # EmbeddedObjectPosition.newSheet.
    -      class AddSheetRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Properties of a sheet.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::SheetProperties]
    -        attr_accessor :properties
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @properties = args[:properties] if args.key?(:properties)
    -        end
    -      end
    -      
    -      # Updates all cells in a range with new data.
    -      class UpdateCellsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A coordinate in a sheet.
    -        # All indexes are zero-based.
    -        # Corresponds to the JSON property `start`
    -        # @return [Google::Apis::SheetsV4::GridCoordinate]
    -        attr_accessor :start
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        # The data to write.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Array]
    -        attr_accessor :rows
    -      
    -        # The fields of CellData that should be updated.
    -        # At least one field must be specified.
    -        # The root is the CellData; 'row.values.' should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @start = args[:start] if args.key?(:start)
    -          @range = args[:range] if args.key?(:range)
    -          @rows = args[:rows] if args.key?(:rows)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # The result of deleting a conditional format rule.
    -      class DeleteConditionalFormatRuleResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A rule describing a conditional format.
    -        # Corresponds to the JSON property `rule`
    -        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    -        attr_accessor :rule
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rule = args[:rule] if args.key?(:rule)
    -        end
    -      end
    -      
    -      # Deletes a range of cells, shifting other cells into the deleted area.
    -      class DeleteRangeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The dimension from which deleted cells will be replaced with.
    -        # If ROWS, existing cells will be shifted upward to
    -        # replace the deleted cells. If COLUMNS, existing cells
    -        # will be shifted left to replace the deleted cells.
    -        # Corresponds to the JSON property `shiftDimension`
    -        # @return [String]
    -        attr_accessor :shift_dimension
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @shift_dimension = args[:shift_dimension] if args.key?(:shift_dimension)
    -          @range = args[:range] if args.key?(:range)
    -        end
    -      end
    -      
    -      # A coordinate in a sheet.
    -      # All indexes are zero-based.
    -      class GridCoordinate
    -        include Google::Apis::Core::Hashable
    -      
    -        # The row index of the coordinate.
    -        # Corresponds to the JSON property `rowIndex`
    -        # @return [Fixnum]
    -        attr_accessor :row_index
    -      
    -        # The column index of the coordinate.
    -        # Corresponds to the JSON property `columnIndex`
    -        # @return [Fixnum]
    -        attr_accessor :column_index
    -      
    -        # The sheet this coordinate is on.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @row_index = args[:row_index] if args.key?(:row_index)
    -          @column_index = args[:column_index] if args.key?(:column_index)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -        end
    -      end
    -      
    -      # Updates properties of the sheet with the specified
    -      # sheetId.
    -      class UpdateSheetPropertiesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Properties of a sheet.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::SheetProperties]
    -        attr_accessor :properties
    -      
    -        # The fields that should be updated.  At least one field must be specified.
    -        # The root `properties` is implied and should not be specified.
    -        # A single `"*"` can be used as short-hand for listing every field.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @properties = args[:properties] if args.key?(:properties)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # Unmerges cells in the given range.
    -      class UnmergeCellsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A range on a sheet.
    -        # All indexes are zero-based.
    -        # Indexes are half open, e.g the start index is inclusive
    -        # and the end index is exclusive -- [start_index, end_index).
    -        # Missing indexes indicate the range is unbounded on that side.
    -        # For example, if `"Sheet1"` is sheet ID 0, then:
    -        # `Sheet1!A1:A1 == sheet_id: 0,
    -        # start_row_index: 0, end_row_index: 1,
    -        # start_column_index: 0, end_column_index: 1`
    -        # `Sheet1!A3:B4 == sheet_id: 0,
    -        # start_row_index: 2, end_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A:B == sheet_id: 0,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1!A5:B == sheet_id: 0,
    -        # start_row_index: 4,
    -        # start_column_index: 0, end_column_index: 2`
    -        # `Sheet1 == sheet_id:0`
    -        # The start index must always be less than or equal to the end index.
    -        # If the start index equals the end index, then the range is empty.
    -        # Empty ranges are typically not meaningful and are usually rendered in the
    -        # UI as `#REF!`.
    -        # Corresponds to the JSON property `range`
    -        # @return [Google::Apis::SheetsV4::GridRange]
    -        attr_accessor :range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @range = args[:range] if args.key?(:range)
    -        end
    -      end
    -      
    -      # Properties of a grid.
    -      class GridProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The number of rows that are frozen in the grid.
    -        # Corresponds to the JSON property `frozenRowCount`
    -        # @return [Fixnum]
    -        attr_accessor :frozen_row_count
    -      
    -        # True if the grid isn't showing gridlines in the UI.
    -        # Corresponds to the JSON property `hideGridlines`
    -        # @return [Boolean]
    -        attr_accessor :hide_gridlines
    -        alias_method :hide_gridlines?, :hide_gridlines
    -      
    -        # The number of columns in the grid.
    -        # Corresponds to the JSON property `columnCount`
    -        # @return [Fixnum]
    -        attr_accessor :column_count
    -      
    -        # The number of columns that are frozen in the grid.
    -        # Corresponds to the JSON property `frozenColumnCount`
    -        # @return [Fixnum]
    -        attr_accessor :frozen_column_count
    -      
    -        # The number of rows in the grid.
    -        # Corresponds to the JSON property `rowCount`
    -        # @return [Fixnum]
    -        attr_accessor :row_count
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count)
    -          @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines)
    -          @column_count = args[:column_count] if args.key?(:column_count)
    -          @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count)
    -          @row_count = args[:row_count] if args.key?(:row_count)
    -        end
    -      end
    -      
    -      # A sheet in a spreadsheet.
    -      class Sheet
    -        include Google::Apis::Core::Hashable
    -      
    -        # The default filter associated with a sheet.
    -        # Corresponds to the JSON property `basicFilter`
    -        # @return [Google::Apis::SheetsV4::BasicFilter]
    -        attr_accessor :basic_filter
    -      
    -        # The ranges that are merged together.
    -        # Corresponds to the JSON property `merges`
    -        # @return [Array]
    -        attr_accessor :merges
    -      
    -        # Data in the grid, if this is a grid sheet.
    -        # The number of GridData objects returned is dependent on the number of
    -        # ranges requested on this sheet. For example, if this is representing
    -        # `Sheet1`, and the spreadsheet was requested with ranges
    -        # `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a
    -        # startRow/startColumn of `0`,
    -        # while the second one will have `startRow 14` (zero-based row 15),
    -        # and `startColumn 3` (zero-based column D).
    -        # Corresponds to the JSON property `data`
    -        # @return [Array]
    -        attr_accessor :data
    -      
    -        # The banded (i.e. alternating colors) ranges on this sheet.
    -        # Corresponds to the JSON property `bandedRanges`
    -        # @return [Array]
    -        attr_accessor :banded_ranges
    -      
    -        # The specifications of every chart on this sheet.
    -        # Corresponds to the JSON property `charts`
    -        # @return [Array]
    -        attr_accessor :charts
    -      
    -        # Properties of a sheet.
    -        # Corresponds to the JSON property `properties`
    -        # @return [Google::Apis::SheetsV4::SheetProperties]
    -        attr_accessor :properties
    -      
    -        # The filter views in this sheet.
    -        # Corresponds to the JSON property `filterViews`
    -        # @return [Array]
    -        attr_accessor :filter_views
    -      
    -        # The protected ranges in this sheet.
    -        # Corresponds to the JSON property `protectedRanges`
    -        # @return [Array]
    -        attr_accessor :protected_ranges
    -      
    -        # The conditional format rules in this sheet.
    -        # Corresponds to the JSON property `conditionalFormats`
    -        # @return [Array]
    -        attr_accessor :conditional_formats
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
    -          @merges = args[:merges] if args.key?(:merges)
    -          @data = args[:data] if args.key?(:data)
    -          @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
    -          @charts = args[:charts] if args.key?(:charts)
    -          @properties = args[:properties] if args.key?(:properties)
    -          @filter_views = args[:filter_views] if args.key?(:filter_views)
    -          @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
    -          @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
    -        end
    -      end
    -      
    -      # A sort order associated with a specific column or row.
    -      class SortSpec
    -        include Google::Apis::Core::Hashable
    -      
    -        # The dimension the sort should be applied to.
    -        # Corresponds to the JSON property `dimensionIndex`
    -        # @return [Fixnum]
    -        attr_accessor :dimension_index
    -      
    -        # The order data should be sorted.
    -        # Corresponds to the JSON property `sortOrder`
    -        # @return [String]
    -        attr_accessor :sort_order
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @dimension_index = args[:dimension_index] if args.key?(:dimension_index)
    -          @sort_order = args[:sort_order] if args.key?(:sort_order)
    -        end
    -      end
    -      
    -      # The result of updating an embedded object's position.
    -      class UpdateEmbeddedObjectPositionResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The position of an embedded object such as a chart.
    -        # Corresponds to the JSON property `position`
    -        # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
    -        attr_accessor :position
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @position = args[:position] if args.key?(:position)
    -        end
    -      end
    -      
    -      # A rule that may or may not match, depending on the condition.
    -      class BooleanRule
    -        include Google::Apis::Core::Hashable
    -      
    -        # The format of a cell.
    -        # Corresponds to the JSON property `format`
    -        # @return [Google::Apis::SheetsV4::CellFormat]
    -        attr_accessor :format
    -      
    -        # A condition that can evaluate to true or false.
    -        # BooleanConditions are used by conditional formatting,
    -        # data validation, and the criteria in filters.
    -        # Corresponds to the JSON property `condition`
    -        # @return [Google::Apis::SheetsV4::BooleanCondition]
    -        attr_accessor :condition
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @format = args[:format] if args.key?(:format)
    -          @condition = args[:condition] if args.key?(:condition)
    -        end
    -      end
    -      
    -      # Metadata about a value in a pivot grouping.
    -      class PivotGroupValueMetadata
    -        include Google::Apis::Core::Hashable
    -      
    -        # True if the data corresponding to the value is collapsed.
    -        # Corresponds to the JSON property `collapsed`
    -        # @return [Boolean]
    -        attr_accessor :collapsed
    -        alias_method :collapsed?, :collapsed
    -      
    -        # The kinds of value that a cell in a spreadsheet can have.
    -        # Corresponds to the JSON property `value`
    -        # @return [Google::Apis::SheetsV4::ExtendedValue]
    -        attr_accessor :value
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @collapsed = args[:collapsed] if args.key?(:collapsed)
    -          @value = args[:value] if args.key?(:value)
    -        end
    -      end
    -      
    -      # Criteria for showing/hiding rows in a filter or filter view.
    -      class FilterCriteria
    -        include Google::Apis::Core::Hashable
    -      
    -        # Values that should be hidden.
    -        # Corresponds to the JSON property `hiddenValues`
    -        # @return [Array]
    -        attr_accessor :hidden_values
    -      
    -        # A condition that can evaluate to true or false.
    -        # BooleanConditions are used by conditional formatting,
    -        # data validation, and the criteria in filters.
    -        # Corresponds to the JSON property `condition`
    -        # @return [Google::Apis::SheetsV4::BooleanCondition]
    -        attr_accessor :condition
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @hidden_values = args[:hidden_values] if args.key?(:hidden_values)
    -          @condition = args[:condition] if args.key?(:condition)
    -        end
    -      end
    -      
    -      # The editors of a protected range.
    -      class Editors
    -        include Google::Apis::Core::Hashable
    -      
    -        # The email addresses of users with edit access to the protected range.
    -        # Corresponds to the JSON property `users`
    -        # @return [Array]
    -        attr_accessor :users
    -      
    -        # The email addresses of groups with edit access to the protected range.
    -        # Corresponds to the JSON property `groups`
    -        # @return [Array]
    -        attr_accessor :groups
    -      
    -        # True if anyone in the document's domain has edit access to the protected
    -        # range.  Domain protection is only supported on documents within a domain.
    -        # Corresponds to the JSON property `domainUsersCanEdit`
    -        # @return [Boolean]
    -        attr_accessor :domain_users_can_edit
    -        alias_method :domain_users_can_edit?, :domain_users_can_edit
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @users = args[:users] if args.key?(:users)
    -          @groups = args[:groups] if args.key?(:groups)
    -          @domain_users_can_edit = args[:domain_users_can_edit] if args.key?(:domain_users_can_edit)
    -        end
    -      end
    -      
    -      # Updates a conditional format rule at the given index,
    -      # or moves a conditional format rule to another index.
    -      class UpdateConditionalFormatRuleRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A rule describing a conditional format.
    -        # Corresponds to the JSON property `rule`
    -        # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
    -        attr_accessor :rule
    -      
    -        # The zero-based index of the rule that should be replaced or moved.
    -        # Corresponds to the JSON property `index`
    -        # @return [Fixnum]
    -        attr_accessor :index
    -      
    -        # The sheet of the rule to move.  Required if new_index is set,
    -        # unused otherwise.
    -        # Corresponds to the JSON property `sheetId`
    -        # @return [Fixnum]
    -        attr_accessor :sheet_id
    -      
    -        # The zero-based new index the rule should end up at.
    -        # Corresponds to the JSON property `newIndex`
    -        # @return [Fixnum]
    -        attr_accessor :new_index
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rule = args[:rule] if args.key?(:rule)
    -          @index = args[:index] if args.key?(:index)
    -          @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
    -          @new_index = args[:new_index] if args.key?(:new_index)
    -        end
    -      end
    -      
    -      # A data validation rule.
    -      class DataValidationRule
    -        include Google::Apis::Core::Hashable
    -      
    -        # A condition that can evaluate to true or false.
    -        # BooleanConditions are used by conditional formatting,
    -        # data validation, and the criteria in filters.
    -        # Corresponds to the JSON property `condition`
    -        # @return [Google::Apis::SheetsV4::BooleanCondition]
    -        attr_accessor :condition
    -      
    -        # True if the UI should be customized based on the kind of condition.
    -        # If true, "List" conditions will show a dropdown.
    -        # Corresponds to the JSON property `showCustomUi`
    -        # @return [Boolean]
    -        attr_accessor :show_custom_ui
    -        alias_method :show_custom_ui?, :show_custom_ui
    -      
    -        # True if invalid data should be rejected.
    -        # Corresponds to the JSON property `strict`
    -        # @return [Boolean]
    -        attr_accessor :strict
    -        alias_method :strict?, :strict
    -      
    -        # A message to show the user when adding data to the cell.
    -        # Corresponds to the JSON property `inputMessage`
    -        # @return [String]
    -        attr_accessor :input_message
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @condition = args[:condition] if args.key?(:condition)
    -          @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui)
    -          @strict = args[:strict] if args.key?(:strict)
    -          @input_message = args[:input_message] if args.key?(:input_message)
    -        end
    -      end
    -      
    -      # The domain of a chart.
    -      # For example, if charting stock prices over time, this would be the date.
    -      class BasicChartDomain
    -        include Google::Apis::Core::Hashable
    -      
    -        # The data included in a domain or series.
    -        # Corresponds to the JSON property `domain`
    -        # @return [Google::Apis::SheetsV4::ChartData]
    -        attr_accessor :domain
    -      
    -        # True to reverse the order of the domain values (horizontal axis).
    -        # Not applicable to Gauge, Geo, Histogram, Org, Pie, Radar, and Treemap
    -        # charts.
    -        # Corresponds to the JSON property `reversed`
    -        # @return [Boolean]
    -        attr_accessor :reversed
    -        alias_method :reversed?, :reversed
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @domain = args[:domain] if args.key?(:domain)
    -          @reversed = args[:reversed] if args.key?(:reversed)
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb
    index 3d5f4dbda..bf9cd8087 100644
    --- a/generated/google/apis/sheets_v4/representations.rb
    +++ b/generated/google/apis/sheets_v4/representations.rb
    @@ -22,6 +22,378 @@ module Google
       module Apis
         module SheetsV4
           
    +      class AddFilterViewResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class IterativeCalculationSettings
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SpreadsheetProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class OverlayPosition
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class RepeatCellRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AddChartResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class InsertDimensionRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateSpreadsheetPropertiesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ProtectedRange
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class BatchUpdateValuesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DimensionProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class NamedRange
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DimensionRange
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CutPasteRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Borders
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class BasicChartSeries
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AutoResizeDimensionsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateBordersRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CellFormat
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ClearValuesResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteConditionalFormatRuleRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteNamedRangeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AddBandingResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ChartData
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class BatchGetValuesResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateBandingRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Color
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class PivotGroup
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class PivotTable
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ChartSourceRange
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ValueRange
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AppendCellsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AddBandingRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Response
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class InsertRangeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class TextFormatRun
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class EmbeddedChart
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AddNamedRangeResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class RowData
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Border
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class GridData
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateNamedRangeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class FindReplaceRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AddSheetRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateCellsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class RandomizeRangeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteConditionalFormatRuleResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteRangeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class GridCoordinate
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateSheetPropertiesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class GridProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UnmergeCellsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SortSpec
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Sheet
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateEmbeddedObjectPositionResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class BooleanRule
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class FilterCriteria
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class PivotGroupValueMetadata
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Editors
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateConditionalFormatRuleRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class BasicChartDomain
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DataValidationRule
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class PasteDataRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -100,13 +472,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class BubbleChartSpec
    +      class SetDataValidationRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class SetDataValidationRequest
    +      class BubbleChartSpec
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -226,7 +598,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class AddFilterViewRequest
    +      class MoveDimensionRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -238,7 +610,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class MoveDimensionRequest
    +      class AddFilterViewRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -286,13 +658,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class FilterView
    +      class OrgChartSpec
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class OrgChartSpec
    +      class FilterView
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -304,7 +676,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class AddProtectedRangeResponse
    +      class CandlestickSeries
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -316,7 +688,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class CandlestickSeries
    +      class AddProtectedRangeResponse
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -394,13 +766,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class ClearValuesRequest
    +      class SetBasicFilterRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class SetBasicFilterRequest
    +      class ClearValuesRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -460,7 +832,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class BatchClearValuesResponse
    +      class AddChartRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -472,7 +844,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class AddChartRequest
    +      class BatchClearValuesResponse
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -509,380 +881,688 @@ module Google
           end
           
           class AddFilterViewResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class IterativeCalculationSettings
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :convergence_threshold, as: 'convergenceThreshold'
    +          property :max_iterations, as: 'maxIterations'
    +        end
           end
           
           class SpreadsheetProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :title, as: 'title'
    +          property :time_zone, as: 'timeZone'
    +          property :locale, as: 'locale'
    +          property :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :auto_recalc, as: 'autoRecalc'
    +          property :default_format, as: 'defaultFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
    +      
    +        end
           end
           
           class OverlayPosition
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :width_pixels, as: 'widthPixels'
    +          property :offset_x_pixels, as: 'offsetXPixels'
    +          property :anchor_cell, as: 'anchorCell', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :height_pixels, as: 'heightPixels'
    +          property :offset_y_pixels, as: 'offsetYPixels'
    +        end
           end
           
           class RepeatCellRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :cell, as: 'cell', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +        end
           end
           
           class AddChartResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class InsertDimensionRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :inherit_from_before, as: 'inheritFromBefore'
    +        end
           end
           
           class UpdateSpreadsheetPropertiesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class BatchUpdateValuesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class ProtectedRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :editors, as: 'editors', class: Google::Apis::SheetsV4::Editors, decorator: Google::Apis::SheetsV4::Editors::Representation
    +      
    +          property :description, as: 'description'
    +          collection :unprotected_ranges, as: 'unprotectedRanges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +          property :named_range_id, as: 'namedRangeId'
    +          property :protected_range_id, as: 'protectedRangeId'
    +          property :warning_only, as: 'warningOnly'
    +          property :requesting_user_can_edit, as: 'requestingUserCanEdit'
    +        end
    +      end
    +      
    +      class BatchUpdateValuesRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :response_value_render_option, as: 'responseValueRenderOption'
    +          property :include_values_in_response, as: 'includeValuesInResponse'
    +          collection :data, as: 'data', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
    +      
    +          property :value_input_option, as: 'valueInputOption'
    +          property :response_date_time_render_option, as: 'responseDateTimeRenderOption'
    +        end
           end
           
           class DimensionProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :pixel_size, as: 'pixelSize'
    +          property :hidden_by_user, as: 'hiddenByUser'
    +          property :hidden_by_filter, as: 'hiddenByFilter'
    +        end
           end
           
           class NamedRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :named_range_id, as: 'namedRangeId'
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :name, as: 'name'
    +        end
           end
           
           class DimensionRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :dimension, as: 'dimension'
    +          property :end_index, as: 'endIndex'
    +          property :start_index, as: 'startIndex'
    +          property :sheet_id, as: 'sheetId'
    +        end
           end
           
           class CutPasteRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :paste_type, as: 'pasteType'
    +          property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +        end
           end
           
           class Borders
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +        end
           end
           
           class BasicChartSeries
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :target_axis, as: 'targetAxis'
    +          property :type, as: 'type'
    +          property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class AutoResizeDimensionsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :dimensions, as: 'dimensions', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class UpdateBordersRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :inner_vertical, as: 'innerVertical', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +          property :inner_horizontal, as: 'innerHorizontal', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +          property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    +      
    +        end
           end
           
           class CellFormat
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :number_format, as: 'numberFormat', class: Google::Apis::SheetsV4::NumberFormat, decorator: Google::Apis::SheetsV4::NumberFormat::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :hyperlink_display_type, as: 'hyperlinkDisplayType'
    +          property :horizontal_alignment, as: 'horizontalAlignment'
    +          property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    +      
    +          property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    +      
    +          property :vertical_alignment, as: 'verticalAlignment'
    +          property :padding, as: 'padding', class: Google::Apis::SheetsV4::Padding, decorator: Google::Apis::SheetsV4::Padding::Representation
    +      
    +          property :text_direction, as: 'textDirection'
    +          property :borders, as: 'borders', class: Google::Apis::SheetsV4::Borders, decorator: Google::Apis::SheetsV4::Borders::Representation
    +      
    +          property :text_rotation, as: 'textRotation', class: Google::Apis::SheetsV4::TextRotation, decorator: Google::Apis::SheetsV4::TextRotation::Representation
    +      
    +          property :wrap_strategy, as: 'wrapStrategy'
    +        end
           end
           
           class ClearValuesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :spreadsheet_id, as: 'spreadsheetId'
    +          property :cleared_range, as: 'clearedRange'
    +        end
           end
           
           class DeleteConditionalFormatRuleRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AddBandingResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :index, as: 'index'
    +          property :sheet_id, as: 'sheetId'
    +        end
           end
           
           class DeleteNamedRangeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :named_range_id, as: 'namedRangeId'
    +        end
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +      class AddBandingResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    +      
    +        end
           end
           
           class ChartData
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :source_range, as: 'sourceRange', class: Google::Apis::SheetsV4::ChartSourceRange, decorator: Google::Apis::SheetsV4::ChartSourceRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class BatchGetValuesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :spreadsheet_id, as: 'spreadsheetId'
    +          collection :value_ranges, as: 'valueRanges', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class UpdateBandingRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class Color
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :alpha, as: 'alpha'
    +          property :blue, as: 'blue'
    +          property :green, as: 'green'
    +          property :red, as: 'red'
    +        end
           end
           
           class PivotGroup
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :value_bucket, as: 'valueBucket', class: Google::Apis::SheetsV4::PivotGroupSortValueBucket, decorator: Google::Apis::SheetsV4::PivotGroupSortValueBucket::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          collection :value_metadata, as: 'valueMetadata', class: Google::Apis::SheetsV4::PivotGroupValueMetadata, decorator: Google::Apis::SheetsV4::PivotGroupValueMetadata::Representation
    +      
    +          property :show_totals, as: 'showTotals'
    +          property :source_column_offset, as: 'sourceColumnOffset'
    +          property :sort_order, as: 'sortOrder'
    +        end
           end
           
           class PivotTable
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::PivotFilterCriteria, decorator: Google::Apis::SheetsV4::PivotFilterCriteria::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation
    +      
    +          property :value_layout, as: 'valueLayout'
    +          collection :columns, as: 'columns', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation
    +      
    +          collection :values, as: 'values', class: Google::Apis::SheetsV4::PivotValue, decorator: Google::Apis::SheetsV4::PivotValue::Representation
    +      
    +          property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +        end
           end
           
           class ChartSourceRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :sources, as: 'sources', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AppendCellsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class ValueRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :range, as: 'range'
    +          collection :values, as: 'values', :class => Array do
    +        include Representable::JSON::Collection
    +        items
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :major_dimension, as: 'majorDimension'
    +        end
    +      end
    +      
    +      class AppendCellsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
    +      
    +          property :sheet_id, as: 'sheetId'
    +        end
           end
           
           class AddBandingRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class Response
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewResponse, decorator: Google::Apis::SheetsV4::AddFilterViewResponse::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    +          property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingResponse, decorator: Google::Apis::SheetsV4::AddBandingResponse::Representation
           
    -      class EmbeddedChart
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +          property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeResponse, decorator: Google::Apis::SheetsV4::AddProtectedRangeResponse::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    +          property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation
           
    -      class TextFormatRun
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +          property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
    +      
    +          property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation
    +      
    +          property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartResponse, decorator: Google::Apis::SheetsV4::AddChartResponse::Representation
    +      
    +          property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceResponse, decorator: Google::Apis::SheetsV4::FindReplaceResponse::Representation
    +      
    +          property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation
    +      
    +          property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse::Representation
    +      
    +          property :add_named_range, as: 'addNamedRange', class: Google::Apis::SheetsV4::AddNamedRangeResponse, decorator: Google::Apis::SheetsV4::AddNamedRangeResponse::Representation
    +      
    +        end
           end
           
           class InsertRangeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :shift_dimension, as: 'shiftDimension'
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
    +      end
    +      
    +      class TextFormatRun
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    +      
    +          property :start_index, as: 'startIndex'
    +        end
    +      end
    +      
    +      class EmbeddedChart
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::Representation
    +      
    +          property :chart_id, as: 'chartId'
    +          property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
    +      
    +        end
           end
           
           class AddNamedRangeResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class RowData
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :values, as: 'values', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class Border
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :width, as: 'width'
    +          property :style, as: 'style'
    +          property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class GridData
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :row_data, as: 'rowData', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :start_row, as: 'startRow'
    +          collection :column_metadata, as: 'columnMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    +      
    +          property :start_column, as: 'startColumn'
    +          collection :row_metadata, as: 'rowMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    +      
    +        end
           end
           
           class UpdateNamedRangeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :fields, as: 'fields'
    +        end
           end
           
           class FindReplaceRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :replacement, as: 'replacement'
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :sheet_id, as: 'sheetId'
    +          property :match_case, as: 'matchCase'
    +          property :all_sheets, as: 'allSheets'
    +          property :include_formulas, as: 'includeFormulas'
    +          property :match_entire_cell, as: 'matchEntireCell'
    +          property :search_by_regex, as: 'searchByRegex'
    +          property :find, as: 'find'
    +        end
           end
           
           class AddSheetRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class UpdateCellsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :start, as: 'start', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +          property :fields, as: 'fields'
    +          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
    +      
    +        end
    +      end
    +      
    +      class RandomizeRangeRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +        end
           end
           
           class DeleteConditionalFormatRuleResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class DeleteRangeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :shift_dimension, as: 'shiftDimension'
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class GridCoordinate
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :column_index, as: 'columnIndex'
    +          property :row_index, as: 'rowIndex'
    +          property :sheet_id, as: 'sheetId'
    +        end
           end
           
           class UpdateSheetPropertiesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UnmergeCellsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class GridProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :row_count, as: 'rowCount'
    +          property :hide_gridlines, as: 'hideGridlines'
    +          property :frozen_row_count, as: 'frozenRowCount'
    +          property :frozen_column_count, as: 'frozenColumnCount'
    +          property :column_count, as: 'columnCount'
    +        end
           end
           
    -      class Sheet
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      class UnmergeCellsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class SortSpec
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :dimension_index, as: 'dimensionIndex'
    +          property :sort_order, as: 'sortOrder'
    +        end
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +      class Sheet
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :filter_views, as: 'filterViews', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
    +      
    +          collection :protected_ranges, as: 'protectedRanges', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation
    +      
    +          collection :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
    +      
    +          property :basic_filter, as: 'basicFilter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation
    +      
    +          collection :merges, as: 'merges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +          collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation
    +      
    +          collection :banded_ranges, as: 'bandedRanges', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    +      
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
    +      
    +          collection :charts, as: 'charts', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
    +      
    +        end
           end
           
           class UpdateEmbeddedObjectPositionResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class BooleanRule
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    +          property :format, as: 'format', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
           
    -      class PivotGroupValueMetadata
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class FilterCriteria
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          collection :hidden_values, as: 'hiddenValues'
    +        end
    +      end
    +      
    +      class PivotGroupValueMetadata
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :value, as: 'value', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
    +      
    +          property :collapsed, as: 'collapsed'
    +        end
           end
           
           class Editors
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :users, as: 'users'
    +          property :domain_users_can_edit, as: 'domainUsersCanEdit'
    +          collection :groups, as: 'groups'
    +        end
           end
           
           class UpdateConditionalFormatRuleRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :new_index, as: 'newIndex'
    +          property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DataValidationRule
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :index, as: 'index'
    +          property :sheet_id, as: 'sheetId'
    +        end
           end
           
           class BasicChartDomain
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :reversed, as: 'reversed'
    +        end
    +      end
    +      
    +      class DataValidationRule
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
    +      
    +          property :show_custom_ui, as: 'showCustomUi'
    +          property :strict, as: 'strict'
    +          property :input_message, as: 'inputMessage'
    +        end
           end
           
           class PasteDataRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :html, as: 'html'
               property :coordinate, as: 'coordinate', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
           
    -          property :data, as: 'data'
               property :delimiter, as: 'delimiter'
    +          property :data, as: 'data'
    +          property :type, as: 'type'
    +          property :html, as: 'html'
             end
           end
           
    @@ -906,10 +1586,10 @@ module Google
           class UpdateEmbeddedObjectPositionRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
               property :new_position, as: 'newPosition', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
           
               property :fields, as: 'fields'
    +          property :object_id_prop, as: 'objectId'
             end
           end
           
    @@ -924,13 +1604,13 @@ module Google
           class PieChartSpec
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :three_dimensional, as: 'threeDimensional'
               property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
           
    -          property :legend_position, as: 'legendPosition'
               property :pie_hole, as: 'pieHole'
    +          property :legend_position, as: 'legendPosition'
    +          property :three_dimensional, as: 'threeDimensional'
    +          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
             end
           end
           
    @@ -958,9 +1638,9 @@ module Google
           class CopyPasteRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :paste_type, as: 'pasteType'
               property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -          property :paste_type, as: 'pasteType'
               property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
               property :paste_orientation, as: 'pasteOrientation'
    @@ -970,26 +1650,6 @@ module Google
           class Request
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :update_filter_view, as: 'updateFilterView', class: Google::Apis::SheetsV4::UpdateFilterViewRequest, decorator: Google::Apis::SheetsV4::UpdateFilterViewRequest::Representation
    -      
    -          property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingRequest, decorator: Google::Apis::SheetsV4::AddBandingRequest::Representation
    -      
    -          property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation
    -      
    -          property :auto_resize_dimensions, as: 'autoResizeDimensions', class: Google::Apis::SheetsV4::AutoResizeDimensionsRequest, decorator: Google::Apis::SheetsV4::AutoResizeDimensionsRequest::Representation
    -      
    -          property :cut_paste, as: 'cutPaste', class: Google::Apis::SheetsV4::CutPasteRequest, decorator: Google::Apis::SheetsV4::CutPasteRequest::Representation
    -      
    -          property :merge_cells, as: 'mergeCells', class: Google::Apis::SheetsV4::MergeCellsRequest, decorator: Google::Apis::SheetsV4::MergeCellsRequest::Representation
    -      
    -          property :update_named_range, as: 'updateNamedRange', class: Google::Apis::SheetsV4::UpdateNamedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateNamedRangeRequest::Representation
    -      
    -          property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation
    -      
    -          property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation
    -      
    -          property :auto_fill, as: 'autoFill', class: Google::Apis::SheetsV4::AutoFillRequest, decorator: Google::Apis::SheetsV4::AutoFillRequest::Representation
    -      
               property :sort_range, as: 'sortRange', class: Google::Apis::SheetsV4::SortRangeRequest, decorator: Google::Apis::SheetsV4::SortRangeRequest::Representation
           
               property :delete_protected_range, as: 'deleteProtectedRange', class: Google::Apis::SheetsV4::DeleteProtectedRangeRequest, decorator: Google::Apis::SheetsV4::DeleteProtectedRangeRequest::Representation
    @@ -1000,14 +1660,14 @@ module Google
           
               property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceRequest, decorator: Google::Apis::SheetsV4::FindReplaceRequest::Representation
           
    -          property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation
    -      
               property :text_to_columns, as: 'textToColumns', class: Google::Apis::SheetsV4::TextToColumnsRequest, decorator: Google::Apis::SheetsV4::TextToColumnsRequest::Representation
           
    -          property :update_protected_range, as: 'updateProtectedRange', class: Google::Apis::SheetsV4::UpdateProtectedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateProtectedRangeRequest::Representation
    +          property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation
           
               property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetRequest, decorator: Google::Apis::SheetsV4::AddSheetRequest::Representation
           
    +          property :update_protected_range, as: 'updateProtectedRange', class: Google::Apis::SheetsV4::UpdateProtectedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateProtectedRangeRequest::Representation
    +      
               property :delete_filter_view, as: 'deleteFilterView', class: Google::Apis::SheetsV4::DeleteFilterViewRequest, decorator: Google::Apis::SheetsV4::DeleteFilterViewRequest::Representation
           
               property :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::Representation
    @@ -1038,18 +1698,20 @@ module Google
           
               property :move_dimension, as: 'moveDimension', class: Google::Apis::SheetsV4::MoveDimensionRequest, decorator: Google::Apis::SheetsV4::MoveDimensionRequest::Representation
           
    -          property :update_banding, as: 'updateBanding', class: Google::Apis::SheetsV4::UpdateBandingRequest, decorator: Google::Apis::SheetsV4::UpdateBandingRequest::Representation
    +          property :randomize_range, as: 'randomizeRange', class: Google::Apis::SheetsV4::RandomizeRangeRequest, decorator: Google::Apis::SheetsV4::RandomizeRangeRequest::Representation
           
    -          property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeRequest, decorator: Google::Apis::SheetsV4::AddProtectedRangeRequest::Representation
    +          property :update_banding, as: 'updateBanding', class: Google::Apis::SheetsV4::UpdateBandingRequest, decorator: Google::Apis::SheetsV4::UpdateBandingRequest::Representation
           
               property :delete_named_range, as: 'deleteNamedRange', class: Google::Apis::SheetsV4::DeleteNamedRangeRequest, decorator: Google::Apis::SheetsV4::DeleteNamedRangeRequest::Representation
           
    +          property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeRequest, decorator: Google::Apis::SheetsV4::AddProtectedRangeRequest::Representation
    +      
               property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetRequest, decorator: Google::Apis::SheetsV4::DuplicateSheetRequest::Representation
           
    -          property :unmerge_cells, as: 'unmergeCells', class: Google::Apis::SheetsV4::UnmergeCellsRequest, decorator: Google::Apis::SheetsV4::UnmergeCellsRequest::Representation
    -      
               property :delete_sheet, as: 'deleteSheet', class: Google::Apis::SheetsV4::DeleteSheetRequest, decorator: Google::Apis::SheetsV4::DeleteSheetRequest::Representation
           
    +          property :unmerge_cells, as: 'unmergeCells', class: Google::Apis::SheetsV4::UnmergeCellsRequest, decorator: Google::Apis::SheetsV4::UnmergeCellsRequest::Representation
    +      
               property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest::Representation
           
               property :update_dimension_properties, as: 'updateDimensionProperties', class: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest::Representation
    @@ -1068,68 +1730,64 @@ module Google
           
               property :delete_embedded_object, as: 'deleteEmbeddedObject', class: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest, decorator: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest::Representation
           
    +          property :update_filter_view, as: 'updateFilterView', class: Google::Apis::SheetsV4::UpdateFilterViewRequest, decorator: Google::Apis::SheetsV4::UpdateFilterViewRequest::Representation
    +      
    +          property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingRequest, decorator: Google::Apis::SheetsV4::AddBandingRequest::Representation
    +      
    +          property :auto_resize_dimensions, as: 'autoResizeDimensions', class: Google::Apis::SheetsV4::AutoResizeDimensionsRequest, decorator: Google::Apis::SheetsV4::AutoResizeDimensionsRequest::Representation
    +      
    +          property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation
    +      
    +          property :cut_paste, as: 'cutPaste', class: Google::Apis::SheetsV4::CutPasteRequest, decorator: Google::Apis::SheetsV4::CutPasteRequest::Representation
    +      
    +          property :merge_cells, as: 'mergeCells', class: Google::Apis::SheetsV4::MergeCellsRequest, decorator: Google::Apis::SheetsV4::MergeCellsRequest::Representation
    +      
    +          property :update_named_range, as: 'updateNamedRange', class: Google::Apis::SheetsV4::UpdateNamedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateNamedRangeRequest::Representation
    +      
    +          property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation
    +      
    +          property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation
    +      
    +          property :auto_fill, as: 'autoFill', class: Google::Apis::SheetsV4::AutoFillRequest, decorator: Google::Apis::SheetsV4::AutoFillRequest::Representation
    +      
             end
           end
           
           class BooleanCondition
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
               collection :values, as: 'values', class: Google::Apis::SheetsV4::ConditionValue, decorator: Google::Apis::SheetsV4::ConditionValue::Representation
           
    +          property :type, as: 'type'
             end
           end
           
           class GridRange
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :end_row_index, as: 'endRowIndex'
    +          property :sheet_id, as: 'sheetId'
               property :end_column_index, as: 'endColumnIndex'
    +          property :end_row_index, as: 'endRowIndex'
               property :start_row_index, as: 'startRowIndex'
               property :start_column_index, as: 'startColumnIndex'
    -          property :sheet_id, as: 'sheetId'
             end
           end
           
           class BasicChartSpec
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation
    -      
               property :line_smoothing, as: 'lineSmoothing'
               property :header_count, as: 'headerCount'
               property :stacked_type, as: 'stackedType'
    -          property :three_dimensional, as: 'threeDimensional'
               collection :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation
           
    +          property :three_dimensional, as: 'threeDimensional'
               property :interpolate_nulls, as: 'interpolateNulls'
               property :chart_type, as: 'chartType'
               collection :series, as: 'series', class: Google::Apis::SheetsV4::BasicChartSeries, decorator: Google::Apis::SheetsV4::BasicChartSeries::Representation
           
               property :legend_position, as: 'legendPosition'
    -        end
    -      end
    -      
    -      class BubbleChartSpec
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :group_ids, as: 'groupIds', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :bubble_labels, as: 'bubbleLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :bubble_min_radius_size, as: 'bubbleMinRadiusSize'
    -          property :bubble_max_radius_size, as: 'bubbleMaxRadiusSize'
    -          property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :legend_position, as: 'legendPosition'
    -          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :bubble_opacity, as: 'bubbleOpacity'
    -          property :bubble_sizes, as: 'bubbleSizes', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :bubble_border_color, as: 'bubbleBorderColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -          property :bubble_text_style, as: 'bubbleTextStyle', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    +          collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation
           
             end
           end
    @@ -1137,10 +1795,34 @@ module Google
           class SetDataValidationRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :rule, as: 'rule', class: Google::Apis::SheetsV4::DataValidationRule, decorator: Google::Apis::SheetsV4::DataValidationRule::Representation
    -      
               property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    +          property :rule, as: 'rule', class: Google::Apis::SheetsV4::DataValidationRule, decorator: Google::Apis::SheetsV4::DataValidationRule::Representation
    +      
    +        end
    +      end
    +      
    +      class BubbleChartSpec
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :bubble_max_radius_size, as: 'bubbleMaxRadiusSize'
    +          property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :legend_position, as: 'legendPosition'
    +          property :bubble_sizes, as: 'bubbleSizes', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :bubble_opacity, as: 'bubbleOpacity'
    +          property :bubble_text_style, as: 'bubbleTextStyle', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    +      
    +          property :bubble_border_color, as: 'bubbleBorderColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    +      
    +          property :group_ids, as: 'groupIds', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :bubble_labels, as: 'bubbleLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :bubble_min_radius_size, as: 'bubbleMinRadiusSize'
             end
           end
           
    @@ -1151,13 +1833,13 @@ module Google
           
               property :user_entered_format, as: 'userEnteredFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
           
    +          property :note, as: 'note'
               property :effective_format, as: 'effectiveFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
           
    -          property :note, as: 'note'
    -          property :user_entered_value, as: 'userEnteredValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
    -      
               property :data_validation, as: 'dataValidation', class: Google::Apis::SheetsV4::DataValidationRule, decorator: Google::Apis::SheetsV4::DataValidationRule::Representation
           
    +          property :user_entered_value, as: 'userEnteredValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
    +      
               property :effective_value, as: 'effectiveValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
           
               collection :text_format_runs, as: 'textFormatRuns', class: Google::Apis::SheetsV4::TextFormatRun, decorator: Google::Apis::SheetsV4::TextFormatRun::Representation
    @@ -1170,11 +1852,11 @@ module Google
           class BatchUpdateSpreadsheetRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :response_include_grid_data, as: 'responseIncludeGridData'
    +          collection :response_ranges, as: 'responseRanges'
    +          property :include_spreadsheet_in_response, as: 'includeSpreadsheetInResponse'
               collection :requests, as: 'requests', class: Google::Apis::SheetsV4::Request, decorator: Google::Apis::SheetsV4::Request::Representation
           
    -          property :include_spreadsheet_in_response, as: 'includeSpreadsheetInResponse'
    -          collection :response_ranges, as: 'responseRanges'
    -          property :response_include_grid_data, as: 'responseIncludeGridData'
             end
           end
           
    @@ -1191,10 +1873,10 @@ module Google
           class BasicChartAxis
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :position, as: 'position'
    -          property :title, as: 'title'
               property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
           
    +          property :title, as: 'title'
    +          property :position, as: 'position'
             end
           end
           
    @@ -1209,9 +1891,9 @@ module Google
           class UpdateChartSpecRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart_id, as: 'chartId'
               property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::Representation
           
    +          property :chart_id, as: 'chartId'
             end
           end
           
    @@ -1225,13 +1907,13 @@ module Google
           class BatchUpdateValuesResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :total_updated_sheets, as: 'totalUpdatedSheets'
    -          property :total_updated_cells, as: 'totalUpdatedCells'
    -          property :total_updated_columns, as: 'totalUpdatedColumns'
               property :spreadsheet_id, as: 'spreadsheetId'
               property :total_updated_rows, as: 'totalUpdatedRows'
               collection :responses, as: 'responses', class: Google::Apis::SheetsV4::UpdateValuesResponse, decorator: Google::Apis::SheetsV4::UpdateValuesResponse::Representation
           
    +          property :total_updated_sheets, as: 'totalUpdatedSheets'
    +          property :total_updated_cells, as: 'totalUpdatedCells'
    +          property :total_updated_columns, as: 'totalUpdatedColumns'
             end
           end
           
    @@ -1289,9 +1971,9 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :delimiter, as: 'delimiter'
    +          property :delimiter_type, as: 'delimiterType'
               property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
    -          property :delimiter_type, as: 'delimiterType'
             end
           end
           
    @@ -1305,10 +1987,10 @@ module Google
           class BatchUpdateSpreadsheetResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation
    -      
               property :updated_spreadsheet, as: 'updatedSpreadsheet', class: Google::Apis::SheetsV4::Spreadsheet, decorator: Google::Apis::SheetsV4::Spreadsheet::Representation
           
    +          collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation
    +      
               property :spreadsheet_id, as: 'spreadsheetId'
             end
           end
    @@ -1330,10 +2012,11 @@ module Google
             end
           end
           
    -      class AddFilterViewRequest
    +      class MoveDimensionRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
    +          property :destination_index, as: 'destinationIndex'
    +          property :source, as: 'source', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
           
             end
           end
    @@ -1345,11 +2028,10 @@ module Google
             end
           end
           
    -      class MoveDimensionRequest
    +      class AddFilterViewRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :destination_index, as: 'destinationIndex'
    -          property :source, as: 'source', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
    +          property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
           
             end
           end
    @@ -1366,10 +2048,6 @@ module Google
           class ChartSpec
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation
    -      
    -          property :title_text_format, as: 'titleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    -      
               property :title, as: 'title'
               property :histogram_chart, as: 'histogramChart', class: Google::Apis::SheetsV4::HistogramChartSpec, decorator: Google::Apis::SheetsV4::HistogramChartSpec::Representation
           
    @@ -1386,20 +2064,25 @@ module Google
           
               property :org_chart, as: 'orgChart', class: Google::Apis::SheetsV4::OrgChartSpec, decorator: Google::Apis::SheetsV4::OrgChartSpec::Representation
           
    +          property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation
    +      
    +          property :title_text_format, as: 'titleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    +      
             end
           end
           
           class NumberFormat
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
               property :pattern, as: 'pattern'
    +          property :type, as: 'type'
             end
           end
           
           class CandlestickDomain
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :reversed, as: 'reversed'
               property :data, as: 'data', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
           
             end
    @@ -1408,7 +2091,6 @@ module Google
           class SheetProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :title, as: 'title'
               property :tab_color, as: 'tabColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
               property :index, as: 'index'
    @@ -1418,27 +2100,45 @@ module Google
               property :sheet_type, as: 'sheetType'
               property :grid_properties, as: 'gridProperties', class: Google::Apis::SheetsV4::GridProperties, decorator: Google::Apis::SheetsV4::GridProperties::Representation
           
    +          property :title, as: 'title'
             end
           end
           
           class UpdateDimensionPropertiesRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    +      
               property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
           
               property :fields, as: 'fields'
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    -      
             end
           end
           
           class SourceAndDestination
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fill_length, as: 'fillLength'
               property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
               property :dimension, as: 'dimension'
    -          property :fill_length, as: 'fillLength'
    +        end
    +      end
    +      
    +      class OrgChartSpec
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :node_color, as: 'nodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    +      
    +          property :tooltips, as: 'tooltips', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :selected_node_color, as: 'selectedNodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    +      
    +          property :parent_labels, as: 'parentLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :labels, as: 'labels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    +      
    +          property :node_size, as: 'nodeSize'
             end
           end
           
    @@ -1447,64 +2147,27 @@ module Google
             class Representation < Google::Apis::Core::JsonRepresentation
               property :named_range_id, as: 'namedRangeId'
               property :filter_view_id, as: 'filterViewId'
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
               hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation
           
               property :title, as: 'title'
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
               collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation
           
             end
           end
           
    -      class OrgChartSpec
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :tooltips, as: 'tooltips', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :selected_node_color, as: 'selectedNodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -          property :parent_labels, as: 'parentLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :node_size, as: 'nodeSize'
    -          property :labels, as: 'labels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :node_color, as: 'nodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -        end
    -      end
    -      
           class BandingProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :second_band_color, as: 'secondBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    +      
               property :footer_color, as: 'footerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
               property :header_color, as: 'headerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
               property :first_band_color, as: 'firstBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
    -          property :second_band_color, as: 'secondBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -        end
    -      end
    -      
    -      class AddProtectedRangeResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation
    -      
    -        end
    -      end
    -      
    -      class BasicFilter
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation
    -      
    -          collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation
    -      
             end
           end
           
    @@ -1516,24 +2179,44 @@ module Google
             end
           end
           
    +      class BasicFilter
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation
    +      
    +          hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation
    +      
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
    +        end
    +      end
    +      
    +      class AddProtectedRangeResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation
    +      
    +        end
    +      end
    +      
           class HistogramChartSpec
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :bucket_size, as: 'bucketSize'
               property :outlier_percentile, as: 'outlierPercentile'
               property :show_item_dividers, as: 'showItemDividers'
               collection :series, as: 'series', class: Google::Apis::SheetsV4::HistogramSeries, decorator: Google::Apis::SheetsV4::HistogramSeries::Representation
           
               property :legend_position, as: 'legendPosition'
    +          property :bucket_size, as: 'bucketSize'
             end
           end
           
           class UpdateValuesResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :updated_rows, as: 'updatedRows'
               property :updated_data, as: 'updatedData', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
           
    +          property :updated_rows, as: 'updatedRows'
               property :updated_columns, as: 'updatedColumns'
               property :spreadsheet_id, as: 'spreadsheetId'
               property :updated_range, as: 'updatedRange'
    @@ -1544,18 +2227,18 @@ module Google
           class ErrorValue
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
               property :message, as: 'message'
    +          property :type, as: 'type'
             end
           end
           
           class PivotValue
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :formula, as: 'formula'
               property :summarize_function, as: 'summarizeFunction'
               property :source_column_offset, as: 'sourceColumnOffset'
               property :name, as: 'name'
    -          property :formula, as: 'formula'
             end
           end
           
    @@ -1569,33 +2252,33 @@ module Google
           class PivotGroupSortValueBucket
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :values_index, as: 'valuesIndex'
               collection :buckets, as: 'buckets', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
           
    +          property :values_index, as: 'valuesIndex'
             end
           end
           
           class CandlestickChartSpec
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :domain, as: 'domain', class: Google::Apis::SheetsV4::CandlestickDomain, decorator: Google::Apis::SheetsV4::CandlestickDomain::Representation
    -      
               collection :data, as: 'data', class: Google::Apis::SheetsV4::CandlestickData, decorator: Google::Apis::SheetsV4::CandlestickData::Representation
           
    +          property :domain, as: 'domain', class: Google::Apis::SheetsV4::CandlestickDomain, decorator: Google::Apis::SheetsV4::CandlestickDomain::Representation
    +      
             end
           end
           
           class CandlestickData
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :high_series, as: 'highSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
    +          property :close_series, as: 'closeSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
           
               property :low_series, as: 'lowSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
           
    -          property :close_series, as: 'closeSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
    -      
               property :open_series, as: 'openSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
           
    +          property :high_series, as: 'highSeries', class: Google::Apis::SheetsV4::CandlestickSeries, decorator: Google::Apis::SheetsV4::CandlestickSeries::Representation
    +      
             end
           end
           
    @@ -1603,9 +2286,9 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :new_sheet, as: 'newSheet'
    -          property :sheet_id, as: 'sheetId'
               property :overlay_position, as: 'overlayPosition', class: Google::Apis::SheetsV4::OverlayPosition, decorator: Google::Apis::SheetsV4::OverlayPosition::Representation
           
    +          property :sheet_id, as: 'sheetId'
             end
           end
           
    @@ -1619,11 +2302,11 @@ module Google
           class AutoFillRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
               property :use_alternate_series, as: 'useAlternateSeries'
               property :source_and_destination, as: 'sourceAndDestination', class: Google::Apis::SheetsV4::SourceAndDestination, decorator: Google::Apis::SheetsV4::SourceAndDestination::Representation
           
    +          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    +      
             end
           end
           
    @@ -1632,16 +2315,10 @@ module Google
             class Representation < Google::Apis::Core::JsonRepresentation
               property :midpoint, as: 'midpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation
           
    -          property :minpoint, as: 'minpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation
    -      
               property :maxpoint, as: 'maxpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation
           
    -        end
    -      end
    +          property :minpoint, as: 'minpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation
           
    -      class ClearValuesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
             end
           end
           
    @@ -1653,24 +2330,30 @@ module Google
             end
           end
           
    +      class ClearValuesRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
    +      
           class InterpolationPoint
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :value, as: 'value'
               property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
    +          property :type, as: 'type'
    +          property :value, as: 'value'
             end
           end
           
           class FindReplaceResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :sheets_changed, as: 'sheetsChanged'
               property :formulas_changed, as: 'formulasChanged'
               property :values_changed, as: 'valuesChanged'
               property :occurrences_changed, as: 'occurrencesChanged'
               property :rows_changed, as: 'rowsChanged'
    -          property :sheets_changed, as: 'sheetsChanged'
             end
           end
           
    @@ -1701,39 +2384,61 @@ module Google
               property :old_rule, as: 'oldRule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
           
               property :new_index, as: 'newIndex'
    -          property :old_index, as: 'oldIndex'
               property :new_rule, as: 'newRule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
           
    +          property :old_index, as: 'oldIndex'
             end
           end
           
           class DuplicateSheetRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :insert_sheet_index, as: 'insertSheetIndex'
    -          property :new_sheet_name, as: 'newSheetName'
               property :source_sheet_id, as: 'sourceSheetId'
               property :new_sheet_id, as: 'newSheetId'
    +          property :insert_sheet_index, as: 'insertSheetIndex'
    +          property :new_sheet_name, as: 'newSheetName'
             end
           end
           
           class ConditionValue
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :relative_date, as: 'relativeDate'
               property :user_entered_value, as: 'userEnteredValue'
    +          property :relative_date, as: 'relativeDate'
             end
           end
           
           class ExtendedValue
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :string_value, as: 'stringValue'
    -          property :bool_value, as: 'boolValue'
    -          property :formula_value, as: 'formulaValue'
    -          property :number_value, as: 'numberValue'
               property :error_value, as: 'errorValue', class: Google::Apis::SheetsV4::ErrorValue, decorator: Google::Apis::SheetsV4::ErrorValue::Representation
           
    +          property :formula_value, as: 'formulaValue'
    +          property :bool_value, as: 'boolValue'
    +          property :string_value, as: 'stringValue'
    +          property :number_value, as: 'numberValue'
    +        end
    +      end
    +      
    +      class AddChartRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
    +      
    +        end
    +      end
    +      
    +      class Spreadsheet
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :named_ranges, as: 'namedRanges', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
    +      
    +          collection :sheets, as: 'sheets', class: Google::Apis::SheetsV4::Sheet, decorator: Google::Apis::SheetsV4::Sheet::Representation
    +      
    +          property :spreadsheet_id, as: 'spreadsheetId'
    +          property :spreadsheet_url, as: 'spreadsheetUrl'
    +          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation
    +      
             end
           end
           
    @@ -1745,28 +2450,6 @@ module Google
             end
           end
           
    -      class Spreadsheet
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation
    -      
    -          property :spreadsheet_id, as: 'spreadsheetId'
    -          collection :sheets, as: 'sheets', class: Google::Apis::SheetsV4::Sheet, decorator: Google::Apis::SheetsV4::Sheet::Representation
    -      
    -          collection :named_ranges, as: 'namedRanges', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
    -      
    -          property :spreadsheet_url, as: 'spreadsheetUrl'
    -        end
    -      end
    -      
    -      class AddChartRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
    -      
    -        end
    -      end
    -      
           class HistogramSeries
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -1780,36 +2463,36 @@ module Google
           class BandedRange
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
    +      
    +          property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
    +      
               property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
           
               property :banded_range_id, as: 'bandedRangeId'
    -          property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
    -      
    -          property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
    -      
             end
           end
           
           class UpdateProtectedRangeRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
               property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation
           
    -          property :fields, as: 'fields'
             end
           end
           
           class TextFormat
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :font_size, as: 'fontSize'
               property :underline, as: 'underline'
               property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
           
               property :bold, as: 'bold'
               property :font_family, as: 'fontFamily'
    -          property :italic, as: 'italic'
               property :strikethrough, as: 'strikethrough'
    -          property :font_size, as: 'fontSize'
    +          property :italic, as: 'italic'
             end
           end
           
    @@ -1820,672 +2503,6 @@ module Google
           
             end
           end
    -      
    -      class AddFilterViewResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
    -      
    -        end
    -      end
    -      
    -      class IterativeCalculationSettings
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :convergence_threshold, as: 'convergenceThreshold'
    -          property :max_iterations, as: 'maxIterations'
    -        end
    -      end
    -      
    -      class SpreadsheetProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :title, as: 'title'
    -          property :time_zone, as: 'timeZone'
    -          property :locale, as: 'locale'
    -          property :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation
    -      
    -          property :auto_recalc, as: 'autoRecalc'
    -          property :default_format, as: 'defaultFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
    -      
    -        end
    -      end
    -      
    -      class OverlayPosition
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :anchor_cell, as: 'anchorCell', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
    -      
    -          property :offset_y_pixels, as: 'offsetYPixels'
    -          property :height_pixels, as: 'heightPixels'
    -          property :width_pixels, as: 'widthPixels'
    -          property :offset_x_pixels, as: 'offsetXPixels'
    -        end
    -      end
    -      
    -      class RepeatCellRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell, as: 'cell', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation
    -      
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :fields, as: 'fields'
    -        end
    -      end
    -      
    -      class AddChartResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
    -      
    -        end
    -      end
    -      
    -      class InsertDimensionRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
    -      
    -          property :inherit_from_before, as: 'inheritFromBefore'
    -        end
    -      end
    -      
    -      class UpdateSpreadsheetPropertiesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation
    -      
    -          property :fields, as: 'fields'
    -        end
    -      end
    -      
    -      class BatchUpdateValuesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :response_value_render_option, as: 'responseValueRenderOption'
    -          property :include_values_in_response, as: 'includeValuesInResponse'
    -          property :value_input_option, as: 'valueInputOption'
    -          collection :data, as: 'data', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
    -      
    -          property :response_date_time_render_option, as: 'responseDateTimeRenderOption'
    -        end
    -      end
    -      
    -      class ProtectedRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :named_range_id, as: 'namedRangeId'
    -          property :protected_range_id, as: 'protectedRangeId'
    -          property :warning_only, as: 'warningOnly'
    -          property :requesting_user_can_edit, as: 'requestingUserCanEdit'
    -          property :editors, as: 'editors', class: Google::Apis::SheetsV4::Editors, decorator: Google::Apis::SheetsV4::Editors::Representation
    -      
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :description, as: 'description'
    -          collection :unprotected_ranges, as: 'unprotectedRanges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -        end
    -      end
    -      
    -      class DimensionProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :pixel_size, as: 'pixelSize'
    -          property :hidden_by_filter, as: 'hiddenByFilter'
    -          property :hidden_by_user, as: 'hiddenByUser'
    -        end
    -      end
    -      
    -      class NamedRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :named_range_id, as: 'namedRangeId'
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :name, as: 'name'
    -        end
    -      end
    -      
    -      class DimensionRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dimension, as: 'dimension'
    -          property :start_index, as: 'startIndex'
    -          property :end_index, as: 'endIndex'
    -          property :sheet_id, as: 'sheetId'
    -        end
    -      end
    -      
    -      class CutPasteRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :paste_type, as: 'pasteType'
    -          property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
    -      
    -        end
    -      end
    -      
    -      class Borders
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -        end
    -      end
    -      
    -      class BasicChartSeries
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :type, as: 'type'
    -          property :target_axis, as: 'targetAxis'
    -        end
    -      end
    -      
    -      class AutoResizeDimensionsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dimensions, as: 'dimensions', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateBordersRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :inner_vertical, as: 'innerVertical', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :inner_horizontal, as: 'innerHorizontal', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -          property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation
    -      
    -        end
    -      end
    -      
    -      class CellFormat
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :number_format, as: 'numberFormat', class: Google::Apis::SheetsV4::NumberFormat, decorator: Google::Apis::SheetsV4::NumberFormat::Representation
    -      
    -          property :hyperlink_display_type, as: 'hyperlinkDisplayType'
    -          property :horizontal_alignment, as: 'horizontalAlignment'
    -          property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    -      
    -          property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -          property :padding, as: 'padding', class: Google::Apis::SheetsV4::Padding, decorator: Google::Apis::SheetsV4::Padding::Representation
    -      
    -          property :vertical_alignment, as: 'verticalAlignment'
    -          property :borders, as: 'borders', class: Google::Apis::SheetsV4::Borders, decorator: Google::Apis::SheetsV4::Borders::Representation
    -      
    -          property :text_direction, as: 'textDirection'
    -          property :text_rotation, as: 'textRotation', class: Google::Apis::SheetsV4::TextRotation, decorator: Google::Apis::SheetsV4::TextRotation::Representation
    -      
    -          property :wrap_strategy, as: 'wrapStrategy'
    -        end
    -      end
    -      
    -      class ClearValuesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cleared_range, as: 'clearedRange'
    -          property :spreadsheet_id, as: 'spreadsheetId'
    -        end
    -      end
    -      
    -      class DeleteConditionalFormatRuleRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :index, as: 'index'
    -          property :sheet_id, as: 'sheetId'
    -        end
    -      end
    -      
    -      class AddBandingResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    -      
    -        end
    -      end
    -      
    -      class DeleteNamedRangeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :named_range_id, as: 'namedRangeId'
    -        end
    -      end
    -      
    -      class ChartData
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :source_range, as: 'sourceRange', class: Google::Apis::SheetsV4::ChartSourceRange, decorator: Google::Apis::SheetsV4::ChartSourceRange::Representation
    -      
    -        end
    -      end
    -      
    -      class BatchGetValuesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :value_ranges, as: 'valueRanges', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
    -      
    -          property :spreadsheet_id, as: 'spreadsheetId'
    -        end
    -      end
    -      
    -      class UpdateBandingRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :fields, as: 'fields'
    -          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    -      
    -        end
    -      end
    -      
    -      class Color
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :red, as: 'red'
    -          property :green, as: 'green'
    -          property :blue, as: 'blue'
    -          property :alpha, as: 'alpha'
    -        end
    -      end
    -      
    -      class PivotGroup
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :sort_order, as: 'sortOrder'
    -          property :value_bucket, as: 'valueBucket', class: Google::Apis::SheetsV4::PivotGroupSortValueBucket, decorator: Google::Apis::SheetsV4::PivotGroupSortValueBucket::Representation
    -      
    -          property :source_column_offset, as: 'sourceColumnOffset'
    -          property :show_totals, as: 'showTotals'
    -          collection :value_metadata, as: 'valueMetadata', class: Google::Apis::SheetsV4::PivotGroupValueMetadata, decorator: Google::Apis::SheetsV4::PivotGroupValueMetadata::Representation
    -      
    -        end
    -      end
    -      
    -      class PivotTable
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :value_layout, as: 'valueLayout'
    -          collection :columns, as: 'columns', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation
    -      
    -          collection :values, as: 'values', class: Google::Apis::SheetsV4::PivotValue, decorator: Google::Apis::SheetsV4::PivotValue::Representation
    -      
    -          property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::PivotFilterCriteria, decorator: Google::Apis::SheetsV4::PivotFilterCriteria::Representation
    -      
    -          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation
    -      
    -        end
    -      end
    -      
    -      class ChartSourceRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :sources, as: 'sources', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -        end
    -      end
    -      
    -      class AppendCellsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
    -      
    -          property :fields, as: 'fields'
    -          property :sheet_id, as: 'sheetId'
    -        end
    -      end
    -      
    -      class ValueRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :major_dimension, as: 'majorDimension'
    -          collection :values, as: 'values', :class => Array do
    -        include Representable::JSON::Collection
    -        items
    -      end
    -      
    -          property :range, as: 'range'
    -        end
    -      end
    -      
    -      class AddBandingRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    -      
    -        end
    -      end
    -      
    -      class Response
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse::Representation
    -      
    -          property :add_named_range, as: 'addNamedRange', class: Google::Apis::SheetsV4::AddNamedRangeResponse, decorator: Google::Apis::SheetsV4::AddNamedRangeResponse::Representation
    -      
    -          property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewResponse, decorator: Google::Apis::SheetsV4::AddFilterViewResponse::Representation
    -      
    -          property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingResponse, decorator: Google::Apis::SheetsV4::AddBandingResponse::Representation
    -      
    -          property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeResponse, decorator: Google::Apis::SheetsV4::AddProtectedRangeResponse::Representation
    -      
    -          property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation
    -      
    -          property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse::Representation
    -      
    -          property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
    -      
    -          property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation
    -      
    -          property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartResponse, decorator: Google::Apis::SheetsV4::AddChartResponse::Representation
    -      
    -          property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceResponse, decorator: Google::Apis::SheetsV4::FindReplaceResponse::Representation
    -      
    -          property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation
    -      
    -        end
    -      end
    -      
    -      class EmbeddedChart
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart_id, as: 'chartId'
    -          property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
    -      
    -          property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::Representation
    -      
    -        end
    -      end
    -      
    -      class TextFormatRun
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
    -      
    -          property :start_index, as: 'startIndex'
    -        end
    -      end
    -      
    -      class InsertRangeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :shift_dimension, as: 'shiftDimension'
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -        end
    -      end
    -      
    -      class AddNamedRangeResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
    -      
    -        end
    -      end
    -      
    -      class RowData
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :values, as: 'values', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation
    -      
    -        end
    -      end
    -      
    -      class Border
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :width, as: 'width'
    -          property :style, as: 'style'
    -          property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
    -      
    -        end
    -      end
    -      
    -      class GridData
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :start_row, as: 'startRow'
    -          collection :column_metadata, as: 'columnMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    -      
    -          property :start_column, as: 'startColumn'
    -          collection :row_metadata, as: 'rowMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation
    -      
    -          collection :row_data, as: 'rowData', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateNamedRangeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation
    -      
    -          property :fields, as: 'fields'
    -        end
    -      end
    -      
    -      class FindReplaceRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :include_formulas, as: 'includeFormulas'
    -          property :match_entire_cell, as: 'matchEntireCell'
    -          property :find, as: 'find'
    -          property :search_by_regex, as: 'searchByRegex'
    -          property :replacement, as: 'replacement'
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          property :sheet_id, as: 'sheetId'
    -          property :match_case, as: 'matchCase'
    -          property :all_sheets, as: 'allSheets'
    -        end
    -      end
    -      
    -      class AddSheetRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateCellsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :start, as: 'start', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
    -      
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
    -      
    -          property :fields, as: 'fields'
    -        end
    -      end
    -      
    -      class DeleteConditionalFormatRuleResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
    -      
    -        end
    -      end
    -      
    -      class DeleteRangeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :shift_dimension, as: 'shiftDimension'
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -        end
    -      end
    -      
    -      class GridCoordinate
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :row_index, as: 'rowIndex'
    -          property :column_index, as: 'columnIndex'
    -          property :sheet_id, as: 'sheetId'
    -        end
    -      end
    -      
    -      class UpdateSheetPropertiesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
    -      
    -          property :fields, as: 'fields'
    -        end
    -      end
    -      
    -      class UnmergeCellsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -        end
    -      end
    -      
    -      class GridProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :frozen_row_count, as: 'frozenRowCount'
    -          property :hide_gridlines, as: 'hideGridlines'
    -          property :column_count, as: 'columnCount'
    -          property :frozen_column_count, as: 'frozenColumnCount'
    -          property :row_count, as: 'rowCount'
    -        end
    -      end
    -      
    -      class Sheet
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :basic_filter, as: 'basicFilter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation
    -      
    -          collection :merges, as: 'merges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
    -      
    -          collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation
    -      
    -          collection :banded_ranges, as: 'bandedRanges', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
    -      
    -          collection :charts, as: 'charts', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation
    -      
    -          property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation
    -      
    -          collection :filter_views, as: 'filterViews', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation
    -      
    -          collection :protected_ranges, as: 'protectedRanges', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation
    -      
    -          collection :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
    -      
    -        end
    -      end
    -      
    -      class SortSpec
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dimension_index, as: 'dimensionIndex'
    -          property :sort_order, as: 'sortOrder'
    -        end
    -      end
    -      
    -      class UpdateEmbeddedObjectPositionResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
    -      
    -        end
    -      end
    -      
    -      class BooleanRule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :format, as: 'format', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
    -      
    -          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
    -      
    -        end
    -      end
    -      
    -      class PivotGroupValueMetadata
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :collapsed, as: 'collapsed'
    -          property :value, as: 'value', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
    -      
    -        end
    -      end
    -      
    -      class FilterCriteria
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :hidden_values, as: 'hiddenValues'
    -          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
    -      
    -        end
    -      end
    -      
    -      class Editors
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :users, as: 'users'
    -          collection :groups, as: 'groups'
    -          property :domain_users_can_edit, as: 'domainUsersCanEdit'
    -        end
    -      end
    -      
    -      class UpdateConditionalFormatRuleRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
    -      
    -          property :index, as: 'index'
    -          property :sheet_id, as: 'sheetId'
    -          property :new_index, as: 'newIndex'
    -        end
    -      end
    -      
    -      class DataValidationRule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
    -      
    -          property :show_custom_ui, as: 'showCustomUi'
    -          property :strict, as: 'strict'
    -          property :input_message, as: 'inputMessage'
    -        end
    -      end
    -      
    -      class BasicChartDomain
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
    -      
    -          property :reversed, as: 'reversed'
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb
    index 9bad252eb..5ef99439e 100644
    --- a/generated/google/apis/sheets_v4/service.rb
    +++ b/generated/google/apis/sheets_v4/service.rb
    @@ -65,16 +65,16 @@ module Google
             # ranges. Ranges are specified using A1 notation.
             # @param [String] spreadsheet_id
             #   The spreadsheet to request.
    -        # @param [Array, String] ranges
    -        #   The ranges to retrieve from the spreadsheet.
             # @param [Boolean] include_grid_data
             #   True if grid data should be returned.
             #   This parameter is ignored if a field mask was set in the request.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    +        # @param [Array, String] ranges
    +        #   The ranges to retrieve from the spreadsheet.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -87,45 +87,15 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def get_spreadsheet(spreadsheet_id, include_grid_data: nil, ranges: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
               command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
               command.response_class = Google::Apis::SheetsV4::Spreadsheet
               command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.query['ranges'] = ranges unless ranges.nil?
               command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
    -          command.query['fields'] = fields unless fields.nil?
    +          command.query['ranges'] = ranges unless ranges.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Creates a spreadsheet, returning the newly created spreadsheet.
    -        # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_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::SheetsV4::Spreadsheet] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SheetsV4::Spreadsheet]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v4/spreadsheets', options)
    -          command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
    -          command.request_object = spreadsheet_object
    -          command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
    -          command.response_class = Google::Apis::SheetsV4::Spreadsheet
               command.query['fields'] = fields unless fields.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -148,11 +118,11 @@ module Google
             # @param [String] spreadsheet_id
             #   The spreadsheet to apply the updates to.
             # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_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 [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -165,62 +135,53 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
               command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
               command.request_object = batch_update_spreadsheet_request_object
               command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
               command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
               command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    -        # Clears values from a spreadsheet.
    -        # The caller must specify the spreadsheet ID and range.
    -        # Only values are cleared -- all other properties of the cell (such as
    -        # formatting, data validation, etc..) are kept.
    -        # @param [String] spreadsheet_id
    -        #   The ID of the spreadsheet to update.
    -        # @param [String] range
    -        #   The A1 notation of the values to clear.
    -        # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    +        # Creates a spreadsheet, returning the newly created spreadsheet.
    +        # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_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::SheetsV4::ClearValuesResponse] parsed result object
    +        # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::SheetsV4::ClearValuesResponse]
    +        # @return [Google::Apis::SheetsV4::Spreadsheet]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
    -          command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
    -          command.request_object = clear_values_request_object
    -          command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
    -          command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
    -          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.params['range'] = range unless range.nil?
    -          command.query['fields'] = fields unless fields.nil?
    +        def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v4/spreadsheets', options)
    +          command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
    +          command.request_object = spreadsheet_object
    +          command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
    +          command.response_class = Google::Apis::SheetsV4::Spreadsheet
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    -        # Returns one or more ranges of values from a spreadsheet.
    -        # The caller must specify the spreadsheet ID and one or more ranges.
    +        # Returns a range of values from a spreadsheet.
    +        # The caller must specify the spreadsheet ID and a range.
             # @param [String] spreadsheet_id
             #   The ID of the spreadsheet to retrieve data from.
    -        # @param [Array, String] ranges
    +        # @param [String] range
             #   The A1 notation of the values to retrieve.
             # @param [String] major_dimension
             #   The major dimension that results should use.
    @@ -229,19 +190,166 @@ module Google
             #   `[[1,2],[3,4]]`,
             #   whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
             #   `[[1,3],[2,4]]`.
    -        # @param [String] value_render_option
    -        #   How values should be represented in the output.
    -        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
             # @param [String] date_time_render_option
             #   How dates, times, and durations should be represented in the output.
             #   This is ignored if value_render_option is
             #   FORMATTED_VALUE.
             #   The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] value_render_option
    +        #   How values should be represented in the output.
    +        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
             # @param [String] quota_user
             #   Available 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::SheetsV4::ValueRange] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SheetsV4::ValueRange]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, date_time_render_option: nil, value_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
    +          command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
    +          command.response_class = Google::Apis::SheetsV4::ValueRange
    +          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    +          command.params['range'] = range unless range.nil?
    +          command.query['majorDimension'] = major_dimension unless major_dimension.nil?
    +          command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
    +          command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Sets values in a range of a spreadsheet.
    +        # The caller must specify the spreadsheet ID, range, and
    +        # a valueInputOption.
    +        # @param [String] spreadsheet_id
    +        #   The ID of the spreadsheet to update.
    +        # @param [String] range
    +        #   The A1 notation of the values to update.
    +        # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
    +        # @param [String] response_value_render_option
    +        #   Determines how values in the response should be rendered.
    +        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
    +        # @param [String] value_input_option
    +        #   How the input data should be interpreted.
    +        # @param [String] response_date_time_render_option
    +        #   Determines how dates, times, and durations in the response should be
    +        #   rendered. This is ignored if response_value_render_option is
    +        #   FORMATTED_VALUE.
    +        #   The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
    +        # @param [Boolean] include_values_in_response
    +        #   Determines if the update response should include the values
    +        #   of the cells that were updated. By default, responses
    +        #   do not include the updated values.
    +        #   If the range to write was larger than than the range actually written,
    +        #   the response will include all values in the requested range (excluding
    +        #   trailing empty rows and columns).
    +        # @param [String] quota_user
    +        #   Available 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::SheetsV4::UpdateValuesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
    +          command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
    +          command.request_object = value_range_object
    +          command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
    +          command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
    +          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    +          command.params['range'] = range unless range.nil?
    +          command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
    +          command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
    +          command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
    +          command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Sets values in one or more ranges of a spreadsheet.
    +        # The caller must specify the spreadsheet ID,
    +        # a valueInputOption, and one or more
    +        # ValueRanges.
    +        # @param [String] spreadsheet_id
    +        #   The ID of the spreadsheet to update.
    +        # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_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::SheetsV4::BatchUpdateValuesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
    +          command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
    +          command.request_object = batch_update_values_request_object
    +          command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
    +          command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
    +          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_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
    +        
    +        # Returns one or more ranges of values from a spreadsheet.
    +        # The caller must specify the spreadsheet ID and one or more ranges.
    +        # @param [String] spreadsheet_id
    +        #   The ID of the spreadsheet to retrieve data from.
    +        # @param [String] major_dimension
    +        #   The major dimension that results should use.
    +        #   For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
    +        #   then requesting `range=A1:B2,majorDimension=ROWS` will return
    +        #   `[[1,2],[3,4]]`,
    +        #   whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
    +        #   `[[1,3],[2,4]]`.
    +        # @param [Array, String] ranges
    +        #   The A1 notation of the values to retrieve.
    +        # @param [String] date_time_render_option
    +        #   How dates, times, and durations should be represented in the output.
    +        #   This is ignored if value_render_option is
    +        #   FORMATTED_VALUE.
    +        #   The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
    +        # @param [String] value_render_option
    +        #   How values should be represented in the output.
    +        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
    +        # @param [String] quota_user
    +        #   Available 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
             #
    @@ -254,17 +362,56 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def batch_get_spreadsheet_values(spreadsheet_id, major_dimension: nil, ranges: nil, date_time_render_option: nil, value_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
               command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
               command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
               command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.query['ranges'] = ranges unless ranges.nil?
               command.query['majorDimension'] = major_dimension unless major_dimension.nil?
    -          command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
    +          command.query['ranges'] = ranges unless ranges.nil?
               command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
    -          command.query['fields'] = fields unless fields.nil?
    +          command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Clears values from a spreadsheet.
    +        # The caller must specify the spreadsheet ID and range.
    +        # Only values are cleared -- all other properties of the cell (such as
    +        # formatting, data validation, etc..) are kept.
    +        # @param [String] spreadsheet_id
    +        #   The ID of the spreadsheet to update.
    +        # @param [String] range
    +        #   The A1 notation of the values to clear.
    +        # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_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::SheetsV4::ClearValuesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SheetsV4::ClearValuesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
    +          command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
    +          command.request_object = clear_values_request_object
    +          command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
    +          command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
    +          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    +          command.params['range'] = range unless range.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -303,11 +450,11 @@ module Google
             #   Determines if the update response should include the values
             #   of the cells that were appended. By default, responses
             #   do not include the updated values.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -320,7 +467,7 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
               command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
               command.request_object = value_range_object
    @@ -333,8 +480,8 @@ module Google
               command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
               command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
               command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -345,11 +492,11 @@ module Google
             # @param [String] spreadsheet_id
             #   The ID of the spreadsheet to update.
             # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_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 [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -362,162 +509,15 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
               command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
               command.request_object = batch_clear_values_request_object
               command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
               command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
               command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Returns a range of values from a spreadsheet.
    -        # The caller must specify the spreadsheet ID and a range.
    -        # @param [String] spreadsheet_id
    -        #   The ID of the spreadsheet to retrieve data from.
    -        # @param [String] range
    -        #   The A1 notation of the values to retrieve.
    -        # @param [String] major_dimension
    -        #   The major dimension that results should use.
    -        #   For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
    -        #   then requesting `range=A1:B2,majorDimension=ROWS` will return
    -        #   `[[1,2],[3,4]]`,
    -        #   whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
    -        #   `[[1,3],[2,4]]`.
    -        # @param [String] value_render_option
    -        #   How values should be represented in the output.
    -        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
    -        # @param [String] date_time_render_option
    -        #   How dates, times, and durations should be represented in the output.
    -        #   This is ignored if value_render_option is
    -        #   FORMATTED_VALUE.
    -        #   The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    -        # @param [String] quota_user
    -        #   Available 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::SheetsV4::ValueRange] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SheetsV4::ValueRange]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
    -          command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
    -          command.response_class = Google::Apis::SheetsV4::ValueRange
    -          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.params['range'] = range unless range.nil?
    -          command.query['majorDimension'] = major_dimension unless major_dimension.nil?
    -          command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
    -          command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
               command.query['fields'] = fields unless fields.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Sets values in a range of a spreadsheet.
    -        # The caller must specify the spreadsheet ID, range, and
    -        # a valueInputOption.
    -        # @param [String] spreadsheet_id
    -        #   The ID of the spreadsheet to update.
    -        # @param [String] range
    -        #   The A1 notation of the values to update.
    -        # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
    -        # @param [String] response_value_render_option
    -        #   Determines how values in the response should be rendered.
    -        #   The default render option is ValueRenderOption.FORMATTED_VALUE.
    -        # @param [String] value_input_option
    -        #   How the input data should be interpreted.
    -        # @param [String] response_date_time_render_option
    -        #   Determines how dates, times, and durations in the response should be
    -        #   rendered. This is ignored if response_value_render_option is
    -        #   FORMATTED_VALUE.
    -        #   The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
    -        # @param [Boolean] include_values_in_response
    -        #   Determines if the update response should include the values
    -        #   of the cells that were updated. By default, responses
    -        #   do not include the updated values.
    -        #   If the range to write was larger than than the range actually written,
    -        #   the response will include all values in the requested range (excluding
    -        #   trailing empty rows and columns).
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    -        # @param [String] quota_user
    -        #   Available 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::SheetsV4::UpdateValuesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
    -          command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
    -          command.request_object = value_range_object
    -          command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
    -          command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
    -          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
    -          command.params['range'] = range unless range.nil?
    -          command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
    -          command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
    -          command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
    -          command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Sets values in one or more ranges of a spreadsheet.
    -        # The caller must specify the spreadsheet ID,
    -        # a valueInputOption, and one or more
    -        # ValueRanges.
    -        # @param [String] spreadsheet_id
    -        #   The ID of the spreadsheet to update.
    -        # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_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::SheetsV4::BatchUpdateValuesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
    -          command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
    -          command.request_object = batch_update_values_request_object
    -          command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
    -          command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
    -          command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_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
             
    @@ -528,11 +528,11 @@ module Google
             # @param [Fixnum] sheet_id
             #   The ID of the sheet to copy.
             # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_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 [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -545,7 +545,7 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
               command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
               command.request_object = copy_sheet_to_another_spreadsheet_request_object
    @@ -553,8 +553,8 @@ module Google
               command.response_class = Google::Apis::SheetsV4::SheetProperties
               command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
               command.params['sheetId'] = sheet_id unless sheet_id.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
     
    diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb
    index 59b59d318..42883aad6 100644
    --- a/generated/google/apis/slides_v1.rb
    +++ b/generated/google/apis/slides_v1.rb
    @@ -25,7 +25,7 @@ module Google
         # @see https://developers.google.com/slides/
         module SlidesV1
           VERSION = 'V1'
    -      REVISION = '20170606'
    +      REVISION = '20170710'
     
           # View and manage your Google Slides presentations
           AUTH_PRESENTATIONS = 'https://www.googleapis.com/auth/presentations'
    diff --git a/generated/google/apis/slides_v1/classes.rb b/generated/google/apis/slides_v1/classes.rb
    index 485a126ed..b650ac20d 100644
    --- a/generated/google/apis/slides_v1/classes.rb
    +++ b/generated/google/apis/slides_v1/classes.rb
    @@ -22,10 +22,2113 @@ module Google
       module Apis
         module SlidesV1
           
    +      # A PageElement kind representing a
    +      # line, curved connector, or bent connector.
    +      class Line
    +        include Google::Apis::Core::Hashable
    +      
    +        # The properties of the Line.
    +        # When unset, these fields default to values that match the appearance of
    +        # new lines created in the Slides editor.
    +        # Corresponds to the JSON property `lineProperties`
    +        # @return [Google::Apis::SlidesV1::LineProperties]
    +        attr_accessor :line_properties
    +      
    +        # The type of the line.
    +        # Corresponds to the JSON property `lineType`
    +        # @return [String]
    +        attr_accessor :line_type
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @line_properties = args[:line_properties] if args.key?(:line_properties)
    +          @line_type = args[:line_type] if args.key?(:line_type)
    +        end
    +      end
    +      
    +      # Response message from a batch update.
    +      class BatchUpdatePresentationResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The reply of the updates.  This maps 1:1 with the updates, although
    +        # replies to some requests may be empty.
    +        # Corresponds to the JSON property `replies`
    +        # @return [Array]
    +        attr_accessor :replies
    +      
    +        # The presentation the updates were applied to.
    +        # Corresponds to the JSON property `presentationId`
    +        # @return [String]
    +        attr_accessor :presentation_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @replies = args[:replies] if args.key?(:replies)
    +          @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
    +        end
    +      end
    +      
    +      # Creates an embedded Google Sheets chart.
    +      # NOTE: Chart creation requires at least one of the spreadsheets.readonly,
    +      # spreadsheets, drive.readonly, or drive OAuth scopes.
    +      class CreateSheetsChartRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A user-supplied object ID.
    +        # If specified, the ID must be unique among all pages and page elements in
    +        # the presentation. The ID should start with a word character [a-zA-Z0-9_]
    +        # and then followed by any number of the following characters [a-zA-Z0-9_-:].
    +        # The length of the ID should not be less than 5 or greater than 50.
    +        # If empty, a unique identifier will be generated.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # Common properties for a page element.
    +        # Note: When you initially create a
    +        # PageElement, the API may modify
    +        # the values of both `size` and `transform`, but the
    +        # visual size will be unchanged.
    +        # Corresponds to the JSON property `elementProperties`
    +        # @return [Google::Apis::SlidesV1::PageElementProperties]
    +        attr_accessor :element_properties
    +      
    +        # The mode with which the chart is linked to the source spreadsheet. When
    +        # not specified, the chart will be an image that is not linked.
    +        # Corresponds to the JSON property `linkingMode`
    +        # @return [String]
    +        attr_accessor :linking_mode
    +      
    +        # The ID of the Google Sheets spreadsheet that contains the chart.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The ID of the specific chart in the Google Sheets spreadsheet.
    +        # Corresponds to the JSON property `chartId`
    +        # @return [Fixnum]
    +        attr_accessor :chart_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @element_properties = args[:element_properties] if args.key?(:element_properties)
    +          @linking_mode = args[:linking_mode] if args.key?(:linking_mode)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    +          @chart_id = args[:chart_id] if args.key?(:chart_id)
    +        end
    +      end
    +      
    +      # The result of creating an image.
    +      class CreateImageResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the created image.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +        end
    +      end
    +      
    +      # The properties of Page that are only
    +      # relevant for pages with page_type SLIDE.
    +      class SlideProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # A page in a presentation.
    +        # Corresponds to the JSON property `notesPage`
    +        # @return [Google::Apis::SlidesV1::Page]
    +        attr_accessor :notes_page
    +      
    +        # The object ID of the master that this slide is based on.
    +        # Corresponds to the JSON property `masterObjectId`
    +        # @return [String]
    +        attr_accessor :master_object_id
    +      
    +        # The object ID of the layout that this slide is based on.
    +        # Corresponds to the JSON property `layoutObjectId`
    +        # @return [String]
    +        attr_accessor :layout_object_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @notes_page = args[:notes_page] if args.key?(:notes_page)
    +          @master_object_id = args[:master_object_id] if args.key?(:master_object_id)
    +          @layout_object_id = args[:layout_object_id] if args.key?(:layout_object_id)
    +        end
    +      end
    +      
    +      # A single response from an update.
    +      class Response
    +        include Google::Apis::Core::Hashable
    +      
    +        # The result of replacing text.
    +        # Corresponds to the JSON property `replaceAllText`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllTextResponse]
    +        attr_accessor :replace_all_text
    +      
    +        # The result of creating a slide.
    +        # Corresponds to the JSON property `createSlide`
    +        # @return [Google::Apis::SlidesV1::CreateSlideResponse]
    +        attr_accessor :create_slide
    +      
    +        # The result of creating a shape.
    +        # Corresponds to the JSON property `createShape`
    +        # @return [Google::Apis::SlidesV1::CreateShapeResponse]
    +        attr_accessor :create_shape
    +      
    +        # The response of duplicating an object.
    +        # Corresponds to the JSON property `duplicateObject`
    +        # @return [Google::Apis::SlidesV1::DuplicateObjectResponse]
    +        attr_accessor :duplicate_object
    +      
    +        # The result of creating a line.
    +        # Corresponds to the JSON property `createLine`
    +        # @return [Google::Apis::SlidesV1::CreateLineResponse]
    +        attr_accessor :create_line
    +      
    +        # The result of creating an image.
    +        # Corresponds to the JSON property `createImage`
    +        # @return [Google::Apis::SlidesV1::CreateImageResponse]
    +        attr_accessor :create_image
    +      
    +        # The result of creating a video.
    +        # Corresponds to the JSON property `createVideo`
    +        # @return [Google::Apis::SlidesV1::CreateVideoResponse]
    +        attr_accessor :create_video
    +      
    +        # The result of creating an embedded Google Sheets chart.
    +        # Corresponds to the JSON property `createSheetsChart`
    +        # @return [Google::Apis::SlidesV1::CreateSheetsChartResponse]
    +        attr_accessor :create_sheets_chart
    +      
    +        # The result of replacing shapes with a Google Sheets chart.
    +        # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse]
    +        attr_accessor :replace_all_shapes_with_sheets_chart
    +      
    +        # The result of replacing shapes with an image.
    +        # Corresponds to the JSON property `replaceAllShapesWithImage`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse]
    +        attr_accessor :replace_all_shapes_with_image
    +      
    +        # The result of creating a table.
    +        # Corresponds to the JSON property `createTable`
    +        # @return [Google::Apis::SlidesV1::CreateTableResponse]
    +        attr_accessor :create_table
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
    +          @create_slide = args[:create_slide] if args.key?(:create_slide)
    +          @create_shape = args[:create_shape] if args.key?(:create_shape)
    +          @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
    +          @create_line = args[:create_line] if args.key?(:create_line)
    +          @create_image = args[:create_image] if args.key?(:create_image)
    +          @create_video = args[:create_video] if args.key?(:create_video)
    +          @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
    +          @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
    +          @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
    +          @create_table = args[:create_table] if args.key?(:create_table)
    +        end
    +      end
    +      
    +      # The properties of Page that are only
    +      # relevant for pages with page_type MASTER.
    +      class MasterProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The human-readable name of the master.
    +        # Corresponds to the JSON property `displayName`
    +        # @return [String]
    +        attr_accessor :display_name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @display_name = args[:display_name] if args.key?(:display_name)
    +        end
    +      end
    +      
    +      # A TextElement kind that represents a run of text that all has the same
    +      # styling.
    +      class TextRun
    +        include Google::Apis::Core::Hashable
    +      
    +        # The text of this run.
    +        # Corresponds to the JSON property `content`
    +        # @return [String]
    +        attr_accessor :content
    +      
    +        # Represents the styling that can be applied to a TextRun.
    +        # If this text is contained in a shape with a parent placeholder, then these
    +        # text styles may be
    +        # inherited from the parent. Which text styles are inherited depend on the
    +        # nesting level of lists:
    +        # * A text run in a paragraph that is not in a list will inherit its text style
    +        # from the the newline character in the paragraph at the 0 nesting level of
    +        # the list inside the parent placeholder.
    +        # * A text run in a paragraph that is in a list will inherit its text style
    +        # from the newline character in the paragraph at its corresponding nesting
    +        # level of the list inside the parent placeholder.
    +        # Inherited text styles are represented as unset fields in this message. If
    +        # text is contained in a shape without a parent placeholder, unsetting these
    +        # fields will revert the style to a value matching the defaults in the Slides
    +        # editor.
    +        # Corresponds to the JSON property `style`
    +        # @return [Google::Apis::SlidesV1::TextStyle]
    +        attr_accessor :style
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @content = args[:content] if args.key?(:content)
    +          @style = args[:style] if args.key?(:style)
    +        end
    +      end
    +      
    +      # Slide layout reference. This may reference either:
    +      # - A predefined layout
    +      # - One of the layouts in the presentation.
    +      class LayoutReference
    +        include Google::Apis::Core::Hashable
    +      
    +        # Predefined layout.
    +        # Corresponds to the JSON property `predefinedLayout`
    +        # @return [String]
    +        attr_accessor :predefined_layout
    +      
    +        # Layout ID: the object ID of one of the layouts in the presentation.
    +        # Corresponds to the JSON property `layoutId`
    +        # @return [String]
    +        attr_accessor :layout_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @predefined_layout = args[:predefined_layout] if args.key?(:predefined_layout)
    +          @layout_id = args[:layout_id] if args.key?(:layout_id)
    +        end
    +      end
    +      
    +      # A criteria that matches a specific string of text in a shape or table.
    +      class SubstringMatchCriteria
    +        include Google::Apis::Core::Hashable
    +      
    +        # The text to search for in the shape or table.
    +        # Corresponds to the JSON property `text`
    +        # @return [String]
    +        attr_accessor :text
    +      
    +        # Indicates whether the search should respect case:
    +        # - `True`: the search is case sensitive.
    +        # - `False`: the search is case insensitive.
    +        # Corresponds to the JSON property `matchCase`
    +        # @return [Boolean]
    +        attr_accessor :match_case
    +        alias_method :match_case?, :match_case
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text = args[:text] if args.key?(:text)
    +          @match_case = args[:match_case] if args.key?(:match_case)
    +        end
    +      end
    +      
    +      # A table range represents a reference to a subset of a table.
    +      # It's important to note that the cells specified by a table range do not
    +      # necessarily form a rectangle. For example, let's say we have a 3 x 3 table
    +      # where all the cells of the last row are merged together. The table looks
    +      # like this:
    +      # 
    +      # [             ]
    +      # A table range with location = (0, 0), row span = 3 and column span = 2
    +      # specifies the following cells:
    +      # x     x
    +      # [      x      ]
    +      class TableRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # The row span of the table range.
    +        # Corresponds to the JSON property `rowSpan`
    +        # @return [Fixnum]
    +        attr_accessor :row_span
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `location`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :location
    +      
    +        # The column span of the table range.
    +        # Corresponds to the JSON property `columnSpan`
    +        # @return [Fixnum]
    +        attr_accessor :column_span
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @row_span = args[:row_span] if args.key?(:row_span)
    +          @location = args[:location] if args.key?(:location)
    +          @column_span = args[:column_span] if args.key?(:column_span)
    +        end
    +      end
    +      
    +      # The result of creating a table.
    +      class CreateTableResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the created table.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +        end
    +      end
    +      
    +      # Creates a new table.
    +      class CreateTableRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Number of columns in the table.
    +        # Corresponds to the JSON property `columns`
    +        # @return [Fixnum]
    +        attr_accessor :columns
    +      
    +        # A user-supplied object ID.
    +        # If you specify an ID, it must be unique among all pages and page elements
    +        # in the presentation. The ID must start with an alphanumeric character or an
    +        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    +        # may include those as well as a hyphen or colon (matches regex
    +        # `[a-zA-Z0-9_-:]`).
    +        # The length of the ID must not be less than 5 or greater than 50.
    +        # If you don't specify an ID, a unique one is generated.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # Common properties for a page element.
    +        # Note: When you initially create a
    +        # PageElement, the API may modify
    +        # the values of both `size` and `transform`, but the
    +        # visual size will be unchanged.
    +        # Corresponds to the JSON property `elementProperties`
    +        # @return [Google::Apis::SlidesV1::PageElementProperties]
    +        attr_accessor :element_properties
    +      
    +        # Number of rows in the table.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Fixnum]
    +        attr_accessor :rows
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @columns = args[:columns] if args.key?(:columns)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @element_properties = args[:element_properties] if args.key?(:element_properties)
    +          @rows = args[:rows] if args.key?(:rows)
    +        end
    +      end
    +      
    +      # A PageElement kind representing a
    +      # table.
    +      class Table
    +        include Google::Apis::Core::Hashable
    +      
    +        # Number of rows in the table.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Fixnum]
    +        attr_accessor :rows
    +      
    +        # Properties of each column.
    +        # Corresponds to the JSON property `tableColumns`
    +        # @return [Array]
    +        attr_accessor :table_columns
    +      
    +        # Number of columns in the table.
    +        # Corresponds to the JSON property `columns`
    +        # @return [Fixnum]
    +        attr_accessor :columns
    +      
    +        # Properties and contents of each row.
    +        # Cells that span multiple rows are contained in only one of these rows and
    +        # have a row_span greater
    +        # than 1.
    +        # Corresponds to the JSON property `tableRows`
    +        # @return [Array]
    +        attr_accessor :table_rows
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @rows = args[:rows] if args.key?(:rows)
    +          @table_columns = args[:table_columns] if args.key?(:table_columns)
    +          @columns = args[:columns] if args.key?(:columns)
    +          @table_rows = args[:table_rows] if args.key?(:table_rows)
    +        end
    +      end
    +      
    +      # The page background fill.
    +      class PageBackgroundFill
    +        include Google::Apis::Core::Hashable
    +      
    +        # The stretched picture fill. The page or page element is filled entirely with
    +        # the specified picture. The picture is stretched to fit its container.
    +        # Corresponds to the JSON property `stretchedPictureFill`
    +        # @return [Google::Apis::SlidesV1::StretchedPictureFill]
    +        attr_accessor :stretched_picture_fill
    +      
    +        # A solid color fill. The page or page element is filled entirely with the
    +        # specified color value.
    +        # If any field is unset, its value may be inherited from a parent placeholder
    +        # if it exists.
    +        # Corresponds to the JSON property `solidFill`
    +        # @return [Google::Apis::SlidesV1::SolidFill]
    +        attr_accessor :solid_fill
    +      
    +        # The background fill property state.
    +        # Updating the the fill on a page will implicitly update this field to
    +        # `RENDERED`, unless another value is specified in the same request. To
    +        # have no fill on a page, set this field to `NOT_RENDERED`. In this case,
    +        # any other fill fields set in the same request will be ignored.
    +        # Corresponds to the JSON property `propertyState`
    +        # @return [String]
    +        attr_accessor :property_state
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @stretched_picture_fill = args[:stretched_picture_fill] if args.key?(:stretched_picture_fill)
    +          @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
    +          @property_state = args[:property_state] if args.key?(:property_state)
    +        end
    +      end
    +      
    +      # A PageElement kind representing
    +      # a linked chart embedded from Google Sheets.
    +      class SheetsChart
    +        include Google::Apis::Core::Hashable
    +      
    +        # The properties of the SheetsChart.
    +        # Corresponds to the JSON property `sheetsChartProperties`
    +        # @return [Google::Apis::SlidesV1::SheetsChartProperties]
    +        attr_accessor :sheets_chart_properties
    +      
    +        # The URL of an image of the embedded chart, with a default lifetime of 30
    +        # minutes. This URL is tagged with the account of the requester. Anyone with
    +        # the URL effectively accesses the image as the original requester. Access to
    +        # the image may be lost if the presentation's sharing settings change.
    +        # Corresponds to the JSON property `contentUrl`
    +        # @return [String]
    +        attr_accessor :content_url
    +      
    +        # The ID of the Google Sheets spreadsheet that contains the source chart.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
    +      
    +        # The ID of the specific chart in the Google Sheets spreadsheet that is
    +        # embedded.
    +        # Corresponds to the JSON property `chartId`
    +        # @return [Fixnum]
    +        attr_accessor :chart_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @sheets_chart_properties = args[:sheets_chart_properties] if args.key?(:sheets_chart_properties)
    +          @content_url = args[:content_url] if args.key?(:content_url)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    +          @chart_id = args[:chart_id] if args.key?(:chart_id)
    +        end
    +      end
    +      
    +      # A solid color fill. The page or page element is filled entirely with the
    +      # specified color value.
    +      # If any field is unset, its value may be inherited from a parent placeholder
    +      # if it exists.
    +      class SolidFill
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fraction of this `color` that should be applied to the pixel.
    +        # That is, the final pixel color is defined by the equation:
    +        # pixel color = alpha * (color) + (1.0 - alpha) * (background color)
    +        # This means that a value of 1.0 corresponds to a solid color, whereas
    +        # a value of 0.0 corresponds to a completely transparent color.
    +        # Corresponds to the JSON property `alpha`
    +        # @return [Float]
    +        attr_accessor :alpha
    +      
    +        # A themeable solid color value.
    +        # Corresponds to the JSON property `color`
    +        # @return [Google::Apis::SlidesV1::OpaqueColor]
    +        attr_accessor :color
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @alpha = args[:alpha] if args.key?(:alpha)
    +          @color = args[:color] if args.key?(:color)
    +        end
    +      end
    +      
    +      # A pair mapping a theme color type to the concrete color it represents.
    +      class ThemeColorPair
    +        include Google::Apis::Core::Hashable
    +      
    +        # An RGB color.
    +        # Corresponds to the JSON property `color`
    +        # @return [Google::Apis::SlidesV1::RgbColor]
    +        attr_accessor :color
    +      
    +        # The type of the theme color.
    +        # 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)
    +          @color = args[:color] if args.key?(:color)
    +          @type = args[:type] if args.key?(:type)
    +        end
    +      end
    +      
    +      # A color that can either be fully opaque or fully transparent.
    +      class OptionalColor
    +        include Google::Apis::Core::Hashable
    +      
    +        # A themeable solid color value.
    +        # Corresponds to the JSON property `opaqueColor`
    +        # @return [Google::Apis::SlidesV1::OpaqueColor]
    +        attr_accessor :opaque_color
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @opaque_color = args[:opaque_color] if args.key?(:opaque_color)
    +        end
    +      end
    +      
    +      # Common properties for a page element.
    +      # Note: When you initially create a
    +      # PageElement, the API may modify
    +      # the values of both `size` and `transform`, but the
    +      # visual size will be unchanged.
    +      class PageElementProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
    +        # to transform source coordinates (x,y) into destination coordinates (x', y')
    +        # according to:
    +        # x'  x  =   shear_y  scale_y  translate_y
    +        # 1  [ 1 ]
    +        # After transformation,
    +        # x' = scale_x * x + shear_x * y + translate_x;
    +        # y' = scale_y * y + shear_y * x + translate_y;
    +        # This message is therefore composed of these six matrix elements.
    +        # Corresponds to the JSON property `transform`
    +        # @return [Google::Apis::SlidesV1::AffineTransform]
    +        attr_accessor :transform
    +      
    +        # The object ID of the page where the element is located.
    +        # Corresponds to the JSON property `pageObjectId`
    +        # @return [String]
    +        attr_accessor :page_object_id
    +      
    +        # A width and height.
    +        # Corresponds to the JSON property `size`
    +        # @return [Google::Apis::SlidesV1::Size]
    +        attr_accessor :size
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @transform = args[:transform] if args.key?(:transform)
    +          @page_object_id = args[:page_object_id] if args.key?(:page_object_id)
    +          @size = args[:size] if args.key?(:size)
    +        end
    +      end
    +      
    +      # The properties of the SheetsChart.
    +      class SheetsChartProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The properties of the Image.
    +        # Corresponds to the JSON property `chartImageProperties`
    +        # @return [Google::Apis::SlidesV1::ImageProperties]
    +        attr_accessor :chart_image_properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @chart_image_properties = args[:chart_image_properties] if args.key?(:chart_image_properties)
    +        end
    +      end
    +      
    +      # The stretched picture fill. The page or page element is filled entirely with
    +      # the specified picture. The picture is stretched to fit its container.
    +      class StretchedPictureFill
    +        include Google::Apis::Core::Hashable
    +      
    +        # Reading the content_url:
    +        # An URL to a picture with a default lifetime of 30 minutes.
    +        # This URL is tagged with the account of the requester. Anyone with the URL
    +        # effectively accesses the picture as the original requester. Access to the
    +        # picture may be lost if the presentation's sharing settings change.
    +        # Writing the content_url:
    +        # The picture is fetched once at insertion time and a copy is stored for
    +        # display inside the presentation. Pictures must be less than 50MB in size,
    +        # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
    +        # format.
    +        # Corresponds to the JSON property `contentUrl`
    +        # @return [String]
    +        attr_accessor :content_url
    +      
    +        # A width and height.
    +        # Corresponds to the JSON property `size`
    +        # @return [Google::Apis::SlidesV1::Size]
    +        attr_accessor :size
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @content_url = args[:content_url] if args.key?(:content_url)
    +          @size = args[:size] if args.key?(:size)
    +        end
    +      end
    +      
    +      # Deletes a column from a table.
    +      class DeleteTableColumnRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
    +        # The table to delete columns from.
    +        # Corresponds to the JSON property `tableObjectId`
    +        # @return [String]
    +        attr_accessor :table_object_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
    +          @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
    +        end
    +      end
    +      
    +      # Update the styling of text in a Shape or
    +      # Table.
    +      class UpdateTextStyleRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.
    +        # At least one field must be specified. The root `style` is implied and
    +        # should not be specified. A single `"*"` can be used as short-hand for
    +        # listing every field.
    +        # For example, to update the text style to bold, set `fields` to `"bold"`.
    +        # To reset a property to its default value, include its field name in the
    +        # field mask but leave the field itself unset.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # Specifies a contiguous range of an indexed collection, such as characters in
    +        # text.
    +        # Corresponds to the JSON property `textRange`
    +        # @return [Google::Apis::SlidesV1::Range]
    +        attr_accessor :text_range
    +      
    +        # The object ID of the shape or table with the text to be styled.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # Represents the styling that can be applied to a TextRun.
    +        # If this text is contained in a shape with a parent placeholder, then these
    +        # text styles may be
    +        # inherited from the parent. Which text styles are inherited depend on the
    +        # nesting level of lists:
    +        # * A text run in a paragraph that is not in a list will inherit its text style
    +        # from the the newline character in the paragraph at the 0 nesting level of
    +        # the list inside the parent placeholder.
    +        # * A text run in a paragraph that is in a list will inherit its text style
    +        # from the newline character in the paragraph at its corresponding nesting
    +        # level of the list inside the parent placeholder.
    +        # Inherited text styles are represented as unset fields in this message. If
    +        # text is contained in a shape without a parent placeholder, unsetting these
    +        # fields will revert the style to a value matching the defaults in the Slides
    +        # editor.
    +        # Corresponds to the JSON property `style`
    +        # @return [Google::Apis::SlidesV1::TextStyle]
    +        attr_accessor :style
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @text_range = args[:text_range] if args.key?(:text_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @style = args[:style] if args.key?(:style)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
    +        end
    +      end
    +      
    +      # A List describes the look and feel of bullets belonging to paragraphs
    +      # associated with a list. A paragraph that is part of a list has an implicit
    +      # reference to that list's ID.
    +      class List
    +        include Google::Apis::Core::Hashable
    +      
    +        # A map of nesting levels to the properties of bullets at the associated
    +        # level. A list has at most nine levels of nesting, so the possible values
    +        # for the keys of this map are 0 through 8, inclusive.
    +        # Corresponds to the JSON property `nestingLevel`
    +        # @return [Hash]
    +        attr_accessor :nesting_level
    +      
    +        # The ID of the list.
    +        # Corresponds to the JSON property `listId`
    +        # @return [String]
    +        attr_accessor :list_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
    +          @list_id = args[:list_id] if args.key?(:list_id)
    +        end
    +      end
    +      
    +      # Represents a font family and weight used to style a TextRun.
    +      class WeightedFontFamily
    +        include Google::Apis::Core::Hashable
    +      
    +        # The rendered weight of the text. This field can have any value that is a
    +        # multiple of `100` between `100` and `900`, inclusive. This range
    +        # corresponds to the numerical values described in the CSS 2.1
    +        # Specification, [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-
    +        # boldness),
    +        # with non-numerical values disallowed. Weights greater than or equal to
    +        # `700` are considered bold, and weights less than `700`are not bold. The
    +        # default value is `400` ("normal").
    +        # Corresponds to the JSON property `weight`
    +        # @return [Fixnum]
    +        attr_accessor :weight
    +      
    +        # The font family of the text.
    +        # The font family can be any font from the Font menu in Slides or from
    +        # [Google Fonts] (https://fonts.google.com/). If the font name is
    +        # unrecognized, the text is rendered in `Arial`.
    +        # Corresponds to the JSON property `fontFamily`
    +        # @return [String]
    +        attr_accessor :font_family
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @weight = args[:weight] if args.key?(:weight)
    +          @font_family = args[:font_family] if args.key?(:font_family)
    +        end
    +      end
    +      
    +      # A visual element rendered on a page.
    +      class PageElement
    +        include Google::Apis::Core::Hashable
    +      
    +        # A PageElement kind representing a
    +        # line, curved connector, or bent connector.
    +        # Corresponds to the JSON property `line`
    +        # @return [Google::Apis::SlidesV1::Line]
    +        attr_accessor :line
    +      
    +        # The description of the page element. Combined with title to display alt
    +        # text.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # A PageElement kind representing a
    +        # joined collection of PageElements.
    +        # Corresponds to the JSON property `elementGroup`
    +        # @return [Google::Apis::SlidesV1::Group]
    +        attr_accessor :element_group
    +      
    +        # A PageElement kind representing an
    +        # image.
    +        # Corresponds to the JSON property `image`
    +        # @return [Google::Apis::SlidesV1::Image]
    +        attr_accessor :image
    +      
    +        # A width and height.
    +        # Corresponds to the JSON property `size`
    +        # @return [Google::Apis::SlidesV1::Size]
    +        attr_accessor :size
    +      
    +        # The title of the page element. Combined with description to display alt
    +        # text.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
    +        # A PageElement kind representing
    +        # a linked chart embedded from Google Sheets.
    +        # Corresponds to the JSON property `sheetsChart`
    +        # @return [Google::Apis::SlidesV1::SheetsChart]
    +        attr_accessor :sheets_chart
    +      
    +        # A PageElement kind representing a
    +        # video.
    +        # Corresponds to the JSON property `video`
    +        # @return [Google::Apis::SlidesV1::Video]
    +        attr_accessor :video
    +      
    +        # A PageElement kind representing
    +        # word art.
    +        # Corresponds to the JSON property `wordArt`
    +        # @return [Google::Apis::SlidesV1::WordArt]
    +        attr_accessor :word_art
    +      
    +        # A PageElement kind representing a
    +        # table.
    +        # Corresponds to the JSON property `table`
    +        # @return [Google::Apis::SlidesV1::Table]
    +        attr_accessor :table
    +      
    +        # The object ID for this page element. Object IDs used by
    +        # google.apps.slides.v1.Page and
    +        # google.apps.slides.v1.PageElement share the same namespace.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
    +        # to transform source coordinates (x,y) into destination coordinates (x', y')
    +        # according to:
    +        # x'  x  =   shear_y  scale_y  translate_y
    +        # 1  [ 1 ]
    +        # After transformation,
    +        # x' = scale_x * x + shear_x * y + translate_x;
    +        # y' = scale_y * y + shear_y * x + translate_y;
    +        # This message is therefore composed of these six matrix elements.
    +        # Corresponds to the JSON property `transform`
    +        # @return [Google::Apis::SlidesV1::AffineTransform]
    +        attr_accessor :transform
    +      
    +        # A PageElement kind representing a
    +        # generic shape that does not have a more specific classification.
    +        # Corresponds to the JSON property `shape`
    +        # @return [Google::Apis::SlidesV1::Shape]
    +        attr_accessor :shape
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @line = args[:line] if args.key?(:line)
    +          @description = args[:description] if args.key?(:description)
    +          @element_group = args[:element_group] if args.key?(:element_group)
    +          @image = args[:image] if args.key?(:image)
    +          @size = args[:size] if args.key?(:size)
    +          @title = args[:title] if args.key?(:title)
    +          @sheets_chart = args[:sheets_chart] if args.key?(:sheets_chart)
    +          @video = args[:video] if args.key?(:video)
    +          @word_art = args[:word_art] if args.key?(:word_art)
    +          @table = args[:table] if args.key?(:table)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @transform = args[:transform] if args.key?(:transform)
    +          @shape = args[:shape] if args.key?(:shape)
    +        end
    +      end
    +      
    +      # Creates an image.
    +      class CreateImageRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A user-supplied object ID.
    +        # If you specify an ID, it must be unique among all pages and page elements
    +        # in the presentation. The ID must start with an alphanumeric character or an
    +        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    +        # may include those as well as a hyphen or colon (matches regex
    +        # `[a-zA-Z0-9_-:]`).
    +        # The length of the ID must not be less than 5 or greater than 50.
    +        # If you don't specify an ID, a unique one is generated.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # Common properties for a page element.
    +        # Note: When you initially create a
    +        # PageElement, the API may modify
    +        # the values of both `size` and `transform`, but the
    +        # visual size will be unchanged.
    +        # Corresponds to the JSON property `elementProperties`
    +        # @return [Google::Apis::SlidesV1::PageElementProperties]
    +        attr_accessor :element_properties
    +      
    +        # The image URL.
    +        # The image is fetched once at insertion time and a copy is stored for
    +        # display inside the presentation. Images must be less than 50MB in size,
    +        # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
    +        # format.
    +        # 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)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @element_properties = args[:element_properties] if args.key?(:element_properties)
    +          @url = args[:url] if args.key?(:url)
    +        end
    +      end
    +      
    +      # Creates bullets for all of the paragraphs that overlap with the given
    +      # text index range.
    +      # The nesting level of each paragraph will be determined by counting leading
    +      # tabs in front of each paragraph. To avoid excess space between the bullet and
    +      # the corresponding paragraph, these leading tabs are removed by this request.
    +      # This may change the indices of parts of the text.
    +      # If the paragraph immediately before paragraphs being updated is in a list
    +      # with a matching preset, the paragraphs being updated are added to that
    +      # preceding list.
    +      class CreateParagraphBulletsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Specifies a contiguous range of an indexed collection, such as characters in
    +        # text.
    +        # Corresponds to the JSON property `textRange`
    +        # @return [Google::Apis::SlidesV1::Range]
    +        attr_accessor :text_range
    +      
    +        # The object ID of the shape or table containing the text to add bullets to.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # The kinds of bullet glyphs to be used. Defaults to the
    +        # `BULLET_DISC_CIRCLE_SQUARE` preset.
    +        # Corresponds to the JSON property `bulletPreset`
    +        # @return [String]
    +        attr_accessor :bullet_preset
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text_range = args[:text_range] if args.key?(:text_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @bullet_preset = args[:bullet_preset] if args.key?(:bullet_preset)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
    +        end
    +      end
    +      
    +      # A width and height.
    +      class Size
    +        include Google::Apis::Core::Hashable
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `height`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :height
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `width`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        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
    +      
    +      # Represents the styling that can be applied to a TextRun.
    +      # If this text is contained in a shape with a parent placeholder, then these
    +      # text styles may be
    +      # inherited from the parent. Which text styles are inherited depend on the
    +      # nesting level of lists:
    +      # * A text run in a paragraph that is not in a list will inherit its text style
    +      # from the the newline character in the paragraph at the 0 nesting level of
    +      # the list inside the parent placeholder.
    +      # * A text run in a paragraph that is in a list will inherit its text style
    +      # from the newline character in the paragraph at its corresponding nesting
    +      # level of the list inside the parent placeholder.
    +      # Inherited text styles are represented as unset fields in this message. If
    +      # text is contained in a shape without a parent placeholder, unsetting these
    +      # fields will revert the style to a value matching the defaults in the Slides
    +      # editor.
    +      class TextStyle
    +        include Google::Apis::Core::Hashable
    +      
    +        # Whether or not the text is in small capital letters.
    +        # Corresponds to the JSON property `smallCaps`
    +        # @return [Boolean]
    +        attr_accessor :small_caps
    +        alias_method :small_caps?, :small_caps
    +      
    +        # A color that can either be fully opaque or fully transparent.
    +        # Corresponds to the JSON property `backgroundColor`
    +        # @return [Google::Apis::SlidesV1::OptionalColor]
    +        attr_accessor :background_color
    +      
    +        # A hypertext link.
    +        # Corresponds to the JSON property `link`
    +        # @return [Google::Apis::SlidesV1::Link]
    +        attr_accessor :link
    +      
    +        # Whether or not the text is underlined.
    +        # Corresponds to the JSON property `underline`
    +        # @return [Boolean]
    +        attr_accessor :underline
    +        alias_method :underline?, :underline
    +      
    +        # A color that can either be fully opaque or fully transparent.
    +        # Corresponds to the JSON property `foregroundColor`
    +        # @return [Google::Apis::SlidesV1::OptionalColor]
    +        attr_accessor :foreground_color
    +      
    +        # Whether or not the text is rendered as bold.
    +        # Corresponds to the JSON property `bold`
    +        # @return [Boolean]
    +        attr_accessor :bold
    +        alias_method :bold?, :bold
    +      
    +        # The font family of the text.
    +        # The font family can be any font from the Font menu in Slides or from
    +        # [Google Fonts] (https://fonts.google.com/). If the font name is
    +        # unrecognized, the text is rendered in `Arial`.
    +        # Some fonts can affect the weight of the text. If an update request
    +        # specifies values for both `font_family` and `bold`, the explicitly-set
    +        # `bold` value is used.
    +        # Corresponds to the JSON property `fontFamily`
    +        # @return [String]
    +        attr_accessor :font_family
    +      
    +        # Whether or not the text is italicized.
    +        # Corresponds to the JSON property `italic`
    +        # @return [Boolean]
    +        attr_accessor :italic
    +        alias_method :italic?, :italic
    +      
    +        # Whether or not the text is struck through.
    +        # Corresponds to the JSON property `strikethrough`
    +        # @return [Boolean]
    +        attr_accessor :strikethrough
    +        alias_method :strikethrough?, :strikethrough
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `fontSize`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :font_size
    +      
    +        # The text's vertical offset from its normal position.
    +        # Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically
    +        # rendered in a smaller font size, computed based on the `font_size` field.
    +        # The `font_size` itself is not affected by changes in this field.
    +        # Corresponds to the JSON property `baselineOffset`
    +        # @return [String]
    +        attr_accessor :baseline_offset
    +      
    +        # Represents a font family and weight used to style a TextRun.
    +        # Corresponds to the JSON property `weightedFontFamily`
    +        # @return [Google::Apis::SlidesV1::WeightedFontFamily]
    +        attr_accessor :weighted_font_family
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @small_caps = args[:small_caps] if args.key?(:small_caps)
    +          @background_color = args[:background_color] if args.key?(:background_color)
    +          @link = args[:link] if args.key?(:link)
    +          @underline = args[:underline] if args.key?(:underline)
    +          @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
    +          @bold = args[:bold] if args.key?(:bold)
    +          @font_family = args[:font_family] if args.key?(:font_family)
    +          @italic = args[:italic] if args.key?(:italic)
    +          @strikethrough = args[:strikethrough] if args.key?(:strikethrough)
    +          @font_size = args[:font_size] if args.key?(:font_size)
    +          @baseline_offset = args[:baseline_offset] if args.key?(:baseline_offset)
    +          @weighted_font_family = args[:weighted_font_family] if args.key?(:weighted_font_family)
    +        end
    +      end
    +      
    +      # Update the properties of a Video.
    +      class UpdateVideoPropertiesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the video the updates are applied to.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # The properties of the Video.
    +        # Corresponds to the JSON property `videoProperties`
    +        # @return [Google::Apis::SlidesV1::VideoProperties]
    +        attr_accessor :video_properties
    +      
    +        # The fields that should be updated.
    +        # At least one field must be specified. The root `videoProperties` is
    +        # implied and should not be specified. A single `"*"` can be used as
    +        # short-hand for listing every field.
    +        # For example to update the video outline color, set `fields` to
    +        # `"outline.outlineFill.solidFill.color"`.
    +        # To reset a property to its default value, include its field name in the
    +        # field mask but leave the field itself unset.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @video_properties = args[:video_properties] if args.key?(:video_properties)
    +          @fields = args[:fields] if args.key?(:fields)
    +        end
    +      end
    +      
    +      # A single kind of update to apply to a presentation.
    +      class Request
    +        include Google::Apis::Core::Hashable
    +      
    +        # Duplicates a slide or page element.
    +        # When duplicating a slide, the duplicate slide will be created immediately
    +        # following the specified slide. When duplicating a page element, the duplicate
    +        # will be placed on the same page at the same position as the original.
    +        # Corresponds to the JSON property `duplicateObject`
    +        # @return [Google::Apis::SlidesV1::DuplicateObjectRequest]
    +        attr_accessor :duplicate_object
    +      
    +        # Deletes a column from a table.
    +        # Corresponds to the JSON property `deleteTableColumn`
    +        # @return [Google::Apis::SlidesV1::DeleteTableColumnRequest]
    +        attr_accessor :delete_table_column
    +      
    +        # Update the properties of a Video.
    +        # Corresponds to the JSON property `updateVideoProperties`
    +        # @return [Google::Apis::SlidesV1::UpdateVideoPropertiesRequest]
    +        attr_accessor :update_video_properties
    +      
    +        # Creates a line.
    +        # Corresponds to the JSON property `createLine`
    +        # @return [Google::Apis::SlidesV1::CreateLineRequest]
    +        attr_accessor :create_line
    +      
    +        # Creates an image.
    +        # Corresponds to the JSON property `createImage`
    +        # @return [Google::Apis::SlidesV1::CreateImageRequest]
    +        attr_accessor :create_image
    +      
    +        # Creates bullets for all of the paragraphs that overlap with the given
    +        # text index range.
    +        # The nesting level of each paragraph will be determined by counting leading
    +        # tabs in front of each paragraph. To avoid excess space between the bullet and
    +        # the corresponding paragraph, these leading tabs are removed by this request.
    +        # This may change the indices of parts of the text.
    +        # If the paragraph immediately before paragraphs being updated is in a list
    +        # with a matching preset, the paragraphs being updated are added to that
    +        # preceding list.
    +        # Corresponds to the JSON property `createParagraphBullets`
    +        # @return [Google::Apis::SlidesV1::CreateParagraphBulletsRequest]
    +        attr_accessor :create_paragraph_bullets
    +      
    +        # Creates a video.
    +        # Corresponds to the JSON property `createVideo`
    +        # @return [Google::Apis::SlidesV1::CreateVideoRequest]
    +        attr_accessor :create_video
    +      
    +        # Replaces all shapes that match the given criteria with the provided Google
    +        # Sheets chart. The chart will be scaled and centered to fit within the bounds
    +        # of the original shape.
    +        # NOTE: Replacing shapes with a chart requires at least one of the
    +        # spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.
    +        # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest]
    +        attr_accessor :replace_all_shapes_with_sheets_chart
    +      
    +        # Creates an embedded Google Sheets chart.
    +        # NOTE: Chart creation requires at least one of the spreadsheets.readonly,
    +        # spreadsheets, drive.readonly, or drive OAuth scopes.
    +        # Corresponds to the JSON property `createSheetsChart`
    +        # @return [Google::Apis::SlidesV1::CreateSheetsChartRequest]
    +        attr_accessor :create_sheets_chart
    +      
    +        # Updates the transform of a page element.
    +        # Corresponds to the JSON property `updatePageElementTransform`
    +        # @return [Google::Apis::SlidesV1::UpdatePageElementTransformRequest]
    +        attr_accessor :update_page_element_transform
    +      
    +        # Update the styling of text in a Shape or
    +        # Table.
    +        # Corresponds to the JSON property `updateTextStyle`
    +        # @return [Google::Apis::SlidesV1::UpdateTextStyleRequest]
    +        attr_accessor :update_text_style
    +      
    +        # Replaces all shapes that match the given criteria with the provided image.
    +        # Corresponds to the JSON property `replaceAllShapesWithImage`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest]
    +        attr_accessor :replace_all_shapes_with_image
    +      
    +        # Replaces all instances of text matching a criteria with replace text.
    +        # Corresponds to the JSON property `replaceAllText`
    +        # @return [Google::Apis::SlidesV1::ReplaceAllTextRequest]
    +        attr_accessor :replace_all_text
    +      
    +        # Update the properties of an Image.
    +        # Corresponds to the JSON property `updateImageProperties`
    +        # @return [Google::Apis::SlidesV1::UpdateImagePropertiesRequest]
    +        attr_accessor :update_image_properties
    +      
    +        # Inserts rows into a table.
    +        # Corresponds to the JSON property `insertTableRows`
    +        # @return [Google::Apis::SlidesV1::InsertTableRowsRequest]
    +        attr_accessor :insert_table_rows
    +      
    +        # Creates a new slide.
    +        # Corresponds to the JSON property `createSlide`
    +        # @return [Google::Apis::SlidesV1::CreateSlideRequest]
    +        attr_accessor :create_slide
    +      
    +        # Updates the properties of a Line.
    +        # Corresponds to the JSON property `updateLineProperties`
    +        # @return [Google::Apis::SlidesV1::UpdateLinePropertiesRequest]
    +        attr_accessor :update_line_properties
    +      
    +        # Updates the position of slides in the presentation.
    +        # Corresponds to the JSON property `updateSlidesPosition`
    +        # @return [Google::Apis::SlidesV1::UpdateSlidesPositionRequest]
    +        attr_accessor :update_slides_position
    +      
    +        # Deletes a row from a table.
    +        # Corresponds to the JSON property `deleteTableRow`
    +        # @return [Google::Apis::SlidesV1::DeleteTableRowRequest]
    +        attr_accessor :delete_table_row
    +      
    +        # Update the properties of a Shape.
    +        # Corresponds to the JSON property `updateShapeProperties`
    +        # @return [Google::Apis::SlidesV1::UpdateShapePropertiesRequest]
    +        attr_accessor :update_shape_properties
    +      
    +        # Inserts text into a shape or a table cell.
    +        # Corresponds to the JSON property `insertText`
    +        # @return [Google::Apis::SlidesV1::InsertTextRequest]
    +        attr_accessor :insert_text
    +      
    +        # Deletes text from a shape or a table cell.
    +        # Corresponds to the JSON property `deleteText`
    +        # @return [Google::Apis::SlidesV1::DeleteTextRequest]
    +        attr_accessor :delete_text
    +      
    +        # Updates the properties of a Page.
    +        # Corresponds to the JSON property `updatePageProperties`
    +        # @return [Google::Apis::SlidesV1::UpdatePagePropertiesRequest]
    +        attr_accessor :update_page_properties
    +      
    +        # Creates a new shape.
    +        # Corresponds to the JSON property `createShape`
    +        # @return [Google::Apis::SlidesV1::CreateShapeRequest]
    +        attr_accessor :create_shape
    +      
    +        # Deletes bullets from all of the paragraphs that overlap with the given text
    +        # index range.
    +        # The nesting level of each paragraph will be visually preserved by adding
    +        # indent to the start of the corresponding paragraph.
    +        # Corresponds to the JSON property `deleteParagraphBullets`
    +        # @return [Google::Apis::SlidesV1::DeleteParagraphBulletsRequest]
    +        attr_accessor :delete_paragraph_bullets
    +      
    +        # Inserts columns into a table.
    +        # Other columns in the table will be resized to fit the new column.
    +        # Corresponds to the JSON property `insertTableColumns`
    +        # @return [Google::Apis::SlidesV1::InsertTableColumnsRequest]
    +        attr_accessor :insert_table_columns
    +      
    +        # Refreshes an embedded Google Sheets chart by replacing it with the latest
    +        # version of the chart from Google Sheets.
    +        # NOTE: Refreshing charts requires  at least one of the spreadsheets.readonly,
    +        # spreadsheets, drive.readonly, or drive OAuth scopes.
    +        # Corresponds to the JSON property `refreshSheetsChart`
    +        # @return [Google::Apis::SlidesV1::RefreshSheetsChartRequest]
    +        attr_accessor :refresh_sheets_chart
    +      
    +        # Update the properties of a TableCell.
    +        # Corresponds to the JSON property `updateTableCellProperties`
    +        # @return [Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest]
    +        attr_accessor :update_table_cell_properties
    +      
    +        # Creates a new table.
    +        # Corresponds to the JSON property `createTable`
    +        # @return [Google::Apis::SlidesV1::CreateTableRequest]
    +        attr_accessor :create_table
    +      
    +        # Deletes an object, either pages or
    +        # page elements, from the
    +        # presentation.
    +        # Corresponds to the JSON property `deleteObject`
    +        # @return [Google::Apis::SlidesV1::DeleteObjectRequest]
    +        attr_accessor :delete_object
    +      
    +        # Updates the styling for all of the paragraphs within a Shape or Table that
    +        # overlap with the given text index range.
    +        # Corresponds to the JSON property `updateParagraphStyle`
    +        # @return [Google::Apis::SlidesV1::UpdateParagraphStyleRequest]
    +        attr_accessor :update_paragraph_style
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
    +          @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
    +          @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties)
    +          @create_line = args[:create_line] if args.key?(:create_line)
    +          @create_image = args[:create_image] if args.key?(:create_image)
    +          @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets)
    +          @create_video = args[:create_video] if args.key?(:create_video)
    +          @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
    +          @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
    +          @update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform)
    +          @update_text_style = args[:update_text_style] if args.key?(:update_text_style)
    +          @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
    +          @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
    +          @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
    +          @insert_table_rows = args[:insert_table_rows] if args.key?(:insert_table_rows)
    +          @create_slide = args[:create_slide] if args.key?(:create_slide)
    +          @update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties)
    +          @update_slides_position = args[:update_slides_position] if args.key?(:update_slides_position)
    +          @delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
    +          @update_shape_properties = args[:update_shape_properties] if args.key?(:update_shape_properties)
    +          @insert_text = args[:insert_text] if args.key?(:insert_text)
    +          @delete_text = args[:delete_text] if args.key?(:delete_text)
    +          @update_page_properties = args[:update_page_properties] if args.key?(:update_page_properties)
    +          @create_shape = args[:create_shape] if args.key?(:create_shape)
    +          @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets)
    +          @insert_table_columns = args[:insert_table_columns] if args.key?(:insert_table_columns)
    +          @refresh_sheets_chart = args[:refresh_sheets_chart] if args.key?(:refresh_sheets_chart)
    +          @update_table_cell_properties = args[:update_table_cell_properties] if args.key?(:update_table_cell_properties)
    +          @create_table = args[:create_table] if args.key?(:create_table)
    +          @delete_object = args[:delete_object] if args.key?(:delete_object)
    +          @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style)
    +        end
    +      end
    +      
    +      # Update the properties of an Image.
    +      class UpdateImagePropertiesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.
    +        # At least one field must be specified. The root `imageProperties` is
    +        # implied and should not be specified. A single `"*"` can be used as
    +        # short-hand for listing every field.
    +        # For example to update the image outline color, set `fields` to
    +        # `"outline.outlineFill.solidFill.color"`.
    +        # To reset a property to its default value, include its field name in the
    +        # field mask but leave the field itself unset.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # The properties of the Image.
    +        # Corresponds to the JSON property `imageProperties`
    +        # @return [Google::Apis::SlidesV1::ImageProperties]
    +        attr_accessor :image_properties
    +      
    +        # The object ID of the image the updates are applied to.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @image_properties = args[:image_properties] if args.key?(:image_properties)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +        end
    +      end
    +      
    +      # Styles that apply to a whole paragraph.
    +      # If this text is contained in a shape with a parent placeholder, then these
    +      # paragraph styles may be
    +      # inherited from the parent. Which paragraph styles are inherited depend on the
    +      # nesting level of lists:
    +      # * A paragraph not in a list will inherit its paragraph style from the
    +      # paragraph at the 0 nesting level of the list inside the parent placeholder.
    +      # * A paragraph in a list will inherit its paragraph style from the paragraph
    +      # at its corresponding nesting level of the list inside the parent
    +      # placeholder.
    +      # Inherited paragraph styles are represented as unset fields in this message.
    +      class ParagraphStyle
    +        include Google::Apis::Core::Hashable
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `indentFirstLine`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :indent_first_line
    +      
    +        # The amount of space between lines, as a percentage of normal, where normal
    +        # is represented as 100.0. If unset, the value is inherited from the parent.
    +        # Corresponds to the JSON property `lineSpacing`
    +        # @return [Float]
    +        attr_accessor :line_spacing
    +      
    +        # The text alignment for this paragraph.
    +        # Corresponds to the JSON property `alignment`
    +        # @return [String]
    +        attr_accessor :alignment
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `spaceBelow`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :space_below
    +      
    +        # The text direction of this paragraph. If unset, the value defaults to
    +        # LEFT_TO_RIGHT since
    +        # text direction is not inherited.
    +        # Corresponds to the JSON property `direction`
    +        # @return [String]
    +        attr_accessor :direction
    +      
    +        # The spacing mode for the paragraph.
    +        # Corresponds to the JSON property `spacingMode`
    +        # @return [String]
    +        attr_accessor :spacing_mode
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `indentEnd`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :indent_end
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `indentStart`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :indent_start
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `spaceAbove`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :space_above
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @indent_first_line = args[:indent_first_line] if args.key?(:indent_first_line)
    +          @line_spacing = args[:line_spacing] if args.key?(:line_spacing)
    +          @alignment = args[:alignment] if args.key?(:alignment)
    +          @space_below = args[:space_below] if args.key?(:space_below)
    +          @direction = args[:direction] if args.key?(:direction)
    +          @spacing_mode = args[:spacing_mode] if args.key?(:spacing_mode)
    +          @indent_end = args[:indent_end] if args.key?(:indent_end)
    +          @indent_start = args[:indent_start] if args.key?(:indent_start)
    +          @space_above = args[:space_above] if args.key?(:space_above)
    +        end
    +      end
    +      
    +      # The result of replacing shapes with a Google Sheets chart.
    +      class ReplaceAllShapesWithSheetsChartResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The number of shapes replaced with charts.
    +        # Corresponds to the JSON property `occurrencesChanged`
    +        # @return [Fixnum]
    +        attr_accessor :occurrences_changed
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
    +        end
    +      end
    +      
    +      # The properties of the TableCell.
    +      class TableCellProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The table cell background fill.
    +        # Corresponds to the JSON property `tableCellBackgroundFill`
    +        # @return [Google::Apis::SlidesV1::TableCellBackgroundFill]
    +        attr_accessor :table_cell_background_fill
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @table_cell_background_fill = args[:table_cell_background_fill] if args.key?(:table_cell_background_fill)
    +        end
    +      end
    +      
    +      # Refreshes an embedded Google Sheets chart by replacing it with the latest
    +      # version of the chart from Google Sheets.
    +      # NOTE: Refreshing charts requires  at least one of the spreadsheets.readonly,
    +      # spreadsheets, drive.readonly, or drive OAuth scopes.
    +      class RefreshSheetsChartRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the chart to refresh.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +        end
    +      end
    +      
    +      # The outline of a PageElement.
    +      # If these fields are unset, they may be inherited from a parent placeholder
    +      # if it exists. If there is no parent, the fields will default to the value
    +      # used for new page elements created in the Slides editor, which may depend on
    +      # the page element kind.
    +      class Outline
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fill of the outline.
    +        # Corresponds to the JSON property `outlineFill`
    +        # @return [Google::Apis::SlidesV1::OutlineFill]
    +        attr_accessor :outline_fill
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `weight`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :weight
    +      
    +        # The dash style of the outline.
    +        # Corresponds to the JSON property `dashStyle`
    +        # @return [String]
    +        attr_accessor :dash_style
    +      
    +        # The outline property state.
    +        # Updating the the outline on a page element will implicitly update this
    +        # field to`RENDERED`, unless another value is specified in the same request.
    +        # To have no outline on a page element, set this field to `NOT_RENDERED`. In
    +        # this case, any other outline fields set in the same request will be
    +        # ignored.
    +        # Corresponds to the JSON property `propertyState`
    +        # @return [String]
    +        attr_accessor :property_state
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @outline_fill = args[:outline_fill] if args.key?(:outline_fill)
    +          @weight = args[:weight] if args.key?(:weight)
    +          @dash_style = args[:dash_style] if args.key?(:dash_style)
    +          @property_state = args[:property_state] if args.key?(:property_state)
    +        end
    +      end
    +      
    +      # Properties of each column in a table.
    +      class TableColumnProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `columnWidth`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :column_width
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @column_width = args[:column_width] if args.key?(:column_width)
    +        end
    +      end
    +      
    +      # The properties of a Shape.
    +      # If the shape is a placeholder shape as determined by the
    +      # placeholder field, then these
    +      # properties may be inherited from a parent placeholder shape.
    +      # Determining the rendered value of the property depends on the corresponding
    +      # property_state field value.
    +      class ShapeProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The outline of a PageElement.
    +        # If these fields are unset, they may be inherited from a parent placeholder
    +        # if it exists. If there is no parent, the fields will default to the value
    +        # used for new page elements created in the Slides editor, which may depend on
    +        # the page element kind.
    +        # Corresponds to the JSON property `outline`
    +        # @return [Google::Apis::SlidesV1::Outline]
    +        attr_accessor :outline
    +      
    +        # The shadow properties of a page element.
    +        # If these fields are unset, they may be inherited from a parent placeholder
    +        # if it exists. If there is no parent, the fields will default to the value
    +        # used for new page elements created in the Slides editor, which may depend on
    +        # the page element kind.
    +        # Corresponds to the JSON property `shadow`
    +        # @return [Google::Apis::SlidesV1::Shadow]
    +        attr_accessor :shadow
    +      
    +        # The shape background fill.
    +        # Corresponds to the JSON property `shapeBackgroundFill`
    +        # @return [Google::Apis::SlidesV1::ShapeBackgroundFill]
    +        attr_accessor :shape_background_fill
    +      
    +        # A hypertext link.
    +        # Corresponds to the JSON property `link`
    +        # @return [Google::Apis::SlidesV1::Link]
    +        attr_accessor :link
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @outline = args[:outline] if args.key?(:outline)
    +          @shadow = args[:shadow] if args.key?(:shadow)
    +          @shape_background_fill = args[:shape_background_fill] if args.key?(:shape_background_fill)
    +          @link = args[:link] if args.key?(:link)
    +        end
    +      end
    +      
    +      # The properties of Page that are only
    +      # relevant for pages with page_type NOTES.
    +      class NotesProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the shape on this notes page that contains the speaker
    +        # notes for the corresponding slide.
    +        # The actual shape may not always exist on the notes page. Inserting text
    +        # using this object ID will automatically create the shape. In this case, the
    +        # actual shape may have different object ID. The `GetPresentation` or
    +        # `GetPage` action will always return the latest object ID.
    +        # Corresponds to the JSON property `speakerNotesObjectId`
    +        # @return [String]
    +        attr_accessor :speaker_notes_object_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id)
    +        end
    +      end
    +      
    +      # Properties and contents of each row in a table.
    +      class TableRow
    +        include Google::Apis::Core::Hashable
    +      
    +        # Properties and contents of each cell.
    +        # Cells that span multiple columns are represented only once with a
    +        # column_span greater
    +        # than 1. As a result, the length of this collection does not always match
    +        # the number of columns of the entire table.
    +        # Corresponds to the JSON property `tableCells`
    +        # @return [Array]
    +        attr_accessor :table_cells
    +      
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `rowHeight`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :row_height
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @table_cells = args[:table_cells] if args.key?(:table_cells)
    +          @row_height = args[:row_height] if args.key?(:row_height)
    +        end
    +      end
    +      
    +      # Update the properties of a TableCell.
    +      class UpdateTableCellPropertiesRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The fields that should be updated.
    +        # At least one field must be specified. The root `tableCellProperties` is
    +        # implied and should not be specified. A single `"*"` can be used as
    +        # short-hand for listing every field.
    +        # For example to update the table cell background solid fill color, set
    +        # `fields` to `"tableCellBackgroundFill.solidFill.color"`.
    +        # To reset a property to its default value, include its field name in the
    +        # field mask but leave the field itself unset.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # A table range represents a reference to a subset of a table.
    +        # It's important to note that the cells specified by a table range do not
    +        # necessarily form a rectangle. For example, let's say we have a 3 x 3 table
    +        # where all the cells of the last row are merged together. The table looks
    +        # like this:
    +        # 
    +        # [             ]
    +        # A table range with location = (0, 0), row span = 3 and column span = 2
    +        # specifies the following cells:
    +        # x     x
    +        # [      x      ]
    +        # Corresponds to the JSON property `tableRange`
    +        # @return [Google::Apis::SlidesV1::TableRange]
    +        attr_accessor :table_range
    +      
    +        # The object ID of the table.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # The properties of the TableCell.
    +        # Corresponds to the JSON property `tableCellProperties`
    +        # @return [Google::Apis::SlidesV1::TableCellProperties]
    +        attr_accessor :table_cell_properties
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +          @table_range = args[:table_range] if args.key?(:table_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
    +        end
    +      end
    +      
    +      # Creates a new slide.
    +      class CreateSlideRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A user-supplied object ID.
    +        # If you specify an ID, it must be unique among all pages and page elements
    +        # in the presentation. The ID must start with an alphanumeric character or an
    +        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    +        # may include those as well as a hyphen or colon (matches regex
    +        # `[a-zA-Z0-9_-:]`).
    +        # The length of the ID must not be less than 5 or greater than 50.
    +        # If you don't specify an ID, a unique one is generated.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # The optional zero-based index indicating where to insert the slides.
    +        # If you don't specify an index, the new slide is created at the end.
    +        # Corresponds to the JSON property `insertionIndex`
    +        # @return [Fixnum]
    +        attr_accessor :insertion_index
    +      
    +        # An optional list of object ID mappings from the placeholder(s) on the layout
    +        # to the placeholder(s)
    +        # that will be created on the new slide from that specified layout. Can only
    +        # be used when `slide_layout_reference` is specified.
    +        # Corresponds to the JSON property `placeholderIdMappings`
    +        # @return [Array]
    +        attr_accessor :placeholder_id_mappings
    +      
    +        # Slide layout reference. This may reference either:
    +        # - A predefined layout
    +        # - One of the layouts in the presentation.
    +        # Corresponds to the JSON property `slideLayoutReference`
    +        # @return [Google::Apis::SlidesV1::LayoutReference]
    +        attr_accessor :slide_layout_reference
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
    +          @placeholder_id_mappings = args[:placeholder_id_mappings] if args.key?(:placeholder_id_mappings)
    +          @slide_layout_reference = args[:slide_layout_reference] if args.key?(:slide_layout_reference)
    +        end
    +      end
    +      
    +      # Request message for PresentationsService.BatchUpdatePresentation.
    +      class BatchUpdatePresentationRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # A list of updates to apply to the presentation.
    +        # Corresponds to the JSON property `requests`
    +        # @return [Array]
    +        attr_accessor :requests
    +      
    +        # Provides control over how write requests are executed.
    +        # Corresponds to the JSON property `writeControl`
    +        # @return [Google::Apis::SlidesV1::WriteControl]
    +        attr_accessor :write_control
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @requests = args[:requests] if args.key?(:requests)
    +          @write_control = args[:write_control] if args.key?(:write_control)
    +        end
    +      end
    +      
    +      # The general text content. The text must reside in a compatible shape (e.g.
    +      # text box or rectangle) or a table cell in a page.
    +      class TextContent
    +        include Google::Apis::Core::Hashable
    +      
    +        # The text contents broken down into its component parts, including styling
    +        # information. This property is read-only.
    +        # Corresponds to the JSON property `textElements`
    +        # @return [Array]
    +        attr_accessor :text_elements
    +      
    +        # The bulleted lists contained in this text, keyed by list ID.
    +        # Corresponds to the JSON property `lists`
    +        # @return [Hash]
    +        attr_accessor :lists
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text_elements = args[:text_elements] if args.key?(:text_elements)
    +          @lists = args[:lists] if args.key?(:lists)
    +        end
    +      end
    +      
    +      # The result of creating an embedded Google Sheets chart.
    +      class CreateSheetsChartResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The object ID of the created chart.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +        end
    +      end
    +      
    +      # Provides control over how write requests are executed.
    +      class WriteControl
    +        include Google::Apis::Core::Hashable
    +      
    +        # The revision ID of the presentation required for the write request. If
    +        # specified and the `required_revision_id` doesn't exactly match the
    +        # presentation's current `revision_id`, the request will not be processed and
    +        # will return a 400 bad request error.
    +        # Corresponds to the JSON property `requiredRevisionId`
    +        # @return [String]
    +        attr_accessor :required_revision_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
    +        end
    +      end
    +      
    +      # Deletes bullets from all of the paragraphs that overlap with the given text
    +      # index range.
    +      # The nesting level of each paragraph will be visually preserved by adding
    +      # indent to the start of the corresponding paragraph.
    +      class DeleteParagraphBulletsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Specifies a contiguous range of an indexed collection, such as characters in
    +        # text.
    +        # Corresponds to the JSON property `textRange`
    +        # @return [Google::Apis::SlidesV1::Range]
    +        attr_accessor :text_range
    +      
    +        # The object ID of the shape or table containing the text to delete bullets
    +        # from.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text_range = args[:text_range] if args.key?(:text_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
    +        end
    +      end
    +      
           # A TextElement kind that represents the beginning of a new paragraph.
           class ParagraphMarker
             include Google::Apis::Core::Hashable
           
    +        # Describes the bullet of a paragraph.
    +        # Corresponds to the JSON property `bullet`
    +        # @return [Google::Apis::SlidesV1::Bullet]
    +        attr_accessor :bullet
    +      
             # Styles that apply to a whole paragraph.
             # If this text is contained in a shape with a parent placeholder, then these
             # paragraph styles may be
    @@ -41,60 +2144,14 @@ module Google
             # @return [Google::Apis::SlidesV1::ParagraphStyle]
             attr_accessor :style
           
    -        # Describes the bullet of a paragraph.
    -        # Corresponds to the JSON property `bullet`
    -        # @return [Google::Apis::SlidesV1::Bullet]
    -        attr_accessor :bullet
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @style = args[:style] if args.key?(:style)
               @bullet = args[:bullet] if args.key?(:bullet)
    -        end
    -      end
    -      
    -      # Inserts columns into a table.
    -      # Other columns in the table will be resized to fit the new column.
    -      class InsertTableColumnsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The number of columns to be inserted. Maximum 20 per request.
    -        # Corresponds to the JSON property `number`
    -        # @return [Fixnum]
    -        attr_accessor :number
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        # Whether to insert new columns to the right of the reference cell location.
    -        # - `True`: insert to the right.
    -        # - `False`: insert to the left.
    -        # Corresponds to the JSON property `insertRight`
    -        # @return [Boolean]
    -        attr_accessor :insert_right
    -        alias_method :insert_right?, :insert_right
    -      
    -        # The table to insert columns into.
    -        # Corresponds to the JSON property `tableObjectId`
    -        # @return [String]
    -        attr_accessor :table_object_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @number = args[:number] if args.key?(:number)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @insert_right = args[:insert_right] if args.key?(:insert_right)
    -          @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
    +          @style = args[:style] if args.key?(:style)
             end
           end
           
    @@ -102,6 +2159,11 @@ module Google
           class Thumbnail
             include Google::Apis::Core::Hashable
           
    +        # The positive height in pixels of the thumbnail image.
    +        # Corresponds to the JSON property `height`
    +        # @return [Fixnum]
    +        attr_accessor :height
    +      
             # The content URL of the thumbnail image.
             # The URL to the image has a default lifetime of 30 minutes.
             # This URL is tagged with the account of the requester. Anyone with the URL
    @@ -118,10 +2180,45 @@ module Google
             # @return [Fixnum]
             attr_accessor :width
           
    -        # The positive height in pixels of the thumbnail image.
    -        # Corresponds to the JSON property `height`
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @height = args[:height] if args.key?(:height)
    +          @content_url = args[:content_url] if args.key?(:content_url)
    +          @width = args[:width] if args.key?(:width)
    +        end
    +      end
    +      
    +      # Inserts columns into a table.
    +      # Other columns in the table will be resized to fit the new column.
    +      class InsertTableColumnsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Whether to insert new columns to the right of the reference cell location.
    +        # - `True`: insert to the right.
    +        # - `False`: insert to the left.
    +        # Corresponds to the JSON property `insertRight`
    +        # @return [Boolean]
    +        attr_accessor :insert_right
    +        alias_method :insert_right?, :insert_right
    +      
    +        # The table to insert columns into.
    +        # Corresponds to the JSON property `tableObjectId`
    +        # @return [String]
    +        attr_accessor :table_object_id
    +      
    +        # The number of columns to be inserted. Maximum 20 per request.
    +        # Corresponds to the JSON property `number`
             # @return [Fixnum]
    -        attr_accessor :height
    +        attr_accessor :number
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
           
             def initialize(**args)
                update!(**args)
    @@ -129,9 +2226,10 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @content_url = args[:content_url] if args.key?(:content_url)
    -          @width = args[:width] if args.key?(:width)
    -          @height = args[:height] if args.key?(:height)
    +          @insert_right = args[:insert_right] if args.key?(:insert_right)
    +          @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
    +          @number = args[:number] if args.key?(:number)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
             end
           end
           
    @@ -140,11 +2238,6 @@ module Google
           class LayoutPlaceholderIdMapping
             include Google::Apis::Core::Hashable
           
    -        # The placeholder information that uniquely identifies a placeholder shape.
    -        # Corresponds to the JSON property `layoutPlaceholder`
    -        # @return [Google::Apis::SlidesV1::Placeholder]
    -        attr_accessor :layout_placeholder
    -      
             # The object ID of the placeholder on a layout that will be applied
             # to a slide.
             # Corresponds to the JSON property `layoutPlaceholderObjectId`
    @@ -164,15 +2257,20 @@ module Google
             # @return [String]
             attr_accessor :object_id_prop
           
    +        # The placeholder information that uniquely identifies a placeholder shape.
    +        # Corresponds to the JSON property `layoutPlaceholder`
    +        # @return [Google::Apis::SlidesV1::Placeholder]
    +        attr_accessor :layout_placeholder
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @layout_placeholder = args[:layout_placeholder] if args.key?(:layout_placeholder)
               @layout_placeholder_object_id = args[:layout_placeholder_object_id] if args.key?(:layout_placeholder_object_id)
               @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @layout_placeholder = args[:layout_placeholder] if args.key?(:layout_placeholder)
             end
           end
           
    @@ -281,10 +2379,11 @@ module Google
             # @return [String]
             attr_accessor :page_object_id
           
    -        # If set, indicates this is a link to the external web page at this URL.
    -        # Corresponds to the JSON property `url`
    -        # @return [String]
    -        attr_accessor :url
    +        # If set, indicates this is a link to the slide at this zero-based index
    +        # in the presentation. There may not be a slide at this index.
    +        # Corresponds to the JSON property `slideIndex`
    +        # @return [Fixnum]
    +        attr_accessor :slide_index
           
             # If set, indicates this is a link to a slide in this presentation,
             # addressed by its position.
    @@ -292,11 +2391,10 @@ module Google
             # @return [String]
             attr_accessor :relative_link
           
    -        # If set, indicates this is a link to the slide at this zero-based index
    -        # in the presentation. There may not be a slide at this index.
    -        # Corresponds to the JSON property `slideIndex`
    -        # @return [Fixnum]
    -        attr_accessor :slide_index
    +        # If set, indicates this is a link to the external web page at this URL.
    +        # Corresponds to the JSON property `url`
    +        # @return [String]
    +        attr_accessor :url
           
             def initialize(**args)
                update!(**args)
    @@ -305,9 +2403,9 @@ module Google
             # Update properties of this object
             def update!(**args)
               @page_object_id = args[:page_object_id] if args.key?(:page_object_id)
    -          @url = args[:url] if args.key?(:url)
    -          @relative_link = args[:relative_link] if args.key?(:relative_link)
               @slide_index = args[:slide_index] if args.key?(:slide_index)
    +          @relative_link = args[:relative_link] if args.key?(:relative_link)
    +          @url = args[:url] if args.key?(:url)
             end
           end
           
    @@ -339,16 +2437,16 @@ module Google
             # @return [Float]
             attr_accessor :red
           
    -        # The green component of the color, from 0.0 to 1.0.
    -        # Corresponds to the JSON property `green`
    -        # @return [Float]
    -        attr_accessor :green
    -      
             # The blue component of the color, from 0.0 to 1.0.
             # Corresponds to the JSON property `blue`
             # @return [Float]
             attr_accessor :blue
           
    +        # The green component of the color, from 0.0 to 1.0.
    +        # Corresponds to the JSON property `green`
    +        # @return [Float]
    +        attr_accessor :green
    +      
             def initialize(**args)
                update!(**args)
             end
    @@ -356,8 +2454,8 @@ module Google
             # Update properties of this object
             def update!(**args)
               @red = args[:red] if args.key?(:red)
    -          @green = args[:green] if args.key?(:green)
               @blue = args[:blue] if args.key?(:blue)
    +          @green = args[:green] if args.key?(:green)
             end
           end
           
    @@ -426,6 +2524,11 @@ module Google
           class CreateShapeRequest
             include Google::Apis::Core::Hashable
           
    +        # The shape type.
    +        # Corresponds to the JSON property `shapeType`
    +        # @return [String]
    +        attr_accessor :shape_type
    +      
             # A user-supplied object ID.
             # If you specify an ID, it must be unique among all pages and page elements
             # in the presentation. The ID must start with an alphanumeric character or an
    @@ -438,11 +2541,6 @@ module Google
             # @return [String]
             attr_accessor :object_id_prop
           
    -        # The shape type.
    -        # Corresponds to the JSON property `shapeType`
    -        # @return [String]
    -        attr_accessor :shape_type
    -      
             # Common properties for a page element.
             # Note: When you initially create a
             # PageElement, the API may modify
    @@ -458,8 +2556,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @shape_type = args[:shape_type] if args.key?(:shape_type)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @element_properties = args[:element_properties] if args.key?(:element_properties)
             end
           end
    @@ -469,26 +2567,26 @@ module Google
           class Video
             include Google::Apis::Core::Hashable
           
    -        # The properties of the Video.
    -        # Corresponds to the JSON property `videoProperties`
    -        # @return [Google::Apis::SlidesV1::VideoProperties]
    -        attr_accessor :video_properties
    -      
             # The video source.
             # Corresponds to the JSON property `source`
             # @return [String]
             attr_accessor :source
           
    +        # The video source's unique identifier for this video.
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
             # An URL to a video. The URL is valid as long as the source video
             # exists and sharing settings do not change.
             # Corresponds to the JSON property `url`
             # @return [String]
             attr_accessor :url
           
    -        # The video source's unique identifier for this video.
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    +        # The properties of the Video.
    +        # Corresponds to the JSON property `videoProperties`
    +        # @return [Google::Apis::SlidesV1::VideoProperties]
    +        attr_accessor :video_properties
           
             def initialize(**args)
                update!(**args)
    @@ -496,10 +2594,10 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @video_properties = args[:video_properties] if args.key?(:video_properties)
               @source = args[:source] if args.key?(:source)
    -          @url = args[:url] if args.key?(:url)
               @id = args[:id] if args.key?(:id)
    +          @url = args[:url] if args.key?(:url)
    +          @video_properties = args[:video_properties] if args.key?(:video_properties)
             end
           end
           
    @@ -511,24 +2609,68 @@ module Google
           class PageProperties
             include Google::Apis::Core::Hashable
           
    -        # The page background fill.
    -        # Corresponds to the JSON property `pageBackgroundFill`
    -        # @return [Google::Apis::SlidesV1::PageBackgroundFill]
    -        attr_accessor :page_background_fill
    -      
             # The palette of predefined colors for a page.
             # Corresponds to the JSON property `colorScheme`
             # @return [Google::Apis::SlidesV1::ColorScheme]
             attr_accessor :color_scheme
           
    +        # The page background fill.
    +        # Corresponds to the JSON property `pageBackgroundFill`
    +        # @return [Google::Apis::SlidesV1::PageBackgroundFill]
    +        attr_accessor :page_background_fill
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @page_background_fill = args[:page_background_fill] if args.key?(:page_background_fill)
               @color_scheme = args[:color_scheme] if args.key?(:color_scheme)
    +          @page_background_fill = args[:page_background_fill] if args.key?(:page_background_fill)
    +        end
    +      end
    +      
    +      # Properties and contents of each table cell.
    +      class TableCell
    +        include Google::Apis::Core::Hashable
    +      
    +        # The general text content. The text must reside in a compatible shape (e.g.
    +        # text box or rectangle) or a table cell in a page.
    +        # Corresponds to the JSON property `text`
    +        # @return [Google::Apis::SlidesV1::TextContent]
    +        attr_accessor :text
    +      
    +        # The properties of the TableCell.
    +        # Corresponds to the JSON property `tableCellProperties`
    +        # @return [Google::Apis::SlidesV1::TableCellProperties]
    +        attr_accessor :table_cell_properties
    +      
    +        # Row span of the cell.
    +        # Corresponds to the JSON property `rowSpan`
    +        # @return [Fixnum]
    +        attr_accessor :row_span
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `location`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :location
    +      
    +        # Column span of the cell.
    +        # Corresponds to the JSON property `columnSpan`
    +        # @return [Fixnum]
    +        attr_accessor :column_span
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text = args[:text] if args.key?(:text)
    +          @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
    +          @row_span = args[:row_span] if args.key?(:row_span)
    +          @location = args[:location] if args.key?(:location)
    +          @column_span = args[:column_span] if args.key?(:column_span)
             end
           end
           
    @@ -566,50 +2708,6 @@ module Google
             end
           end
           
    -      # Properties and contents of each table cell.
    -      class TableCell
    -        include Google::Apis::Core::Hashable
    -      
    -        # The general text content. The text must reside in a compatible shape (e.g.
    -        # text box or rectangle) or a table cell in a page.
    -        # Corresponds to the JSON property `text`
    -        # @return [Google::Apis::SlidesV1::TextContent]
    -        attr_accessor :text
    -      
    -        # The properties of the TableCell.
    -        # Corresponds to the JSON property `tableCellProperties`
    -        # @return [Google::Apis::SlidesV1::TableCellProperties]
    -        attr_accessor :table_cell_properties
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `location`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :location
    -      
    -        # Row span of the cell.
    -        # Corresponds to the JSON property `rowSpan`
    -        # @return [Fixnum]
    -        attr_accessor :row_span
    -      
    -        # Column span of the cell.
    -        # Corresponds to the JSON property `columnSpan`
    -        # @return [Fixnum]
    -        attr_accessor :column_span
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @text = args[:text] if args.key?(:text)
    -          @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
    -          @location = args[:location] if args.key?(:location)
    -          @row_span = args[:row_span] if args.key?(:row_span)
    -          @column_span = args[:column_span] if args.key?(:column_span)
    -        end
    -      end
    -      
           # Updates the properties of a Line.
           class UpdateLinePropertiesRequest
             include Google::Apis::Core::Hashable
    @@ -727,11 +2825,6 @@ module Google
             # @return [String]
             attr_accessor :fields
           
    -        # The object ID of the page the update is applied to.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
             # The properties of the Page.
             # The page will inherit properties from the parent page. Depending on the page
             # type the hierarchy is defined in either
    @@ -741,6 +2834,11 @@ module Google
             # @return [Google::Apis::SlidesV1::PageProperties]
             attr_accessor :page_properties
           
    +        # The object ID of the page the update is applied to.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
             def initialize(**args)
                update!(**args)
             end
    @@ -748,8 +2846,8 @@ module Google
             # Update properties of this object
             def update!(**args)
               @fields = args[:fields] if args.key?(:fields)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @page_properties = args[:page_properties] if args.key?(:page_properties)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
             end
           end
           
    @@ -777,13 +2875,6 @@ module Google
           class Placeholder
             include Google::Apis::Core::Hashable
           
    -        # The object ID of this shape's parent placeholder.
    -        # If unset, the parent placeholder shape does not exist, so the shape does
    -        # not inherit properties from any other shape.
    -        # Corresponds to the JSON property `parentObjectId`
    -        # @return [String]
    -        attr_accessor :parent_object_id
    -      
             # The index of the placeholder. If the same placeholder types are present in
             # the same page, they would have different index values.
             # Corresponds to the JSON property `index`
    @@ -795,15 +2886,22 @@ module Google
             # @return [String]
             attr_accessor :type
           
    +        # The object ID of this shape's parent placeholder.
    +        # If unset, the parent placeholder shape does not exist, so the shape does
    +        # not inherit properties from any other shape.
    +        # Corresponds to the JSON property `parentObjectId`
    +        # @return [String]
    +        attr_accessor :parent_object_id
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @parent_object_id = args[:parent_object_id] if args.key?(:parent_object_id)
               @index = args[:index] if args.key?(:index)
               @type = args[:type] if args.key?(:type)
    +          @parent_object_id = args[:parent_object_id] if args.key?(:parent_object_id)
             end
           end
           
    @@ -854,10 +2952,10 @@ module Google
           class ReplaceAllTextRequest
             include Google::Apis::Core::Hashable
           
    -        # The text that will replace the matched text.
    -        # Corresponds to the JSON property `replaceText`
    -        # @return [String]
    -        attr_accessor :replace_text
    +        # A criteria that matches a specific string of text in a shape or table.
    +        # Corresponds to the JSON property `containsText`
    +        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    +        attr_accessor :contains_text
           
             # If non-empty, limits the matches to page elements only on the given pages.
             # Returns a 400 bad request error if given the page object ID of a
    @@ -867,10 +2965,10 @@ module Google
             # @return [Array]
             attr_accessor :page_object_ids
           
    -        # A criteria that matches a specific string of text in a shape or table.
    -        # Corresponds to the JSON property `containsText`
    -        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    -        attr_accessor :contains_text
    +        # The text that will replace the matched text.
    +        # Corresponds to the JSON property `replaceText`
    +        # @return [String]
    +        attr_accessor :replace_text
           
             def initialize(**args)
                update!(**args)
    @@ -878,9 +2976,9 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @replace_text = args[:replace_text] if args.key?(:replace_text)
    -          @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
               @contains_text = args[:contains_text] if args.key?(:contains_text)
    +          @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
    +          @replace_text = args[:replace_text] if args.key?(:replace_text)
             end
           end
           
    @@ -888,6 +2986,12 @@ module Google
           class Page
             include Google::Apis::Core::Hashable
           
    +        # The properties of Page that are only
    +        # relevant for pages with page_type MASTER.
    +        # Corresponds to the JSON property `masterProperties`
    +        # @return [Google::Apis::SlidesV1::MasterProperties]
    +        attr_accessor :master_properties
    +      
             # The object ID for this page. Object IDs used by
             # Page and
             # PageElement share the same namespace.
    @@ -916,6 +3020,11 @@ module Google
             # @return [Google::Apis::SlidesV1::LayoutProperties]
             attr_accessor :layout_properties
           
    +        # The page elements rendered on the page.
    +        # Corresponds to the JSON property `pageElements`
    +        # @return [Array]
    +        attr_accessor :page_elements
    +      
             # The properties of Page that are only
             # relevant for pages with page_type NOTES.
             # Corresponds to the JSON property `notesProperties`
    @@ -927,17 +3036,6 @@ module Google
             # @return [String]
             attr_accessor :page_type
           
    -        # The page elements rendered on the page.
    -        # Corresponds to the JSON property `pageElements`
    -        # @return [Array]
    -        attr_accessor :page_elements
    -      
    -        # The properties of Page that are only
    -        # relevant for pages with page_type SLIDE.
    -        # Corresponds to the JSON property `slideProperties`
    -        # @return [Google::Apis::SlidesV1::SlideProperties]
    -        attr_accessor :slide_properties
    -      
             # The properties of the Page.
             # The page will inherit properties from the parent page. Depending on the page
             # type the hierarchy is defined in either
    @@ -947,20 +3045,27 @@ module Google
             # @return [Google::Apis::SlidesV1::PageProperties]
             attr_accessor :page_properties
           
    +        # The properties of Page that are only
    +        # relevant for pages with page_type SLIDE.
    +        # Corresponds to the JSON property `slideProperties`
    +        # @return [Google::Apis::SlidesV1::SlideProperties]
    +        attr_accessor :slide_properties
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @master_properties = args[:master_properties] if args.key?(:master_properties)
               @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @revision_id = args[:revision_id] if args.key?(:revision_id)
               @layout_properties = args[:layout_properties] if args.key?(:layout_properties)
    +          @page_elements = args[:page_elements] if args.key?(:page_elements)
               @notes_properties = args[:notes_properties] if args.key?(:notes_properties)
               @page_type = args[:page_type] if args.key?(:page_type)
    -          @page_elements = args[:page_elements] if args.key?(:page_elements)
    -          @slide_properties = args[:slide_properties] if args.key?(:slide_properties)
               @page_properties = args[:page_properties] if args.key?(:page_properties)
    +          @slide_properties = args[:slide_properties] if args.key?(:slide_properties)
             end
           end
           
    @@ -968,14 +3073,6 @@ module Google
           class ShapeBackgroundFill
             include Google::Apis::Core::Hashable
           
    -        # A solid color fill. The page or page element is filled entirely with the
    -        # specified color value.
    -        # If any field is unset, its value may be inherited from a parent placeholder
    -        # if it exists.
    -        # Corresponds to the JSON property `solidFill`
    -        # @return [Google::Apis::SlidesV1::SolidFill]
    -        attr_accessor :solid_fill
    -      
             # The background fill property state.
             # Updating the the fill on a shape will implicitly update this field to
             # `RENDERED`, unless another value is specified in the same request. To
    @@ -985,14 +3082,22 @@ module Google
             # @return [String]
             attr_accessor :property_state
           
    +        # A solid color fill. The page or page element is filled entirely with the
    +        # specified color value.
    +        # If any field is unset, its value may be inherited from a parent placeholder
    +        # if it exists.
    +        # Corresponds to the JSON property `solidFill`
    +        # @return [Google::Apis::SlidesV1::SolidFill]
    +        attr_accessor :solid_fill
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
               @property_state = args[:property_state] if args.key?(:property_state)
    +          @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
             end
           end
           
    @@ -1016,13 +3121,6 @@ module Google
           class CropProperties
             include Google::Apis::Core::Hashable
           
    -        # The offset specifies the left edge of the crop rectangle that is located to
    -        # the right of the original bounding rectangle left edge, relative to the
    -        # object's original width.
    -        # Corresponds to the JSON property `leftOffset`
    -        # @return [Float]
    -        attr_accessor :left_offset
    -      
             # The offset specifies the right edge of the crop rectangle that is located
             # to the left of the original bounding rectangle right edge, relative to the
             # object's original width.
    @@ -1050,17 +3148,24 @@ module Google
             # @return [Float]
             attr_accessor :top_offset
           
    +        # The offset specifies the left edge of the crop rectangle that is located to
    +        # the right of the original bounding rectangle left edge, relative to the
    +        # object's original width.
    +        # Corresponds to the JSON property `leftOffset`
    +        # @return [Float]
    +        attr_accessor :left_offset
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @left_offset = args[:left_offset] if args.key?(:left_offset)
               @right_offset = args[:right_offset] if args.key?(:right_offset)
               @bottom_offset = args[:bottom_offset] if args.key?(:bottom_offset)
               @angle = args[:angle] if args.key?(:angle)
               @top_offset = args[:top_offset] if args.key?(:top_offset)
    +          @left_offset = args[:left_offset] if args.key?(:left_offset)
             end
           end
           
    @@ -1072,26 +3177,16 @@ module Google
           class ReplaceAllShapesWithSheetsChartRequest
             include Google::Apis::Core::Hashable
           
    -        # The ID of the Google Sheets spreadsheet that contains the chart.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
             # The mode with which the chart is linked to the source spreadsheet. When
             # not specified, the chart will be an image that is not linked.
             # Corresponds to the JSON property `linkingMode`
             # @return [String]
             attr_accessor :linking_mode
           
    -        # A criteria that matches a specific string of text in a shape or table.
    -        # Corresponds to the JSON property `containsText`
    -        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    -        attr_accessor :contains_text
    -      
    -        # The ID of the specific chart in the Google Sheets spreadsheet.
    -        # Corresponds to the JSON property `chartId`
    -        # @return [Fixnum]
    -        attr_accessor :chart_id
    +        # The ID of the Google Sheets spreadsheet that contains the chart.
    +        # Corresponds to the JSON property `spreadsheetId`
    +        # @return [String]
    +        attr_accessor :spreadsheet_id
           
             # If non-empty, limits the matches to page elements only on the given pages.
             # Returns a 400 bad request error if given the page object ID of a
    @@ -1102,17 +3197,61 @@ module Google
             # @return [Array]
             attr_accessor :page_object_ids
           
    +        # The ID of the specific chart in the Google Sheets spreadsheet.
    +        # Corresponds to the JSON property `chartId`
    +        # @return [Fixnum]
    +        attr_accessor :chart_id
    +      
    +        # A criteria that matches a specific string of text in a shape or table.
    +        # Corresponds to the JSON property `containsText`
    +        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    +        attr_accessor :contains_text
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
               @linking_mode = args[:linking_mode] if args.key?(:linking_mode)
    -          @contains_text = args[:contains_text] if args.key?(:contains_text)
    -          @chart_id = args[:chart_id] if args.key?(:chart_id)
    +          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
               @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
    +          @chart_id = args[:chart_id] if args.key?(:chart_id)
    +          @contains_text = args[:contains_text] if args.key?(:contains_text)
    +        end
    +      end
    +      
    +      # Specifies a contiguous range of an indexed collection, such as characters in
    +      # text.
    +      class Range
    +        include Google::Apis::Core::Hashable
    +      
    +        # The optional zero-based index of the end of the collection.
    +        # Required for `FIXED_RANGE` ranges.
    +        # Corresponds to the JSON property `endIndex`
    +        # @return [Fixnum]
    +        attr_accessor :end_index
    +      
    +        # The optional zero-based index of the beginning of the collection.
    +        # Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges.
    +        # Corresponds to the JSON property `startIndex`
    +        # @return [Fixnum]
    +        attr_accessor :start_index
    +      
    +        # The type of range.
    +        # 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)
    +          @end_index = args[:end_index] if args.key?(:end_index)
    +          @start_index = args[:start_index] if args.key?(:start_index)
    +          @type = args[:type] if args.key?(:type)
             end
           end
           
    @@ -1120,18 +3259,18 @@ module Google
           class ColorStop
             include Google::Apis::Core::Hashable
           
    -        # The alpha value of this color in the gradient band. Defaults to 1.0,
    -        # fully opaque.
    -        # Corresponds to the JSON property `alpha`
    -        # @return [Float]
    -        attr_accessor :alpha
    -      
             # The relative position of the color stop in the gradient band measured
             # in percentage. The value should be in the interval [0.0, 1.0].
             # Corresponds to the JSON property `position`
             # @return [Float]
             attr_accessor :position
           
    +        # The alpha value of this color in the gradient band. Defaults to 1.0,
    +        # fully opaque.
    +        # Corresponds to the JSON property `alpha`
    +        # @return [Float]
    +        attr_accessor :alpha
    +      
             # A themeable solid color value.
             # Corresponds to the JSON property `color`
             # @return [Google::Apis::SlidesV1::OpaqueColor]
    @@ -1143,50 +3282,21 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @alpha = args[:alpha] if args.key?(:alpha)
               @position = args[:position] if args.key?(:position)
    +          @alpha = args[:alpha] if args.key?(:alpha)
               @color = args[:color] if args.key?(:color)
             end
           end
           
    -      # Specifies a contiguous range of an indexed collection, such as characters in
    -      # text.
    -      class Range
    -        include Google::Apis::Core::Hashable
    -      
    -        # The type of range.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # The optional zero-based index of the beginning of the collection.
    -        # Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges.
    -        # Corresponds to the JSON property `startIndex`
    -        # @return [Fixnum]
    -        attr_accessor :start_index
    -      
    -        # The optional zero-based index of the end of the collection.
    -        # Required for `FIXED_RANGE` ranges.
    -        # Corresponds to the JSON property `endIndex`
    -        # @return [Fixnum]
    -        attr_accessor :end_index
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @type = args[:type] if args.key?(:type)
    -          @start_index = args[:start_index] if args.key?(:start_index)
    -          @end_index = args[:end_index] if args.key?(:end_index)
    -        end
    -      end
    -      
           # Creates a video.
           class CreateVideoRequest
             include Google::Apis::Core::Hashable
           
    +        # The video source.
    +        # Corresponds to the JSON property `source`
    +        # @return [String]
    +        attr_accessor :source
    +      
             # A user-supplied object ID.
             # If you specify an ID, it must be unique among all pages and page elements
             # in the presentation. The ID must start with an alphanumeric character or an
    @@ -1199,11 +3309,6 @@ module Google
             # @return [String]
             attr_accessor :object_id_prop
           
    -        # The video source.
    -        # Corresponds to the JSON property `source`
    -        # @return [String]
    -        attr_accessor :source
    -      
             # Common properties for a page element.
             # Note: When you initially create a
             # PageElement, the API may modify
    @@ -1226,8 +3331,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @source = args[:source] if args.key?(:source)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @element_properties = args[:element_properties] if args.key?(:element_properties)
               @id = args[:id] if args.key?(:id)
             end
    @@ -1270,11 +3375,6 @@ module Google
             # @return [String]
             attr_accessor :replace_method
           
    -        # A criteria that matches a specific string of text in a shape or table.
    -        # Corresponds to the JSON property `containsText`
    -        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    -        attr_accessor :contains_text
    -      
             # If non-empty, limits the matches to page elements only on the given pages.
             # Returns a 400 bad request error if given the page object ID of a
             # notes page or a
    @@ -1284,6 +3384,11 @@ module Google
             # @return [Array]
             attr_accessor :page_object_ids
           
    +        # A criteria that matches a specific string of text in a shape or table.
    +        # Corresponds to the JSON property `containsText`
    +        # @return [Google::Apis::SlidesV1::SubstringMatchCriteria]
    +        attr_accessor :contains_text
    +      
             def initialize(**args)
                update!(**args)
             end
    @@ -1292,8 +3397,8 @@ module Google
             def update!(**args)
               @image_url = args[:image_url] if args.key?(:image_url)
               @replace_method = args[:replace_method] if args.key?(:replace_method)
    -          @contains_text = args[:contains_text] if args.key?(:contains_text)
               @page_object_ids = args[:page_object_ids] if args.key?(:page_object_ids)
    +          @contains_text = args[:contains_text] if args.key?(:contains_text)
             end
           end
           
    @@ -1305,11 +3410,6 @@ module Google
           class Shadow
             include Google::Apis::Core::Hashable
           
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `blurRadius`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :blur_radius
    -      
             # The type of the shadow.
             # Corresponds to the JSON property `type`
             # @return [String]
    @@ -1359,13 +3459,17 @@ module Google
             # @return [String]
             attr_accessor :property_state
           
    +        # A magnitude in a single direction in the specified units.
    +        # Corresponds to the JSON property `blurRadius`
    +        # @return [Google::Apis::SlidesV1::Dimension]
    +        attr_accessor :blur_radius
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @blur_radius = args[:blur_radius] if args.key?(:blur_radius)
               @type = args[:type] if args.key?(:type)
               @transform = args[:transform] if args.key?(:transform)
               @alignment = args[:alignment] if args.key?(:alignment)
    @@ -1373,6 +3477,7 @@ module Google
               @color = args[:color] if args.key?(:color)
               @rotate_with_shape = args[:rotate_with_shape] if args.key?(:rotate_with_shape)
               @property_state = args[:property_state] if args.key?(:property_state)
    +          @blur_radius = args[:blur_radius] if args.key?(:blur_radius)
             end
           end
           
    @@ -1405,6 +3510,16 @@ module Google
           class Bullet
             include Google::Apis::Core::Hashable
           
    +        # The rendered bullet glyph for this paragraph.
    +        # Corresponds to the JSON property `glyph`
    +        # @return [String]
    +        attr_accessor :glyph
    +      
    +        # The nesting level of this paragraph in the list.
    +        # Corresponds to the JSON property `nestingLevel`
    +        # @return [Fixnum]
    +        attr_accessor :nesting_level
    +      
             # Represents the styling that can be applied to a TextRun.
             # If this text is contained in a shape with a parent placeholder, then these
             # text styles may be
    @@ -1429,26 +3544,16 @@ module Google
             # @return [String]
             attr_accessor :list_id
           
    -        # The rendered bullet glyph for this paragraph.
    -        # Corresponds to the JSON property `glyph`
    -        # @return [String]
    -        attr_accessor :glyph
    -      
    -        # The nesting level of this paragraph in the list.
    -        # Corresponds to the JSON property `nestingLevel`
    -        # @return [Fixnum]
    -        attr_accessor :nesting_level
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @bullet_style = args[:bullet_style] if args.key?(:bullet_style)
    -          @list_id = args[:list_id] if args.key?(:list_id)
               @glyph = args[:glyph] if args.key?(:glyph)
               @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
    +          @bullet_style = args[:bullet_style] if args.key?(:bullet_style)
    +          @list_id = args[:list_id] if args.key?(:list_id)
             end
           end
           
    @@ -1497,24 +3602,24 @@ module Google
           class TableCellLocation
             include Google::Apis::Core::Hashable
           
    -        # The 0-based row index.
    -        # Corresponds to the JSON property `rowIndex`
    -        # @return [Fixnum]
    -        attr_accessor :row_index
    -      
             # The 0-based column index.
             # Corresponds to the JSON property `columnIndex`
             # @return [Fixnum]
             attr_accessor :column_index
           
    +        # The 0-based row index.
    +        # Corresponds to the JSON property `rowIndex`
    +        # @return [Fixnum]
    +        attr_accessor :row_index
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @row_index = args[:row_index] if args.key?(:row_index)
               @column_index = args[:column_index] if args.key?(:column_index)
    +          @row_index = args[:row_index] if args.key?(:row_index)
             end
           end
           
    @@ -1542,10 +3647,28 @@ module Google
           class UpdateParagraphStyleRequest
             include Google::Apis::Core::Hashable
           
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    +        # The fields that should be updated.
    +        # At least one field must be specified. The root `style` is implied and
    +        # should not be specified. A single `"*"` can be used as short-hand for
    +        # listing every field.
    +        # For example, to update the paragraph alignment, set `fields` to
    +        # `"alignment"`.
    +        # To reset a property to its default value, include its field name in the
    +        # field mask but leave the field itself unset.
    +        # Corresponds to the JSON property `fields`
    +        # @return [String]
    +        attr_accessor :fields
    +      
    +        # Specifies a contiguous range of an indexed collection, such as characters in
    +        # text.
    +        # Corresponds to the JSON property `textRange`
    +        # @return [Google::Apis::SlidesV1::Range]
    +        attr_accessor :text_range
    +      
    +        # The object ID of the shape or table with the text to be styled.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
           
             # Styles that apply to a whole paragraph.
             # If this text is contained in a shape with a parent placeholder, then these
    @@ -1562,28 +3685,10 @@ module Google
             # @return [Google::Apis::SlidesV1::ParagraphStyle]
             attr_accessor :style
           
    -        # The fields that should be updated.
    -        # At least one field must be specified. The root `style` is implied and
    -        # should not be specified. A single `"*"` can be used as short-hand for
    -        # listing every field.
    -        # For example, to update the paragraph alignment, set `fields` to
    -        # `"alignment"`.
    -        # To reset a property to its default value, include its field name in the
    -        # field mask but leave the field itself unset.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The object ID of the shape or table with the text to be styled.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Specifies a contiguous range of an indexed collection, such as characters in
    -        # text.
    -        # Corresponds to the JSON property `textRange`
    -        # @return [Google::Apis::SlidesV1::Range]
    -        attr_accessor :text_range
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
           
             def initialize(**args)
                update!(**args)
    @@ -1591,11 +3696,11 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @style = args[:style] if args.key?(:style)
               @fields = args[:fields] if args.key?(:fields)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @text_range = args[:text_range] if args.key?(:text_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @style = args[:style] if args.key?(:style)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
             end
           end
           
    @@ -1623,10 +3728,10 @@ module Google
           class Shape
             include Google::Apis::Core::Hashable
           
    -        # The type of the shape.
    -        # Corresponds to the JSON property `shapeType`
    -        # @return [String]
    -        attr_accessor :shape_type
    +        # The placeholder information that uniquely identifies a placeholder shape.
    +        # Corresponds to the JSON property `placeholder`
    +        # @return [Google::Apis::SlidesV1::Placeholder]
    +        attr_accessor :placeholder
           
             # The general text content. The text must reside in a compatible shape (e.g.
             # text box or rectangle) or a table cell in a page.
    @@ -1634,10 +3739,10 @@ module Google
             # @return [Google::Apis::SlidesV1::TextContent]
             attr_accessor :text
           
    -        # The placeholder information that uniquely identifies a placeholder shape.
    -        # Corresponds to the JSON property `placeholder`
    -        # @return [Google::Apis::SlidesV1::Placeholder]
    -        attr_accessor :placeholder
    +        # The type of the shape.
    +        # Corresponds to the JSON property `shapeType`
    +        # @return [String]
    +        attr_accessor :shape_type
           
             # The properties of a Shape.
             # If the shape is a placeholder shape as determined by the
    @@ -1655,9 +3760,9 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @shape_type = args[:shape_type] if args.key?(:shape_type)
    -          @text = args[:text] if args.key?(:text)
               @placeholder = args[:placeholder] if args.key?(:placeholder)
    +          @text = args[:text] if args.key?(:text)
    +          @shape_type = args[:shape_type] if args.key?(:shape_type)
               @shape_properties = args[:shape_properties] if args.key?(:shape_properties)
             end
           end
    @@ -1667,11 +3772,6 @@ module Google
           class Image
             include Google::Apis::Core::Hashable
           
    -        # The properties of the Image.
    -        # Corresponds to the JSON property `imageProperties`
    -        # @return [Google::Apis::SlidesV1::ImageProperties]
    -        attr_accessor :image_properties
    -      
             # An URL to an image with a default lifetime of 30 minutes.
             # This URL is tagged with the account of the requester. Anyone with the URL
             # effectively accesses the image as the original requester. Access to the
    @@ -1680,14 +3780,19 @@ module Google
             # @return [String]
             attr_accessor :content_url
           
    +        # The properties of the Image.
    +        # Corresponds to the JSON property `imageProperties`
    +        # @return [Google::Apis::SlidesV1::ImageProperties]
    +        attr_accessor :image_properties
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @image_properties = args[:image_properties] if args.key?(:image_properties)
               @content_url = args[:content_url] if args.key?(:content_url)
    +          @image_properties = args[:image_properties] if args.key?(:image_properties)
             end
           end
           
    @@ -1703,6 +3808,16 @@ module Google
           class AffineTransform
             include Google::Apis::Core::Hashable
           
    +        # The X coordinate shearing element.
    +        # Corresponds to the JSON property `shearX`
    +        # @return [Float]
    +        attr_accessor :shear_x
    +      
    +        # The Y coordinate scaling element.
    +        # Corresponds to the JSON property `scaleY`
    +        # @return [Float]
    +        attr_accessor :scale_y
    +      
             # The Y coordinate translation element.
             # Corresponds to the JSON property `translateY`
             # @return [Float]
    @@ -1728,29 +3843,19 @@ module Google
             # @return [Float]
             attr_accessor :scale_x
           
    -        # The X coordinate shearing element.
    -        # Corresponds to the JSON property `shearX`
    -        # @return [Float]
    -        attr_accessor :shear_x
    -      
    -        # The Y coordinate scaling element.
    -        # Corresponds to the JSON property `scaleY`
    -        # @return [Float]
    -        attr_accessor :scale_y
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @shear_x = args[:shear_x] if args.key?(:shear_x)
    +          @scale_y = args[:scale_y] if args.key?(:scale_y)
               @translate_y = args[:translate_y] if args.key?(:translate_y)
               @translate_x = args[:translate_x] if args.key?(:translate_x)
               @shear_y = args[:shear_y] if args.key?(:shear_y)
               @unit = args[:unit] if args.key?(:unit)
               @scale_x = args[:scale_x] if args.key?(:scale_x)
    -          @shear_x = args[:shear_x] if args.key?(:shear_x)
    -          @scale_y = args[:scale_y] if args.key?(:scale_y)
             end
           end
           
    @@ -1758,11 +3863,6 @@ module Google
           class InsertTextRequest
             include Google::Apis::Core::Hashable
           
    -        # The object ID of the shape or table where the text will be inserted.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
             # The text to be inserted.
             # Inserting a newline character will implicitly create a new
             # ParagraphMarker at that index.
    @@ -1779,6 +3879,11 @@ module Google
             # @return [String]
             attr_accessor :text
           
    +        # The object ID of the shape or table where the text will be inserted.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
             # The index where the text will be inserted, in Unicode code units, based
             # on TextElement indexes.
             # The index is zero-based and is computed from the start of the string.
    @@ -1800,8 +3905,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @text = args[:text] if args.key?(:text)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
               @cell_location = args[:cell_location] if args.key?(:cell_location)
             end
    @@ -1811,16 +3916,16 @@ module Google
           class AutoText
             include Google::Apis::Core::Hashable
           
    -        # The type of this auto text.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
             # The rendered content of this auto text, if available.
             # Corresponds to the JSON property `content`
             # @return [String]
             attr_accessor :content
           
    +        # The type of this auto text.
    +        # Corresponds to the JSON property `type`
    +        # @return [String]
    +        attr_accessor :type
    +      
             # Represents the styling that can be applied to a TextRun.
             # If this text is contained in a shape with a parent placeholder, then these
             # text styles may be
    @@ -1846,8 +3951,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @type = args[:type] if args.key?(:type)
               @content = args[:content] if args.key?(:content)
    +          @type = args[:type] if args.key?(:type)
               @style = args[:style] if args.key?(:style)
             end
           end
    @@ -1871,47 +3976,10 @@ module Google
             end
           end
           
    -      # Deletes text from a shape or a table cell.
    -      class DeleteTextRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the shape or table from which the text will be deleted.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Specifies a contiguous range of an indexed collection, such as characters in
    -        # text.
    -        # Corresponds to the JSON property `textRange`
    -        # @return [Google::Apis::SlidesV1::Range]
    -        attr_accessor :text_range
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @text_range = args[:text_range] if args.key?(:text_range)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -        end
    -      end
    -      
           # Updates the transform of a page element.
           class UpdatePageElementTransformRequest
             include Google::Apis::Core::Hashable
           
    -        # The object ID of the page element to update.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
             # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
             # to transform source coordinates (x,y) into destination coordinates (x', y')
             # according to:
    @@ -1925,6 +3993,11 @@ module Google
             # @return [Google::Apis::SlidesV1::AffineTransform]
             attr_accessor :transform
           
    +        # The object ID of the page element to update.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
             # The apply mode of the transform update.
             # Corresponds to the JSON property `applyMode`
             # @return [String]
    @@ -1936,12 +4009,44 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @transform = args[:transform] if args.key?(:transform)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
               @apply_mode = args[:apply_mode] if args.key?(:apply_mode)
             end
           end
           
    +      # Deletes text from a shape or a table cell.
    +      class DeleteTextRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Specifies a contiguous range of an indexed collection, such as characters in
    +        # text.
    +        # Corresponds to the JSON property `textRange`
    +        # @return [Google::Apis::SlidesV1::Range]
    +        attr_accessor :text_range
    +      
    +        # The object ID of the shape or table from which the text will be deleted.
    +        # Corresponds to the JSON property `objectId`
    +        # @return [String]
    +        attr_accessor :object_id_prop
    +      
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @text_range = args[:text_range] if args.key?(:text_range)
    +          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
    +        end
    +      end
    +      
           # Deletes an object, either pages or
           # page elements, from the
           # presentation.
    @@ -1967,6 +4072,52 @@ module Google
             end
           end
           
    +      # A TextElement describes the content of a range of indices in the text content
    +      # of a Shape or TableCell.
    +      class TextElement
    +        include Google::Apis::Core::Hashable
    +      
    +        # The zero-based end index of this text element, exclusive, in Unicode code
    +        # units.
    +        # Corresponds to the JSON property `endIndex`
    +        # @return [Fixnum]
    +        attr_accessor :end_index
    +      
    +        # The zero-based start index of this text element, in Unicode code units.
    +        # Corresponds to the JSON property `startIndex`
    +        # @return [Fixnum]
    +        attr_accessor :start_index
    +      
    +        # A TextElement kind that represents a run of text that all has the same
    +        # styling.
    +        # Corresponds to the JSON property `textRun`
    +        # @return [Google::Apis::SlidesV1::TextRun]
    +        attr_accessor :text_run
    +      
    +        # A TextElement kind that represents auto text.
    +        # Corresponds to the JSON property `autoText`
    +        # @return [Google::Apis::SlidesV1::AutoText]
    +        attr_accessor :auto_text
    +      
    +        # A TextElement kind that represents the beginning of a new paragraph.
    +        # Corresponds to the JSON property `paragraphMarker`
    +        # @return [Google::Apis::SlidesV1::ParagraphMarker]
    +        attr_accessor :paragraph_marker
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @end_index = args[:end_index] if args.key?(:end_index)
    +          @start_index = args[:start_index] if args.key?(:start_index)
    +          @text_run = args[:text_run] if args.key?(:text_run)
    +          @auto_text = args[:auto_text] if args.key?(:auto_text)
    +          @paragraph_marker = args[:paragraph_marker] if args.key?(:paragraph_marker)
    +        end
    +      end
    +      
           # A magnitude in a single direction in the specified units.
           class Dimension
             include Google::Apis::Core::Hashable
    @@ -1992,52 +4143,6 @@ module Google
             end
           end
           
    -      # A TextElement describes the content of a range of indices in the text content
    -      # of a Shape or TableCell.
    -      class TextElement
    -        include Google::Apis::Core::Hashable
    -      
    -        # A TextElement kind that represents a run of text that all has the same
    -        # styling.
    -        # Corresponds to the JSON property `textRun`
    -        # @return [Google::Apis::SlidesV1::TextRun]
    -        attr_accessor :text_run
    -      
    -        # A TextElement kind that represents auto text.
    -        # Corresponds to the JSON property `autoText`
    -        # @return [Google::Apis::SlidesV1::AutoText]
    -        attr_accessor :auto_text
    -      
    -        # A TextElement kind that represents the beginning of a new paragraph.
    -        # Corresponds to the JSON property `paragraphMarker`
    -        # @return [Google::Apis::SlidesV1::ParagraphMarker]
    -        attr_accessor :paragraph_marker
    -      
    -        # The zero-based start index of this text element, in Unicode code units.
    -        # Corresponds to the JSON property `startIndex`
    -        # @return [Fixnum]
    -        attr_accessor :start_index
    -      
    -        # The zero-based end index of this text element, exclusive, in Unicode code
    -        # units.
    -        # Corresponds to the JSON property `endIndex`
    -        # @return [Fixnum]
    -        attr_accessor :end_index
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @text_run = args[:text_run] if args.key?(:text_run)
    -          @auto_text = args[:auto_text] if args.key?(:auto_text)
    -          @paragraph_marker = args[:paragraph_marker] if args.key?(:paragraph_marker)
    -          @start_index = args[:start_index] if args.key?(:start_index)
    -          @end_index = args[:end_index] if args.key?(:end_index)
    -        end
    -      end
    -      
           # The fill of the line.
           class LineFill
             include Google::Apis::Core::Hashable
    @@ -2087,11 +4192,6 @@ module Google
           class InsertTableRowsRequest
             include Google::Apis::Core::Hashable
           
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
             # The table to insert rows into.
             # Corresponds to the JSON property `tableObjectId`
             # @return [String]
    @@ -2110,16 +4210,21 @@ module Google
             # @return [Fixnum]
             attr_accessor :number
           
    +        # A location of a single table cell within a table.
    +        # Corresponds to the JSON property `cellLocation`
    +        # @return [Google::Apis::SlidesV1::TableCellLocation]
    +        attr_accessor :cell_location
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
               @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
               @insert_below = args[:insert_below] if args.key?(:insert_below)
               @number = args[:number] if args.key?(:number)
    +          @cell_location = args[:cell_location] if args.key?(:cell_location)
             end
           end
           
    @@ -2128,6 +4233,11 @@ module Google
           class LayoutProperties
             include Google::Apis::Core::Hashable
           
    +        # The object ID of the master that this layout is based on.
    +        # Corresponds to the JSON property `masterObjectId`
    +        # @return [String]
    +        attr_accessor :master_object_id
    +      
             # The name of the layout.
             # Corresponds to the JSON property `name`
             # @return [String]
    @@ -2138,20 +4248,15 @@ module Google
             # @return [String]
             attr_accessor :display_name
           
    -        # The object ID of the master that this layout is based on.
    -        # Corresponds to the JSON property `masterObjectId`
    -        # @return [String]
    -        attr_accessor :master_object_id
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @master_object_id = args[:master_object_id] if args.key?(:master_object_id)
               @name = args[:name] if args.key?(:name)
               @display_name = args[:display_name] if args.key?(:display_name)
    -          @master_object_id = args[:master_object_id] if args.key?(:master_object_id)
             end
           end
           
    @@ -2161,26 +4266,6 @@ module Google
           class LineProperties
             include Google::Apis::Core::Hashable
           
    -        # The dash style of the line.
    -        # Corresponds to the JSON property `dashStyle`
    -        # @return [String]
    -        attr_accessor :dash_style
    -      
    -        # A hypertext link.
    -        # Corresponds to the JSON property `link`
    -        # @return [Google::Apis::SlidesV1::Link]
    -        attr_accessor :link
    -      
    -        # The style of the arrow at the beginning of the line.
    -        # Corresponds to the JSON property `startArrow`
    -        # @return [String]
    -        attr_accessor :start_arrow
    -      
    -        # The style of the arrow at the end of the line.
    -        # Corresponds to the JSON property `endArrow`
    -        # @return [String]
    -        attr_accessor :end_arrow
    -      
             # A magnitude in a single direction in the specified units.
             # Corresponds to the JSON property `weight`
             # @return [Google::Apis::SlidesV1::Dimension]
    @@ -2191,18 +4276,38 @@ module Google
             # @return [Google::Apis::SlidesV1::LineFill]
             attr_accessor :line_fill
           
    +        # A hypertext link.
    +        # Corresponds to the JSON property `link`
    +        # @return [Google::Apis::SlidesV1::Link]
    +        attr_accessor :link
    +      
    +        # The dash style of the line.
    +        # Corresponds to the JSON property `dashStyle`
    +        # @return [String]
    +        attr_accessor :dash_style
    +      
    +        # The style of the arrow at the end of the line.
    +        # Corresponds to the JSON property `endArrow`
    +        # @return [String]
    +        attr_accessor :end_arrow
    +      
    +        # The style of the arrow at the beginning of the line.
    +        # Corresponds to the JSON property `startArrow`
    +        # @return [String]
    +        attr_accessor :start_arrow
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @dash_style = args[:dash_style] if args.key?(:dash_style)
    -          @link = args[:link] if args.key?(:link)
    -          @start_arrow = args[:start_arrow] if args.key?(:start_arrow)
    -          @end_arrow = args[:end_arrow] if args.key?(:end_arrow)
               @weight = args[:weight] if args.key?(:weight)
               @line_fill = args[:line_fill] if args.key?(:line_fill)
    +          @link = args[:link] if args.key?(:link)
    +          @dash_style = args[:dash_style] if args.key?(:dash_style)
    +          @end_arrow = args[:end_arrow] if args.key?(:end_arrow)
    +          @start_arrow = args[:start_arrow] if args.key?(:start_arrow)
             end
           end
           
    @@ -2210,11 +4315,6 @@ module Google
           class Presentation
             include Google::Apis::Core::Hashable
           
    -        # A page in a presentation.
    -        # Corresponds to the JSON property `notesMaster`
    -        # @return [Google::Apis::SlidesV1::Page]
    -        attr_accessor :notes_master
    -      
             # The layouts in the presentation. A layout is a template that determines
             # how content is arranged and styled on the slides that inherit from that
             # layout.
    @@ -2276,13 +4376,17 @@ module Google
             # @return [String]
             attr_accessor :revision_id
           
    +        # A page in a presentation.
    +        # Corresponds to the JSON property `notesMaster`
    +        # @return [Google::Apis::SlidesV1::Page]
    +        attr_accessor :notes_master
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @notes_master = args[:notes_master] if args.key?(:notes_master)
               @layouts = args[:layouts] if args.key?(:layouts)
               @title = args[:title] if args.key?(:title)
               @masters = args[:masters] if args.key?(:masters)
    @@ -2291,6 +4395,7 @@ module Google
               @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
               @slides = args[:slides] if args.key?(:slides)
               @revision_id = args[:revision_id] if args.key?(:revision_id)
    +          @notes_master = args[:notes_master] if args.key?(:notes_master)
             end
           end
           
    @@ -2323,26 +4428,6 @@ module Google
           class ImageProperties
             include Google::Apis::Core::Hashable
           
    -        # The shadow properties of a page element.
    -        # If these fields are unset, they may be inherited from a parent placeholder
    -        # if it exists. If there is no parent, the fields will default to the value
    -        # used for new page elements created in the Slides editor, which may depend on
    -        # the page element kind.
    -        # Corresponds to the JSON property `shadow`
    -        # @return [Google::Apis::SlidesV1::Shadow]
    -        attr_accessor :shadow
    -      
    -        # The contrast effect of the image. The value should be in the interval
    -        # [-1.0, 1.0], where 0 means no effect. This property is read-only.
    -        # Corresponds to the JSON property `contrast`
    -        # @return [Float]
    -        attr_accessor :contrast
    -      
    -        # A hypertext link.
    -        # Corresponds to the JSON property `link`
    -        # @return [Google::Apis::SlidesV1::Link]
    -        attr_accessor :link
    -      
             # The crop properties of an object enclosed in a container. For example, an
             # Image.
             # The crop properties is represented by the offsets of four edges which define
    @@ -2391,20 +4476,40 @@ module Google
             # @return [Float]
             attr_accessor :transparency
           
    +        # The shadow properties of a page element.
    +        # If these fields are unset, they may be inherited from a parent placeholder
    +        # if it exists. If there is no parent, the fields will default to the value
    +        # used for new page elements created in the Slides editor, which may depend on
    +        # the page element kind.
    +        # Corresponds to the JSON property `shadow`
    +        # @return [Google::Apis::SlidesV1::Shadow]
    +        attr_accessor :shadow
    +      
    +        # The contrast effect of the image. The value should be in the interval
    +        # [-1.0, 1.0], where 0 means no effect. This property is read-only.
    +        # Corresponds to the JSON property `contrast`
    +        # @return [Float]
    +        attr_accessor :contrast
    +      
    +        # A hypertext link.
    +        # Corresponds to the JSON property `link`
    +        # @return [Google::Apis::SlidesV1::Link]
    +        attr_accessor :link
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @shadow = args[:shadow] if args.key?(:shadow)
    -          @contrast = args[:contrast] if args.key?(:contrast)
    -          @link = args[:link] if args.key?(:link)
               @crop_properties = args[:crop_properties] if args.key?(:crop_properties)
               @recolor = args[:recolor] if args.key?(:recolor)
               @outline = args[:outline] if args.key?(:outline)
               @brightness = args[:brightness] if args.key?(:brightness)
               @transparency = args[:transparency] if args.key?(:transparency)
    +          @shadow = args[:shadow] if args.key?(:shadow)
    +          @contrast = args[:contrast] if args.key?(:contrast)
    +          @link = args[:link] if args.key?(:link)
             end
           end
           
    @@ -2426,2084 +4531,6 @@ module Google
               @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
             end
           end
    -      
    -      # A PageElement kind representing a
    -      # line, curved connector, or bent connector.
    -      class Line
    -        include Google::Apis::Core::Hashable
    -      
    -        # The properties of the Line.
    -        # When unset, these fields default to values that match the appearance of
    -        # new lines created in the Slides editor.
    -        # Corresponds to the JSON property `lineProperties`
    -        # @return [Google::Apis::SlidesV1::LineProperties]
    -        attr_accessor :line_properties
    -      
    -        # The type of the line.
    -        # Corresponds to the JSON property `lineType`
    -        # @return [String]
    -        attr_accessor :line_type
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @line_properties = args[:line_properties] if args.key?(:line_properties)
    -          @line_type = args[:line_type] if args.key?(:line_type)
    -        end
    -      end
    -      
    -      # Response message from a batch update.
    -      class BatchUpdatePresentationResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The reply of the updates.  This maps 1:1 with the updates, although
    -        # replies to some requests may be empty.
    -        # Corresponds to the JSON property `replies`
    -        # @return [Array]
    -        attr_accessor :replies
    -      
    -        # The presentation the updates were applied to.
    -        # Corresponds to the JSON property `presentationId`
    -        # @return [String]
    -        attr_accessor :presentation_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @replies = args[:replies] if args.key?(:replies)
    -          @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
    -        end
    -      end
    -      
    -      # Creates an embedded Google Sheets chart.
    -      # NOTE: Chart creation requires at least one of the spreadsheets.readonly,
    -      # spreadsheets, drive.readonly, or drive OAuth scopes.
    -      class CreateSheetsChartRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The ID of the specific chart in the Google Sheets spreadsheet.
    -        # Corresponds to the JSON property `chartId`
    -        # @return [Fixnum]
    -        attr_accessor :chart_id
    -      
    -        # A user-supplied object ID.
    -        # If specified, the ID must be unique among all pages and page elements in
    -        # the presentation. The ID should start with a word character [a-zA-Z0-9_]
    -        # and then followed by any number of the following characters [a-zA-Z0-9_-:].
    -        # The length of the ID should not be less than 5 or greater than 50.
    -        # If empty, a unique identifier will be generated.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Common properties for a page element.
    -        # Note: When you initially create a
    -        # PageElement, the API may modify
    -        # the values of both `size` and `transform`, but the
    -        # visual size will be unchanged.
    -        # Corresponds to the JSON property `elementProperties`
    -        # @return [Google::Apis::SlidesV1::PageElementProperties]
    -        attr_accessor :element_properties
    -      
    -        # The ID of the Google Sheets spreadsheet that contains the chart.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        # The mode with which the chart is linked to the source spreadsheet. When
    -        # not specified, the chart will be an image that is not linked.
    -        # Corresponds to the JSON property `linkingMode`
    -        # @return [String]
    -        attr_accessor :linking_mode
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @chart_id = args[:chart_id] if args.key?(:chart_id)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @element_properties = args[:element_properties] if args.key?(:element_properties)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    -          @linking_mode = args[:linking_mode] if args.key?(:linking_mode)
    -        end
    -      end
    -      
    -      # The result of creating an image.
    -      class CreateImageResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the created image.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # The properties of Page that are only
    -      # relevant for pages with page_type SLIDE.
    -      class SlideProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the layout that this slide is based on.
    -        # Corresponds to the JSON property `layoutObjectId`
    -        # @return [String]
    -        attr_accessor :layout_object_id
    -      
    -        # The object ID of the master that this slide is based on.
    -        # Corresponds to the JSON property `masterObjectId`
    -        # @return [String]
    -        attr_accessor :master_object_id
    -      
    -        # A page in a presentation.
    -        # Corresponds to the JSON property `notesPage`
    -        # @return [Google::Apis::SlidesV1::Page]
    -        attr_accessor :notes_page
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @layout_object_id = args[:layout_object_id] if args.key?(:layout_object_id)
    -          @master_object_id = args[:master_object_id] if args.key?(:master_object_id)
    -          @notes_page = args[:notes_page] if args.key?(:notes_page)
    -        end
    -      end
    -      
    -      # A single response from an update.
    -      class Response
    -        include Google::Apis::Core::Hashable
    -      
    -        # The response of duplicating an object.
    -        # Corresponds to the JSON property `duplicateObject`
    -        # @return [Google::Apis::SlidesV1::DuplicateObjectResponse]
    -        attr_accessor :duplicate_object
    -      
    -        # The result of creating a shape.
    -        # Corresponds to the JSON property `createShape`
    -        # @return [Google::Apis::SlidesV1::CreateShapeResponse]
    -        attr_accessor :create_shape
    -      
    -        # The result of creating a line.
    -        # Corresponds to the JSON property `createLine`
    -        # @return [Google::Apis::SlidesV1::CreateLineResponse]
    -        attr_accessor :create_line
    -      
    -        # The result of creating an image.
    -        # Corresponds to the JSON property `createImage`
    -        # @return [Google::Apis::SlidesV1::CreateImageResponse]
    -        attr_accessor :create_image
    -      
    -        # The result of creating a video.
    -        # Corresponds to the JSON property `createVideo`
    -        # @return [Google::Apis::SlidesV1::CreateVideoResponse]
    -        attr_accessor :create_video
    -      
    -        # The result of replacing shapes with a Google Sheets chart.
    -        # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse]
    -        attr_accessor :replace_all_shapes_with_sheets_chart
    -      
    -        # The result of creating an embedded Google Sheets chart.
    -        # Corresponds to the JSON property `createSheetsChart`
    -        # @return [Google::Apis::SlidesV1::CreateSheetsChartResponse]
    -        attr_accessor :create_sheets_chart
    -      
    -        # The result of replacing shapes with an image.
    -        # Corresponds to the JSON property `replaceAllShapesWithImage`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse]
    -        attr_accessor :replace_all_shapes_with_image
    -      
    -        # The result of creating a table.
    -        # Corresponds to the JSON property `createTable`
    -        # @return [Google::Apis::SlidesV1::CreateTableResponse]
    -        attr_accessor :create_table
    -      
    -        # The result of replacing text.
    -        # Corresponds to the JSON property `replaceAllText`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllTextResponse]
    -        attr_accessor :replace_all_text
    -      
    -        # The result of creating a slide.
    -        # Corresponds to the JSON property `createSlide`
    -        # @return [Google::Apis::SlidesV1::CreateSlideResponse]
    -        attr_accessor :create_slide
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
    -          @create_shape = args[:create_shape] if args.key?(:create_shape)
    -          @create_line = args[:create_line] if args.key?(:create_line)
    -          @create_image = args[:create_image] if args.key?(:create_image)
    -          @create_video = args[:create_video] if args.key?(:create_video)
    -          @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
    -          @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
    -          @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
    -          @create_table = args[:create_table] if args.key?(:create_table)
    -          @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
    -          @create_slide = args[:create_slide] if args.key?(:create_slide)
    -        end
    -      end
    -      
    -      # A TextElement kind that represents a run of text that all has the same
    -      # styling.
    -      class TextRun
    -        include Google::Apis::Core::Hashable
    -      
    -        # The text of this run.
    -        # Corresponds to the JSON property `content`
    -        # @return [String]
    -        attr_accessor :content
    -      
    -        # Represents the styling that can be applied to a TextRun.
    -        # If this text is contained in a shape with a parent placeholder, then these
    -        # text styles may be
    -        # inherited from the parent. Which text styles are inherited depend on the
    -        # nesting level of lists:
    -        # * A text run in a paragraph that is not in a list will inherit its text style
    -        # from the the newline character in the paragraph at the 0 nesting level of
    -        # the list inside the parent placeholder.
    -        # * A text run in a paragraph that is in a list will inherit its text style
    -        # from the newline character in the paragraph at its corresponding nesting
    -        # level of the list inside the parent placeholder.
    -        # Inherited text styles are represented as unset fields in this message. If
    -        # text is contained in a shape without a parent placeholder, unsetting these
    -        # fields will revert the style to a value matching the defaults in the Slides
    -        # editor.
    -        # Corresponds to the JSON property `style`
    -        # @return [Google::Apis::SlidesV1::TextStyle]
    -        attr_accessor :style
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @content = args[:content] if args.key?(:content)
    -          @style = args[:style] if args.key?(:style)
    -        end
    -      end
    -      
    -      # Slide layout reference. This may reference either:
    -      # - A predefined layout
    -      # - One of the layouts in the presentation.
    -      class LayoutReference
    -        include Google::Apis::Core::Hashable
    -      
    -        # Layout ID: the object ID of one of the layouts in the presentation.
    -        # Corresponds to the JSON property `layoutId`
    -        # @return [String]
    -        attr_accessor :layout_id
    -      
    -        # Predefined layout.
    -        # Corresponds to the JSON property `predefinedLayout`
    -        # @return [String]
    -        attr_accessor :predefined_layout
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @layout_id = args[:layout_id] if args.key?(:layout_id)
    -          @predefined_layout = args[:predefined_layout] if args.key?(:predefined_layout)
    -        end
    -      end
    -      
    -      # A criteria that matches a specific string of text in a shape or table.
    -      class SubstringMatchCriteria
    -        include Google::Apis::Core::Hashable
    -      
    -        # The text to search for in the shape or table.
    -        # Corresponds to the JSON property `text`
    -        # @return [String]
    -        attr_accessor :text
    -      
    -        # Indicates whether the search should respect case:
    -        # - `True`: the search is case sensitive.
    -        # - `False`: the search is case insensitive.
    -        # Corresponds to the JSON property `matchCase`
    -        # @return [Boolean]
    -        attr_accessor :match_case
    -        alias_method :match_case?, :match_case
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @text = args[:text] if args.key?(:text)
    -          @match_case = args[:match_case] if args.key?(:match_case)
    -        end
    -      end
    -      
    -      # A table range represents a reference to a subset of a table.
    -      # It's important to note that the cells specified by a table range do not
    -      # necessarily form a rectangle. For example, let's say we have a 3 x 3 table
    -      # where all the cells of the last row are merged together. The table looks
    -      # like this:
    -      # 
    -      # [             ]
    -      # A table range with location = (0, 0), row span = 3 and column span = 2
    -      # specifies the following cells:
    -      # x     x
    -      # [      x      ]
    -      class TableRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `location`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :location
    -      
    -        # The row span of the table range.
    -        # Corresponds to the JSON property `rowSpan`
    -        # @return [Fixnum]
    -        attr_accessor :row_span
    -      
    -        # The column span of the table range.
    -        # Corresponds to the JSON property `columnSpan`
    -        # @return [Fixnum]
    -        attr_accessor :column_span
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @location = args[:location] if args.key?(:location)
    -          @row_span = args[:row_span] if args.key?(:row_span)
    -          @column_span = args[:column_span] if args.key?(:column_span)
    -        end
    -      end
    -      
    -      # The result of creating a table.
    -      class CreateTableResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the created table.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # Creates a new table.
    -      class CreateTableRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Number of rows in the table.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Fixnum]
    -        attr_accessor :rows
    -      
    -        # A user-supplied object ID.
    -        # If you specify an ID, it must be unique among all pages and page elements
    -        # in the presentation. The ID must start with an alphanumeric character or an
    -        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    -        # may include those as well as a hyphen or colon (matches regex
    -        # `[a-zA-Z0-9_-:]`).
    -        # The length of the ID must not be less than 5 or greater than 50.
    -        # If you don't specify an ID, a unique one is generated.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Number of columns in the table.
    -        # Corresponds to the JSON property `columns`
    -        # @return [Fixnum]
    -        attr_accessor :columns
    -      
    -        # Common properties for a page element.
    -        # Note: When you initially create a
    -        # PageElement, the API may modify
    -        # the values of both `size` and `transform`, but the
    -        # visual size will be unchanged.
    -        # Corresponds to the JSON property `elementProperties`
    -        # @return [Google::Apis::SlidesV1::PageElementProperties]
    -        attr_accessor :element_properties
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @rows = args[:rows] if args.key?(:rows)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @columns = args[:columns] if args.key?(:columns)
    -          @element_properties = args[:element_properties] if args.key?(:element_properties)
    -        end
    -      end
    -      
    -      # A PageElement kind representing a
    -      # table.
    -      class Table
    -        include Google::Apis::Core::Hashable
    -      
    -        # Number of columns in the table.
    -        # Corresponds to the JSON property `columns`
    -        # @return [Fixnum]
    -        attr_accessor :columns
    -      
    -        # Properties and contents of each row.
    -        # Cells that span multiple rows are contained in only one of these rows and
    -        # have a row_span greater
    -        # than 1.
    -        # Corresponds to the JSON property `tableRows`
    -        # @return [Array]
    -        attr_accessor :table_rows
    -      
    -        # Number of rows in the table.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Fixnum]
    -        attr_accessor :rows
    -      
    -        # Properties of each column.
    -        # Corresponds to the JSON property `tableColumns`
    -        # @return [Array]
    -        attr_accessor :table_columns
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @columns = args[:columns] if args.key?(:columns)
    -          @table_rows = args[:table_rows] if args.key?(:table_rows)
    -          @rows = args[:rows] if args.key?(:rows)
    -          @table_columns = args[:table_columns] if args.key?(:table_columns)
    -        end
    -      end
    -      
    -      # The page background fill.
    -      class PageBackgroundFill
    -        include Google::Apis::Core::Hashable
    -      
    -        # A solid color fill. The page or page element is filled entirely with the
    -        # specified color value.
    -        # If any field is unset, its value may be inherited from a parent placeholder
    -        # if it exists.
    -        # Corresponds to the JSON property `solidFill`
    -        # @return [Google::Apis::SlidesV1::SolidFill]
    -        attr_accessor :solid_fill
    -      
    -        # The background fill property state.
    -        # Updating the the fill on a page will implicitly update this field to
    -        # `RENDERED`, unless another value is specified in the same request. To
    -        # have no fill on a page, set this field to `NOT_RENDERED`. In this case,
    -        # any other fill fields set in the same request will be ignored.
    -        # Corresponds to the JSON property `propertyState`
    -        # @return [String]
    -        attr_accessor :property_state
    -      
    -        # The stretched picture fill. The page or page element is filled entirely with
    -        # the specified picture. The picture is stretched to fit its container.
    -        # Corresponds to the JSON property `stretchedPictureFill`
    -        # @return [Google::Apis::SlidesV1::StretchedPictureFill]
    -        attr_accessor :stretched_picture_fill
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
    -          @property_state = args[:property_state] if args.key?(:property_state)
    -          @stretched_picture_fill = args[:stretched_picture_fill] if args.key?(:stretched_picture_fill)
    -        end
    -      end
    -      
    -      # A PageElement kind representing
    -      # a linked chart embedded from Google Sheets.
    -      class SheetsChart
    -        include Google::Apis::Core::Hashable
    -      
    -        # The properties of the SheetsChart.
    -        # Corresponds to the JSON property `sheetsChartProperties`
    -        # @return [Google::Apis::SlidesV1::SheetsChartProperties]
    -        attr_accessor :sheets_chart_properties
    -      
    -        # The URL of an image of the embedded chart, with a default lifetime of 30
    -        # minutes. This URL is tagged with the account of the requester. Anyone with
    -        # the URL effectively accesses the image as the original requester. Access to
    -        # the image may be lost if the presentation's sharing settings change.
    -        # Corresponds to the JSON property `contentUrl`
    -        # @return [String]
    -        attr_accessor :content_url
    -      
    -        # The ID of the Google Sheets spreadsheet that contains the source chart.
    -        # Corresponds to the JSON property `spreadsheetId`
    -        # @return [String]
    -        attr_accessor :spreadsheet_id
    -      
    -        # The ID of the specific chart in the Google Sheets spreadsheet that is
    -        # embedded.
    -        # Corresponds to the JSON property `chartId`
    -        # @return [Fixnum]
    -        attr_accessor :chart_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @sheets_chart_properties = args[:sheets_chart_properties] if args.key?(:sheets_chart_properties)
    -          @content_url = args[:content_url] if args.key?(:content_url)
    -          @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
    -          @chart_id = args[:chart_id] if args.key?(:chart_id)
    -        end
    -      end
    -      
    -      # A solid color fill. The page or page element is filled entirely with the
    -      # specified color value.
    -      # If any field is unset, its value may be inherited from a parent placeholder
    -      # if it exists.
    -      class SolidFill
    -        include Google::Apis::Core::Hashable
    -      
    -        # A themeable solid color value.
    -        # Corresponds to the JSON property `color`
    -        # @return [Google::Apis::SlidesV1::OpaqueColor]
    -        attr_accessor :color
    -      
    -        # The fraction of this `color` that should be applied to the pixel.
    -        # That is, the final pixel color is defined by the equation:
    -        # pixel color = alpha * (color) + (1.0 - alpha) * (background color)
    -        # This means that a value of 1.0 corresponds to a solid color, whereas
    -        # a value of 0.0 corresponds to a completely transparent color.
    -        # Corresponds to the JSON property `alpha`
    -        # @return [Float]
    -        attr_accessor :alpha
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @color = args[:color] if args.key?(:color)
    -          @alpha = args[:alpha] if args.key?(:alpha)
    -        end
    -      end
    -      
    -      # A pair mapping a theme color type to the concrete color it represents.
    -      class ThemeColorPair
    -        include Google::Apis::Core::Hashable
    -      
    -        # The type of the theme color.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # An RGB color.
    -        # Corresponds to the JSON property `color`
    -        # @return [Google::Apis::SlidesV1::RgbColor]
    -        attr_accessor :color
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @type = args[:type] if args.key?(:type)
    -          @color = args[:color] if args.key?(:color)
    -        end
    -      end
    -      
    -      # A color that can either be fully opaque or fully transparent.
    -      class OptionalColor
    -        include Google::Apis::Core::Hashable
    -      
    -        # A themeable solid color value.
    -        # Corresponds to the JSON property `opaqueColor`
    -        # @return [Google::Apis::SlidesV1::OpaqueColor]
    -        attr_accessor :opaque_color
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @opaque_color = args[:opaque_color] if args.key?(:opaque_color)
    -        end
    -      end
    -      
    -      # Common properties for a page element.
    -      # Note: When you initially create a
    -      # PageElement, the API may modify
    -      # the values of both `size` and `transform`, but the
    -      # visual size will be unchanged.
    -      class PageElementProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # A width and height.
    -        # Corresponds to the JSON property `size`
    -        # @return [Google::Apis::SlidesV1::Size]
    -        attr_accessor :size
    -      
    -        # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
    -        # to transform source coordinates (x,y) into destination coordinates (x', y')
    -        # according to:
    -        # x'  x  =   shear_y  scale_y  translate_y
    -        # 1  [ 1 ]
    -        # After transformation,
    -        # x' = scale_x * x + shear_x * y + translate_x;
    -        # y' = scale_y * y + shear_y * x + translate_y;
    -        # This message is therefore composed of these six matrix elements.
    -        # Corresponds to the JSON property `transform`
    -        # @return [Google::Apis::SlidesV1::AffineTransform]
    -        attr_accessor :transform
    -      
    -        # The object ID of the page where the element is located.
    -        # Corresponds to the JSON property `pageObjectId`
    -        # @return [String]
    -        attr_accessor :page_object_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @size = args[:size] if args.key?(:size)
    -          @transform = args[:transform] if args.key?(:transform)
    -          @page_object_id = args[:page_object_id] if args.key?(:page_object_id)
    -        end
    -      end
    -      
    -      # The properties of the SheetsChart.
    -      class SheetsChartProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The properties of the Image.
    -        # Corresponds to the JSON property `chartImageProperties`
    -        # @return [Google::Apis::SlidesV1::ImageProperties]
    -        attr_accessor :chart_image_properties
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @chart_image_properties = args[:chart_image_properties] if args.key?(:chart_image_properties)
    -        end
    -      end
    -      
    -      # The stretched picture fill. The page or page element is filled entirely with
    -      # the specified picture. The picture is stretched to fit its container.
    -      class StretchedPictureFill
    -        include Google::Apis::Core::Hashable
    -      
    -        # Reading the content_url:
    -        # An URL to a picture with a default lifetime of 30 minutes.
    -        # This URL is tagged with the account of the requester. Anyone with the URL
    -        # effectively accesses the picture as the original requester. Access to the
    -        # picture may be lost if the presentation's sharing settings change.
    -        # Writing the content_url:
    -        # The picture is fetched once at insertion time and a copy is stored for
    -        # display inside the presentation. Pictures must be less than 50MB in size,
    -        # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
    -        # format.
    -        # Corresponds to the JSON property `contentUrl`
    -        # @return [String]
    -        attr_accessor :content_url
    -      
    -        # A width and height.
    -        # Corresponds to the JSON property `size`
    -        # @return [Google::Apis::SlidesV1::Size]
    -        attr_accessor :size
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @content_url = args[:content_url] if args.key?(:content_url)
    -          @size = args[:size] if args.key?(:size)
    -        end
    -      end
    -      
    -      # Deletes a column from a table.
    -      class DeleteTableColumnRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        # The table to delete columns from.
    -        # Corresponds to the JSON property `tableObjectId`
    -        # @return [String]
    -        attr_accessor :table_object_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
    -        end
    -      end
    -      
    -      # Update the styling of text in a Shape or
    -      # Table.
    -      class UpdateTextStyleRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        # Represents the styling that can be applied to a TextRun.
    -        # If this text is contained in a shape with a parent placeholder, then these
    -        # text styles may be
    -        # inherited from the parent. Which text styles are inherited depend on the
    -        # nesting level of lists:
    -        # * A text run in a paragraph that is not in a list will inherit its text style
    -        # from the the newline character in the paragraph at the 0 nesting level of
    -        # the list inside the parent placeholder.
    -        # * A text run in a paragraph that is in a list will inherit its text style
    -        # from the newline character in the paragraph at its corresponding nesting
    -        # level of the list inside the parent placeholder.
    -        # Inherited text styles are represented as unset fields in this message. If
    -        # text is contained in a shape without a parent placeholder, unsetting these
    -        # fields will revert the style to a value matching the defaults in the Slides
    -        # editor.
    -        # Corresponds to the JSON property `style`
    -        # @return [Google::Apis::SlidesV1::TextStyle]
    -        attr_accessor :style
    -      
    -        # The fields that should be updated.
    -        # At least one field must be specified. The root `style` is implied and
    -        # should not be specified. A single `"*"` can be used as short-hand for
    -        # listing every field.
    -        # For example, to update the text style to bold, set `fields` to `"bold"`.
    -        # To reset a property to its default value, include its field name in the
    -        # field mask but leave the field itself unset.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The object ID of the shape or table with the text to be styled.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Specifies a contiguous range of an indexed collection, such as characters in
    -        # text.
    -        # Corresponds to the JSON property `textRange`
    -        # @return [Google::Apis::SlidesV1::Range]
    -        attr_accessor :text_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @style = args[:style] if args.key?(:style)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @text_range = args[:text_range] if args.key?(:text_range)
    -        end
    -      end
    -      
    -      # A List describes the look and feel of bullets belonging to paragraphs
    -      # associated with a list. A paragraph that is part of a list has an implicit
    -      # reference to that list's ID.
    -      class List
    -        include Google::Apis::Core::Hashable
    -      
    -        # A map of nesting levels to the properties of bullets at the associated
    -        # level. A list has at most nine levels of nesting, so the possible values
    -        # for the keys of this map are 0 through 8, inclusive.
    -        # Corresponds to the JSON property `nestingLevel`
    -        # @return [Hash]
    -        attr_accessor :nesting_level
    -      
    -        # The ID of the list.
    -        # Corresponds to the JSON property `listId`
    -        # @return [String]
    -        attr_accessor :list_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
    -          @list_id = args[:list_id] if args.key?(:list_id)
    -        end
    -      end
    -      
    -      # Represents a font family and weight used to style a TextRun.
    -      class WeightedFontFamily
    -        include Google::Apis::Core::Hashable
    -      
    -        # The font family of the text.
    -        # The font family can be any font from the Font menu in Slides or from
    -        # [Google Fonts] (https://fonts.google.com/). If the font name is
    -        # unrecognized, the text is rendered in `Arial`.
    -        # Corresponds to the JSON property `fontFamily`
    -        # @return [String]
    -        attr_accessor :font_family
    -      
    -        # The rendered weight of the text. This field can have any value that is a
    -        # multiple of `100` between `100` and `900`, inclusive. This range
    -        # corresponds to the numerical values described in the CSS 2.1
    -        # Specification, [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-
    -        # boldness),
    -        # with non-numerical values disallowed. Weights greater than or equal to
    -        # `700` are considered bold, and weights less than `700`are not bold. The
    -        # default value is `400` ("normal").
    -        # Corresponds to the JSON property `weight`
    -        # @return [Fixnum]
    -        attr_accessor :weight
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @font_family = args[:font_family] if args.key?(:font_family)
    -          @weight = args[:weight] if args.key?(:weight)
    -        end
    -      end
    -      
    -      # A visual element rendered on a page.
    -      class PageElement
    -        include Google::Apis::Core::Hashable
    -      
    -        # A PageElement kind representing a
    -        # joined collection of PageElements.
    -        # Corresponds to the JSON property `elementGroup`
    -        # @return [Google::Apis::SlidesV1::Group]
    -        attr_accessor :element_group
    -      
    -        # A PageElement kind representing an
    -        # image.
    -        # Corresponds to the JSON property `image`
    -        # @return [Google::Apis::SlidesV1::Image]
    -        attr_accessor :image
    -      
    -        # A width and height.
    -        # Corresponds to the JSON property `size`
    -        # @return [Google::Apis::SlidesV1::Size]
    -        attr_accessor :size
    -      
    -        # The title of the page element. Combined with description to display alt
    -        # text.
    -        # Corresponds to the JSON property `title`
    -        # @return [String]
    -        attr_accessor :title
    -      
    -        # A PageElement kind representing
    -        # a linked chart embedded from Google Sheets.
    -        # Corresponds to the JSON property `sheetsChart`
    -        # @return [Google::Apis::SlidesV1::SheetsChart]
    -        attr_accessor :sheets_chart
    -      
    -        # A PageElement kind representing a
    -        # video.
    -        # Corresponds to the JSON property `video`
    -        # @return [Google::Apis::SlidesV1::Video]
    -        attr_accessor :video
    -      
    -        # A PageElement kind representing
    -        # word art.
    -        # Corresponds to the JSON property `wordArt`
    -        # @return [Google::Apis::SlidesV1::WordArt]
    -        attr_accessor :word_art
    -      
    -        # A PageElement kind representing a
    -        # table.
    -        # Corresponds to the JSON property `table`
    -        # @return [Google::Apis::SlidesV1::Table]
    -        attr_accessor :table
    -      
    -        # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
    -        # to transform source coordinates (x,y) into destination coordinates (x', y')
    -        # according to:
    -        # x'  x  =   shear_y  scale_y  translate_y
    -        # 1  [ 1 ]
    -        # After transformation,
    -        # x' = scale_x * x + shear_x * y + translate_x;
    -        # y' = scale_y * y + shear_y * x + translate_y;
    -        # This message is therefore composed of these six matrix elements.
    -        # Corresponds to the JSON property `transform`
    -        # @return [Google::Apis::SlidesV1::AffineTransform]
    -        attr_accessor :transform
    -      
    -        # The object ID for this page element. Object IDs used by
    -        # google.apps.slides.v1.Page and
    -        # google.apps.slides.v1.PageElement share the same namespace.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # A PageElement kind representing a
    -        # generic shape that does not have a more specific classification.
    -        # Corresponds to the JSON property `shape`
    -        # @return [Google::Apis::SlidesV1::Shape]
    -        attr_accessor :shape
    -      
    -        # A PageElement kind representing a
    -        # line, curved connector, or bent connector.
    -        # Corresponds to the JSON property `line`
    -        # @return [Google::Apis::SlidesV1::Line]
    -        attr_accessor :line
    -      
    -        # The description of the page element. Combined with title to display alt
    -        # text.
    -        # 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)
    -          @element_group = args[:element_group] if args.key?(:element_group)
    -          @image = args[:image] if args.key?(:image)
    -          @size = args[:size] if args.key?(:size)
    -          @title = args[:title] if args.key?(:title)
    -          @sheets_chart = args[:sheets_chart] if args.key?(:sheets_chart)
    -          @video = args[:video] if args.key?(:video)
    -          @word_art = args[:word_art] if args.key?(:word_art)
    -          @table = args[:table] if args.key?(:table)
    -          @transform = args[:transform] if args.key?(:transform)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @shape = args[:shape] if args.key?(:shape)
    -          @line = args[:line] if args.key?(:line)
    -          @description = args[:description] if args.key?(:description)
    -        end
    -      end
    -      
    -      # Creates an image.
    -      class CreateImageRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A user-supplied object ID.
    -        # If you specify an ID, it must be unique among all pages and page elements
    -        # in the presentation. The ID must start with an alphanumeric character or an
    -        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    -        # may include those as well as a hyphen or colon (matches regex
    -        # `[a-zA-Z0-9_-:]`).
    -        # The length of the ID must not be less than 5 or greater than 50.
    -        # If you don't specify an ID, a unique one is generated.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Common properties for a page element.
    -        # Note: When you initially create a
    -        # PageElement, the API may modify
    -        # the values of both `size` and `transform`, but the
    -        # visual size will be unchanged.
    -        # Corresponds to the JSON property `elementProperties`
    -        # @return [Google::Apis::SlidesV1::PageElementProperties]
    -        attr_accessor :element_properties
    -      
    -        # The image URL.
    -        # The image is fetched once at insertion time and a copy is stored for
    -        # display inside the presentation. Images must be less than 50MB in size,
    -        # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
    -        # format.
    -        # 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)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @element_properties = args[:element_properties] if args.key?(:element_properties)
    -          @url = args[:url] if args.key?(:url)
    -        end
    -      end
    -      
    -      # Creates bullets for all of the paragraphs that overlap with the given
    -      # text index range.
    -      # The nesting level of each paragraph will be determined by counting leading
    -      # tabs in front of each paragraph. To avoid excess space between the bullet and
    -      # the corresponding paragraph, these leading tabs are removed by this request.
    -      # This may change the indices of parts of the text.
    -      # If the paragraph immediately before paragraphs being updated is in a list
    -      # with a matching preset, the paragraphs being updated are added to that
    -      # preceding list.
    -      class CreateParagraphBulletsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The kinds of bullet glyphs to be used. Defaults to the
    -        # `BULLET_DISC_CIRCLE_SQUARE` preset.
    -        # Corresponds to the JSON property `bulletPreset`
    -        # @return [String]
    -        attr_accessor :bullet_preset
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        # The object ID of the shape or table containing the text to add bullets to.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Specifies a contiguous range of an indexed collection, such as characters in
    -        # text.
    -        # Corresponds to the JSON property `textRange`
    -        # @return [Google::Apis::SlidesV1::Range]
    -        attr_accessor :text_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @bullet_preset = args[:bullet_preset] if args.key?(:bullet_preset)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @text_range = args[:text_range] if args.key?(:text_range)
    -        end
    -      end
    -      
    -      # A width and height.
    -      class Size
    -        include Google::Apis::Core::Hashable
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `width`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :width
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `height`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :height
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @width = args[:width] if args.key?(:width)
    -          @height = args[:height] if args.key?(:height)
    -        end
    -      end
    -      
    -      # Represents the styling that can be applied to a TextRun.
    -      # If this text is contained in a shape with a parent placeholder, then these
    -      # text styles may be
    -      # inherited from the parent. Which text styles are inherited depend on the
    -      # nesting level of lists:
    -      # * A text run in a paragraph that is not in a list will inherit its text style
    -      # from the the newline character in the paragraph at the 0 nesting level of
    -      # the list inside the parent placeholder.
    -      # * A text run in a paragraph that is in a list will inherit its text style
    -      # from the newline character in the paragraph at its corresponding nesting
    -      # level of the list inside the parent placeholder.
    -      # Inherited text styles are represented as unset fields in this message. If
    -      # text is contained in a shape without a parent placeholder, unsetting these
    -      # fields will revert the style to a value matching the defaults in the Slides
    -      # editor.
    -      class TextStyle
    -        include Google::Apis::Core::Hashable
    -      
    -        # Whether or not the text is in small capital letters.
    -        # Corresponds to the JSON property `smallCaps`
    -        # @return [Boolean]
    -        attr_accessor :small_caps
    -        alias_method :small_caps?, :small_caps
    -      
    -        # A color that can either be fully opaque or fully transparent.
    -        # Corresponds to the JSON property `backgroundColor`
    -        # @return [Google::Apis::SlidesV1::OptionalColor]
    -        attr_accessor :background_color
    -      
    -        # Whether or not the text is underlined.
    -        # Corresponds to the JSON property `underline`
    -        # @return [Boolean]
    -        attr_accessor :underline
    -        alias_method :underline?, :underline
    -      
    -        # A hypertext link.
    -        # Corresponds to the JSON property `link`
    -        # @return [Google::Apis::SlidesV1::Link]
    -        attr_accessor :link
    -      
    -        # A color that can either be fully opaque or fully transparent.
    -        # Corresponds to the JSON property `foregroundColor`
    -        # @return [Google::Apis::SlidesV1::OptionalColor]
    -        attr_accessor :foreground_color
    -      
    -        # Whether or not the text is rendered as bold.
    -        # Corresponds to the JSON property `bold`
    -        # @return [Boolean]
    -        attr_accessor :bold
    -        alias_method :bold?, :bold
    -      
    -        # The font family of the text.
    -        # The font family can be any font from the Font menu in Slides or from
    -        # [Google Fonts] (https://fonts.google.com/). If the font name is
    -        # unrecognized, the text is rendered in `Arial`.
    -        # Some fonts can affect the weight of the text. If an update request
    -        # specifies values for both `font_family` and `bold`, the explicitly-set
    -        # `bold` value is used.
    -        # Corresponds to the JSON property `fontFamily`
    -        # @return [String]
    -        attr_accessor :font_family
    -      
    -        # Whether or not the text is struck through.
    -        # Corresponds to the JSON property `strikethrough`
    -        # @return [Boolean]
    -        attr_accessor :strikethrough
    -        alias_method :strikethrough?, :strikethrough
    -      
    -        # Whether or not the text is italicized.
    -        # Corresponds to the JSON property `italic`
    -        # @return [Boolean]
    -        attr_accessor :italic
    -        alias_method :italic?, :italic
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `fontSize`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :font_size
    -      
    -        # The text's vertical offset from its normal position.
    -        # Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically
    -        # rendered in a smaller font size, computed based on the `font_size` field.
    -        # The `font_size` itself is not affected by changes in this field.
    -        # Corresponds to the JSON property `baselineOffset`
    -        # @return [String]
    -        attr_accessor :baseline_offset
    -      
    -        # Represents a font family and weight used to style a TextRun.
    -        # Corresponds to the JSON property `weightedFontFamily`
    -        # @return [Google::Apis::SlidesV1::WeightedFontFamily]
    -        attr_accessor :weighted_font_family
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @small_caps = args[:small_caps] if args.key?(:small_caps)
    -          @background_color = args[:background_color] if args.key?(:background_color)
    -          @underline = args[:underline] if args.key?(:underline)
    -          @link = args[:link] if args.key?(:link)
    -          @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
    -          @bold = args[:bold] if args.key?(:bold)
    -          @font_family = args[:font_family] if args.key?(:font_family)
    -          @strikethrough = args[:strikethrough] if args.key?(:strikethrough)
    -          @italic = args[:italic] if args.key?(:italic)
    -          @font_size = args[:font_size] if args.key?(:font_size)
    -          @baseline_offset = args[:baseline_offset] if args.key?(:baseline_offset)
    -          @weighted_font_family = args[:weighted_font_family] if args.key?(:weighted_font_family)
    -        end
    -      end
    -      
    -      # Update the properties of a Video.
    -      class UpdateVideoPropertiesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The properties of the Video.
    -        # Corresponds to the JSON property `videoProperties`
    -        # @return [Google::Apis::SlidesV1::VideoProperties]
    -        attr_accessor :video_properties
    -      
    -        # The fields that should be updated.
    -        # At least one field must be specified. The root `videoProperties` is
    -        # implied and should not be specified. A single `"*"` can be used as
    -        # short-hand for listing every field.
    -        # For example to update the video outline color, set `fields` to
    -        # `"outline.outlineFill.solidFill.color"`.
    -        # To reset a property to its default value, include its field name in the
    -        # field mask but leave the field itself unset.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The object ID of the video the updates are applied to.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @video_properties = args[:video_properties] if args.key?(:video_properties)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # A single kind of update to apply to a presentation.
    -      class Request
    -        include Google::Apis::Core::Hashable
    -      
    -        # Deletes a row from a table.
    -        # Corresponds to the JSON property `deleteTableRow`
    -        # @return [Google::Apis::SlidesV1::DeleteTableRowRequest]
    -        attr_accessor :delete_table_row
    -      
    -        # Update the properties of a Shape.
    -        # Corresponds to the JSON property `updateShapeProperties`
    -        # @return [Google::Apis::SlidesV1::UpdateShapePropertiesRequest]
    -        attr_accessor :update_shape_properties
    -      
    -        # Inserts text into a shape or a table cell.
    -        # Corresponds to the JSON property `insertText`
    -        # @return [Google::Apis::SlidesV1::InsertTextRequest]
    -        attr_accessor :insert_text
    -      
    -        # Deletes text from a shape or a table cell.
    -        # Corresponds to the JSON property `deleteText`
    -        # @return [Google::Apis::SlidesV1::DeleteTextRequest]
    -        attr_accessor :delete_text
    -      
    -        # Updates the properties of a Page.
    -        # Corresponds to the JSON property `updatePageProperties`
    -        # @return [Google::Apis::SlidesV1::UpdatePagePropertiesRequest]
    -        attr_accessor :update_page_properties
    -      
    -        # Deletes bullets from all of the paragraphs that overlap with the given text
    -        # index range.
    -        # The nesting level of each paragraph will be visually preserved by adding
    -        # indent to the start of the corresponding paragraph.
    -        # Corresponds to the JSON property `deleteParagraphBullets`
    -        # @return [Google::Apis::SlidesV1::DeleteParagraphBulletsRequest]
    -        attr_accessor :delete_paragraph_bullets
    -      
    -        # Creates a new shape.
    -        # Corresponds to the JSON property `createShape`
    -        # @return [Google::Apis::SlidesV1::CreateShapeRequest]
    -        attr_accessor :create_shape
    -      
    -        # Inserts columns into a table.
    -        # Other columns in the table will be resized to fit the new column.
    -        # Corresponds to the JSON property `insertTableColumns`
    -        # @return [Google::Apis::SlidesV1::InsertTableColumnsRequest]
    -        attr_accessor :insert_table_columns
    -      
    -        # Refreshes an embedded Google Sheets chart by replacing it with the latest
    -        # version of the chart from Google Sheets.
    -        # NOTE: Refreshing charts requires  at least one of the spreadsheets.readonly,
    -        # spreadsheets, drive.readonly, or drive OAuth scopes.
    -        # Corresponds to the JSON property `refreshSheetsChart`
    -        # @return [Google::Apis::SlidesV1::RefreshSheetsChartRequest]
    -        attr_accessor :refresh_sheets_chart
    -      
    -        # Creates a new table.
    -        # Corresponds to the JSON property `createTable`
    -        # @return [Google::Apis::SlidesV1::CreateTableRequest]
    -        attr_accessor :create_table
    -      
    -        # Update the properties of a TableCell.
    -        # Corresponds to the JSON property `updateTableCellProperties`
    -        # @return [Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest]
    -        attr_accessor :update_table_cell_properties
    -      
    -        # Deletes an object, either pages or
    -        # page elements, from the
    -        # presentation.
    -        # Corresponds to the JSON property `deleteObject`
    -        # @return [Google::Apis::SlidesV1::DeleteObjectRequest]
    -        attr_accessor :delete_object
    -      
    -        # Updates the styling for all of the paragraphs within a Shape or Table that
    -        # overlap with the given text index range.
    -        # Corresponds to the JSON property `updateParagraphStyle`
    -        # @return [Google::Apis::SlidesV1::UpdateParagraphStyleRequest]
    -        attr_accessor :update_paragraph_style
    -      
    -        # Duplicates a slide or page element.
    -        # When duplicating a slide, the duplicate slide will be created immediately
    -        # following the specified slide. When duplicating a page element, the duplicate
    -        # will be placed on the same page at the same position as the original.
    -        # Corresponds to the JSON property `duplicateObject`
    -        # @return [Google::Apis::SlidesV1::DuplicateObjectRequest]
    -        attr_accessor :duplicate_object
    -      
    -        # Deletes a column from a table.
    -        # Corresponds to the JSON property `deleteTableColumn`
    -        # @return [Google::Apis::SlidesV1::DeleteTableColumnRequest]
    -        attr_accessor :delete_table_column
    -      
    -        # Update the properties of a Video.
    -        # Corresponds to the JSON property `updateVideoProperties`
    -        # @return [Google::Apis::SlidesV1::UpdateVideoPropertiesRequest]
    -        attr_accessor :update_video_properties
    -      
    -        # Creates a line.
    -        # Corresponds to the JSON property `createLine`
    -        # @return [Google::Apis::SlidesV1::CreateLineRequest]
    -        attr_accessor :create_line
    -      
    -        # Creates an image.
    -        # Corresponds to the JSON property `createImage`
    -        # @return [Google::Apis::SlidesV1::CreateImageRequest]
    -        attr_accessor :create_image
    -      
    -        # Creates bullets for all of the paragraphs that overlap with the given
    -        # text index range.
    -        # The nesting level of each paragraph will be determined by counting leading
    -        # tabs in front of each paragraph. To avoid excess space between the bullet and
    -        # the corresponding paragraph, these leading tabs are removed by this request.
    -        # This may change the indices of parts of the text.
    -        # If the paragraph immediately before paragraphs being updated is in a list
    -        # with a matching preset, the paragraphs being updated are added to that
    -        # preceding list.
    -        # Corresponds to the JSON property `createParagraphBullets`
    -        # @return [Google::Apis::SlidesV1::CreateParagraphBulletsRequest]
    -        attr_accessor :create_paragraph_bullets
    -      
    -        # Creates a video.
    -        # Corresponds to the JSON property `createVideo`
    -        # @return [Google::Apis::SlidesV1::CreateVideoRequest]
    -        attr_accessor :create_video
    -      
    -        # Creates an embedded Google Sheets chart.
    -        # NOTE: Chart creation requires at least one of the spreadsheets.readonly,
    -        # spreadsheets, drive.readonly, or drive OAuth scopes.
    -        # Corresponds to the JSON property `createSheetsChart`
    -        # @return [Google::Apis::SlidesV1::CreateSheetsChartRequest]
    -        attr_accessor :create_sheets_chart
    -      
    -        # Replaces all shapes that match the given criteria with the provided Google
    -        # Sheets chart. The chart will be scaled and centered to fit within the bounds
    -        # of the original shape.
    -        # NOTE: Replacing shapes with a chart requires at least one of the
    -        # spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.
    -        # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest]
    -        attr_accessor :replace_all_shapes_with_sheets_chart
    -      
    -        # Updates the transform of a page element.
    -        # Corresponds to the JSON property `updatePageElementTransform`
    -        # @return [Google::Apis::SlidesV1::UpdatePageElementTransformRequest]
    -        attr_accessor :update_page_element_transform
    -      
    -        # Update the styling of text in a Shape or
    -        # Table.
    -        # Corresponds to the JSON property `updateTextStyle`
    -        # @return [Google::Apis::SlidesV1::UpdateTextStyleRequest]
    -        attr_accessor :update_text_style
    -      
    -        # Replaces all shapes that match the given criteria with the provided image.
    -        # Corresponds to the JSON property `replaceAllShapesWithImage`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest]
    -        attr_accessor :replace_all_shapes_with_image
    -      
    -        # Replaces all instances of text matching a criteria with replace text.
    -        # Corresponds to the JSON property `replaceAllText`
    -        # @return [Google::Apis::SlidesV1::ReplaceAllTextRequest]
    -        attr_accessor :replace_all_text
    -      
    -        # Update the properties of an Image.
    -        # Corresponds to the JSON property `updateImageProperties`
    -        # @return [Google::Apis::SlidesV1::UpdateImagePropertiesRequest]
    -        attr_accessor :update_image_properties
    -      
    -        # Creates a new slide.
    -        # Corresponds to the JSON property `createSlide`
    -        # @return [Google::Apis::SlidesV1::CreateSlideRequest]
    -        attr_accessor :create_slide
    -      
    -        # Inserts rows into a table.
    -        # Corresponds to the JSON property `insertTableRows`
    -        # @return [Google::Apis::SlidesV1::InsertTableRowsRequest]
    -        attr_accessor :insert_table_rows
    -      
    -        # Updates the properties of a Line.
    -        # Corresponds to the JSON property `updateLineProperties`
    -        # @return [Google::Apis::SlidesV1::UpdateLinePropertiesRequest]
    -        attr_accessor :update_line_properties
    -      
    -        # Updates the position of slides in the presentation.
    -        # Corresponds to the JSON property `updateSlidesPosition`
    -        # @return [Google::Apis::SlidesV1::UpdateSlidesPositionRequest]
    -        attr_accessor :update_slides_position
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
    -          @update_shape_properties = args[:update_shape_properties] if args.key?(:update_shape_properties)
    -          @insert_text = args[:insert_text] if args.key?(:insert_text)
    -          @delete_text = args[:delete_text] if args.key?(:delete_text)
    -          @update_page_properties = args[:update_page_properties] if args.key?(:update_page_properties)
    -          @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets)
    -          @create_shape = args[:create_shape] if args.key?(:create_shape)
    -          @insert_table_columns = args[:insert_table_columns] if args.key?(:insert_table_columns)
    -          @refresh_sheets_chart = args[:refresh_sheets_chart] if args.key?(:refresh_sheets_chart)
    -          @create_table = args[:create_table] if args.key?(:create_table)
    -          @update_table_cell_properties = args[:update_table_cell_properties] if args.key?(:update_table_cell_properties)
    -          @delete_object = args[:delete_object] if args.key?(:delete_object)
    -          @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style)
    -          @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
    -          @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
    -          @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties)
    -          @create_line = args[:create_line] if args.key?(:create_line)
    -          @create_image = args[:create_image] if args.key?(:create_image)
    -          @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets)
    -          @create_video = args[:create_video] if args.key?(:create_video)
    -          @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
    -          @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
    -          @update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform)
    -          @update_text_style = args[:update_text_style] if args.key?(:update_text_style)
    -          @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
    -          @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
    -          @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
    -          @create_slide = args[:create_slide] if args.key?(:create_slide)
    -          @insert_table_rows = args[:insert_table_rows] if args.key?(:insert_table_rows)
    -          @update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties)
    -          @update_slides_position = args[:update_slides_position] if args.key?(:update_slides_position)
    -        end
    -      end
    -      
    -      # Update the properties of an Image.
    -      class UpdateImagePropertiesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The fields that should be updated.
    -        # At least one field must be specified. The root `imageProperties` is
    -        # implied and should not be specified. A single `"*"` can be used as
    -        # short-hand for listing every field.
    -        # For example to update the image outline color, set `fields` to
    -        # `"outline.outlineFill.solidFill.color"`.
    -        # To reset a property to its default value, include its field name in the
    -        # field mask but leave the field itself unset.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The properties of the Image.
    -        # Corresponds to the JSON property `imageProperties`
    -        # @return [Google::Apis::SlidesV1::ImageProperties]
    -        attr_accessor :image_properties
    -      
    -        # The object ID of the image the updates are applied to.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @image_properties = args[:image_properties] if args.key?(:image_properties)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # Styles that apply to a whole paragraph.
    -      # If this text is contained in a shape with a parent placeholder, then these
    -      # paragraph styles may be
    -      # inherited from the parent. Which paragraph styles are inherited depend on the
    -      # nesting level of lists:
    -      # * A paragraph not in a list will inherit its paragraph style from the
    -      # paragraph at the 0 nesting level of the list inside the parent placeholder.
    -      # * A paragraph in a list will inherit its paragraph style from the paragraph
    -      # at its corresponding nesting level of the list inside the parent
    -      # placeholder.
    -      # Inherited paragraph styles are represented as unset fields in this message.
    -      class ParagraphStyle
    -        include Google::Apis::Core::Hashable
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `spaceBelow`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :space_below
    -      
    -        # The text direction of this paragraph. If unset, the value defaults to
    -        # LEFT_TO_RIGHT since
    -        # text direction is not inherited.
    -        # Corresponds to the JSON property `direction`
    -        # @return [String]
    -        attr_accessor :direction
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `indentEnd`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :indent_end
    -      
    -        # The spacing mode for the paragraph.
    -        # Corresponds to the JSON property `spacingMode`
    -        # @return [String]
    -        attr_accessor :spacing_mode
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `indentStart`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :indent_start
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `spaceAbove`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :space_above
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `indentFirstLine`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :indent_first_line
    -      
    -        # The amount of space between lines, as a percentage of normal, where normal
    -        # is represented as 100.0. If unset, the value is inherited from the parent.
    -        # Corresponds to the JSON property `lineSpacing`
    -        # @return [Float]
    -        attr_accessor :line_spacing
    -      
    -        # The text alignment for this paragraph.
    -        # Corresponds to the JSON property `alignment`
    -        # @return [String]
    -        attr_accessor :alignment
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @space_below = args[:space_below] if args.key?(:space_below)
    -          @direction = args[:direction] if args.key?(:direction)
    -          @indent_end = args[:indent_end] if args.key?(:indent_end)
    -          @spacing_mode = args[:spacing_mode] if args.key?(:spacing_mode)
    -          @indent_start = args[:indent_start] if args.key?(:indent_start)
    -          @space_above = args[:space_above] if args.key?(:space_above)
    -          @indent_first_line = args[:indent_first_line] if args.key?(:indent_first_line)
    -          @line_spacing = args[:line_spacing] if args.key?(:line_spacing)
    -          @alignment = args[:alignment] if args.key?(:alignment)
    -        end
    -      end
    -      
    -      # The result of replacing shapes with a Google Sheets chart.
    -      class ReplaceAllShapesWithSheetsChartResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The number of shapes replaced with charts.
    -        # Corresponds to the JSON property `occurrencesChanged`
    -        # @return [Fixnum]
    -        attr_accessor :occurrences_changed
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
    -        end
    -      end
    -      
    -      # The properties of the TableCell.
    -      class TableCellProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The table cell background fill.
    -        # Corresponds to the JSON property `tableCellBackgroundFill`
    -        # @return [Google::Apis::SlidesV1::TableCellBackgroundFill]
    -        attr_accessor :table_cell_background_fill
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @table_cell_background_fill = args[:table_cell_background_fill] if args.key?(:table_cell_background_fill)
    -        end
    -      end
    -      
    -      # Refreshes an embedded Google Sheets chart by replacing it with the latest
    -      # version of the chart from Google Sheets.
    -      # NOTE: Refreshing charts requires  at least one of the spreadsheets.readonly,
    -      # spreadsheets, drive.readonly, or drive OAuth scopes.
    -      class RefreshSheetsChartRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the chart to refresh.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # The outline of a PageElement.
    -      # If these fields are unset, they may be inherited from a parent placeholder
    -      # if it exists. If there is no parent, the fields will default to the value
    -      # used for new page elements created in the Slides editor, which may depend on
    -      # the page element kind.
    -      class Outline
    -        include Google::Apis::Core::Hashable
    -      
    -        # The dash style of the outline.
    -        # Corresponds to the JSON property `dashStyle`
    -        # @return [String]
    -        attr_accessor :dash_style
    -      
    -        # The outline property state.
    -        # Updating the the outline on a page element will implicitly update this
    -        # field to`RENDERED`, unless another value is specified in the same request.
    -        # To have no outline on a page element, set this field to `NOT_RENDERED`. In
    -        # this case, any other outline fields set in the same request will be
    -        # ignored.
    -        # Corresponds to the JSON property `propertyState`
    -        # @return [String]
    -        attr_accessor :property_state
    -      
    -        # The fill of the outline.
    -        # Corresponds to the JSON property `outlineFill`
    -        # @return [Google::Apis::SlidesV1::OutlineFill]
    -        attr_accessor :outline_fill
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `weight`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :weight
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @dash_style = args[:dash_style] if args.key?(:dash_style)
    -          @property_state = args[:property_state] if args.key?(:property_state)
    -          @outline_fill = args[:outline_fill] if args.key?(:outline_fill)
    -          @weight = args[:weight] if args.key?(:weight)
    -        end
    -      end
    -      
    -      # The properties of Page that are only
    -      # relevant for pages with page_type NOTES.
    -      class NotesProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the shape on this notes page that contains the speaker
    -        # notes for the corresponding slide.
    -        # The actual shape may not always exist on the notes page. Inserting text
    -        # using this object ID will automatically create the shape. In this case, the
    -        # actual shape may have different object ID. The `GetPresentation` or
    -        # `GetPage` action will always return the latest object ID.
    -        # Corresponds to the JSON property `speakerNotesObjectId`
    -        # @return [String]
    -        attr_accessor :speaker_notes_object_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id)
    -        end
    -      end
    -      
    -      # The properties of a Shape.
    -      # If the shape is a placeholder shape as determined by the
    -      # placeholder field, then these
    -      # properties may be inherited from a parent placeholder shape.
    -      # Determining the rendered value of the property depends on the corresponding
    -      # property_state field value.
    -      class ShapeProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # The outline of a PageElement.
    -        # If these fields are unset, they may be inherited from a parent placeholder
    -        # if it exists. If there is no parent, the fields will default to the value
    -        # used for new page elements created in the Slides editor, which may depend on
    -        # the page element kind.
    -        # Corresponds to the JSON property `outline`
    -        # @return [Google::Apis::SlidesV1::Outline]
    -        attr_accessor :outline
    -      
    -        # The shape background fill.
    -        # Corresponds to the JSON property `shapeBackgroundFill`
    -        # @return [Google::Apis::SlidesV1::ShapeBackgroundFill]
    -        attr_accessor :shape_background_fill
    -      
    -        # The shadow properties of a page element.
    -        # If these fields are unset, they may be inherited from a parent placeholder
    -        # if it exists. If there is no parent, the fields will default to the value
    -        # used for new page elements created in the Slides editor, which may depend on
    -        # the page element kind.
    -        # Corresponds to the JSON property `shadow`
    -        # @return [Google::Apis::SlidesV1::Shadow]
    -        attr_accessor :shadow
    -      
    -        # A hypertext link.
    -        # Corresponds to the JSON property `link`
    -        # @return [Google::Apis::SlidesV1::Link]
    -        attr_accessor :link
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @outline = args[:outline] if args.key?(:outline)
    -          @shape_background_fill = args[:shape_background_fill] if args.key?(:shape_background_fill)
    -          @shadow = args[:shadow] if args.key?(:shadow)
    -          @link = args[:link] if args.key?(:link)
    -        end
    -      end
    -      
    -      # Properties of each column in a table.
    -      class TableColumnProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `columnWidth`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :column_width
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @column_width = args[:column_width] if args.key?(:column_width)
    -        end
    -      end
    -      
    -      # Properties and contents of each row in a table.
    -      class TableRow
    -        include Google::Apis::Core::Hashable
    -      
    -        # A magnitude in a single direction in the specified units.
    -        # Corresponds to the JSON property `rowHeight`
    -        # @return [Google::Apis::SlidesV1::Dimension]
    -        attr_accessor :row_height
    -      
    -        # Properties and contents of each cell.
    -        # Cells that span multiple columns are represented only once with a
    -        # column_span greater
    -        # than 1. As a result, the length of this collection does not always match
    -        # the number of columns of the entire table.
    -        # Corresponds to the JSON property `tableCells`
    -        # @return [Array]
    -        attr_accessor :table_cells
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @row_height = args[:row_height] if args.key?(:row_height)
    -          @table_cells = args[:table_cells] if args.key?(:table_cells)
    -        end
    -      end
    -      
    -      # Update the properties of a TableCell.
    -      class UpdateTableCellPropertiesRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The fields that should be updated.
    -        # At least one field must be specified. The root `tableCellProperties` is
    -        # implied and should not be specified. A single `"*"` can be used as
    -        # short-hand for listing every field.
    -        # For example to update the table cell background solid fill color, set
    -        # `fields` to `"tableCellBackgroundFill.solidFill.color"`.
    -        # To reset a property to its default value, include its field name in the
    -        # field mask but leave the field itself unset.
    -        # Corresponds to the JSON property `fields`
    -        # @return [String]
    -        attr_accessor :fields
    -      
    -        # The object ID of the table.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # A table range represents a reference to a subset of a table.
    -        # It's important to note that the cells specified by a table range do not
    -        # necessarily form a rectangle. For example, let's say we have a 3 x 3 table
    -        # where all the cells of the last row are merged together. The table looks
    -        # like this:
    -        # 
    -        # [             ]
    -        # A table range with location = (0, 0), row span = 3 and column span = 2
    -        # specifies the following cells:
    -        # x     x
    -        # [      x      ]
    -        # Corresponds to the JSON property `tableRange`
    -        # @return [Google::Apis::SlidesV1::TableRange]
    -        attr_accessor :table_range
    -      
    -        # The properties of the TableCell.
    -        # Corresponds to the JSON property `tableCellProperties`
    -        # @return [Google::Apis::SlidesV1::TableCellProperties]
    -        attr_accessor :table_cell_properties
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @fields = args[:fields] if args.key?(:fields)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @table_range = args[:table_range] if args.key?(:table_range)
    -          @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
    -        end
    -      end
    -      
    -      # Creates a new slide.
    -      class CreateSlideRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Slide layout reference. This may reference either:
    -        # - A predefined layout
    -        # - One of the layouts in the presentation.
    -        # Corresponds to the JSON property `slideLayoutReference`
    -        # @return [Google::Apis::SlidesV1::LayoutReference]
    -        attr_accessor :slide_layout_reference
    -      
    -        # A user-supplied object ID.
    -        # If you specify an ID, it must be unique among all pages and page elements
    -        # in the presentation. The ID must start with an alphanumeric character or an
    -        # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
    -        # may include those as well as a hyphen or colon (matches regex
    -        # `[a-zA-Z0-9_-:]`).
    -        # The length of the ID must not be less than 5 or greater than 50.
    -        # If you don't specify an ID, a unique one is generated.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # The optional zero-based index indicating where to insert the slides.
    -        # If you don't specify an index, the new slide is created at the end.
    -        # Corresponds to the JSON property `insertionIndex`
    -        # @return [Fixnum]
    -        attr_accessor :insertion_index
    -      
    -        # An optional list of object ID mappings from the placeholder(s) on the layout
    -        # to the placeholder(s)
    -        # that will be created on the new slide from that specified layout. Can only
    -        # be used when `slide_layout_reference` is specified.
    -        # Corresponds to the JSON property `placeholderIdMappings`
    -        # @return [Array]
    -        attr_accessor :placeholder_id_mappings
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @slide_layout_reference = args[:slide_layout_reference] if args.key?(:slide_layout_reference)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
    -          @placeholder_id_mappings = args[:placeholder_id_mappings] if args.key?(:placeholder_id_mappings)
    -        end
    -      end
    -      
    -      # Request message for PresentationsService.BatchUpdatePresentation.
    -      class BatchUpdatePresentationRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A list of updates to apply to the presentation.
    -        # Corresponds to the JSON property `requests`
    -        # @return [Array]
    -        attr_accessor :requests
    -      
    -        # Provides control over how write requests are executed.
    -        # Corresponds to the JSON property `writeControl`
    -        # @return [Google::Apis::SlidesV1::WriteControl]
    -        attr_accessor :write_control
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @requests = args[:requests] if args.key?(:requests)
    -          @write_control = args[:write_control] if args.key?(:write_control)
    -        end
    -      end
    -      
    -      # The general text content. The text must reside in a compatible shape (e.g.
    -      # text box or rectangle) or a table cell in a page.
    -      class TextContent
    -        include Google::Apis::Core::Hashable
    -      
    -        # The bulleted lists contained in this text, keyed by list ID.
    -        # Corresponds to the JSON property `lists`
    -        # @return [Hash]
    -        attr_accessor :lists
    -      
    -        # The text contents broken down into its component parts, including styling
    -        # information. This property is read-only.
    -        # Corresponds to the JSON property `textElements`
    -        # @return [Array]
    -        attr_accessor :text_elements
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @lists = args[:lists] if args.key?(:lists)
    -          @text_elements = args[:text_elements] if args.key?(:text_elements)
    -        end
    -      end
    -      
    -      # The result of creating an embedded Google Sheets chart.
    -      class CreateSheetsChartResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The object ID of the created chart.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -        end
    -      end
    -      
    -      # Provides control over how write requests are executed.
    -      class WriteControl
    -        include Google::Apis::Core::Hashable
    -      
    -        # The revision ID of the presentation required for the write request. If
    -        # specified and the `required_revision_id` doesn't exactly match the
    -        # presentation's current `revision_id`, the request will not be processed and
    -        # will return a 400 bad request error.
    -        # Corresponds to the JSON property `requiredRevisionId`
    -        # @return [String]
    -        attr_accessor :required_revision_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
    -        end
    -      end
    -      
    -      # Deletes bullets from all of the paragraphs that overlap with the given text
    -      # index range.
    -      # The nesting level of each paragraph will be visually preserved by adding
    -      # indent to the start of the corresponding paragraph.
    -      class DeleteParagraphBulletsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # A location of a single table cell within a table.
    -        # Corresponds to the JSON property `cellLocation`
    -        # @return [Google::Apis::SlidesV1::TableCellLocation]
    -        attr_accessor :cell_location
    -      
    -        # The object ID of the shape or table containing the text to delete bullets
    -        # from.
    -        # Corresponds to the JSON property `objectId`
    -        # @return [String]
    -        attr_accessor :object_id_prop
    -      
    -        # Specifies a contiguous range of an indexed collection, such as characters in
    -        # text.
    -        # Corresponds to the JSON property `textRange`
    -        # @return [Google::Apis::SlidesV1::Range]
    -        attr_accessor :text_range
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cell_location = args[:cell_location] if args.key?(:cell_location)
    -          @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
    -          @text_range = args[:text_range] if args.key?(:text_range)
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/slides_v1/representations.rb b/generated/google/apis/slides_v1/representations.rb
    index 7d233da54..8d7b7a47e 100644
    --- a/generated/google/apis/slides_v1/representations.rb
    +++ b/generated/google/apis/slides_v1/representations.rb
    @@ -22,384 +22,6 @@ module Google
       module Apis
         module SlidesV1
           
    -      class ParagraphMarker
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class InsertTableColumnsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Thumbnail
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LayoutPlaceholderIdMapping
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdateShapePropertiesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class WordArt
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Recolor
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Link
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateShapeResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class RgbColor
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateLineRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateSlideResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateShapeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Video
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class PageProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class NestingLevel
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TableCell
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdateLinePropertiesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TableCellBackgroundFill
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdateSlidesPositionRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdatePagePropertiesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Group
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Placeholder
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DuplicateObjectRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReplaceAllTextRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Page
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ShapeBackgroundFill
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CropProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReplaceAllShapesWithSheetsChartRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ColorStop
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Range
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateVideoRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DuplicateObjectResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReplaceAllShapesWithImageRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Shadow
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DeleteTableRowRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Bullet
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class OutlineFill
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateLineResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TableCellLocation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReplaceAllTextResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdateParagraphStyleRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ColorScheme
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Shape
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Image
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AffineTransform
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class InsertTextRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AutoText
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateVideoResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DeleteTextRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdatePageElementTransformRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class DeleteObjectRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Dimension
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TextElement
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LineFill
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class VideoProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class InsertTableRowsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LayoutProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LineProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Presentation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class OpaqueColor
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ImageProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReplaceAllShapesWithImageResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class Line
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -436,6 +58,12 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    +      class MasterProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class TextRun
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -628,7 +256,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class NotesProperties
    +      class TableColumnProperties
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -640,7 +268,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class TableColumnProperties
    +      class NotesProperties
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -695,42 +323,1017 @@ module Google
           end
           
           class ParagraphMarker
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Thumbnail
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class InsertTableColumnsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LayoutPlaceholderIdMapping
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateShapePropertiesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class WordArt
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Recolor
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Link
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateShapeResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class RgbColor
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateLineRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateSlideResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateShapeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Video
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class PageProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class TableCell
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class NestingLevel
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateLinePropertiesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class TableCellBackgroundFill
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateSlidesPositionRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdatePagePropertiesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Group
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Placeholder
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DuplicateObjectRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ReplaceAllTextRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Page
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ShapeBackgroundFill
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CropProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ReplaceAllShapesWithSheetsChartRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Range
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ColorStop
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateVideoRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DuplicateObjectResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ReplaceAllShapesWithImageRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Shadow
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteTableRowRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Bullet
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class OutlineFill
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateLineResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class TableCellLocation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ReplaceAllTextResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdateParagraphStyleRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ColorScheme
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Shape
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Image
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AffineTransform
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class InsertTextRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AutoText
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class CreateVideoResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class UpdatePageElementTransformRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteTextRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class DeleteObjectRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class TextElement
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Dimension
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LineFill
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class VideoProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class InsertTableRowsRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LayoutProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LineProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Presentation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class OpaqueColor
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ImageProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ReplaceAllShapesWithImageResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Line
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :style, as: 'style', class: Google::Apis::SlidesV1::ParagraphStyle, decorator: Google::Apis::SlidesV1::ParagraphStyle::Representation
    +          property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation
           
    -          property :bullet, as: 'bullet', class: Google::Apis::SlidesV1::Bullet, decorator: Google::Apis::SlidesV1::Bullet::Representation
    +          property :line_type, as: 'lineType'
    +        end
    +      end
    +      
    +      class BatchUpdatePresentationResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :replies, as: 'replies', class: Google::Apis::SlidesV1::Response, decorator: Google::Apis::SlidesV1::Response::Representation
    +      
    +          property :presentation_id, as: 'presentationId'
    +        end
    +      end
    +      
    +      class CreateSheetsChartRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    +      
    +          property :linking_mode, as: 'linkingMode'
    +          property :spreadsheet_id, as: 'spreadsheetId'
    +          property :chart_id, as: 'chartId'
    +        end
    +      end
    +      
    +      class CreateImageResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +        end
    +      end
    +      
    +      class SlideProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :notes_page, as: 'notesPage', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
    +      
    +          property :master_object_id, as: 'masterObjectId'
    +          property :layout_object_id, as: 'layoutObjectId'
    +        end
    +      end
    +      
    +      class Response
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextResponse, decorator: Google::Apis::SlidesV1::ReplaceAllTextResponse::Representation
    +      
    +          property :create_slide, as: 'createSlide', class: Google::Apis::SlidesV1::CreateSlideResponse, decorator: Google::Apis::SlidesV1::CreateSlideResponse::Representation
    +      
    +          property :create_shape, as: 'createShape', class: Google::Apis::SlidesV1::CreateShapeResponse, decorator: Google::Apis::SlidesV1::CreateShapeResponse::Representation
    +      
    +          property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectResponse, decorator: Google::Apis::SlidesV1::DuplicateObjectResponse::Representation
    +      
    +          property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineResponse, decorator: Google::Apis::SlidesV1::CreateLineResponse::Representation
    +      
    +          property :create_image, as: 'createImage', class: Google::Apis::SlidesV1::CreateImageResponse, decorator: Google::Apis::SlidesV1::CreateImageResponse::Representation
    +      
    +          property :create_video, as: 'createVideo', class: Google::Apis::SlidesV1::CreateVideoResponse, decorator: Google::Apis::SlidesV1::CreateVideoResponse::Representation
    +      
    +          property :create_sheets_chart, as: 'createSheetsChart', class: Google::Apis::SlidesV1::CreateSheetsChartResponse, decorator: Google::Apis::SlidesV1::CreateSheetsChartResponse::Representation
    +      
    +          property :replace_all_shapes_with_sheets_chart, as: 'replaceAllShapesWithSheetsChart', class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse::Representation
    +      
    +          property :replace_all_shapes_with_image, as: 'replaceAllShapesWithImage', class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse::Representation
    +      
    +          property :create_table, as: 'createTable', class: Google::Apis::SlidesV1::CreateTableResponse, decorator: Google::Apis::SlidesV1::CreateTableResponse::Representation
           
             end
           end
           
    -      class InsertTableColumnsRequest
    +      class MasterProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :display_name, as: 'displayName'
    +        end
    +      end
    +      
    +      class TextRun
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :content, as: 'content'
    +          property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    +      
    +        end
    +      end
    +      
    +      class LayoutReference
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :predefined_layout, as: 'predefinedLayout'
    +          property :layout_id, as: 'layoutId'
    +        end
    +      end
    +      
    +      class SubstringMatchCriteria
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :text, as: 'text'
    +          property :match_case, as: 'matchCase'
    +        end
    +      end
    +      
    +      class TableRange
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :row_span, as: 'rowSpan'
    +          property :location, as: 'location', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
    +          property :column_span, as: 'columnSpan'
    +        end
    +      end
    +      
    +      class CreateTableResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +        end
    +      end
    +      
    +      class CreateTableRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :columns, as: 'columns'
    +          property :object_id_prop, as: 'objectId'
    +          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    +      
    +          property :rows, as: 'rows'
    +        end
    +      end
    +      
    +      class Table
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :rows, as: 'rows'
    +          collection :table_columns, as: 'tableColumns', class: Google::Apis::SlidesV1::TableColumnProperties, decorator: Google::Apis::SlidesV1::TableColumnProperties::Representation
    +      
    +          property :columns, as: 'columns'
    +          collection :table_rows, as: 'tableRows', class: Google::Apis::SlidesV1::TableRow, decorator: Google::Apis::SlidesV1::TableRow::Representation
    +      
    +        end
    +      end
    +      
    +      class PageBackgroundFill
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :stretched_picture_fill, as: 'stretchedPictureFill', class: Google::Apis::SlidesV1::StretchedPictureFill, decorator: Google::Apis::SlidesV1::StretchedPictureFill::Representation
    +      
    +          property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation
    +      
    +          property :property_state, as: 'propertyState'
    +        end
    +      end
    +      
    +      class SheetsChart
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :sheets_chart_properties, as: 'sheetsChartProperties', class: Google::Apis::SlidesV1::SheetsChartProperties, decorator: Google::Apis::SlidesV1::SheetsChartProperties::Representation
    +      
    +          property :content_url, as: 'contentUrl'
    +          property :spreadsheet_id, as: 'spreadsheetId'
    +          property :chart_id, as: 'chartId'
    +        end
    +      end
    +      
    +      class SolidFill
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :alpha, as: 'alpha'
    +          property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    +      
    +        end
    +      end
    +      
    +      class ThemeColorPair
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :color, as: 'color', class: Google::Apis::SlidesV1::RgbColor, decorator: Google::Apis::SlidesV1::RgbColor::Representation
    +      
    +          property :type, as: 'type'
    +        end
    +      end
    +      
    +      class OptionalColor
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :opaque_color, as: 'opaqueColor', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    +      
    +        end
    +      end
    +      
    +      class PageElementProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
    +      
    +          property :page_object_id, as: 'pageObjectId'
    +          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    +      
    +        end
    +      end
    +      
    +      class SheetsChartProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :chart_image_properties, as: 'chartImageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation
    +      
    +        end
    +      end
    +      
    +      class StretchedPictureFill
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :content_url, as: 'contentUrl'
    +          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    +      
    +        end
    +      end
    +      
    +      class DeleteTableColumnRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :number, as: 'number'
               property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
           
    -          property :insert_right, as: 'insertRight'
               property :table_object_id, as: 'tableObjectId'
             end
           end
           
    +      class UpdateTextStyleRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    +      
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
    +        end
    +      end
    +      
    +      class List
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          hash :nesting_level, as: 'nestingLevel', class: Google::Apis::SlidesV1::NestingLevel, decorator: Google::Apis::SlidesV1::NestingLevel::Representation
    +      
    +          property :list_id, as: 'listId'
    +        end
    +      end
    +      
    +      class WeightedFontFamily
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :weight, as: 'weight'
    +          property :font_family, as: 'fontFamily'
    +        end
    +      end
    +      
    +      class PageElement
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :line, as: 'line', class: Google::Apis::SlidesV1::Line, decorator: Google::Apis::SlidesV1::Line::Representation
    +      
    +          property :description, as: 'description'
    +          property :element_group, as: 'elementGroup', class: Google::Apis::SlidesV1::Group, decorator: Google::Apis::SlidesV1::Group::Representation
    +      
    +          property :image, as: 'image', class: Google::Apis::SlidesV1::Image, decorator: Google::Apis::SlidesV1::Image::Representation
    +      
    +          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    +      
    +          property :title, as: 'title'
    +          property :sheets_chart, as: 'sheetsChart', class: Google::Apis::SlidesV1::SheetsChart, decorator: Google::Apis::SlidesV1::SheetsChart::Representation
    +      
    +          property :video, as: 'video', class: Google::Apis::SlidesV1::Video, decorator: Google::Apis::SlidesV1::Video::Representation
    +      
    +          property :word_art, as: 'wordArt', class: Google::Apis::SlidesV1::WordArt, decorator: Google::Apis::SlidesV1::WordArt::Representation
    +      
    +          property :table, as: 'table', class: Google::Apis::SlidesV1::Table, decorator: Google::Apis::SlidesV1::Table::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
    +      
    +          property :shape, as: 'shape', class: Google::Apis::SlidesV1::Shape, decorator: Google::Apis::SlidesV1::Shape::Representation
    +      
    +        end
    +      end
    +      
    +      class CreateImageRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    +      
    +          property :url, as: 'url'
    +        end
    +      end
    +      
    +      class CreateParagraphBulletsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :bullet_preset, as: 'bulletPreset'
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
    +        end
    +      end
    +      
    +      class Size
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :height, as: 'height', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :width, as: 'width', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +        end
    +      end
    +      
    +      class TextStyle
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :small_caps, as: 'smallCaps'
    +          property :background_color, as: 'backgroundColor', class: Google::Apis::SlidesV1::OptionalColor, decorator: Google::Apis::SlidesV1::OptionalColor::Representation
    +      
    +          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    +      
    +          property :underline, as: 'underline'
    +          property :foreground_color, as: 'foregroundColor', class: Google::Apis::SlidesV1::OptionalColor, decorator: Google::Apis::SlidesV1::OptionalColor::Representation
    +      
    +          property :bold, as: 'bold'
    +          property :font_family, as: 'fontFamily'
    +          property :italic, as: 'italic'
    +          property :strikethrough, as: 'strikethrough'
    +          property :font_size, as: 'fontSize', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :baseline_offset, as: 'baselineOffset'
    +          property :weighted_font_family, as: 'weightedFontFamily', class: Google::Apis::SlidesV1::WeightedFontFamily, decorator: Google::Apis::SlidesV1::WeightedFontFamily::Representation
    +      
    +        end
    +      end
    +      
    +      class UpdateVideoPropertiesRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +          property :video_properties, as: 'videoProperties', class: Google::Apis::SlidesV1::VideoProperties, decorator: Google::Apis::SlidesV1::VideoProperties::Representation
    +      
    +          property :fields, as: 'fields'
    +        end
    +      end
    +      
    +      class Request
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectRequest, decorator: Google::Apis::SlidesV1::DuplicateObjectRequest::Representation
    +      
    +          property :delete_table_column, as: 'deleteTableColumn', class: Google::Apis::SlidesV1::DeleteTableColumnRequest, decorator: Google::Apis::SlidesV1::DeleteTableColumnRequest::Representation
    +      
    +          property :update_video_properties, as: 'updateVideoProperties', class: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest::Representation
    +      
    +          property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineRequest, decorator: Google::Apis::SlidesV1::CreateLineRequest::Representation
    +      
    +          property :create_image, as: 'createImage', class: Google::Apis::SlidesV1::CreateImageRequest, decorator: Google::Apis::SlidesV1::CreateImageRequest::Representation
    +      
    +          property :create_paragraph_bullets, as: 'createParagraphBullets', class: Google::Apis::SlidesV1::CreateParagraphBulletsRequest, decorator: Google::Apis::SlidesV1::CreateParagraphBulletsRequest::Representation
    +      
    +          property :create_video, as: 'createVideo', class: Google::Apis::SlidesV1::CreateVideoRequest, decorator: Google::Apis::SlidesV1::CreateVideoRequest::Representation
    +      
    +          property :replace_all_shapes_with_sheets_chart, as: 'replaceAllShapesWithSheetsChart', class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest::Representation
    +      
    +          property :create_sheets_chart, as: 'createSheetsChart', class: Google::Apis::SlidesV1::CreateSheetsChartRequest, decorator: Google::Apis::SlidesV1::CreateSheetsChartRequest::Representation
    +      
    +          property :update_page_element_transform, as: 'updatePageElementTransform', class: Google::Apis::SlidesV1::UpdatePageElementTransformRequest, decorator: Google::Apis::SlidesV1::UpdatePageElementTransformRequest::Representation
    +      
    +          property :update_text_style, as: 'updateTextStyle', class: Google::Apis::SlidesV1::UpdateTextStyleRequest, decorator: Google::Apis::SlidesV1::UpdateTextStyleRequest::Representation
    +      
    +          property :replace_all_shapes_with_image, as: 'replaceAllShapesWithImage', class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest::Representation
    +      
    +          property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextRequest, decorator: Google::Apis::SlidesV1::ReplaceAllTextRequest::Representation
    +      
    +          property :update_image_properties, as: 'updateImageProperties', class: Google::Apis::SlidesV1::UpdateImagePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateImagePropertiesRequest::Representation
    +      
    +          property :insert_table_rows, as: 'insertTableRows', class: Google::Apis::SlidesV1::InsertTableRowsRequest, decorator: Google::Apis::SlidesV1::InsertTableRowsRequest::Representation
    +      
    +          property :create_slide, as: 'createSlide', class: Google::Apis::SlidesV1::CreateSlideRequest, decorator: Google::Apis::SlidesV1::CreateSlideRequest::Representation
    +      
    +          property :update_line_properties, as: 'updateLineProperties', class: Google::Apis::SlidesV1::UpdateLinePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateLinePropertiesRequest::Representation
    +      
    +          property :update_slides_position, as: 'updateSlidesPosition', class: Google::Apis::SlidesV1::UpdateSlidesPositionRequest, decorator: Google::Apis::SlidesV1::UpdateSlidesPositionRequest::Representation
    +      
    +          property :delete_table_row, as: 'deleteTableRow', class: Google::Apis::SlidesV1::DeleteTableRowRequest, decorator: Google::Apis::SlidesV1::DeleteTableRowRequest::Representation
    +      
    +          property :update_shape_properties, as: 'updateShapeProperties', class: Google::Apis::SlidesV1::UpdateShapePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateShapePropertiesRequest::Representation
    +      
    +          property :insert_text, as: 'insertText', class: Google::Apis::SlidesV1::InsertTextRequest, decorator: Google::Apis::SlidesV1::InsertTextRequest::Representation
    +      
    +          property :delete_text, as: 'deleteText', class: Google::Apis::SlidesV1::DeleteTextRequest, decorator: Google::Apis::SlidesV1::DeleteTextRequest::Representation
    +      
    +          property :update_page_properties, as: 'updatePageProperties', class: Google::Apis::SlidesV1::UpdatePagePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdatePagePropertiesRequest::Representation
    +      
    +          property :create_shape, as: 'createShape', class: Google::Apis::SlidesV1::CreateShapeRequest, decorator: Google::Apis::SlidesV1::CreateShapeRequest::Representation
    +      
    +          property :delete_paragraph_bullets, as: 'deleteParagraphBullets', class: Google::Apis::SlidesV1::DeleteParagraphBulletsRequest, decorator: Google::Apis::SlidesV1::DeleteParagraphBulletsRequest::Representation
    +      
    +          property :insert_table_columns, as: 'insertTableColumns', class: Google::Apis::SlidesV1::InsertTableColumnsRequest, decorator: Google::Apis::SlidesV1::InsertTableColumnsRequest::Representation
    +      
    +          property :refresh_sheets_chart, as: 'refreshSheetsChart', class: Google::Apis::SlidesV1::RefreshSheetsChartRequest, decorator: Google::Apis::SlidesV1::RefreshSheetsChartRequest::Representation
    +      
    +          property :update_table_cell_properties, as: 'updateTableCellProperties', class: Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest::Representation
    +      
    +          property :create_table, as: 'createTable', class: Google::Apis::SlidesV1::CreateTableRequest, decorator: Google::Apis::SlidesV1::CreateTableRequest::Representation
    +      
    +          property :delete_object, as: 'deleteObject', class: Google::Apis::SlidesV1::DeleteObjectRequest, decorator: Google::Apis::SlidesV1::DeleteObjectRequest::Representation
    +      
    +          property :update_paragraph_style, as: 'updateParagraphStyle', class: Google::Apis::SlidesV1::UpdateParagraphStyleRequest, decorator: Google::Apis::SlidesV1::UpdateParagraphStyleRequest::Representation
    +      
    +        end
    +      end
    +      
    +      class UpdateImagePropertiesRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :image_properties, as: 'imageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +        end
    +      end
    +      
    +      class ParagraphStyle
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :indent_first_line, as: 'indentFirstLine', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :line_spacing, as: 'lineSpacing'
    +          property :alignment, as: 'alignment'
    +          property :space_below, as: 'spaceBelow', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :direction, as: 'direction'
    +          property :spacing_mode, as: 'spacingMode'
    +          property :indent_end, as: 'indentEnd', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :indent_start, as: 'indentStart', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :space_above, as: 'spaceAbove', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +        end
    +      end
    +      
    +      class ReplaceAllShapesWithSheetsChartResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :occurrences_changed, as: 'occurrencesChanged'
    +        end
    +      end
    +      
    +      class TableCellProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :table_cell_background_fill, as: 'tableCellBackgroundFill', class: Google::Apis::SlidesV1::TableCellBackgroundFill, decorator: Google::Apis::SlidesV1::TableCellBackgroundFill::Representation
    +      
    +        end
    +      end
    +      
    +      class RefreshSheetsChartRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +        end
    +      end
    +      
    +      class Outline
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :outline_fill, as: 'outlineFill', class: Google::Apis::SlidesV1::OutlineFill, decorator: Google::Apis::SlidesV1::OutlineFill::Representation
    +      
    +          property :weight, as: 'weight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +          property :dash_style, as: 'dashStyle'
    +          property :property_state, as: 'propertyState'
    +        end
    +      end
    +      
    +      class TableColumnProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :column_width, as: 'columnWidth', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +        end
    +      end
    +      
    +      class ShapeProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation
    +      
    +          property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation
    +      
    +          property :shape_background_fill, as: 'shapeBackgroundFill', class: Google::Apis::SlidesV1::ShapeBackgroundFill, decorator: Google::Apis::SlidesV1::ShapeBackgroundFill::Representation
    +      
    +          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    +      
    +        end
    +      end
    +      
    +      class NotesProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :speaker_notes_object_id, as: 'speakerNotesObjectId'
    +        end
    +      end
    +      
    +      class TableRow
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :table_cells, as: 'tableCells', class: Google::Apis::SlidesV1::TableCell, decorator: Google::Apis::SlidesV1::TableCell::Representation
    +      
    +          property :row_height, as: 'rowHeight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
    +        end
    +      end
    +      
    +      class UpdateTableCellPropertiesRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fields, as: 'fields'
    +          property :table_range, as: 'tableRange', class: Google::Apis::SlidesV1::TableRange, decorator: Google::Apis::SlidesV1::TableRange::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :table_cell_properties, as: 'tableCellProperties', class: Google::Apis::SlidesV1::TableCellProperties, decorator: Google::Apis::SlidesV1::TableCellProperties::Representation
    +      
    +        end
    +      end
    +      
    +      class CreateSlideRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +          property :insertion_index, as: 'insertionIndex'
    +          collection :placeholder_id_mappings, as: 'placeholderIdMappings', class: Google::Apis::SlidesV1::LayoutPlaceholderIdMapping, decorator: Google::Apis::SlidesV1::LayoutPlaceholderIdMapping::Representation
    +      
    +          property :slide_layout_reference, as: 'slideLayoutReference', class: Google::Apis::SlidesV1::LayoutReference, decorator: Google::Apis::SlidesV1::LayoutReference::Representation
    +      
    +        end
    +      end
    +      
    +      class BatchUpdatePresentationRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :requests, as: 'requests', class: Google::Apis::SlidesV1::Request, decorator: Google::Apis::SlidesV1::Request::Representation
    +      
    +          property :write_control, as: 'writeControl', class: Google::Apis::SlidesV1::WriteControl, decorator: Google::Apis::SlidesV1::WriteControl::Representation
    +      
    +        end
    +      end
    +      
    +      class TextContent
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :text_elements, as: 'textElements', class: Google::Apis::SlidesV1::TextElement, decorator: Google::Apis::SlidesV1::TextElement::Representation
    +      
    +          hash :lists, as: 'lists', class: Google::Apis::SlidesV1::List, decorator: Google::Apis::SlidesV1::List::Representation
    +      
    +        end
    +      end
    +      
    +      class CreateSheetsChartResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :object_id_prop, as: 'objectId'
    +        end
    +      end
    +      
    +      class WriteControl
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :required_revision_id, as: 'requiredRevisionId'
    +        end
    +      end
    +      
    +      class DeleteParagraphBulletsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
    +        end
    +      end
    +      
    +      class ParagraphMarker
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :bullet, as: 'bullet', class: Google::Apis::SlidesV1::Bullet, decorator: Google::Apis::SlidesV1::Bullet::Representation
    +      
    +          property :style, as: 'style', class: Google::Apis::SlidesV1::ParagraphStyle, decorator: Google::Apis::SlidesV1::ParagraphStyle::Representation
    +      
    +        end
    +      end
    +      
           class Thumbnail
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :height, as: 'height'
               property :content_url, as: 'contentUrl'
               property :width, as: 'width'
    -          property :height, as: 'height'
    +        end
    +      end
    +      
    +      class InsertTableColumnsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :insert_right, as: 'insertRight'
    +          property :table_object_id, as: 'tableObjectId'
    +          property :number, as: 'number'
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
             end
           end
           
           class LayoutPlaceholderIdMapping
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :layout_placeholder, as: 'layoutPlaceholder', class: Google::Apis::SlidesV1::Placeholder, decorator: Google::Apis::SlidesV1::Placeholder::Representation
    -      
               property :layout_placeholder_object_id, as: 'layoutPlaceholderObjectId'
               property :object_id_prop, as: 'objectId'
    +          property :layout_placeholder, as: 'layoutPlaceholder', class: Google::Apis::SlidesV1::Placeholder, decorator: Google::Apis::SlidesV1::Placeholder::Representation
    +      
             end
           end
           
    @@ -764,9 +1367,9 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :page_object_id, as: 'pageObjectId'
    -          property :url, as: 'url'
    -          property :relative_link, as: 'relativeLink'
               property :slide_index, as: 'slideIndex'
    +          property :relative_link, as: 'relativeLink'
    +          property :url, as: 'url'
             end
           end
           
    @@ -781,8 +1384,8 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :red, as: 'red'
    -          property :green, as: 'green'
               property :blue, as: 'blue'
    +          property :green, as: 'green'
             end
           end
           
    @@ -806,8 +1409,8 @@ module Google
           class CreateShapeRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
               property :shape_type, as: 'shapeType'
    +          property :object_id_prop, as: 'objectId'
               property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
           
             end
    @@ -816,28 +1419,20 @@ module Google
           class Video
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :source, as: 'source'
    +          property :id, as: 'id'
    +          property :url, as: 'url'
               property :video_properties, as: 'videoProperties', class: Google::Apis::SlidesV1::VideoProperties, decorator: Google::Apis::SlidesV1::VideoProperties::Representation
           
    -          property :source, as: 'source'
    -          property :url, as: 'url'
    -          property :id, as: 'id'
             end
           end
           
           class PageProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :page_background_fill, as: 'pageBackgroundFill', class: Google::Apis::SlidesV1::PageBackgroundFill, decorator: Google::Apis::SlidesV1::PageBackgroundFill::Representation
    -      
               property :color_scheme, as: 'colorScheme', class: Google::Apis::SlidesV1::ColorScheme, decorator: Google::Apis::SlidesV1::ColorScheme::Representation
           
    -        end
    -      end
    -      
    -      class NestingLevel
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :bullet_style, as: 'bulletStyle', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    +          property :page_background_fill, as: 'pageBackgroundFill', class: Google::Apis::SlidesV1::PageBackgroundFill, decorator: Google::Apis::SlidesV1::PageBackgroundFill::Representation
           
             end
           end
    @@ -849,13 +1444,21 @@ module Google
           
               property :table_cell_properties, as: 'tableCellProperties', class: Google::Apis::SlidesV1::TableCellProperties, decorator: Google::Apis::SlidesV1::TableCellProperties::Representation
           
    +          property :row_span, as: 'rowSpan'
               property :location, as: 'location', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
           
    -          property :row_span, as: 'rowSpan'
               property :column_span, as: 'columnSpan'
             end
           end
           
    +      class NestingLevel
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :bullet_style, as: 'bulletStyle', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    +      
    +        end
    +      end
    +      
           class UpdateLinePropertiesRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -887,9 +1490,9 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :fields, as: 'fields'
    -          property :object_id_prop, as: 'objectId'
               property :page_properties, as: 'pageProperties', class: Google::Apis::SlidesV1::PageProperties, decorator: Google::Apis::SlidesV1::PageProperties::Representation
           
    +          property :object_id_prop, as: 'objectId'
             end
           end
           
    @@ -904,9 +1507,9 @@ module Google
           class Placeholder
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :parent_object_id, as: 'parentObjectId'
               property :index, as: 'index'
               property :type, as: 'type'
    +          property :parent_object_id, as: 'parentObjectId'
             end
           end
           
    @@ -921,70 +1524,62 @@ module Google
           class ReplaceAllTextRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :replace_text, as: 'replaceText'
    -          collection :page_object_ids, as: 'pageObjectIds'
               property :contains_text, as: 'containsText', class: Google::Apis::SlidesV1::SubstringMatchCriteria, decorator: Google::Apis::SlidesV1::SubstringMatchCriteria::Representation
           
    +          collection :page_object_ids, as: 'pageObjectIds'
    +          property :replace_text, as: 'replaceText'
             end
           end
           
           class Page
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :master_properties, as: 'masterProperties', class: Google::Apis::SlidesV1::MasterProperties, decorator: Google::Apis::SlidesV1::MasterProperties::Representation
    +      
               property :object_id_prop, as: 'objectId'
               property :revision_id, as: 'revisionId'
               property :layout_properties, as: 'layoutProperties', class: Google::Apis::SlidesV1::LayoutProperties, decorator: Google::Apis::SlidesV1::LayoutProperties::Representation
           
    +          collection :page_elements, as: 'pageElements', class: Google::Apis::SlidesV1::PageElement, decorator: Google::Apis::SlidesV1::PageElement::Representation
    +      
               property :notes_properties, as: 'notesProperties', class: Google::Apis::SlidesV1::NotesProperties, decorator: Google::Apis::SlidesV1::NotesProperties::Representation
           
               property :page_type, as: 'pageType'
    -          collection :page_elements, as: 'pageElements', class: Google::Apis::SlidesV1::PageElement, decorator: Google::Apis::SlidesV1::PageElement::Representation
    +          property :page_properties, as: 'pageProperties', class: Google::Apis::SlidesV1::PageProperties, decorator: Google::Apis::SlidesV1::PageProperties::Representation
           
               property :slide_properties, as: 'slideProperties', class: Google::Apis::SlidesV1::SlideProperties, decorator: Google::Apis::SlidesV1::SlideProperties::Representation
           
    -          property :page_properties, as: 'pageProperties', class: Google::Apis::SlidesV1::PageProperties, decorator: Google::Apis::SlidesV1::PageProperties::Representation
    -      
             end
           end
           
           class ShapeBackgroundFill
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :property_state, as: 'propertyState'
               property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation
           
    -          property :property_state, as: 'propertyState'
             end
           end
           
           class CropProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :left_offset, as: 'leftOffset'
               property :right_offset, as: 'rightOffset'
               property :bottom_offset, as: 'bottomOffset'
               property :angle, as: 'angle'
               property :top_offset, as: 'topOffset'
    +          property :left_offset, as: 'leftOffset'
             end
           end
           
           class ReplaceAllShapesWithSheetsChartRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :spreadsheet_id, as: 'spreadsheetId'
               property :linking_mode, as: 'linkingMode'
    -          property :contains_text, as: 'containsText', class: Google::Apis::SlidesV1::SubstringMatchCriteria, decorator: Google::Apis::SlidesV1::SubstringMatchCriteria::Representation
    -      
    -          property :chart_id, as: 'chartId'
    +          property :spreadsheet_id, as: 'spreadsheetId'
               collection :page_object_ids, as: 'pageObjectIds'
    -        end
    -      end
    -      
    -      class ColorStop
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :alpha, as: 'alpha'
    -          property :position, as: 'position'
    -          property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    +          property :chart_id, as: 'chartId'
    +          property :contains_text, as: 'containsText', class: Google::Apis::SlidesV1::SubstringMatchCriteria, decorator: Google::Apis::SlidesV1::SubstringMatchCriteria::Representation
           
             end
           end
    @@ -992,17 +1587,27 @@ module Google
           class Range
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :start_index, as: 'startIndex'
               property :end_index, as: 'endIndex'
    +          property :start_index, as: 'startIndex'
    +          property :type, as: 'type'
    +        end
    +      end
    +      
    +      class ColorStop
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :position, as: 'position'
    +          property :alpha, as: 'alpha'
    +          property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    +      
             end
           end
           
           class CreateVideoRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
               property :source, as: 'source'
    +          property :object_id_prop, as: 'objectId'
               property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
           
               property :id, as: 'id'
    @@ -1021,17 +1626,15 @@ module Google
             class Representation < Google::Apis::Core::JsonRepresentation
               property :image_url, as: 'imageUrl'
               property :replace_method, as: 'replaceMethod'
    +          collection :page_object_ids, as: 'pageObjectIds'
               property :contains_text, as: 'containsText', class: Google::Apis::SlidesV1::SubstringMatchCriteria, decorator: Google::Apis::SlidesV1::SubstringMatchCriteria::Representation
           
    -          collection :page_object_ids, as: 'pageObjectIds'
             end
           end
           
           class Shadow
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :blur_radius, as: 'blurRadius', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
               property :type, as: 'type'
               property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
           
    @@ -1041,6 +1644,8 @@ module Google
           
               property :rotate_with_shape, as: 'rotateWithShape'
               property :property_state, as: 'propertyState'
    +          property :blur_radius, as: 'blurRadius', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    +      
             end
           end
           
    @@ -1056,11 +1661,11 @@ module Google
           class Bullet
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :glyph, as: 'glyph'
    +          property :nesting_level, as: 'nestingLevel'
               property :bullet_style, as: 'bulletStyle', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
           
               property :list_id, as: 'listId'
    -          property :glyph, as: 'glyph'
    -          property :nesting_level, as: 'nestingLevel'
             end
           end
           
    @@ -1082,8 +1687,8 @@ module Google
           class TableCellLocation
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :row_index, as: 'rowIndex'
               property :column_index, as: 'columnIndex'
    +          property :row_index, as: 'rowIndex'
             end
           end
           
    @@ -1097,13 +1702,13 @@ module Google
           class UpdateParagraphStyleRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +          property :fields, as: 'fields'
    +          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
           
    +          property :object_id_prop, as: 'objectId'
               property :style, as: 'style', class: Google::Apis::SlidesV1::ParagraphStyle, decorator: Google::Apis::SlidesV1::ParagraphStyle::Representation
           
    -          property :fields, as: 'fields'
    -          property :object_id_prop, as: 'objectId'
    -          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
           
             end
           end
    @@ -1119,11 +1724,11 @@ module Google
           class Shape
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :shape_type, as: 'shapeType'
    -          property :text, as: 'text', class: Google::Apis::SlidesV1::TextContent, decorator: Google::Apis::SlidesV1::TextContent::Representation
    -      
               property :placeholder, as: 'placeholder', class: Google::Apis::SlidesV1::Placeholder, decorator: Google::Apis::SlidesV1::Placeholder::Representation
           
    +          property :text, as: 'text', class: Google::Apis::SlidesV1::TextContent, decorator: Google::Apis::SlidesV1::TextContent::Representation
    +      
    +          property :shape_type, as: 'shapeType'
               property :shape_properties, as: 'shapeProperties', class: Google::Apis::SlidesV1::ShapeProperties, decorator: Google::Apis::SlidesV1::ShapeProperties::Representation
           
             end
    @@ -1132,30 +1737,30 @@ module Google
           class Image
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :content_url, as: 'contentUrl'
               property :image_properties, as: 'imageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation
           
    -          property :content_url, as: 'contentUrl'
             end
           end
           
           class AffineTransform
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :shear_x, as: 'shearX'
    +          property :scale_y, as: 'scaleY'
               property :translate_y, as: 'translateY'
               property :translate_x, as: 'translateX'
               property :shear_y, as: 'shearY'
               property :unit, as: 'unit'
               property :scale_x, as: 'scaleX'
    -          property :shear_x, as: 'shearX'
    -          property :scale_y, as: 'scaleY'
             end
           end
           
           class InsertTextRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
               property :text, as: 'text'
    +          property :object_id_prop, as: 'objectId'
               property :insertion_index, as: 'insertionIndex'
               property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
           
    @@ -1165,8 +1770,8 @@ module Google
           class AutoText
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
               property :content, as: 'content'
    +          property :type, as: 'type'
               property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
           
             end
    @@ -1179,27 +1784,27 @@ module Google
             end
           end
           
    -      class DeleteTextRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    -      
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -        end
    -      end
    -      
           class UpdatePageElementTransformRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
               property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
           
    +          property :object_id_prop, as: 'objectId'
               property :apply_mode, as: 'applyMode'
             end
           end
           
    +      class DeleteTextRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    +      
    +          property :object_id_prop, as: 'objectId'
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
    +        end
    +      end
    +      
           class DeleteObjectRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -1207,25 +1812,25 @@ module Google
             end
           end
           
    -      class Dimension
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :magnitude, as: 'magnitude'
    -          property :unit, as: 'unit'
    -        end
    -      end
    -      
           class TextElement
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :end_index, as: 'endIndex'
    +          property :start_index, as: 'startIndex'
               property :text_run, as: 'textRun', class: Google::Apis::SlidesV1::TextRun, decorator: Google::Apis::SlidesV1::TextRun::Representation
           
               property :auto_text, as: 'autoText', class: Google::Apis::SlidesV1::AutoText, decorator: Google::Apis::SlidesV1::AutoText::Representation
           
               property :paragraph_marker, as: 'paragraphMarker', class: Google::Apis::SlidesV1::ParagraphMarker, decorator: Google::Apis::SlidesV1::ParagraphMarker::Representation
           
    -          property :start_index, as: 'startIndex'
    -          property :end_index, as: 'endIndex'
    +        end
    +      end
    +      
    +      class Dimension
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :magnitude, as: 'magnitude'
    +          property :unit, as: 'unit'
             end
           end
           
    @@ -1248,43 +1853,41 @@ module Google
           class InsertTableRowsRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
               property :table_object_id, as: 'tableObjectId'
               property :insert_below, as: 'insertBelow'
               property :number, as: 'number'
    +          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    +      
             end
           end
           
           class LayoutProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :master_object_id, as: 'masterObjectId'
               property :name, as: 'name'
               property :display_name, as: 'displayName'
    -          property :master_object_id, as: 'masterObjectId'
             end
           end
           
           class LineProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dash_style, as: 'dashStyle'
    -          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    -      
    -          property :start_arrow, as: 'startArrow'
    -          property :end_arrow, as: 'endArrow'
               property :weight, as: 'weight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
           
               property :line_fill, as: 'lineFill', class: Google::Apis::SlidesV1::LineFill, decorator: Google::Apis::SlidesV1::LineFill::Representation
           
    +          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    +      
    +          property :dash_style, as: 'dashStyle'
    +          property :end_arrow, as: 'endArrow'
    +          property :start_arrow, as: 'startArrow'
             end
           end
           
           class Presentation
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :notes_master, as: 'notesMaster', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
    -      
               collection :layouts, as: 'layouts', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
           
               property :title, as: 'title'
    @@ -1297,6 +1900,8 @@ module Google
               collection :slides, as: 'slides', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
           
               property :revision_id, as: 'revisionId'
    +          property :notes_master, as: 'notesMaster', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
    +      
             end
           end
           
    @@ -1312,11 +1917,6 @@ module Google
           class ImageProperties
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation
    -      
    -          property :contrast, as: 'contrast'
    -          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    -      
               property :crop_properties, as: 'cropProperties', class: Google::Apis::SlidesV1::CropProperties, decorator: Google::Apis::SlidesV1::CropProperties::Representation
           
               property :recolor, as: 'recolor', class: Google::Apis::SlidesV1::Recolor, decorator: Google::Apis::SlidesV1::Recolor::Representation
    @@ -1325,6 +1925,11 @@ module Google
           
               property :brightness, as: 'brightness'
               property :transparency, as: 'transparency'
    +          property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation
    +      
    +          property :contrast, as: 'contrast'
    +          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    +      
             end
           end
           
    @@ -1334,596 +1939,6 @@ module Google
               property :occurrences_changed, as: 'occurrencesChanged'
             end
           end
    -      
    -      class Line
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation
    -      
    -          property :line_type, as: 'lineType'
    -        end
    -      end
    -      
    -      class BatchUpdatePresentationResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :replies, as: 'replies', class: Google::Apis::SlidesV1::Response, decorator: Google::Apis::SlidesV1::Response::Representation
    -      
    -          property :presentation_id, as: 'presentationId'
    -        end
    -      end
    -      
    -      class CreateSheetsChartRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart_id, as: 'chartId'
    -          property :object_id_prop, as: 'objectId'
    -          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    -      
    -          property :spreadsheet_id, as: 'spreadsheetId'
    -          property :linking_mode, as: 'linkingMode'
    -        end
    -      end
    -      
    -      class CreateImageResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class SlideProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :layout_object_id, as: 'layoutObjectId'
    -          property :master_object_id, as: 'masterObjectId'
    -          property :notes_page, as: 'notesPage', class: Google::Apis::SlidesV1::Page, decorator: Google::Apis::SlidesV1::Page::Representation
    -      
    -        end
    -      end
    -      
    -      class Response
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectResponse, decorator: Google::Apis::SlidesV1::DuplicateObjectResponse::Representation
    -      
    -          property :create_shape, as: 'createShape', class: Google::Apis::SlidesV1::CreateShapeResponse, decorator: Google::Apis::SlidesV1::CreateShapeResponse::Representation
    -      
    -          property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineResponse, decorator: Google::Apis::SlidesV1::CreateLineResponse::Representation
    -      
    -          property :create_image, as: 'createImage', class: Google::Apis::SlidesV1::CreateImageResponse, decorator: Google::Apis::SlidesV1::CreateImageResponse::Representation
    -      
    -          property :create_video, as: 'createVideo', class: Google::Apis::SlidesV1::CreateVideoResponse, decorator: Google::Apis::SlidesV1::CreateVideoResponse::Representation
    -      
    -          property :replace_all_shapes_with_sheets_chart, as: 'replaceAllShapesWithSheetsChart', class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse::Representation
    -      
    -          property :create_sheets_chart, as: 'createSheetsChart', class: Google::Apis::SlidesV1::CreateSheetsChartResponse, decorator: Google::Apis::SlidesV1::CreateSheetsChartResponse::Representation
    -      
    -          property :replace_all_shapes_with_image, as: 'replaceAllShapesWithImage', class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse::Representation
    -      
    -          property :create_table, as: 'createTable', class: Google::Apis::SlidesV1::CreateTableResponse, decorator: Google::Apis::SlidesV1::CreateTableResponse::Representation
    -      
    -          property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextResponse, decorator: Google::Apis::SlidesV1::ReplaceAllTextResponse::Representation
    -      
    -          property :create_slide, as: 'createSlide', class: Google::Apis::SlidesV1::CreateSlideResponse, decorator: Google::Apis::SlidesV1::CreateSlideResponse::Representation
    -      
    -        end
    -      end
    -      
    -      class TextRun
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :content, as: 'content'
    -          property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    -      
    -        end
    -      end
    -      
    -      class LayoutReference
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :layout_id, as: 'layoutId'
    -          property :predefined_layout, as: 'predefinedLayout'
    -        end
    -      end
    -      
    -      class SubstringMatchCriteria
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :text, as: 'text'
    -          property :match_case, as: 'matchCase'
    -        end
    -      end
    -      
    -      class TableRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :location, as: 'location', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -          property :row_span, as: 'rowSpan'
    -          property :column_span, as: 'columnSpan'
    -        end
    -      end
    -      
    -      class CreateTableResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class CreateTableRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :rows, as: 'rows'
    -          property :object_id_prop, as: 'objectId'
    -          property :columns, as: 'columns'
    -          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    -      
    -        end
    -      end
    -      
    -      class Table
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :columns, as: 'columns'
    -          collection :table_rows, as: 'tableRows', class: Google::Apis::SlidesV1::TableRow, decorator: Google::Apis::SlidesV1::TableRow::Representation
    -      
    -          property :rows, as: 'rows'
    -          collection :table_columns, as: 'tableColumns', class: Google::Apis::SlidesV1::TableColumnProperties, decorator: Google::Apis::SlidesV1::TableColumnProperties::Representation
    -      
    -        end
    -      end
    -      
    -      class PageBackgroundFill
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :solid_fill, as: 'solidFill', class: Google::Apis::SlidesV1::SolidFill, decorator: Google::Apis::SlidesV1::SolidFill::Representation
    -      
    -          property :property_state, as: 'propertyState'
    -          property :stretched_picture_fill, as: 'stretchedPictureFill', class: Google::Apis::SlidesV1::StretchedPictureFill, decorator: Google::Apis::SlidesV1::StretchedPictureFill::Representation
    -      
    -        end
    -      end
    -      
    -      class SheetsChart
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :sheets_chart_properties, as: 'sheetsChartProperties', class: Google::Apis::SlidesV1::SheetsChartProperties, decorator: Google::Apis::SlidesV1::SheetsChartProperties::Representation
    -      
    -          property :content_url, as: 'contentUrl'
    -          property :spreadsheet_id, as: 'spreadsheetId'
    -          property :chart_id, as: 'chartId'
    -        end
    -      end
    -      
    -      class SolidFill
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :color, as: 'color', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    -      
    -          property :alpha, as: 'alpha'
    -        end
    -      end
    -      
    -      class ThemeColorPair
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :color, as: 'color', class: Google::Apis::SlidesV1::RgbColor, decorator: Google::Apis::SlidesV1::RgbColor::Representation
    -      
    -        end
    -      end
    -      
    -      class OptionalColor
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :opaque_color, as: 'opaqueColor', class: Google::Apis::SlidesV1::OpaqueColor, decorator: Google::Apis::SlidesV1::OpaqueColor::Representation
    -      
    -        end
    -      end
    -      
    -      class PageElementProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    -      
    -          property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
    -      
    -          property :page_object_id, as: 'pageObjectId'
    -        end
    -      end
    -      
    -      class SheetsChartProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :chart_image_properties, as: 'chartImageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation
    -      
    -        end
    -      end
    -      
    -      class StretchedPictureFill
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :content_url, as: 'contentUrl'
    -          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    -      
    -        end
    -      end
    -      
    -      class DeleteTableColumnRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -          property :table_object_id, as: 'tableObjectId'
    -        end
    -      end
    -      
    -      class UpdateTextStyleRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -          property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
    -      
    -          property :fields, as: 'fields'
    -          property :object_id_prop, as: 'objectId'
    -          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    -      
    -        end
    -      end
    -      
    -      class List
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          hash :nesting_level, as: 'nestingLevel', class: Google::Apis::SlidesV1::NestingLevel, decorator: Google::Apis::SlidesV1::NestingLevel::Representation
    -      
    -          property :list_id, as: 'listId'
    -        end
    -      end
    -      
    -      class WeightedFontFamily
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :font_family, as: 'fontFamily'
    -          property :weight, as: 'weight'
    -        end
    -      end
    -      
    -      class PageElement
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :element_group, as: 'elementGroup', class: Google::Apis::SlidesV1::Group, decorator: Google::Apis::SlidesV1::Group::Representation
    -      
    -          property :image, as: 'image', class: Google::Apis::SlidesV1::Image, decorator: Google::Apis::SlidesV1::Image::Representation
    -      
    -          property :size, as: 'size', class: Google::Apis::SlidesV1::Size, decorator: Google::Apis::SlidesV1::Size::Representation
    -      
    -          property :title, as: 'title'
    -          property :sheets_chart, as: 'sheetsChart', class: Google::Apis::SlidesV1::SheetsChart, decorator: Google::Apis::SlidesV1::SheetsChart::Representation
    -      
    -          property :video, as: 'video', class: Google::Apis::SlidesV1::Video, decorator: Google::Apis::SlidesV1::Video::Representation
    -      
    -          property :word_art, as: 'wordArt', class: Google::Apis::SlidesV1::WordArt, decorator: Google::Apis::SlidesV1::WordArt::Representation
    -      
    -          property :table, as: 'table', class: Google::Apis::SlidesV1::Table, decorator: Google::Apis::SlidesV1::Table::Representation
    -      
    -          property :transform, as: 'transform', class: Google::Apis::SlidesV1::AffineTransform, decorator: Google::Apis::SlidesV1::AffineTransform::Representation
    -      
    -          property :object_id_prop, as: 'objectId'
    -          property :shape, as: 'shape', class: Google::Apis::SlidesV1::Shape, decorator: Google::Apis::SlidesV1::Shape::Representation
    -      
    -          property :line, as: 'line', class: Google::Apis::SlidesV1::Line, decorator: Google::Apis::SlidesV1::Line::Representation
    -      
    -          property :description, as: 'description'
    -        end
    -      end
    -      
    -      class CreateImageRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -          property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
    -      
    -          property :url, as: 'url'
    -        end
    -      end
    -      
    -      class CreateParagraphBulletsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :bullet_preset, as: 'bulletPreset'
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -          property :object_id_prop, as: 'objectId'
    -          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    -      
    -        end
    -      end
    -      
    -      class Size
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :width, as: 'width', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :height, as: 'height', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -        end
    -      end
    -      
    -      class TextStyle
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :small_caps, as: 'smallCaps'
    -          property :background_color, as: 'backgroundColor', class: Google::Apis::SlidesV1::OptionalColor, decorator: Google::Apis::SlidesV1::OptionalColor::Representation
    -      
    -          property :underline, as: 'underline'
    -          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    -      
    -          property :foreground_color, as: 'foregroundColor', class: Google::Apis::SlidesV1::OptionalColor, decorator: Google::Apis::SlidesV1::OptionalColor::Representation
    -      
    -          property :bold, as: 'bold'
    -          property :font_family, as: 'fontFamily'
    -          property :strikethrough, as: 'strikethrough'
    -          property :italic, as: 'italic'
    -          property :font_size, as: 'fontSize', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :baseline_offset, as: 'baselineOffset'
    -          property :weighted_font_family, as: 'weightedFontFamily', class: Google::Apis::SlidesV1::WeightedFontFamily, decorator: Google::Apis::SlidesV1::WeightedFontFamily::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateVideoPropertiesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :video_properties, as: 'videoProperties', class: Google::Apis::SlidesV1::VideoProperties, decorator: Google::Apis::SlidesV1::VideoProperties::Representation
    -      
    -          property :fields, as: 'fields'
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class Request
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :delete_table_row, as: 'deleteTableRow', class: Google::Apis::SlidesV1::DeleteTableRowRequest, decorator: Google::Apis::SlidesV1::DeleteTableRowRequest::Representation
    -      
    -          property :update_shape_properties, as: 'updateShapeProperties', class: Google::Apis::SlidesV1::UpdateShapePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateShapePropertiesRequest::Representation
    -      
    -          property :insert_text, as: 'insertText', class: Google::Apis::SlidesV1::InsertTextRequest, decorator: Google::Apis::SlidesV1::InsertTextRequest::Representation
    -      
    -          property :delete_text, as: 'deleteText', class: Google::Apis::SlidesV1::DeleteTextRequest, decorator: Google::Apis::SlidesV1::DeleteTextRequest::Representation
    -      
    -          property :update_page_properties, as: 'updatePageProperties', class: Google::Apis::SlidesV1::UpdatePagePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdatePagePropertiesRequest::Representation
    -      
    -          property :delete_paragraph_bullets, as: 'deleteParagraphBullets', class: Google::Apis::SlidesV1::DeleteParagraphBulletsRequest, decorator: Google::Apis::SlidesV1::DeleteParagraphBulletsRequest::Representation
    -      
    -          property :create_shape, as: 'createShape', class: Google::Apis::SlidesV1::CreateShapeRequest, decorator: Google::Apis::SlidesV1::CreateShapeRequest::Representation
    -      
    -          property :insert_table_columns, as: 'insertTableColumns', class: Google::Apis::SlidesV1::InsertTableColumnsRequest, decorator: Google::Apis::SlidesV1::InsertTableColumnsRequest::Representation
    -      
    -          property :refresh_sheets_chart, as: 'refreshSheetsChart', class: Google::Apis::SlidesV1::RefreshSheetsChartRequest, decorator: Google::Apis::SlidesV1::RefreshSheetsChartRequest::Representation
    -      
    -          property :create_table, as: 'createTable', class: Google::Apis::SlidesV1::CreateTableRequest, decorator: Google::Apis::SlidesV1::CreateTableRequest::Representation
    -      
    -          property :update_table_cell_properties, as: 'updateTableCellProperties', class: Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateTableCellPropertiesRequest::Representation
    -      
    -          property :delete_object, as: 'deleteObject', class: Google::Apis::SlidesV1::DeleteObjectRequest, decorator: Google::Apis::SlidesV1::DeleteObjectRequest::Representation
    -      
    -          property :update_paragraph_style, as: 'updateParagraphStyle', class: Google::Apis::SlidesV1::UpdateParagraphStyleRequest, decorator: Google::Apis::SlidesV1::UpdateParagraphStyleRequest::Representation
    -      
    -          property :duplicate_object, as: 'duplicateObject', class: Google::Apis::SlidesV1::DuplicateObjectRequest, decorator: Google::Apis::SlidesV1::DuplicateObjectRequest::Representation
    -      
    -          property :delete_table_column, as: 'deleteTableColumn', class: Google::Apis::SlidesV1::DeleteTableColumnRequest, decorator: Google::Apis::SlidesV1::DeleteTableColumnRequest::Representation
    -      
    -          property :update_video_properties, as: 'updateVideoProperties', class: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateVideoPropertiesRequest::Representation
    -      
    -          property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineRequest, decorator: Google::Apis::SlidesV1::CreateLineRequest::Representation
    -      
    -          property :create_image, as: 'createImage', class: Google::Apis::SlidesV1::CreateImageRequest, decorator: Google::Apis::SlidesV1::CreateImageRequest::Representation
    -      
    -          property :create_paragraph_bullets, as: 'createParagraphBullets', class: Google::Apis::SlidesV1::CreateParagraphBulletsRequest, decorator: Google::Apis::SlidesV1::CreateParagraphBulletsRequest::Representation
    -      
    -          property :create_video, as: 'createVideo', class: Google::Apis::SlidesV1::CreateVideoRequest, decorator: Google::Apis::SlidesV1::CreateVideoRequest::Representation
    -      
    -          property :create_sheets_chart, as: 'createSheetsChart', class: Google::Apis::SlidesV1::CreateSheetsChartRequest, decorator: Google::Apis::SlidesV1::CreateSheetsChartRequest::Representation
    -      
    -          property :replace_all_shapes_with_sheets_chart, as: 'replaceAllShapesWithSheetsChart', class: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartRequest::Representation
    -      
    -          property :update_page_element_transform, as: 'updatePageElementTransform', class: Google::Apis::SlidesV1::UpdatePageElementTransformRequest, decorator: Google::Apis::SlidesV1::UpdatePageElementTransformRequest::Representation
    -      
    -          property :update_text_style, as: 'updateTextStyle', class: Google::Apis::SlidesV1::UpdateTextStyleRequest, decorator: Google::Apis::SlidesV1::UpdateTextStyleRequest::Representation
    -      
    -          property :replace_all_shapes_with_image, as: 'replaceAllShapesWithImage', class: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest, decorator: Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest::Representation
    -      
    -          property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextRequest, decorator: Google::Apis::SlidesV1::ReplaceAllTextRequest::Representation
    -      
    -          property :update_image_properties, as: 'updateImageProperties', class: Google::Apis::SlidesV1::UpdateImagePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateImagePropertiesRequest::Representation
    -      
    -          property :create_slide, as: 'createSlide', class: Google::Apis::SlidesV1::CreateSlideRequest, decorator: Google::Apis::SlidesV1::CreateSlideRequest::Representation
    -      
    -          property :insert_table_rows, as: 'insertTableRows', class: Google::Apis::SlidesV1::InsertTableRowsRequest, decorator: Google::Apis::SlidesV1::InsertTableRowsRequest::Representation
    -      
    -          property :update_line_properties, as: 'updateLineProperties', class: Google::Apis::SlidesV1::UpdateLinePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateLinePropertiesRequest::Representation
    -      
    -          property :update_slides_position, as: 'updateSlidesPosition', class: Google::Apis::SlidesV1::UpdateSlidesPositionRequest, decorator: Google::Apis::SlidesV1::UpdateSlidesPositionRequest::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateImagePropertiesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :fields, as: 'fields'
    -          property :image_properties, as: 'imageProperties', class: Google::Apis::SlidesV1::ImageProperties, decorator: Google::Apis::SlidesV1::ImageProperties::Representation
    -      
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class ParagraphStyle
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :space_below, as: 'spaceBelow', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :direction, as: 'direction'
    -          property :indent_end, as: 'indentEnd', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :spacing_mode, as: 'spacingMode'
    -          property :indent_start, as: 'indentStart', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :space_above, as: 'spaceAbove', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :indent_first_line, as: 'indentFirstLine', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          property :line_spacing, as: 'lineSpacing'
    -          property :alignment, as: 'alignment'
    -        end
    -      end
    -      
    -      class ReplaceAllShapesWithSheetsChartResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :occurrences_changed, as: 'occurrencesChanged'
    -        end
    -      end
    -      
    -      class TableCellProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :table_cell_background_fill, as: 'tableCellBackgroundFill', class: Google::Apis::SlidesV1::TableCellBackgroundFill, decorator: Google::Apis::SlidesV1::TableCellBackgroundFill::Representation
    -      
    -        end
    -      end
    -      
    -      class RefreshSheetsChartRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class Outline
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dash_style, as: 'dashStyle'
    -          property :property_state, as: 'propertyState'
    -          property :outline_fill, as: 'outlineFill', class: Google::Apis::SlidesV1::OutlineFill, decorator: Google::Apis::SlidesV1::OutlineFill::Representation
    -      
    -          property :weight, as: 'weight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -        end
    -      end
    -      
    -      class NotesProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :speaker_notes_object_id, as: 'speakerNotesObjectId'
    -        end
    -      end
    -      
    -      class ShapeProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation
    -      
    -          property :shape_background_fill, as: 'shapeBackgroundFill', class: Google::Apis::SlidesV1::ShapeBackgroundFill, decorator: Google::Apis::SlidesV1::ShapeBackgroundFill::Representation
    -      
    -          property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation
    -      
    -          property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
    -      
    -        end
    -      end
    -      
    -      class TableColumnProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :column_width, as: 'columnWidth', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -        end
    -      end
    -      
    -      class TableRow
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :row_height, as: 'rowHeight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
    -      
    -          collection :table_cells, as: 'tableCells', class: Google::Apis::SlidesV1::TableCell, decorator: Google::Apis::SlidesV1::TableCell::Representation
    -      
    -        end
    -      end
    -      
    -      class UpdateTableCellPropertiesRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :fields, as: 'fields'
    -          property :object_id_prop, as: 'objectId'
    -          property :table_range, as: 'tableRange', class: Google::Apis::SlidesV1::TableRange, decorator: Google::Apis::SlidesV1::TableRange::Representation
    -      
    -          property :table_cell_properties, as: 'tableCellProperties', class: Google::Apis::SlidesV1::TableCellProperties, decorator: Google::Apis::SlidesV1::TableCellProperties::Representation
    -      
    -        end
    -      end
    -      
    -      class CreateSlideRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :slide_layout_reference, as: 'slideLayoutReference', class: Google::Apis::SlidesV1::LayoutReference, decorator: Google::Apis::SlidesV1::LayoutReference::Representation
    -      
    -          property :object_id_prop, as: 'objectId'
    -          property :insertion_index, as: 'insertionIndex'
    -          collection :placeholder_id_mappings, as: 'placeholderIdMappings', class: Google::Apis::SlidesV1::LayoutPlaceholderIdMapping, decorator: Google::Apis::SlidesV1::LayoutPlaceholderIdMapping::Representation
    -      
    -        end
    -      end
    -      
    -      class BatchUpdatePresentationRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :requests, as: 'requests', class: Google::Apis::SlidesV1::Request, decorator: Google::Apis::SlidesV1::Request::Representation
    -      
    -          property :write_control, as: 'writeControl', class: Google::Apis::SlidesV1::WriteControl, decorator: Google::Apis::SlidesV1::WriteControl::Representation
    -      
    -        end
    -      end
    -      
    -      class TextContent
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          hash :lists, as: 'lists', class: Google::Apis::SlidesV1::List, decorator: Google::Apis::SlidesV1::List::Representation
    -      
    -          collection :text_elements, as: 'textElements', class: Google::Apis::SlidesV1::TextElement, decorator: Google::Apis::SlidesV1::TextElement::Representation
    -      
    -        end
    -      end
    -      
    -      class CreateSheetsChartResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :object_id_prop, as: 'objectId'
    -        end
    -      end
    -      
    -      class WriteControl
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :required_revision_id, as: 'requiredRevisionId'
    -        end
    -      end
    -      
    -      class DeleteParagraphBulletsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cell_location, as: 'cellLocation', class: Google::Apis::SlidesV1::TableCellLocation, decorator: Google::Apis::SlidesV1::TableCellLocation::Representation
    -      
    -          property :object_id_prop, as: 'objectId'
    -          property :text_range, as: 'textRange', class: Google::Apis::SlidesV1::Range, decorator: Google::Apis::SlidesV1::Range::Representation
    -      
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/slides_v1/service.rb b/generated/google/apis/slides_v1/service.rb
    index c3c298beb..4898318f4 100644
    --- a/generated/google/apis/slides_v1/service.rb
    +++ b/generated/google/apis/slides_v1/service.rb
    @@ -50,11 +50,11 @@ module Google
             # Gets the latest version of the specified presentation.
             # @param [String] presentation_id
             #   The ID of the presentation 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.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -67,45 +67,13 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_presentation(presentation_id, quota_user: nil, fields: nil, options: nil, &block)
    +        def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
               command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
               command.response_class = Google::Apis::SlidesV1::Presentation
               command.params['presentationId'] = presentation_id unless presentation_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
    -        
    -        # Creates a new presentation using the title given in the request. Other
    -        # fields in the request are ignored.
    -        # Returns the created presentation.
    -        # @param [Google::Apis::SlidesV1::Presentation] presentation_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::SlidesV1::Presentation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SlidesV1::Presentation]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_presentation(presentation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/presentations', options)
    -          command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
    -          command.request_object = presentation_object
    -          command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
    -          command.response_class = Google::Apis::SlidesV1::Presentation
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -129,11 +97,11 @@ module Google
             # @param [String] presentation_id
             #   The presentation to apply the updates to.
             # @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_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 [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -146,15 +114,47 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1/presentations/{presentationId}:batchUpdate', options)
               command.request_representation = Google::Apis::SlidesV1::BatchUpdatePresentationRequest::Representation
               command.request_object = batch_update_presentation_request_object
               command.response_representation = Google::Apis::SlidesV1::BatchUpdatePresentationResponse::Representation
               command.response_class = Google::Apis::SlidesV1::BatchUpdatePresentationResponse
               command.params['presentationId'] = presentation_id unless presentation_id.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.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 new presentation using the title given in the request. Other
    +        # fields in the request are ignored.
    +        # Returns the created presentation.
    +        # @param [Google::Apis::SlidesV1::Presentation] presentation_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::SlidesV1::Presentation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SlidesV1::Presentation]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_presentation(presentation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/presentations', options)
    +          command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
    +          command.request_object = presentation_object
    +          command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
    +          command.response_class = Google::Apis::SlidesV1::Presentation
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -163,11 +163,11 @@ module Google
             #   The ID of the presentation to retrieve.
             # @param [String] page_object_id
             #   The object ID of the page 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.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -180,14 +180,14 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_presentation_page(presentation_id, page_object_id, quota_user: nil, fields: nil, options: nil, &block)
    +        def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
               command.response_representation = Google::Apis::SlidesV1::Page::Representation
               command.response_class = Google::Apis::SlidesV1::Page
               command.params['presentationId'] = presentation_id unless presentation_id.nil?
               command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -197,18 +197,18 @@ module Google
             #   The ID of the presentation to retrieve.
             # @param [String] page_object_id
             #   The object ID of the page whose thumbnail to retrieve.
    -        # @param [String] thumbnail_properties_mime_type
    -        #   The optional mime type of the thumbnail image.
    -        #   If you don't specify the mime type, the default mime type will be PNG.
             # @param [String] thumbnail_properties_thumbnail_size
             #   The optional thumbnail image size.
             #   If you don't specify the size, the server chooses a default size of the
             #   image.
    +        # @param [String] thumbnail_properties_mime_type
    +        #   The optional mime type of the thumbnail image.
    +        #   If you don't specify the mime type, the default mime type will be PNG.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -221,16 +221,16 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_mime_type: nil, thumbnail_properties_thumbnail_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_thumbnail_size: nil, thumbnail_properties_mime_type: nil, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail', options)
               command.response_representation = Google::Apis::SlidesV1::Thumbnail::Representation
               command.response_class = Google::Apis::SlidesV1::Thumbnail
               command.params['presentationId'] = presentation_id unless presentation_id.nil?
               command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
    -          command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
               command.query['thumbnailProperties.thumbnailSize'] = thumbnail_properties_thumbnail_size unless thumbnail_properties_thumbnail_size.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
     
    diff --git a/generated/google/apis/sourcerepo_v1/classes.rb b/generated/google/apis/sourcerepo_v1/classes.rb
    index f2b769223..e2346cebb 100644
    --- a/generated/google/apis/sourcerepo_v1/classes.rb
    +++ b/generated/google/apis/sourcerepo_v1/classes.rb
    @@ -22,19 +22,6 @@ module Google
       module Apis
         module SourcerepoV1
           
    -      # Write a Data Access (Gin) log
    -      class DataAccessOptions
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
           # Specifies the audit configuration for a service.
           # The configuration determines which permission types are logged, and what
           # identities, if any, are exempted from logging.
    @@ -85,13 +72,6 @@ module Google
           class AuditConfig
             include Google::Apis::Core::Hashable
           
    -        # Specifies a service that will be enabled for audit logging.
    -        # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
    -        # `allServices` is a special value that covers all services.
    -        # Corresponds to the JSON property `service`
    -        # @return [String]
    -        attr_accessor :service
    -      
             # The configuration for logging of each type of permission.
             # Next ID: 4
             # Corresponds to the JSON property `auditLogConfigs`
    @@ -103,15 +83,22 @@ module Google
             # @return [Array]
             attr_accessor :exempted_members
           
    +        # Specifies a service that will be enabled for audit logging.
    +        # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
    +        # `allServices` is a special value that covers all services.
    +        # 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)
    -          @service = args[:service] if args.key?(:service)
               @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
               @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
    +          @service = args[:service] if args.key?(:service)
             end
           end
           
    @@ -228,25 +215,6 @@ module Google
             end
           end
           
    -      # A generic empty message that you can re-use to avoid defining duplicated
    -      # empty messages in your APIs. A typical example is to use it as the request
    -      # or the response type of an API method. For instance:
    -      # service Foo `
    -      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    -      # `
    -      # The JSON representation for `Empty` is empty JSON object ````.
    -      class Empty
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
           # Configuration to automatically mirror a repository from another
           # hosting service, for example GitHub or BitBucket.
           class MirrorConfig
    @@ -284,21 +252,29 @@ module Google
             end
           end
           
    +      # A generic empty message that you can re-use to avoid defining duplicated
    +      # empty messages in your APIs. A typical example is to use it as the request
    +      # or the response type of an API method. For instance:
    +      # service Foo `
    +      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    +      # `
    +      # The JSON representation for `Empty` is empty JSON object ````.
    +      class Empty
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
           # A repository (or repo) is a Git repository storing versioned source content.
           class Repo
             include Google::Apis::Core::Hashable
           
    -        # URL to clone the repository from Google Cloud Source Repositories.
    -        # Corresponds to the JSON property `url`
    -        # @return [String]
    -        attr_accessor :url
    -      
    -        # The disk usage of the repo, in bytes.
    -        # Only returned by GetRepo.
    -        # Corresponds to the JSON property `size`
    -        # @return [Fixnum]
    -        attr_accessor :size
    -      
             # Resource name of the repository, of the form
             # `projects//repos/`.  The repo name may contain slashes.
             # eg, `projects/myproject/repos/name/with/slash`
    @@ -312,16 +288,74 @@ module Google
             # @return [Google::Apis::SourcerepoV1::MirrorConfig]
             attr_accessor :mirror_config
           
    +        # URL to clone the repository from Google Cloud Source Repositories.
    +        # Corresponds to the JSON property `url`
    +        # @return [String]
    +        attr_accessor :url
    +      
    +        # The disk usage of the repo, in bytes.
    +        # Only returned by GetRepo.
    +        # Corresponds to the JSON property `size`
    +        # @return [Fixnum]
    +        attr_accessor :size
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @url = args[:url] if args.key?(:url)
    -          @size = args[:size] if args.key?(:size)
               @name = args[:name] if args.key?(:name)
               @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
    +          @url = args[:url] if args.key?(:url)
    +          @size = args[:size] if args.key?(:size)
    +        end
    +      end
    +      
    +      # Response for ListRepos.  The size is not set in the returned repositories.
    +      class ListReposResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The listed repos.
    +        # Corresponds to the JSON property `repos`
    +        # @return [Array]
    +        attr_accessor :repos
    +      
    +        # If non-empty, additional repositories exist within the project. These
    +        # can be retrieved by including this value in the next ListReposRequest's
    +        # page_token field.
    +        # 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)
    +          @repos = args[:repos] if args.key?(:repos)
    +          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
    +        end
    +      end
    +      
    +      # Response message for `TestIamPermissions` method.
    +      class TestIamPermissionsResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A subset of `TestPermissionsRequest.permissions` that the caller is
    +        # allowed.
    +        # Corresponds to the JSON property `permissions`
    +        # @return [Array]
    +        attr_accessor :permissions
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @permissions = args[:permissions] if args.key?(:permissions)
             end
           end
           
    @@ -329,17 +363,17 @@ module Google
           class Condition
             include Google::Apis::Core::Hashable
           
    -        # DEPRECATED. Use 'values' instead.
    -        # Corresponds to the JSON property `value`
    -        # @return [String]
    -        attr_accessor :value
    -      
             # Trusted attributes supplied by any service that owns resources and uses
             # the IAM system for access control.
             # Corresponds to the JSON property `sys`
             # @return [String]
             attr_accessor :sys
           
    +        # DEPRECATED. Use 'values' instead.
    +        # Corresponds to the JSON property `value`
    +        # @return [String]
    +        attr_accessor :value
    +      
             # The objects of the condition. This is mutually exclusive with 'value'.
             # Corresponds to the JSON property `values`
             # @return [Array]
    @@ -366,8 +400,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @value = args[:value] if args.key?(:value)
               @sys = args[:sys] if args.key?(:sys)
    +          @value = args[:value] if args.key?(:value)
               @values = args[:values] if args.key?(:values)
               @iam = args[:iam] if args.key?(:iam)
               @op = args[:op] if args.key?(:op)
    @@ -375,75 +409,28 @@ module Google
             end
           end
           
    -      # Response for ListRepos.  The size is not set in the returned repositories.
    -      class ListReposResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # If non-empty, additional repositories exist within the project. These
    -        # can be retrieved by including this value in the next ListReposRequest's
    -        # page_token field.
    -        # Corresponds to the JSON property `nextPageToken`
    -        # @return [String]
    -        attr_accessor :next_page_token
    -      
    -        # The listed repos.
    -        # Corresponds to the JSON property `repos`
    -        # @return [Array]
    -        attr_accessor :repos
    -      
    -        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)
    -          @repos = args[:repos] if args.key?(:repos)
    -        end
    -      end
    -      
    -      # Response message for `TestIamPermissions` method.
    -      class TestIamPermissionsResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A subset of `TestPermissionsRequest.permissions` that the caller is
    -        # allowed.
    -        # Corresponds to the JSON property `permissions`
    -        # @return [Array]
    -        attr_accessor :permissions
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @permissions = args[:permissions] if args.key?(:permissions)
    -        end
    -      end
    -      
           # Options for counters
           class CounterOptions
             include Google::Apis::Core::Hashable
           
    -        # The metric to update.
    -        # Corresponds to the JSON property `metric`
    -        # @return [String]
    -        attr_accessor :metric
    -      
             # The field value to attribute.
             # Corresponds to the JSON property `field`
             # @return [String]
             attr_accessor :field
           
    +        # The metric to update.
    +        # Corresponds to the JSON property `metric`
    +        # @return [String]
    +        attr_accessor :metric
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @metric = args[:metric] if args.key?(:metric)
               @field = args[:field] if args.key?(:field)
    +          @metric = args[:metric] if args.key?(:metric)
             end
           end
           
    @@ -467,11 +454,6 @@ module Google
           class AuditLogConfig
             include Google::Apis::Core::Hashable
           
    -        # The log type that this config enables.
    -        # Corresponds to the JSON property `logType`
    -        # @return [String]
    -        attr_accessor :log_type
    -      
             # Specifies the identities that do not cause logging for this type of
             # permission.
             # Follows the same format of Binding.members.
    @@ -479,14 +461,19 @@ module Google
             # @return [Array]
             attr_accessor :exempted_members
           
    +        # The log type that this config enables.
    +        # Corresponds to the JSON property `logType`
    +        # @return [String]
    +        attr_accessor :log_type
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @log_type = args[:log_type] if args.key?(:log_type)
               @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
    +          @log_type = args[:log_type] if args.key?(:log_type)
             end
           end
           
    @@ -556,11 +543,6 @@ module Google
           class LogConfig
             include Google::Apis::Core::Hashable
           
    -        # Write a Cloud Audit log
    -        # Corresponds to the JSON property `cloudAudit`
    -        # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
    -        attr_accessor :cloud_audit
    -      
             # Options for counters
             # Corresponds to the JSON property `counter`
             # @return [Google::Apis::SourcerepoV1::CounterOptions]
    @@ -571,15 +553,20 @@ module Google
             # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
             attr_accessor :data_access
           
    +        # Write a Cloud Audit log
    +        # Corresponds to the JSON property `cloudAudit`
    +        # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
    +        attr_accessor :cloud_audit
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
               @counter = args[:counter] if args.key?(:counter)
               @data_access = args[:data_access] if args.key?(:data_access)
    +          @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
             end
           end
           
    @@ -634,6 +621,20 @@ module Google
           class Policy
             include Google::Apis::Core::Hashable
           
    +        # `etag` is used for optimistic concurrency control as a way to help
    +        # prevent simultaneous updates of a policy from overwriting each other.
    +        # It is strongly suggested that systems make use of the `etag` in the
    +        # read-modify-write cycle to perform policy updates in order to avoid race
    +        # conditions: An `etag` is returned in the response to `getIamPolicy`, and
    +        # systems are expected to put that etag in the request to `setIamPolicy` to
    +        # ensure that their change will be applied to the same version of the policy.
    +        # If no `etag` is provided in the call to `setIamPolicy`, then the existing
    +        # policy is overwritten blindly.
    +        # Corresponds to the JSON property `etag`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :etag
    +      
             # 
             # Corresponds to the JSON property `iamOwned`
             # @return [Boolean]
    @@ -670,19 +671,24 @@ module Google
             # @return [Array]
             attr_accessor :bindings
           
    -        # `etag` is used for optimistic concurrency control as a way to help
    -        # prevent simultaneous updates of a policy from overwriting each other.
    -        # It is strongly suggested that systems make use of the `etag` in the
    -        # read-modify-write cycle to perform policy updates in order to avoid race
    -        # conditions: An `etag` is returned in the response to `getIamPolicy`, and
    -        # systems are expected to put that etag in the request to `setIamPolicy` to
    -        # ensure that their change will be applied to the same version of the policy.
    -        # If no `etag` is provided in the call to `setIamPolicy`, then the existing
    -        # policy is overwritten blindly.
    -        # Corresponds to the JSON property `etag`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :etag
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @etag = args[:etag] if args.key?(:etag)
    +          @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
    +          @rules = args[:rules] if args.key?(:rules)
    +          @version = args[:version] if args.key?(:version)
    +          @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
    +          @bindings = args[:bindings] if args.key?(:bindings)
    +        end
    +      end
    +      
    +      # Write a Data Access (Gin) log
    +      class DataAccessOptions
    +        include Google::Apis::Core::Hashable
           
             def initialize(**args)
                update!(**args)
    @@ -690,12 +696,6 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
    -          @rules = args[:rules] if args.key?(:rules)
    -          @version = args[:version] if args.key?(:version)
    -          @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
    -          @bindings = args[:bindings] if args.key?(:bindings)
    -          @etag = args[:etag] if args.key?(:etag)
             end
           end
         end
    diff --git a/generated/google/apis/sourcerepo_v1/representations.rb b/generated/google/apis/sourcerepo_v1/representations.rb
    index 2c8085ec6..7b325033d 100644
    --- a/generated/google/apis/sourcerepo_v1/representations.rb
    +++ b/generated/google/apis/sourcerepo_v1/representations.rb
    @@ -22,12 +22,6 @@ module Google
       module Apis
         module SourcerepoV1
           
    -      class DataAccessOptions
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class AuditConfig
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -52,25 +46,19 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Empty
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class MirrorConfig
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Repo
    +      class Empty
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Condition
    +      class Repo
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -88,6 +76,12 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    +      class Condition
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class CounterOptions
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -125,18 +119,18 @@ module Google
           end
           
           class DataAccessOptions
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class AuditConfig
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :service, as: 'service'
               collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SourcerepoV1::AuditLogConfig, decorator: Google::Apis::SourcerepoV1::AuditLogConfig::Representation
           
               collection :exempted_members, as: 'exemptedMembers'
    +          property :service, as: 'service'
             end
           end
           
    @@ -164,12 +158,6 @@ module Google
             end
           end
           
    -      class Empty
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    -      end
    -      
           class MirrorConfig
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -179,35 +167,29 @@ module Google
             end
           end
           
    -      class Repo
    +      class Empty
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :url, as: 'url'
    -          property :size, :numeric_string => true, as: 'size'
    -          property :name, as: 'name'
    -          property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
    -      
             end
           end
           
    -      class Condition
    +      class Repo
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :value, as: 'value'
    -          property :sys, as: 'sys'
    -          collection :values, as: 'values'
    -          property :iam, as: 'iam'
    -          property :op, as: 'op'
    -          property :svc, as: 'svc'
    +          property :name, as: 'name'
    +          property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
    +      
    +          property :url, as: 'url'
    +          property :size, :numeric_string => true, as: 'size'
             end
           end
           
           class ListReposResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :next_page_token, as: 'nextPageToken'
               collection :repos, as: 'repos', class: Google::Apis::SourcerepoV1::Repo, decorator: Google::Apis::SourcerepoV1::Repo::Representation
           
    +          property :next_page_token, as: 'nextPageToken'
             end
           end
           
    @@ -218,19 +200,31 @@ module Google
             end
           end
           
    +      class Condition
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :sys, as: 'sys'
    +          property :value, as: 'value'
    +          collection :values, as: 'values'
    +          property :iam, as: 'iam'
    +          property :op, as: 'op'
    +          property :svc, as: 'svc'
    +        end
    +      end
    +      
           class CounterOptions
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :metric, as: 'metric'
               property :field, as: 'field'
    +          property :metric, as: 'metric'
             end
           end
           
           class AuditLogConfig
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :log_type, as: 'logType'
               collection :exempted_members, as: 'exemptedMembers'
    +          property :log_type, as: 'logType'
             end
           end
           
    @@ -252,12 +246,12 @@ module Google
           class LogConfig
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SourcerepoV1::CloudAuditOptions, decorator: Google::Apis::SourcerepoV1::CloudAuditOptions::Representation
    -      
               property :counter, as: 'counter', class: Google::Apis::SourcerepoV1::CounterOptions, decorator: Google::Apis::SourcerepoV1::CounterOptions::Representation
           
               property :data_access, as: 'dataAccess', class: Google::Apis::SourcerepoV1::DataAccessOptions, decorator: Google::Apis::SourcerepoV1::DataAccessOptions::Representation
           
    +          property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SourcerepoV1::CloudAuditOptions, decorator: Google::Apis::SourcerepoV1::CloudAuditOptions::Representation
    +      
             end
           end
           
    @@ -271,6 +265,7 @@ module Google
           class Policy
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :etag, :base64 => true, as: 'etag'
               property :iam_owned, as: 'iamOwned'
               collection :rules, as: 'rules', class: Google::Apis::SourcerepoV1::Rule, decorator: Google::Apis::SourcerepoV1::Rule::Representation
           
    @@ -279,7 +274,12 @@ module Google
           
               collection :bindings, as: 'bindings', class: Google::Apis::SourcerepoV1::Binding, decorator: Google::Apis::SourcerepoV1::Binding::Representation
           
    -          property :etag, :base64 => true, as: 'etag'
    +        end
    +      end
    +      
    +      class DataAccessOptions
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
             end
           end
         end
    diff --git a/generated/google/apis/sourcerepo_v1/service.rb b/generated/google/apis/sourcerepo_v1/service.rb
    index aecf46cb6..cddcfd970 100644
    --- a/generated/google/apis/sourcerepo_v1/service.rb
    +++ b/generated/google/apis/sourcerepo_v1/service.rb
    @@ -53,11 +53,11 @@ module Google
             # @param [String] resource
             #   REQUIRED: The resource for which the policy is being requested.
             #   See the operation documentation for the appropriate value for this field.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -70,13 +70,13 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_project_repo_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
    +        def get_project_repo_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
               command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
               command.response_class = Google::Apis::SourcerepoV1::Policy
               command.params['resource'] = resource unless resource.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -84,11 +84,11 @@ module Google
             # @param [String] name
             #   The name of the requested repository. Values are of the form
             #   `projects//repos/`.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -101,13 +101,13 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
    +        def get_project_repo(name, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+name}', options)
               command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
               command.response_class = Google::Apis::SourcerepoV1::Repo
               command.params['name'] = name unless name.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -118,11 +118,11 @@ module Google
             #   REQUIRED: The resource for which the policy detail is being requested.
             #   See the operation documentation for the appropriate value for this field.
             # @param [Google::Apis::SourcerepoV1::TestIamPermissionsRequest] test_iam_permissions_request_object
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -135,15 +135,15 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def test_repo_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def test_repo_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
               command.request_representation = Google::Apis::SourcerepoV1::TestIamPermissionsRequest::Representation
               command.request_object = test_iam_permissions_request_object
               command.response_representation = Google::Apis::SourcerepoV1::TestIamPermissionsResponse::Representation
               command.response_class = Google::Apis::SourcerepoV1::TestIamPermissionsResponse
               command.params['resource'] = resource unless resource.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -151,11 +151,11 @@ module Google
             # @param [String] name
             #   The name of the repo to delete. Values are of the form
             #   `projects//repos/`.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -168,13 +168,13 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def delete_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
    +        def delete_project_repo(name, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:delete, 'v1/{+name}', options)
               command.response_representation = Google::Apis::SourcerepoV1::Empty::Representation
               command.response_class = Google::Apis::SourcerepoV1::Empty
               command.params['name'] = name unless name.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -183,18 +183,18 @@ module Google
             # @param [String] name
             #   The project ID whose repos should be listed. Values are of the form
             #   `projects/`.
    -        # @param [Fixnum] page_size
    -        #   Maximum number of repositories to return; between 1 and 500.
    -        #   If not set or zero, defaults to 100 at the server.
             # @param [String] page_token
             #   Resume listing repositories where a prior ListReposResponse
             #   left off. This is an opaque token that must be obtained from
             #   a recent, prior ListReposResponse's next_page_token field.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    +        # @param [Fixnum] page_size
    +        #   Maximum number of repositories to return; between 1 and 500.
    +        #   If not set or zero, defaults to 100 at the server.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -207,50 +207,15 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_project_repos(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def list_project_repos(name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+name}/repos', options)
               command.response_representation = Google::Apis::SourcerepoV1::ListReposResponse::Representation
               command.response_class = Google::Apis::SourcerepoV1::ListReposResponse
               command.params['name'] = name unless name.nil?
    -          command.query['pageSize'] = page_size unless page_size.nil?
               command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['fields'] = fields unless fields.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Sets the access control policy on the specified resource. Replaces any
    -        # existing policy.
    -        # @param [String] resource
    -        #   REQUIRED: The resource for which the policy is being specified.
    -        #   See the operation documentation for the appropriate value for this field.
    -        # @param [Google::Apis::SourcerepoV1::SetIamPolicyRequest] set_iam_policy_request_object
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
    -        # @param [String] quota_user
    -        #   Available to use for quota purposes for server-side applications. Can be any
    -        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [Google::Apis::RequestOptions] options
    -        #   Request-specific options
    -        #
    -        # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::SourcerepoV1::Policy] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SourcerepoV1::Policy]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def set_repo_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
    -          command.request_representation = Google::Apis::SourcerepoV1::SetIamPolicyRequest::Representation
    -          command.request_object = set_iam_policy_request_object
    -          command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
    -          command.response_class = Google::Apis::SourcerepoV1::Policy
    -          command.params['resource'] = resource unless resource.nil?
               command.query['fields'] = fields unless fields.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -261,11 +226,11 @@ module Google
             #   The project in which to create the repo. Values are of the form
             #   `projects/`.
             # @param [Google::Apis::SourcerepoV1::Repo] repo_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 [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -278,15 +243,50 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def create_project_repo(parent, repo_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +        def create_project_repo(parent, repo_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1/{+parent}/repos', options)
               command.request_representation = Google::Apis::SourcerepoV1::Repo::Representation
               command.request_object = repo_object
               command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
               command.response_class = Google::Apis::SourcerepoV1::Repo
               command.params['parent'] = parent unless parent.nil?
    -          command.query['fields'] = fields unless fields.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Sets the access control policy on the specified resource. Replaces any
    +        # existing policy.
    +        # @param [String] resource
    +        #   REQUIRED: The resource for which the policy is being specified.
    +        #   See the operation documentation for the appropriate value for this field.
    +        # @param [Google::Apis::SourcerepoV1::SetIamPolicyRequest] set_iam_policy_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::SourcerepoV1::Policy] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SourcerepoV1::Policy]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def set_repo_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
    +          command.request_representation = Google::Apis::SourcerepoV1::SetIamPolicyRequest::Representation
    +          command.request_object = set_iam_policy_request_object
    +          command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
    +          command.response_class = Google::Apis::SourcerepoV1::Policy
    +          command.params['resource'] = resource unless resource.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
     
    diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb
    index 315f09caa..e8ecfc462 100644
    --- a/generated/google/apis/spanner_v1.rb
    +++ b/generated/google/apis/spanner_v1.rb
    @@ -26,10 +26,16 @@ module Google
         # @see https://cloud.google.com/spanner/
         module SpannerV1
           VERSION = 'V1'
    -      REVISION = '20170531'
    +      REVISION = '20170613'
    +
    +      # Administer your Spanner databases
    +      AUTH_SPANNER_ADMIN = 'https://www.googleapis.com/auth/spanner.admin'
     
           # View and manage your data across Google Cloud Platform services
           AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
    +
    +      # View and manage the contents of your Spanner databases
    +      AUTH_SPANNER_DATA = 'https://www.googleapis.com/auth/spanner.data'
         end
       end
     end
    diff --git a/generated/google/apis/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb
    index e757bc891..37f40ce57 100644
    --- a/generated/google/apis/spanner_v1/classes.rb
    +++ b/generated/google/apis/spanner_v1/classes.rb
    @@ -22,1650 +22,10 @@ module Google
       module Apis
         module SpannerV1
           
    -      # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
    -      # the keys are expected to be in the same table or index. The keys need
    -      # not be sorted in any particular way.
    -      # If the same key is specified multiple times in the set (for example
    -      # if two ranges, two keys, or a key and a range overlap), Cloud Spanner
    -      # behaves as if the key were only specified once.
    -      class KeySet
    -        include Google::Apis::Core::Hashable
    -      
    -        # A list of key ranges. See KeyRange for more information about
    -        # key range specifications.
    -        # Corresponds to the JSON property `ranges`
    -        # @return [Array]
    -        attr_accessor :ranges
    -      
    -        # A list of specific keys. Entries in `keys` should have exactly as
    -        # many elements as there are columns in the primary or index key
    -        # with which this `KeySet` is used.  Individual key values are
    -        # encoded as described here.
    -        # Corresponds to the JSON property `keys`
    -        # @return [Array>]
    -        attr_accessor :keys
    -      
    -        # For convenience `all` can be set to `true` to indicate that this
    -        # `KeySet` matches all keys in the table or index. Note that any keys
    -        # specified in `keys` or `ranges` are only yielded once.
    -        # Corresponds to the JSON property `all`
    -        # @return [Boolean]
    -        attr_accessor :all
    -        alias_method :all?, :all
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @ranges = args[:ranges] if args.key?(:ranges)
    -          @keys = args[:keys] if args.key?(:keys)
    -          @all = args[:all] if args.key?(:all)
    -        end
    -      end
    -      
    -      # A modification to one or more Cloud Spanner rows.  Mutations can be
    -      # applied to a Cloud Spanner database by sending them in a
    -      # Commit call.
    -      class Mutation
    -        include Google::Apis::Core::Hashable
    -      
    -        # Arguments to delete operations.
    -        # Corresponds to the JSON property `delete`
    -        # @return [Google::Apis::SpannerV1::Delete]
    -        attr_accessor :delete
    -      
    -        # Arguments to insert, update, insert_or_update, and
    -        # replace operations.
    -        # Corresponds to the JSON property `insert`
    -        # @return [Google::Apis::SpannerV1::Write]
    -        attr_accessor :insert
    -      
    -        # Arguments to insert, update, insert_or_update, and
    -        # replace operations.
    -        # Corresponds to the JSON property `insertOrUpdate`
    -        # @return [Google::Apis::SpannerV1::Write]
    -        attr_accessor :insert_or_update
    -      
    -        # Arguments to insert, update, insert_or_update, and
    -        # replace operations.
    -        # Corresponds to the JSON property `update`
    -        # @return [Google::Apis::SpannerV1::Write]
    -        attr_accessor :update
    -      
    -        # Arguments to insert, update, insert_or_update, and
    -        # replace operations.
    -        # Corresponds to the JSON property `replace`
    -        # @return [Google::Apis::SpannerV1::Write]
    -        attr_accessor :replace
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @delete = args[:delete] if args.key?(:delete)
    -          @insert = args[:insert] if args.key?(:insert)
    -          @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update)
    -          @update = args[:update] if args.key?(:update)
    -          @replace = args[:replace] if args.key?(:replace)
    -        end
    -      end
    -      
    -      # The response for GetDatabaseDdl.
    -      class GetDatabaseDdlResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A list of formatted DDL statements defining the schema of the database
    -        # specified in the request.
    -        # Corresponds to the JSON property `statements`
    -        # @return [Array]
    -        attr_accessor :statements
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @statements = args[:statements] if args.key?(:statements)
    -        end
    -      end
    -      
    -      # A Cloud Spanner database.
    -      class Database
    -        include Google::Apis::Core::Hashable
    -      
    -        # Output only. The current database state.
    -        # Corresponds to the JSON property `state`
    -        # @return [String]
    -        attr_accessor :state
    -      
    -        # Required. The name of the database. Values are of the form
    -        # `projects//instances//databases/`,
    -        # where `` is as specified in the `CREATE DATABASE`
    -        # statement. This name can be passed to other API methods to
    -        # identify the database.
    -        # 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)
    -          @state = args[:state] if args.key?(:state)
    -          @name = args[:name] if args.key?(:name)
    -        end
    -      end
    -      
    -      # The response for ListDatabases.
    -      class ListDatabasesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # `next_page_token` can be sent in a subsequent
    -        # ListDatabases call to fetch more
    -        # of the matching databases.
    -        # Corresponds to the JSON property `nextPageToken`
    -        # @return [String]
    -        attr_accessor :next_page_token
    -      
    -        # Databases that matched the request.
    -        # Corresponds to the JSON property `databases`
    -        # @return [Array]
    -        attr_accessor :databases
    -      
    -        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)
    -          @databases = args[:databases] if args.key?(:databases)
    -        end
    -      end
    -      
    -      # Request message for `SetIamPolicy` method.
    -      class SetIamPolicyRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Defines an Identity and Access Management (IAM) policy. It is used to
    -        # specify access control policies for Cloud Platform resources.
    -        # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
    -        # `members` to a `role`, where the members can be user accounts, Google groups,
    -        # Google domains, and service accounts. A `role` is a named list of permissions
    -        # defined by IAM.
    -        # **Example**
    -        # `
    -        # "bindings": [
    -        # `
    -        # "role": "roles/owner",
    -        # "members": [
    -        # "user:mike@example.com",
    -        # "group:admins@example.com",
    -        # "domain:google.com",
    -        # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
    -        # ]
    -        # `,
    -        # `
    -        # "role": "roles/viewer",
    -        # "members": ["user:sean@example.com"]
    -        # `
    -        # ]
    -        # `
    -        # For a description of IAM and its features, see the
    -        # [IAM developer's guide](https://cloud.google.com/iam).
    -        # Corresponds to the JSON property `policy`
    -        # @return [Google::Apis::SpannerV1::Policy]
    -        attr_accessor :policy
    -      
    -        # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    -        # the fields in the mask will be modified. If no mask is provided, the
    -        # following default mask is used:
    -        # paths: "bindings, etag"
    -        # This field is only used by Cloud IAM.
    -        # Corresponds to the JSON property `updateMask`
    -        # @return [String]
    -        attr_accessor :update_mask
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @policy = args[:policy] if args.key?(:policy)
    -          @update_mask = args[:update_mask] if args.key?(:update_mask)
    -        end
    -      end
    -      
    -      # An isolated set of Cloud Spanner resources on which databases can be hosted.
    -      class Instance
    -        include Google::Apis::Core::Hashable
    -      
    -        # Required. The name of the instance's configuration. Values are of the form
    -        # `projects//instanceConfigs/`. See
    -        # also InstanceConfig and
    -        # ListInstanceConfigs.
    -        # Corresponds to the JSON property `config`
    -        # @return [String]
    -        attr_accessor :config
    -      
    -        # Output only. The current instance state. For
    -        # CreateInstance, the state must be
    -        # either omitted or set to `CREATING`. For
    -        # UpdateInstance, the state must be
    -        # either omitted or set to `READY`.
    -        # Corresponds to the JSON property `state`
    -        # @return [String]
    -        attr_accessor :state
    -      
    -        # Required. A unique identifier for the instance, which cannot be changed
    -        # after the instance is created. Values are of the form
    -        # `projects//instances/a-z*[a-z0-9]`. The final
    -        # segment of the name must be between 6 and 30 characters in length.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # Required. The descriptive name for this instance as it appears in UIs.
    -        # Must be unique per project and between 4 and 30 characters in length.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    -      
    -        # Required. The number of nodes allocated to this instance. This may be zero
    -        # in API responses for instances that are not yet in state `READY`.
    -        # Corresponds to the JSON property `nodeCount`
    -        # @return [Fixnum]
    -        attr_accessor :node_count
    -      
    -        # Cloud Labels are a flexible and lightweight mechanism for organizing cloud
    -        # resources into groups that reflect a customer's organizational needs and
    -        # deployment strategies. Cloud Labels can be used to filter collections of
    -        # resources. They can be used to control how resource metrics are aggregated.
    -        # And they can be used as arguments to policy management rules (e.g. route,
    -        # firewall, load balancing, etc.).
    -        # * Label keys must be between 1 and 63 characters long and must conform to
    -        # the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
    -        # * Label values must be between 0 and 63 characters long and must conform
    -        # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
    -        # * No more than 64 labels can be associated with a given resource.
    -        # See https://goo.gl/xmQnxf for more information on and examples of labels.
    -        # If you plan to use labels in your own code, please note that additional
    -        # characters may be allowed in the future. And so you are advised to use an
    -        # internal label representation, such as JSON, which doesn't rely upon
    -        # specific characters being disallowed.  For example, representing labels
    -        # as the string:  name + "_" + value  would prove problematic if we were to
    -        # allow "_" in a future release.
    -        # 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)
    -          @config = args[:config] if args.key?(:config)
    -          @state = args[:state] if args.key?(:state)
    -          @name = args[:name] if args.key?(:name)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -          @node_count = args[:node_count] if args.key?(:node_count)
    -          @labels = args[:labels] if args.key?(:labels)
    -        end
    -      end
    -      
    -      # The request for Rollback.
    -      class RollbackRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Required. The transaction to roll back.
    -        # Corresponds to the JSON property `transactionId`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :transaction_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
    -        end
    -      end
    -      
    -      # A transaction.
    -      class Transaction
    -        include Google::Apis::Core::Hashable
    -      
    -        # For snapshot read-only transactions, the read timestamp chosen
    -        # for the transaction. Not returned by default: see
    -        # TransactionOptions.ReadOnly.return_read_timestamp.
    -        # Corresponds to the JSON property `readTimestamp`
    -        # @return [String]
    -        attr_accessor :read_timestamp
    -      
    -        # `id` may be used to identify the transaction in subsequent
    -        # Read,
    -        # ExecuteSql,
    -        # Commit, or
    -        # Rollback calls.
    -        # Single-use read-only transactions do not have IDs, because
    -        # single-use transactions do not support multiple requests.
    -        # Corresponds to the JSON property `id`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @read_timestamp = args[:read_timestamp] if args.key?(:read_timestamp)
    -          @id = args[:id] if args.key?(:id)
    -        end
    -      end
    -      
    -      # Metadata type for the operation returned by
    -      # UpdateDatabaseDdl.
    -      class UpdateDatabaseDdlMetadata
    -        include Google::Apis::Core::Hashable
    -      
    -        # For an update this list contains all the statements. For an
    -        # individual statement, this list contains only that statement.
    -        # Corresponds to the JSON property `statements`
    -        # @return [Array]
    -        attr_accessor :statements
    -      
    -        # Reports the commit timestamps of all statements that have
    -        # succeeded so far, where `commit_timestamps[i]` is the commit
    -        # timestamp for the statement `statements[i]`.
    -        # Corresponds to the JSON property `commitTimestamps`
    -        # @return [Array]
    -        attr_accessor :commit_timestamps
    -      
    -        # The database being modified.
    -        # Corresponds to the JSON property `database`
    -        # @return [String]
    -        attr_accessor :database
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @statements = args[:statements] if args.key?(:statements)
    -          @commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps)
    -          @database = args[:database] if args.key?(:database)
    -        end
    -      end
    -      
    -      # Options for counters
    -      class CounterOptions
    -        include Google::Apis::Core::Hashable
    -      
    -        # The metric to update.
    -        # Corresponds to the JSON property `metric`
    -        # @return [String]
    -        attr_accessor :metric
    -      
    -        # The field value to attribute.
    -        # Corresponds to the JSON property `field`
    -        # @return [String]
    -        attr_accessor :field
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @metric = args[:metric] if args.key?(:metric)
    -          @field = args[:field] if args.key?(:field)
    -        end
    -      end
    -      
    -      # Contains an ordered list of nodes appearing in the query plan.
    -      class QueryPlan
    -        include Google::Apis::Core::Hashable
    -      
    -        # The nodes in the query plan. Plan nodes are returned in pre-order starting
    -        # with the plan root. Each PlanNode's `id` corresponds to its index in
    -        # `plan_nodes`.
    -        # Corresponds to the JSON property `planNodes`
    -        # @return [Array]
    -        attr_accessor :plan_nodes
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @plan_nodes = args[:plan_nodes] if args.key?(:plan_nodes)
    -        end
    -      end
    -      
    -      # `StructType` defines the fields of a STRUCT type.
    -      class StructType
    -        include Google::Apis::Core::Hashable
    -      
    -        # The list of fields that make up this struct. Order is
    -        # significant, because values of this struct type are represented as
    -        # lists, where the order of field values matches the order of
    -        # fields in the StructType. In turn, the order of fields
    -        # matches the order of columns in a read request, or the order of
    -        # fields in the `SELECT` clause of a query.
    -        # Corresponds to the JSON property `fields`
    -        # @return [Array]
    -        attr_accessor :fields
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @fields = args[:fields] if args.key?(:fields)
    -        end
    -      end
    -      
    -      # Message representing a single field of a struct.
    -      class Field
    -        include Google::Apis::Core::Hashable
    -      
    -        # The name of the field. For reads, this is the column name. For
    -        # SQL queries, it is the column alias (e.g., `"Word"` in the
    -        # query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
    -        # `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
    -        # columns might have an empty name (e.g., !"SELECT
    -        # UPPER(ColName)"`). Note that a query result can contain
    -        # multiple fields with the same name.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    -        # table cell or returned from an SQL query.
    -        # Corresponds to the JSON property `type`
    -        # @return [Google::Apis::SpannerV1::Type]
    -        attr_accessor :type
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @name = args[:name] if args.key?(:name)
    -          @type = args[:type] if args.key?(:type)
    -        end
    -      end
    -      
    -      # Additional statistics about a ResultSet or PartialResultSet.
    -      class ResultSetStats
    -        include Google::Apis::Core::Hashable
    -      
    -        # Aggregated statistics from the execution of the query. Only present when
    -        # the query is profiled. For example, a query could return the statistics as
    -        # follows:
    -        # `
    -        # "rows_returned": "3",
    -        # "elapsed_time": "1.22 secs",
    -        # "cpu_time": "1.19 secs"
    -        # `
    -        # Corresponds to the JSON property `queryStats`
    -        # @return [Hash]
    -        attr_accessor :query_stats
    -      
    -        # Contains an ordered list of nodes appearing in the query plan.
    -        # Corresponds to the JSON property `queryPlan`
    -        # @return [Google::Apis::SpannerV1::QueryPlan]
    -        attr_accessor :query_plan
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @query_stats = args[:query_stats] if args.key?(:query_stats)
    -          @query_plan = args[:query_plan] if args.key?(:query_plan)
    -        end
    -      end
    -      
    -      # Request message for `TestIamPermissions` method.
    -      class TestIamPermissionsRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # REQUIRED: The set of permissions to check for 'resource'.
    -        # Permissions with wildcards (such as '*', 'spanner.*', 'spanner.instances.*')
    -        # are not allowed.
    -        # Corresponds to the JSON property `permissions`
    -        # @return [Array]
    -        attr_accessor :permissions
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @permissions = args[:permissions] if args.key?(:permissions)
    -        end
    -      end
    -      
    -      # The response for Commit.
    -      class CommitResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The Cloud Spanner timestamp at which the transaction committed.
    -        # Corresponds to the JSON property `commitTimestamp`
    -        # @return [String]
    -        attr_accessor :commit_timestamp
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
    -        end
    -      end
    -      
    -      # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    -      # table cell or returned from an SQL query.
    -      class Type
    -        include Google::Apis::Core::Hashable
    -      
    -        # `StructType` defines the fields of a STRUCT type.
    -        # Corresponds to the JSON property `structType`
    -        # @return [Google::Apis::SpannerV1::StructType]
    -        attr_accessor :struct_type
    -      
    -        # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    -        # table cell or returned from an SQL query.
    -        # Corresponds to the JSON property `arrayElementType`
    -        # @return [Google::Apis::SpannerV1::Type]
    -        attr_accessor :array_element_type
    -      
    -        # Required. The TypeCode for this type.
    -        # Corresponds to the JSON property `code`
    -        # @return [String]
    -        attr_accessor :code
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @struct_type = args[:struct_type] if args.key?(:struct_type)
    -          @array_element_type = args[:array_element_type] if args.key?(:array_element_type)
    -          @code = args[:code] if args.key?(:code)
    -        end
    -      end
    -      
    -      # Node information for nodes appearing in a QueryPlan.plan_nodes.
    -      class PlanNode
    -        include Google::Apis::Core::Hashable
    -      
    -        # Condensed representation of a node and its subtree. Only present for
    -        # `SCALAR` PlanNode(s).
    -        # Corresponds to the JSON property `shortRepresentation`
    -        # @return [Google::Apis::SpannerV1::ShortRepresentation]
    -        attr_accessor :short_representation
    -      
    -        # The `PlanNode`'s index in node list.
    -        # Corresponds to the JSON property `index`
    -        # @return [Fixnum]
    -        attr_accessor :index
    -      
    -        # Used to determine the type of node. May be needed for visualizing
    -        # different kinds of nodes differently. For example, If the node is a
    -        # SCALAR node, it will have a condensed representation
    -        # which can be used to directly embed a description of the node in its
    -        # parent.
    -        # Corresponds to the JSON property `kind`
    -        # @return [String]
    -        attr_accessor :kind
    -      
    -        # The display name for the node.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    -      
    -        # List of child node `index`es and their relationship to this parent.
    -        # Corresponds to the JSON property `childLinks`
    -        # @return [Array]
    -        attr_accessor :child_links
    -      
    -        # Attributes relevant to the node contained in a group of key-value pairs.
    -        # For example, a Parameter Reference node could have the following
    -        # information in its metadata:
    -        # `
    -        # "parameter_reference": "param1",
    -        # "parameter_type": "array"
    -        # `
    -        # Corresponds to the JSON property `metadata`
    -        # @return [Hash]
    -        attr_accessor :metadata
    -      
    -        # The execution statistics associated with the node, contained in a group of
    -        # key-value pairs. Only present if the plan was returned as a result of a
    -        # profile query. For example, number of executions, number of rows/time per
    -        # execution etc.
    -        # Corresponds to the JSON property `executionStats`
    -        # @return [Hash]
    -        attr_accessor :execution_stats
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @short_representation = args[:short_representation] if args.key?(:short_representation)
    -          @index = args[:index] if args.key?(:index)
    -          @kind = args[:kind] if args.key?(:kind)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -          @child_links = args[:child_links] if args.key?(:child_links)
    -          @metadata = args[:metadata] if args.key?(:metadata)
    -          @execution_stats = args[:execution_stats] if args.key?(:execution_stats)
    -        end
    -      end
    -      
    -      # Metadata type for the operation returned by
    -      # CreateInstance.
    -      class CreateInstanceMetadata
    -        include Google::Apis::Core::Hashable
    -      
    -        # The time at which this operation was cancelled. If set, this operation is
    -        # in the process of undoing itself (which is guaranteed to succeed) and
    -        # cannot be cancelled again.
    -        # Corresponds to the JSON property `cancelTime`
    -        # @return [String]
    -        attr_accessor :cancel_time
    -      
    -        # The time at which this operation failed or was completed successfully.
    -        # Corresponds to the JSON property `endTime`
    -        # @return [String]
    -        attr_accessor :end_time
    -      
    -        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    -        # Corresponds to the JSON property `instance`
    -        # @return [Google::Apis::SpannerV1::Instance]
    -        attr_accessor :instance
    -      
    -        # The time at which the
    -        # CreateInstance request was
    -        # received.
    -        # Corresponds to the JSON property `startTime`
    -        # @return [String]
    -        attr_accessor :start_time
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
    -          @end_time = args[:end_time] if args.key?(:end_time)
    -          @instance = args[:instance] if args.key?(:instance)
    -          @start_time = args[:start_time] if args.key?(:start_time)
    -        end
    -      end
    -      
    -      # Specifies the audit configuration for a service.
    -      # The configuration determines which permission types are logged, and what
    -      # identities, if any, are exempted from logging.
    -      # An AuditConfig must have one or more AuditLogConfigs.
    -      # If there are AuditConfigs for both `allServices` and a specific service,
    -      # the union of the two AuditConfigs is used for that service: the log_types
    -      # specified in each AuditConfig are enabled, and the exempted_members in each
    -      # AuditConfig are exempted.
    -      # Example Policy with multiple AuditConfigs:
    -      # `
    -      # "audit_configs": [
    -      # `
    -      # "service": "allServices"
    -      # "audit_log_configs": [
    -      # `
    -      # "log_type": "DATA_READ",
    -      # "exempted_members": [
    -      # "user:foo@gmail.com"
    -      # ]
    -      # `,
    -      # `
    -      # "log_type": "DATA_WRITE",
    -      # `,
    -      # `
    -      # "log_type": "ADMIN_READ",
    -      # `
    -      # ]
    -      # `,
    -      # `
    -      # "service": "fooservice.googleapis.com"
    -      # "audit_log_configs": [
    -      # `
    -      # "log_type": "DATA_READ",
    -      # `,
    -      # `
    -      # "log_type": "DATA_WRITE",
    -      # "exempted_members": [
    -      # "user:bar@gmail.com"
    -      # ]
    -      # `
    -      # ]
    -      # `
    -      # ]
    -      # `
    -      # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
    -      # logging. It also exempts foo@gmail.com from DATA_READ logging, and
    -      # bar@gmail.com from DATA_WRITE logging.
    -      class AuditConfig
    -        include Google::Apis::Core::Hashable
    -      
    -        # 
    -        # Corresponds to the JSON property `exemptedMembers`
    -        # @return [Array]
    -        attr_accessor :exempted_members
    -      
    -        # Specifies a service that will be enabled for audit logging.
    -        # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
    -        # `allServices` is a special value that covers all services.
    -        # Corresponds to the JSON property `service`
    -        # @return [String]
    -        attr_accessor :service
    -      
    -        # The configuration for logging of each type of permission.
    -        # Next ID: 4
    -        # Corresponds to the JSON property `auditLogConfigs`
    -        # @return [Array]
    -        attr_accessor :audit_log_configs
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
    -          @service = args[:service] if args.key?(:service)
    -          @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
    -        end
    -      end
    -      
    -      # Metadata associated with a parent-child relationship appearing in a
    -      # PlanNode.
    -      class ChildLink
    -        include Google::Apis::Core::Hashable
    -      
    -        # The type of the link. For example, in Hash Joins this could be used to
    -        # distinguish between the build child and the probe child, or in the case
    -        # of the child being an output variable, to represent the tag associated
    -        # with the output variable.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # The node to which the link points.
    -        # Corresponds to the JSON property `childIndex`
    -        # @return [Fixnum]
    -        attr_accessor :child_index
    -      
    -        # Only present if the child node is SCALAR and corresponds
    -        # to an output variable of the parent node. The field carries the name of
    -        # the output variable.
    -        # For example, a `TableScan` operator that reads rows from a table will
    -        # have child links to the `SCALAR` nodes representing the output variables
    -        # created for each column that is read by the operator. The corresponding
    -        # `variable` fields will be set to the variable names assigned to the
    -        # columns.
    -        # Corresponds to the JSON property `variable`
    -        # @return [String]
    -        attr_accessor :variable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @type = args[:type] if args.key?(:type)
    -          @child_index = args[:child_index] if args.key?(:child_index)
    -          @variable = args[:variable] if args.key?(:variable)
    -        end
    -      end
    -      
    -      # Write a Cloud Audit log
    -      class CloudAuditOptions
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # Arguments to delete operations.
    -      class Delete
    -        include Google::Apis::Core::Hashable
    -      
    -        # Required. The table whose rows will be deleted.
    -        # Corresponds to the JSON property `table`
    -        # @return [String]
    -        attr_accessor :table
    -      
    -        # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
    -        # the keys are expected to be in the same table or index. The keys need
    -        # not be sorted in any particular way.
    -        # If the same key is specified multiple times in the set (for example
    -        # if two ranges, two keys, or a key and a range overlap), Cloud Spanner
    -        # behaves as if the key were only specified once.
    -        # Corresponds to the JSON property `keySet`
    -        # @return [Google::Apis::SpannerV1::KeySet]
    -        attr_accessor :key_set
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @table = args[:table] if args.key?(:table)
    -          @key_set = args[:key_set] if args.key?(:key_set)
    -        end
    -      end
    -      
    -      # The response for ListInstanceConfigs.
    -      class ListInstanceConfigsResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # `next_page_token` can be sent in a subsequent
    -        # ListInstanceConfigs call to
    -        # fetch more of the matching instance configurations.
    -        # Corresponds to the JSON property `nextPageToken`
    -        # @return [String]
    -        attr_accessor :next_page_token
    -      
    -        # The list of requested instance configurations.
    -        # Corresponds to the JSON property `instanceConfigs`
    -        # @return [Array]
    -        attr_accessor :instance_configs
    -      
    -        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)
    -          @instance_configs = args[:instance_configs] if args.key?(:instance_configs)
    -        end
    -      end
    -      
    -      # The request for BeginTransaction.
    -      class BeginTransactionRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # # Transactions
    -        # Each session can have at most one active transaction at a time. After the
    -        # active transaction is completed, the session can immediately be
    -        # re-used for the next transaction. It is not necessary to create a
    -        # new session for each transaction.
    -        # # Transaction Modes
    -        # Cloud Spanner supports two transaction modes:
    -        # 1. Locking read-write. This type of transaction is the only way
    -        # to write data into Cloud Spanner. These transactions rely on
    -        # pessimistic locking and, if necessary, two-phase commit.
    -        # Locking read-write transactions may abort, requiring the
    -        # application to retry.
    -        # 2. Snapshot read-only. This transaction type provides guaranteed
    -        # consistency across several reads, but does not allow
    -        # writes. Snapshot read-only transactions can be configured to
    -        # read at timestamps in the past. Snapshot read-only
    -        # transactions do not need to be committed.
    -        # For transactions that only read, snapshot read-only transactions
    -        # provide simpler semantics and are almost always faster. In
    -        # particular, read-only transactions do not take locks, so they do
    -        # not conflict with read-write transactions. As a consequence of not
    -        # taking locks, they also do not abort, so retry loops are not needed.
    -        # Transactions may only read/write data in a single database. They
    -        # may, however, read/write data in different tables within that
    -        # database.
    -        # ## Locking Read-Write Transactions
    -        # Locking transactions may be used to atomically read-modify-write
    -        # data anywhere in a database. This type of transaction is externally
    -        # consistent.
    -        # Clients should attempt to minimize the amount of time a transaction
    -        # is active. Faster transactions commit with higher probability
    -        # and cause less contention. Cloud Spanner attempts to keep read locks
    -        # active as long as the transaction continues to do reads, and the
    -        # transaction has not been terminated by
    -        # Commit or
    -        # Rollback.  Long periods of
    -        # inactivity at the client may cause Cloud Spanner to release a
    -        # transaction's locks and abort it.
    -        # Reads performed within a transaction acquire locks on the data
    -        # being read. Writes can only be done at commit time, after all reads
    -        # have been completed.
    -        # Conceptually, a read-write transaction consists of zero or more
    -        # reads or SQL queries followed by
    -        # Commit. At any time before
    -        # Commit, the client can send a
    -        # Rollback request to abort the
    -        # transaction.
    -        # ### Semantics
    -        # Cloud Spanner can commit the transaction if all read locks it acquired
    -        # are still valid at commit time, and it is able to acquire write
    -        # locks for all writes. Cloud Spanner can abort the transaction for any
    -        # reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees
    -        # that the transaction has not modified any user data in Cloud Spanner.
    -        # Unless the transaction commits, Cloud Spanner makes no guarantees about
    -        # how long the transaction's locks were held for. It is an error to
    -        # use Cloud Spanner locks for any sort of mutual exclusion other than
    -        # between Cloud Spanner transactions themselves.
    -        # ### Retrying Aborted Transactions
    -        # When a transaction aborts, the application can choose to retry the
    -        # whole transaction again. To maximize the chances of successfully
    -        # committing the retry, the client should execute the retry in the
    -        # same session as the original attempt. The original session's lock
    -        # priority increases with each consecutive abort, meaning that each
    -        # attempt has a slightly better chance of success than the previous.
    -        # Under some circumstances (e.g., many transactions attempting to
    -        # modify the same row(s)), a transaction can abort many times in a
    -        # short period before successfully committing. Thus, it is not a good
    -        # idea to cap the number of retries a transaction can attempt;
    -        # instead, it is better to limit the total amount of wall time spent
    -        # retrying.
    -        # ### Idle Transactions
    -        # A transaction is considered idle if it has no outstanding reads or
    -        # SQL queries and has not started a read or SQL query within the last 10
    -        # seconds. Idle transactions can be aborted by Cloud Spanner so that they
    -        # don't hold on to locks indefinitely. In that case, the commit will
    -        # fail with error `ABORTED`.
    -        # If this behavior is undesirable, periodically executing a simple
    -        # SQL query in the transaction (e.g., `SELECT 1`) prevents the
    -        # transaction from becoming idle.
    -        # ## Snapshot Read-Only Transactions
    -        # Snapshot read-only transactions provides a simpler method than
    -        # locking read-write transactions for doing several consistent
    -        # reads. However, this type of transaction does not support writes.
    -        # Snapshot transactions do not take locks. Instead, they work by
    -        # choosing a Cloud Spanner timestamp, then executing all reads at that
    -        # timestamp. Since they do not acquire locks, they do not block
    -        # concurrent read-write transactions.
    -        # Unlike locking read-write transactions, snapshot read-only
    -        # transactions never abort. They can fail if the chosen read
    -        # timestamp is garbage collected; however, the default garbage
    -        # collection policy is generous enough that most applications do not
    -        # need to worry about this in practice.
    -        # Snapshot read-only transactions do not need to call
    -        # Commit or
    -        # Rollback (and in fact are not
    -        # permitted to do so).
    -        # To execute a snapshot transaction, the client specifies a timestamp
    -        # bound, which tells Cloud Spanner how to choose a read timestamp.
    -        # The types of timestamp bound are:
    -        # - Strong (the default).
    -        # - Bounded staleness.
    -        # - Exact staleness.
    -        # If the Cloud Spanner database to be read is geographically distributed,
    -        # stale read-only transactions can execute more quickly than strong
    -        # or read-write transaction, because they are able to execute far
    -        # from the leader replica.
    -        # Each type of timestamp bound is discussed in detail below.
    -        # ### Strong
    -        # Strong reads are guaranteed to see the effects of all transactions
    -        # that have committed before the start of the read. Furthermore, all
    -        # rows yielded by a single read are consistent with each other -- if
    -        # any part of the read observes a transaction, all parts of the read
    -        # see the transaction.
    -        # Strong reads are not repeatable: two consecutive strong read-only
    -        # transactions might return inconsistent results if there are
    -        # concurrent writes. If consistency across reads is required, the
    -        # reads should be executed within a transaction or at an exact read
    -        # timestamp.
    -        # See TransactionOptions.ReadOnly.strong.
    -        # ### Exact Staleness
    -        # These timestamp bounds execute reads at a user-specified
    -        # timestamp. Reads at a timestamp are guaranteed to see a consistent
    -        # prefix of the global transaction history: they observe
    -        # modifications done by all transactions with a commit timestamp <=
    -        # the read timestamp, and observe none of the modifications done by
    -        # transactions with a larger commit timestamp. They will block until
    -        # all conflicting transactions that may be assigned commit timestamps
    -        # <= the read timestamp have finished.
    -        # The timestamp can either be expressed as an absolute Cloud Spanner commit
    -        # timestamp or a staleness relative to the current time.
    -        # These modes do not require a "negotiation phase" to pick a
    -        # timestamp. As a result, they execute slightly faster than the
    -        # equivalent boundedly stale concurrency modes. On the other hand,
    -        # boundedly stale reads usually return fresher results.
    -        # See TransactionOptions.ReadOnly.read_timestamp and
    -        # TransactionOptions.ReadOnly.exact_staleness.
    -        # ### Bounded Staleness
    -        # Bounded staleness modes allow Cloud Spanner to pick the read timestamp,
    -        # subject to a user-provided staleness bound. Cloud Spanner chooses the
    -        # newest timestamp within the staleness bound that allows execution
    -        # of the reads at the closest available replica without blocking.
    -        # All rows yielded are consistent with each other -- if any part of
    -        # the read observes a transaction, all parts of the read see the
    -        # transaction. Boundedly stale reads are not repeatable: two stale
    -        # reads, even if they use the same staleness bound, can execute at
    -        # different timestamps and thus return inconsistent results.
    -        # Boundedly stale reads execute in two phases: the first phase
    -        # negotiates a timestamp among all replicas needed to serve the
    -        # read. In the second phase, reads are executed at the negotiated
    -        # timestamp.
    -        # As a result of the two phase execution, bounded staleness reads are
    -        # usually a little slower than comparable exact staleness
    -        # reads. However, they are typically able to return fresher
    -        # results, and are more likely to execute at the closest replica.
    -        # Because the timestamp negotiation requires up-front knowledge of
    -        # which rows will be read, it can only be used with single-use
    -        # read-only transactions.
    -        # See TransactionOptions.ReadOnly.max_staleness and
    -        # TransactionOptions.ReadOnly.min_read_timestamp.
    -        # ### Old Read Timestamps and Garbage Collection
    -        # Cloud Spanner continuously garbage collects deleted and overwritten data
    -        # in the background to reclaim storage space. This process is known
    -        # as "version GC". By default, version GC reclaims versions after they
    -        # are one hour old. Because of this, Cloud Spanner cannot perform reads
    -        # at read timestamps more than one hour in the past. This
    -        # restriction also applies to in-progress reads and/or SQL queries whose
    -        # timestamp become too old while executing. Reads and SQL queries with
    -        # too-old read timestamps fail with the error `FAILED_PRECONDITION`.
    -        # Corresponds to the JSON property `options`
    -        # @return [Google::Apis::SpannerV1::TransactionOptions]
    -        attr_accessor :options
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @options = args[:options] if args.key?(:options)
    -        end
    -      end
    -      
    -      # The request for Commit.
    -      class CommitRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # # Transactions
    -        # Each session can have at most one active transaction at a time. After the
    -        # active transaction is completed, the session can immediately be
    -        # re-used for the next transaction. It is not necessary to create a
    -        # new session for each transaction.
    -        # # Transaction Modes
    -        # Cloud Spanner supports two transaction modes:
    -        # 1. Locking read-write. This type of transaction is the only way
    -        # to write data into Cloud Spanner. These transactions rely on
    -        # pessimistic locking and, if necessary, two-phase commit.
    -        # Locking read-write transactions may abort, requiring the
    -        # application to retry.
    -        # 2. Snapshot read-only. This transaction type provides guaranteed
    -        # consistency across several reads, but does not allow
    -        # writes. Snapshot read-only transactions can be configured to
    -        # read at timestamps in the past. Snapshot read-only
    -        # transactions do not need to be committed.
    -        # For transactions that only read, snapshot read-only transactions
    -        # provide simpler semantics and are almost always faster. In
    -        # particular, read-only transactions do not take locks, so they do
    -        # not conflict with read-write transactions. As a consequence of not
    -        # taking locks, they also do not abort, so retry loops are not needed.
    -        # Transactions may only read/write data in a single database. They
    -        # may, however, read/write data in different tables within that
    -        # database.
    -        # ## Locking Read-Write Transactions
    -        # Locking transactions may be used to atomically read-modify-write
    -        # data anywhere in a database. This type of transaction is externally
    -        # consistent.
    -        # Clients should attempt to minimize the amount of time a transaction
    -        # is active. Faster transactions commit with higher probability
    -        # and cause less contention. Cloud Spanner attempts to keep read locks
    -        # active as long as the transaction continues to do reads, and the
    -        # transaction has not been terminated by
    -        # Commit or
    -        # Rollback.  Long periods of
    -        # inactivity at the client may cause Cloud Spanner to release a
    -        # transaction's locks and abort it.
    -        # Reads performed within a transaction acquire locks on the data
    -        # being read. Writes can only be done at commit time, after all reads
    -        # have been completed.
    -        # Conceptually, a read-write transaction consists of zero or more
    -        # reads or SQL queries followed by
    -        # Commit. At any time before
    -        # Commit, the client can send a
    -        # Rollback request to abort the
    -        # transaction.
    -        # ### Semantics
    -        # Cloud Spanner can commit the transaction if all read locks it acquired
    -        # are still valid at commit time, and it is able to acquire write
    -        # locks for all writes. Cloud Spanner can abort the transaction for any
    -        # reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees
    -        # that the transaction has not modified any user data in Cloud Spanner.
    -        # Unless the transaction commits, Cloud Spanner makes no guarantees about
    -        # how long the transaction's locks were held for. It is an error to
    -        # use Cloud Spanner locks for any sort of mutual exclusion other than
    -        # between Cloud Spanner transactions themselves.
    -        # ### Retrying Aborted Transactions
    -        # When a transaction aborts, the application can choose to retry the
    -        # whole transaction again. To maximize the chances of successfully
    -        # committing the retry, the client should execute the retry in the
    -        # same session as the original attempt. The original session's lock
    -        # priority increases with each consecutive abort, meaning that each
    -        # attempt has a slightly better chance of success than the previous.
    -        # Under some circumstances (e.g., many transactions attempting to
    -        # modify the same row(s)), a transaction can abort many times in a
    -        # short period before successfully committing. Thus, it is not a good
    -        # idea to cap the number of retries a transaction can attempt;
    -        # instead, it is better to limit the total amount of wall time spent
    -        # retrying.
    -        # ### Idle Transactions
    -        # A transaction is considered idle if it has no outstanding reads or
    -        # SQL queries and has not started a read or SQL query within the last 10
    -        # seconds. Idle transactions can be aborted by Cloud Spanner so that they
    -        # don't hold on to locks indefinitely. In that case, the commit will
    -        # fail with error `ABORTED`.
    -        # If this behavior is undesirable, periodically executing a simple
    -        # SQL query in the transaction (e.g., `SELECT 1`) prevents the
    -        # transaction from becoming idle.
    -        # ## Snapshot Read-Only Transactions
    -        # Snapshot read-only transactions provides a simpler method than
    -        # locking read-write transactions for doing several consistent
    -        # reads. However, this type of transaction does not support writes.
    -        # Snapshot transactions do not take locks. Instead, they work by
    -        # choosing a Cloud Spanner timestamp, then executing all reads at that
    -        # timestamp. Since they do not acquire locks, they do not block
    -        # concurrent read-write transactions.
    -        # Unlike locking read-write transactions, snapshot read-only
    -        # transactions never abort. They can fail if the chosen read
    -        # timestamp is garbage collected; however, the default garbage
    -        # collection policy is generous enough that most applications do not
    -        # need to worry about this in practice.
    -        # Snapshot read-only transactions do not need to call
    -        # Commit or
    -        # Rollback (and in fact are not
    -        # permitted to do so).
    -        # To execute a snapshot transaction, the client specifies a timestamp
    -        # bound, which tells Cloud Spanner how to choose a read timestamp.
    -        # The types of timestamp bound are:
    -        # - Strong (the default).
    -        # - Bounded staleness.
    -        # - Exact staleness.
    -        # If the Cloud Spanner database to be read is geographically distributed,
    -        # stale read-only transactions can execute more quickly than strong
    -        # or read-write transaction, because they are able to execute far
    -        # from the leader replica.
    -        # Each type of timestamp bound is discussed in detail below.
    -        # ### Strong
    -        # Strong reads are guaranteed to see the effects of all transactions
    -        # that have committed before the start of the read. Furthermore, all
    -        # rows yielded by a single read are consistent with each other -- if
    -        # any part of the read observes a transaction, all parts of the read
    -        # see the transaction.
    -        # Strong reads are not repeatable: two consecutive strong read-only
    -        # transactions might return inconsistent results if there are
    -        # concurrent writes. If consistency across reads is required, the
    -        # reads should be executed within a transaction or at an exact read
    -        # timestamp.
    -        # See TransactionOptions.ReadOnly.strong.
    -        # ### Exact Staleness
    -        # These timestamp bounds execute reads at a user-specified
    -        # timestamp. Reads at a timestamp are guaranteed to see a consistent
    -        # prefix of the global transaction history: they observe
    -        # modifications done by all transactions with a commit timestamp <=
    -        # the read timestamp, and observe none of the modifications done by
    -        # transactions with a larger commit timestamp. They will block until
    -        # all conflicting transactions that may be assigned commit timestamps
    -        # <= the read timestamp have finished.
    -        # The timestamp can either be expressed as an absolute Cloud Spanner commit
    -        # timestamp or a staleness relative to the current time.
    -        # These modes do not require a "negotiation phase" to pick a
    -        # timestamp. As a result, they execute slightly faster than the
    -        # equivalent boundedly stale concurrency modes. On the other hand,
    -        # boundedly stale reads usually return fresher results.
    -        # See TransactionOptions.ReadOnly.read_timestamp and
    -        # TransactionOptions.ReadOnly.exact_staleness.
    -        # ### Bounded Staleness
    -        # Bounded staleness modes allow Cloud Spanner to pick the read timestamp,
    -        # subject to a user-provided staleness bound. Cloud Spanner chooses the
    -        # newest timestamp within the staleness bound that allows execution
    -        # of the reads at the closest available replica without blocking.
    -        # All rows yielded are consistent with each other -- if any part of
    -        # the read observes a transaction, all parts of the read see the
    -        # transaction. Boundedly stale reads are not repeatable: two stale
    -        # reads, even if they use the same staleness bound, can execute at
    -        # different timestamps and thus return inconsistent results.
    -        # Boundedly stale reads execute in two phases: the first phase
    -        # negotiates a timestamp among all replicas needed to serve the
    -        # read. In the second phase, reads are executed at the negotiated
    -        # timestamp.
    -        # As a result of the two phase execution, bounded staleness reads are
    -        # usually a little slower than comparable exact staleness
    -        # reads. However, they are typically able to return fresher
    -        # results, and are more likely to execute at the closest replica.
    -        # Because the timestamp negotiation requires up-front knowledge of
    -        # which rows will be read, it can only be used with single-use
    -        # read-only transactions.
    -        # See TransactionOptions.ReadOnly.max_staleness and
    -        # TransactionOptions.ReadOnly.min_read_timestamp.
    -        # ### Old Read Timestamps and Garbage Collection
    -        # Cloud Spanner continuously garbage collects deleted and overwritten data
    -        # in the background to reclaim storage space. This process is known
    -        # as "version GC". By default, version GC reclaims versions after they
    -        # are one hour old. Because of this, Cloud Spanner cannot perform reads
    -        # at read timestamps more than one hour in the past. This
    -        # restriction also applies to in-progress reads and/or SQL queries whose
    -        # timestamp become too old while executing. Reads and SQL queries with
    -        # too-old read timestamps fail with the error `FAILED_PRECONDITION`.
    -        # Corresponds to the JSON property `singleUseTransaction`
    -        # @return [Google::Apis::SpannerV1::TransactionOptions]
    -        attr_accessor :single_use_transaction
    -      
    -        # The mutations to be executed when this transaction commits. All
    -        # mutations are applied atomically, in the order they appear in
    -        # this list.
    -        # Corresponds to the JSON property `mutations`
    -        # @return [Array]
    -        attr_accessor :mutations
    -      
    -        # Commit a previously-started transaction.
    -        # Corresponds to the JSON property `transactionId`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :transaction_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
    -          @mutations = args[:mutations] if args.key?(:mutations)
    -          @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
    -        end
    -      end
    -      
    -      # Request message for `GetIamPolicy` method.
    -      class GetIamPolicyRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # Response message for `TestIamPermissions` method.
    -      class TestIamPermissionsResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # A subset of `TestPermissionsRequest.permissions` that the caller is
    -        # allowed.
    -        # Corresponds to the JSON property `permissions`
    -        # @return [Array]
    -        attr_accessor :permissions
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @permissions = args[:permissions] if args.key?(:permissions)
    -        end
    -      end
    -      
    -      # A rule to be applied in a Policy.
    -      class Rule
    -        include Google::Apis::Core::Hashable
    -      
    -        # If one or more 'not_in' clauses are specified, the rule matches
    -        # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
    -        # The format for in and not_in entries is the same as for members in a
    -        # Binding (see google/iam/v1/policy.proto).
    -        # Corresponds to the JSON property `notIn`
    -        # @return [Array]
    -        attr_accessor :not_in
    -      
    -        # Human-readable description of the rule.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        # Additional restrictions that must be met
    -        # Corresponds to the JSON property `conditions`
    -        # @return [Array]
    -        attr_accessor :conditions
    -      
    -        # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
    -        # that match the LOG action.
    -        # Corresponds to the JSON property `logConfig`
    -        # @return [Array]
    -        attr_accessor :log_config
    -      
    -        # If one or more 'in' clauses are specified, the rule matches if
    -        # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
    -        # Corresponds to the JSON property `in`
    -        # @return [Array]
    -        attr_accessor :in
    -      
    -        # A permission is a string of form '..'
    -        # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
    -        # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
    -        # Corresponds to the JSON property `permissions`
    -        # @return [Array]
    -        attr_accessor :permissions
    -      
    -        # Required
    -        # Corresponds to the JSON property `action`
    -        # @return [String]
    -        attr_accessor :action
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @not_in = args[:not_in] if args.key?(:not_in)
    -          @description = args[:description] if args.key?(:description)
    -          @conditions = args[:conditions] if args.key?(:conditions)
    -          @log_config = args[:log_config] if args.key?(:log_config)
    -          @in = args[:in] if args.key?(:in)
    -          @permissions = args[:permissions] if args.key?(:permissions)
    -          @action = args[:action] if args.key?(:action)
    -        end
    -      end
    -      
    -      # Metadata type for the operation returned by
    -      # CreateDatabase.
    -      class CreateDatabaseMetadata
    -        include Google::Apis::Core::Hashable
    -      
    -        # The database being created.
    -        # Corresponds to the JSON property `database`
    -        # @return [String]
    -        attr_accessor :database
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @database = args[:database] if args.key?(:database)
    -        end
    -      end
    -      
    -      # Specifies what kind of log the caller must write
    -      class LogConfig
    -        include Google::Apis::Core::Hashable
    -      
    -        # Options for counters
    -        # Corresponds to the JSON property `counter`
    -        # @return [Google::Apis::SpannerV1::CounterOptions]
    -        attr_accessor :counter
    -      
    -        # Write a Data Access (Gin) log
    -        # Corresponds to the JSON property `dataAccess`
    -        # @return [Google::Apis::SpannerV1::DataAccessOptions]
    -        attr_accessor :data_access
    -      
    -        # Write a Cloud Audit log
    -        # Corresponds to the JSON property `cloudAudit`
    -        # @return [Google::Apis::SpannerV1::CloudAuditOptions]
    -        attr_accessor :cloud_audit
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @counter = args[:counter] if args.key?(:counter)
    -          @data_access = args[:data_access] if args.key?(:data_access)
    -          @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
    -        end
    -      end
    -      
    -      # A session in the Cloud Spanner API.
    -      class Session
    -        include Google::Apis::Core::Hashable
    -      
    -        # Required. The name of the session.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @name = args[:name] if args.key?(:name)
    -        end
    -      end
    -      
    -      # KeyRange represents a range of rows in a table or index.
    -      # A range has a start key and an end key. These keys can be open or
    -      # closed, indicating if the range includes rows with that key.
    -      # Keys are represented by lists, where the ith value in the list
    -      # corresponds to the ith component of the table or index primary key.
    -      # Individual values are encoded as described here.
    -      # For example, consider the following table definition:
    -      # CREATE TABLE UserEvents (
    -      # UserName STRING(MAX),
    -      # EventDate STRING(10)
    -      # ) PRIMARY KEY(UserName, EventDate);
    -      # The following keys name rows in this table:
    -      # "Bob", "2014-09-23"
    -      # Since the `UserEvents` table's `PRIMARY KEY` clause names two
    -      # columns, each `UserEvents` key has two elements; the first is the
    -      # `UserName`, and the second is the `EventDate`.
    -      # Key ranges with multiple components are interpreted
    -      # lexicographically by component using the table or index key's declared
    -      # sort order. For example, the following range returns all events for
    -      # user `"Bob"` that occurred in the year 2015:
    -      # "start_closed": ["Bob", "2015-01-01"]
    -      # "end_closed": ["Bob", "2015-12-31"]
    -      # Start and end keys can omit trailing key components. This affects the
    -      # inclusion and exclusion of rows that exactly match the provided key
    -      # components: if the key is closed, then rows that exactly match the
    -      # provided components are included; if the key is open, then rows
    -      # that exactly match are not included.
    -      # For example, the following range includes all events for `"Bob"` that
    -      # occurred during and after the year 2000:
    -      # "start_closed": ["Bob", "2000-01-01"]
    -      # "end_closed": ["Bob"]
    -      # The next example retrieves all events for `"Bob"`:
    -      # "start_closed": ["Bob"]
    -      # "end_closed": ["Bob"]
    -      # To retrieve events before the year 2000:
    -      # "start_closed": ["Bob"]
    -      # "end_open": ["Bob", "2000-01-01"]
    -      # The following range includes all rows in the table:
    -      # "start_closed": []
    -      # "end_closed": []
    -      # This range returns all users whose `UserName` begins with any
    -      # character from A to C:
    -      # "start_closed": ["A"]
    -      # "end_open": ["D"]
    -      # This range returns all users whose `UserName` begins with B:
    -      # "start_closed": ["B"]
    -      # "end_open": ["C"]
    -      # Key ranges honor column sort order. For example, suppose a table is
    -      # defined as follows:
    -      # CREATE TABLE DescendingSortedTable `
    -      # Key INT64,
    -      # ...
    -      # ) PRIMARY KEY(Key DESC);
    -      # The following range retrieves all rows with key values between 1
    -      # and 100 inclusive:
    -      # "start_closed": ["100"]
    -      # "end_closed": ["1"]
    -      # Note that 100 is passed as the start, and 1 is passed as the end,
    -      # because `Key` is a descending column in the schema.
    -      class KeyRange
    -        include Google::Apis::Core::Hashable
    -      
    -        # If the start is closed, then the range includes all rows whose
    -        # first `len(start_closed)` key columns exactly match `start_closed`.
    -        # Corresponds to the JSON property `startClosed`
    -        # @return [Array]
    -        attr_accessor :start_closed
    -      
    -        # If the start is open, then the range excludes rows whose first
    -        # `len(start_open)` key columns exactly match `start_open`.
    -        # Corresponds to the JSON property `startOpen`
    -        # @return [Array]
    -        attr_accessor :start_open
    -      
    -        # If the end is open, then the range excludes rows whose first
    -        # `len(end_open)` key columns exactly match `end_open`.
    -        # Corresponds to the JSON property `endOpen`
    -        # @return [Array]
    -        attr_accessor :end_open
    -      
    -        # If the end is closed, then the range includes all rows whose
    -        # first `len(end_closed)` key columns exactly match `end_closed`.
    -        # Corresponds to the JSON property `endClosed`
    -        # @return [Array]
    -        attr_accessor :end_closed
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @start_closed = args[:start_closed] if args.key?(:start_closed)
    -          @start_open = args[:start_open] if args.key?(:start_open)
    -          @end_open = args[:end_open] if args.key?(:end_open)
    -          @end_closed = args[:end_closed] if args.key?(:end_closed)
    -        end
    -      end
    -      
    -      # The response for ListInstances.
    -      class ListInstancesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The list of requested instances.
    -        # Corresponds to the JSON property `instances`
    -        # @return [Array]
    -        attr_accessor :instances
    -      
    -        # `next_page_token` can be sent in a subsequent
    -        # ListInstances call to fetch more
    -        # of the matching instances.
    -        # 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)
    -          @instances = args[:instances] if args.key?(:instances)
    -          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
    -        end
    -      end
    -      
    -      # Condensed representation of a node and its subtree. Only present for
    -      # `SCALAR` PlanNode(s).
    -      class ShortRepresentation
    -        include Google::Apis::Core::Hashable
    -      
    -        # A string representation of the expression subtree rooted at this node.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        # A mapping of (subquery variable name) -> (subquery node id) for cases
    -        # where the `description` string of this node references a `SCALAR`
    -        # subquery contained in the expression subtree rooted at this node. The
    -        # referenced `SCALAR` subquery may not necessarily be a direct child of
    -        # this node.
    -        # Corresponds to the JSON property `subqueries`
    -        # @return [Hash]
    -        attr_accessor :subqueries
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @description = args[:description] if args.key?(:description)
    -          @subqueries = args[:subqueries] if args.key?(:subqueries)
    -        end
    -      end
    -      
    -      # A possible configuration for a Cloud Spanner instance. Configurations
    -      # define the geographic placement of nodes and their replication.
    -      class InstanceConfig
    -        include Google::Apis::Core::Hashable
    -      
    -        # The name of this instance configuration as it appears in UIs.
    -        # Corresponds to the JSON property `displayName`
    -        # @return [String]
    -        attr_accessor :display_name
    -      
    -        # A unique identifier for the instance configuration.  Values
    -        # are of the form
    -        # `projects//instanceConfigs/a-z*`
    -        # 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)
    -          @display_name = args[:display_name] if args.key?(:display_name)
    -          @name = args[:name] if args.key?(:name)
    -        end
    -      end
    -      
           # The request for UpdateInstance.
           class UpdateInstanceRequest
             include Google::Apis::Core::Hashable
           
    -        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    -        # Corresponds to the JSON property `instance`
    -        # @return [Google::Apis::SpannerV1::Instance]
    -        attr_accessor :instance
    -      
             # Required. A mask specifying which fields in [][google.spanner.admin.instance.
             # v1.UpdateInstanceRequest.instance] should be updated.
             # The field mask must always be specified; this prevents any future fields in
    @@ -1676,14 +36,19 @@ module Google
             # @return [String]
             attr_accessor :field_mask
           
    +        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    +        # Corresponds to the JSON property `instance`
    +        # @return [Google::Apis::SpannerV1::Instance]
    +        attr_accessor :instance
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @instance = args[:instance] if args.key?(:instance)
               @field_mask = args[:field_mask] if args.key?(:field_mask)
    +          @instance = args[:instance] if args.key?(:instance)
             end
           end
           
    @@ -1877,24 +242,25 @@ module Google
           class TransactionOptions
             include Google::Apis::Core::Hashable
           
    -        # Options for read-write transactions.
    -        # Corresponds to the JSON property `readWrite`
    -        # @return [Google::Apis::SpannerV1::ReadWrite]
    -        attr_accessor :read_write
    -      
    -        # Options for read-only transactions.
    +        # Message type to initiate a read-only transaction.
             # Corresponds to the JSON property `readOnly`
             # @return [Google::Apis::SpannerV1::ReadOnly]
             attr_accessor :read_only
           
    +        # Message type to initiate a read-write transaction. Currently this
    +        # transaction type has no options.
    +        # Corresponds to the JSON property `readWrite`
    +        # @return [Google::Apis::SpannerV1::ReadWrite]
    +        attr_accessor :read_write
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @read_write = args[:read_write] if args.key?(:read_write)
               @read_only = args[:read_only] if args.key?(:read_only)
    +          @read_write = args[:read_write] if args.key?(:read_write)
             end
           end
           
    @@ -1972,16 +338,16 @@ module Google
             # @return [String]
             attr_accessor :value
           
    -        # Trusted attributes supplied by the IAM system.
    -        # Corresponds to the JSON property `iam`
    -        # @return [String]
    -        attr_accessor :iam
    -      
             # The objects of the condition. This is mutually exclusive with 'value'.
             # Corresponds to the JSON property `values`
             # @return [Array]
             attr_accessor :values
           
    +        # Trusted attributes supplied by the IAM system.
    +        # Corresponds to the JSON property `iam`
    +        # @return [String]
    +        attr_accessor :iam
    +      
             # An operator to apply the subject with.
             # Corresponds to the JSON property `op`
             # @return [String]
    @@ -2000,8 +366,8 @@ module Google
             def update!(**args)
               @sys = args[:sys] if args.key?(:sys)
               @value = args[:value] if args.key?(:value)
    -          @iam = args[:iam] if args.key?(:iam)
               @values = args[:values] if args.key?(:values)
    +          @iam = args[:iam] if args.key?(:iam)
               @op = args[:op] if args.key?(:op)
               @svc = args[:svc] if args.key?(:svc)
             end
    @@ -2050,17 +416,10 @@ module Google
             end
           end
           
    -      # Options for read-only transactions.
    +      # Message type to initiate a read-only transaction.
           class ReadOnly
             include Google::Apis::Core::Hashable
           
    -        # Read at a timestamp where all previously committed transactions
    -        # are visible.
    -        # Corresponds to the JSON property `strong`
    -        # @return [Boolean]
    -        attr_accessor :strong
    -        alias_method :strong?, :strong
    -      
             # Executes all reads at a timestamp >= `min_read_timestamp`.
             # This is useful for requesting fresher data than some previous
             # read, or data that is fresh enough to observe the effects of some
    @@ -2117,18 +476,25 @@ module Google
             # @return [String]
             attr_accessor :exact_staleness
           
    +        # Read at a timestamp where all previously committed transactions
    +        # are visible.
    +        # Corresponds to the JSON property `strong`
    +        # @return [Boolean]
    +        attr_accessor :strong
    +        alias_method :strong?, :strong
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @strong = args[:strong] if args.key?(:strong)
               @min_read_timestamp = args[:min_read_timestamp] if args.key?(:min_read_timestamp)
               @max_staleness = args[:max_staleness] if args.key?(:max_staleness)
               @read_timestamp = args[:read_timestamp] if args.key?(:read_timestamp)
               @return_read_timestamp = args[:return_read_timestamp] if args.key?(:return_read_timestamp)
               @exact_staleness = args[:exact_staleness] if args.key?(:exact_staleness)
    +          @strong = args[:strong] if args.key?(:strong)
             end
           end
           
    @@ -2137,32 +503,6 @@ module Google
           class ExecuteSqlRequest
             include Google::Apis::Core::Hashable
           
    -        # Required. The SQL query string.
    -        # Corresponds to the JSON property `sql`
    -        # @return [String]
    -        attr_accessor :sql
    -      
    -        # The SQL query string can contain parameter placeholders. A parameter
    -        # placeholder consists of `'@'` followed by the parameter
    -        # name. Parameter names consist of any combination of letters,
    -        # numbers, and underscores.
    -        # Parameters can appear anywhere that a literal value is expected.  The same
    -        # parameter name can be used more than once, for example:
    -        # `"WHERE id > @msg_id AND id < @msg_id + 100"`
    -        # It is an error to execute an SQL query with unbound parameters.
    -        # Parameter values are specified using `params`, which is a JSON
    -        # object whose keys are parameter names, and whose values are the
    -        # corresponding parameter values.
    -        # Corresponds to the JSON property `params`
    -        # @return [Hash]
    -        attr_accessor :params
    -      
    -        # Used to control the amount of debugging information returned in
    -        # ResultSetStats.
    -        # Corresponds to the JSON property `queryMode`
    -        # @return [String]
    -        attr_accessor :query_mode
    -      
             # This message is used to select the transaction in which a
             # Read or
             # ExecuteSql call runs.
    @@ -2193,18 +533,44 @@ module Google
             # @return [Hash]
             attr_accessor :param_types
           
    +        # Required. The SQL query string.
    +        # Corresponds to the JSON property `sql`
    +        # @return [String]
    +        attr_accessor :sql
    +      
    +        # The SQL query string can contain parameter placeholders. A parameter
    +        # placeholder consists of `'@'` followed by the parameter
    +        # name. Parameter names consist of any combination of letters,
    +        # numbers, and underscores.
    +        # Parameters can appear anywhere that a literal value is expected.  The same
    +        # parameter name can be used more than once, for example:
    +        # `"WHERE id > @msg_id AND id < @msg_id + 100"`
    +        # It is an error to execute an SQL query with unbound parameters.
    +        # Parameter values are specified using `params`, which is a JSON
    +        # object whose keys are parameter names, and whose values are the
    +        # corresponding parameter values.
    +        # Corresponds to the JSON property `params`
    +        # @return [Hash]
    +        attr_accessor :params
    +      
    +        # Used to control the amount of debugging information returned in
    +        # ResultSetStats.
    +        # Corresponds to the JSON property `queryMode`
    +        # @return [String]
    +        attr_accessor :query_mode
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @sql = args[:sql] if args.key?(:sql)
    -          @params = args[:params] if args.key?(:params)
    -          @query_mode = args[:query_mode] if args.key?(:query_mode)
               @transaction = args[:transaction] if args.key?(:transaction)
               @resume_token = args[:resume_token] if args.key?(:resume_token)
               @param_types = args[:param_types] if args.key?(:param_types)
    +          @sql = args[:sql] if args.key?(:sql)
    +          @params = args[:params] if args.key?(:params)
    +          @query_mode = args[:query_mode] if args.key?(:query_mode)
             end
           end
           
    @@ -2237,26 +603,6 @@ module Google
           class Policy
             include Google::Apis::Core::Hashable
           
    -        # `etag` is used for optimistic concurrency control as a way to help
    -        # prevent simultaneous updates of a policy from overwriting each other.
    -        # It is strongly suggested that systems make use of the `etag` in the
    -        # read-modify-write cycle to perform policy updates in order to avoid race
    -        # conditions: An `etag` is returned in the response to `getIamPolicy`, and
    -        # systems are expected to put that etag in the request to `setIamPolicy` to
    -        # ensure that their change will be applied to the same version of the policy.
    -        # If no `etag` is provided in the call to `setIamPolicy`, then the existing
    -        # policy is overwritten blindly.
    -        # Corresponds to the JSON property `etag`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :etag
    -      
    -        # 
    -        # Corresponds to the JSON property `iamOwned`
    -        # @return [Boolean]
    -        attr_accessor :iam_owned
    -        alias_method :iam_owned?, :iam_owned
    -      
             # If more than one rule is specified, the rules are applied in the following
             # manner:
             # - All matching LOG rules are always applied.
    @@ -2281,24 +627,43 @@ module Google
             attr_accessor :audit_configs
           
             # Associates a list of `members` to a `role`.
    -        # Multiple `bindings` must not be specified for the same `role`.
             # `bindings` with no members will result in an error.
             # Corresponds to the JSON property `bindings`
             # @return [Array]
             attr_accessor :bindings
           
    +        # `etag` is used for optimistic concurrency control as a way to help
    +        # prevent simultaneous updates of a policy from overwriting each other.
    +        # It is strongly suggested that systems make use of the `etag` in the
    +        # read-modify-write cycle to perform policy updates in order to avoid race
    +        # conditions: An `etag` is returned in the response to `getIamPolicy`, and
    +        # systems are expected to put that etag in the request to `setIamPolicy` to
    +        # ensure that their change will be applied to the same version of the policy.
    +        # If no `etag` is provided in the call to `setIamPolicy`, then the existing
    +        # policy is overwritten blindly.
    +        # Corresponds to the JSON property `etag`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :etag
    +      
    +        # 
    +        # Corresponds to the JSON property `iamOwned`
    +        # @return [Boolean]
    +        attr_accessor :iam_owned
    +        alias_method :iam_owned?, :iam_owned
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @etag = args[:etag] if args.key?(:etag)
    -          @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
               @rules = args[:rules] if args.key?(:rules)
               @version = args[:version] if args.key?(:version)
               @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
               @bindings = args[:bindings] if args.key?(:bindings)
    +          @etag = args[:etag] if args.key?(:etag)
    +          @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
             end
           end
           
    @@ -2386,14 +751,6 @@ module Google
             # @return [String]
             attr_accessor :table
           
    -        # The names of the columns in table to be written.
    -        # The list of columns must contain enough columns to allow
    -        # Cloud Spanner to derive values for all primary key columns in the
    -        # row(s) to be modified.
    -        # Corresponds to the JSON property `columns`
    -        # @return [Array]
    -        attr_accessor :columns
    -      
             # The values to be written. `values` can contain more than one
             # list of values. If it does, then multiple rows are written, one
             # for each entry in `values`. Each list in `values` must have
    @@ -2406,6 +763,14 @@ module Google
             # @return [Array>]
             attr_accessor :values
           
    +        # The names of the columns in table to be written.
    +        # The list of columns must contain enough columns to allow
    +        # Cloud Spanner to derive values for all primary key columns in the
    +        # row(s) to be modified.
    +        # Corresponds to the JSON property `columns`
    +        # @return [Array]
    +        attr_accessor :columns
    +      
             def initialize(**args)
                update!(**args)
             end
    @@ -2413,13 +778,14 @@ module Google
             # Update properties of this object
             def update!(**args)
               @table = args[:table] if args.key?(:table)
    -          @columns = args[:columns] if args.key?(:columns)
               @values = args[:values] if args.key?(:values)
    +          @columns = args[:columns] if args.key?(:columns)
             end
           end
           
    -      # Write a Data Access (Gin) log
    -      class DataAccessOptions
    +      # Message type to initiate a read-write transaction. Currently this
    +      # transaction type has no options.
    +      class ReadWrite
             include Google::Apis::Core::Hashable
           
             def initialize(**args)
    @@ -2431,8 +797,8 @@ module Google
             end
           end
           
    -      # Options for read-write transactions.
    -      class ReadWrite
    +      # Write a Data Access (Gin) log
    +      class DataAccessOptions
             include Google::Apis::Core::Hashable
           
             def initialize(**args)
    @@ -2490,7 +856,7 @@ module Google
             # 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.
    +        # in the package `google.rpc` that 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
    @@ -2506,7 +872,7 @@ module Google
             # 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.
    +        # have a `Status` message for error reporting.
             # - 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.
    @@ -2541,6 +907,43 @@ module Google
             end
           end
           
    +      # Results from Read or
    +      # ExecuteSql.
    +      class ResultSet
    +        include Google::Apis::Core::Hashable
    +      
    +        # Additional statistics about a ResultSet or PartialResultSet.
    +        # Corresponds to the JSON property `stats`
    +        # @return [Google::Apis::SpannerV1::ResultSetStats]
    +        attr_accessor :stats
    +      
    +        # Each element in `rows` is a row whose format is defined by
    +        # metadata.row_type. The ith element
    +        # in each row matches the ith field in
    +        # metadata.row_type. Elements are
    +        # encoded based on type as described
    +        # here.
    +        # Corresponds to the JSON property `rows`
    +        # @return [Array>]
    +        attr_accessor :rows
    +      
    +        # Metadata about a ResultSet or PartialResultSet.
    +        # Corresponds to the JSON property `metadata`
    +        # @return [Google::Apis::SpannerV1::ResultSetMetadata]
    +        attr_accessor :metadata
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @stats = args[:stats] if args.key?(:stats)
    +          @rows = args[:rows] if args.key?(:rows)
    +          @metadata = args[:metadata] if args.key?(:metadata)
    +        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:
    @@ -2555,7 +958,7 @@ module Google
           # 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.
    +      # in the package `google.rpc` that 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
    @@ -2571,7 +974,7 @@ module Google
           # 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.
    +      # have a `Status` message for error reporting.
           # - 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.
    @@ -2613,43 +1016,6 @@ module Google
             end
           end
           
    -      # Results from Read or
    -      # ExecuteSql.
    -      class ResultSet
    -        include Google::Apis::Core::Hashable
    -      
    -        # Metadata about a ResultSet or PartialResultSet.
    -        # Corresponds to the JSON property `metadata`
    -        # @return [Google::Apis::SpannerV1::ResultSetMetadata]
    -        attr_accessor :metadata
    -      
    -        # Additional statistics about a ResultSet or PartialResultSet.
    -        # Corresponds to the JSON property `stats`
    -        # @return [Google::Apis::SpannerV1::ResultSetStats]
    -        attr_accessor :stats
    -      
    -        # Each element in `rows` is a row whose format is defined by
    -        # metadata.row_type. The ith element
    -        # in each row matches the ith field in
    -        # metadata.row_type. Elements are
    -        # encoded based on type as described
    -        # here.
    -        # Corresponds to the JSON property `rows`
    -        # @return [Array>]
    -        attr_accessor :rows
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @metadata = args[:metadata] if args.key?(:metadata)
    -          @stats = args[:stats] if args.key?(:stats)
    -          @rows = args[:rows] if args.key?(:rows)
    -        end
    -      end
    -      
           # Enqueues the given DDL statements to be applied, in order but not
           # necessarily all at once, to the database schema at some point (or
           # points) in the future. The server checks that the statements
    @@ -2734,6 +1100,14 @@ module Google
             # @return [String]
             attr_accessor :role
           
    +        # Represents an expression text. Example:
    +        # title: "User account presence"
    +        # description: "Determines whether the request has a user account"
    +        # expression: "size(request.user) > 0"
    +        # Corresponds to the JSON property `condition`
    +        # @return [Google::Apis::SpannerV1::Expr]
    +        attr_accessor :condition
    +      
             def initialize(**args)
                update!(**args)
             end
    @@ -2742,6 +1116,7 @@ module Google
             def update!(**args)
               @members = args[:members] if args.key?(:members)
               @role = args[:role] if args.key?(:role)
    +          @condition = args[:condition] if args.key?(:condition)
             end
           end
           
    @@ -2751,11 +1126,6 @@ module Google
           class PartialResultSet
             include Google::Apis::Core::Hashable
           
    -        # Additional statistics about a ResultSet or PartialResultSet.
    -        # Corresponds to the JSON property `stats`
    -        # @return [Google::Apis::SpannerV1::ResultSetStats]
    -        attr_accessor :stats
    -      
             # If true, then the final value in values is chunked, and must
             # be combined with more values from subsequent `PartialResultSet`s
             # to obtain a complete field value.
    @@ -2764,11 +1134,6 @@ module Google
             attr_accessor :chunked_value
             alias_method :chunked_value?, :chunked_value
           
    -        # Metadata about a ResultSet or PartialResultSet.
    -        # Corresponds to the JSON property `metadata`
    -        # @return [Google::Apis::SpannerV1::ResultSetMetadata]
    -        attr_accessor :metadata
    -      
             # A streamed result set consists of a stream of values, which might
             # be split into many `PartialResultSet` messages to accommodate
             # large rows and/or large values. Every N complete values defines a
    @@ -2832,6 +1197,11 @@ module Google
             # @return [Array]
             attr_accessor :values
           
    +        # Metadata about a ResultSet or PartialResultSet.
    +        # Corresponds to the JSON property `metadata`
    +        # @return [Google::Apis::SpannerV1::ResultSetMetadata]
    +        attr_accessor :metadata
    +      
             # Streaming calls might be interrupted for a variety of reasons, such
             # as TCP connection loss. If this occurs, the stream of results can
             # be resumed by re-sending the original request and including
    @@ -2842,17 +1212,22 @@ module Google
             # @return [String]
             attr_accessor :resume_token
           
    +        # Additional statistics about a ResultSet or PartialResultSet.
    +        # Corresponds to the JSON property `stats`
    +        # @return [Google::Apis::SpannerV1::ResultSetStats]
    +        attr_accessor :stats
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @stats = args[:stats] if args.key?(:stats)
               @chunked_value = args[:chunked_value] if args.key?(:chunked_value)
    -          @metadata = args[:metadata] if args.key?(:metadata)
               @values = args[:values] if args.key?(:values)
    +          @metadata = args[:metadata] if args.key?(:metadata)
               @resume_token = args[:resume_token] if args.key?(:resume_token)
    +          @stats = args[:stats] if args.key?(:stats)
             end
           end
           
    @@ -2861,6 +1236,22 @@ module Google
           class UpdateInstanceMetadata
             include Google::Apis::Core::Hashable
           
    +        # The time at which UpdateInstance
    +        # request was received.
    +        # Corresponds to the JSON property `startTime`
    +        # @return [String]
    +        attr_accessor :start_time
    +      
    +        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    +        # Corresponds to the JSON property `instance`
    +        # @return [Google::Apis::SpannerV1::Instance]
    +        attr_accessor :instance
    +      
    +        # The time at which this operation failed or was completed successfully.
    +        # Corresponds to the JSON property `endTime`
    +        # @return [String]
    +        attr_accessor :end_time
    +      
             # The time at which this operation was cancelled. If set, this operation is
             # in the process of undoing itself (which is guaranteed to succeed) and
             # cannot be cancelled again.
    @@ -2868,32 +1259,16 @@ module Google
             # @return [String]
             attr_accessor :cancel_time
           
    -        # The time at which this operation failed or was completed successfully.
    -        # Corresponds to the JSON property `endTime`
    -        # @return [String]
    -        attr_accessor :end_time
    -      
    -        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    -        # Corresponds to the JSON property `instance`
    -        # @return [Google::Apis::SpannerV1::Instance]
    -        attr_accessor :instance
    -      
    -        # The time at which UpdateInstance
    -        # request was received.
    -        # Corresponds to the JSON property `startTime`
    -        # @return [String]
    -        attr_accessor :start_time
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
    -          @end_time = args[:end_time] if args.key?(:end_time)
    -          @instance = args[:instance] if args.key?(:instance)
               @start_time = args[:start_time] if args.key?(:start_time)
    +          @instance = args[:instance] if args.key?(:instance)
    +          @end_time = args[:end_time] if args.key?(:end_time)
    +          @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
             end
           end
           
    @@ -3315,6 +1690,1694 @@ module Google
               @id = args[:id] if args.key?(:id)
             end
           end
    +      
    +      # A modification to one or more Cloud Spanner rows.  Mutations can be
    +      # applied to a Cloud Spanner database by sending them in a
    +      # Commit call.
    +      class Mutation
    +        include Google::Apis::Core::Hashable
    +      
    +        # Arguments to delete operations.
    +        # Corresponds to the JSON property `delete`
    +        # @return [Google::Apis::SpannerV1::Delete]
    +        attr_accessor :delete
    +      
    +        # Arguments to insert, update, insert_or_update, and
    +        # replace operations.
    +        # Corresponds to the JSON property `insertOrUpdate`
    +        # @return [Google::Apis::SpannerV1::Write]
    +        attr_accessor :insert_or_update
    +      
    +        # Arguments to insert, update, insert_or_update, and
    +        # replace operations.
    +        # Corresponds to the JSON property `insert`
    +        # @return [Google::Apis::SpannerV1::Write]
    +        attr_accessor :insert
    +      
    +        # Arguments to insert, update, insert_or_update, and
    +        # replace operations.
    +        # Corresponds to the JSON property `update`
    +        # @return [Google::Apis::SpannerV1::Write]
    +        attr_accessor :update
    +      
    +        # Arguments to insert, update, insert_or_update, and
    +        # replace operations.
    +        # Corresponds to the JSON property `replace`
    +        # @return [Google::Apis::SpannerV1::Write]
    +        attr_accessor :replace
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @delete = args[:delete] if args.key?(:delete)
    +          @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update)
    +          @insert = args[:insert] if args.key?(:insert)
    +          @update = args[:update] if args.key?(:update)
    +          @replace = args[:replace] if args.key?(:replace)
    +        end
    +      end
    +      
    +      # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
    +      # the keys are expected to be in the same table or index. The keys need
    +      # not be sorted in any particular way.
    +      # If the same key is specified multiple times in the set (for example
    +      # if two ranges, two keys, or a key and a range overlap), Cloud Spanner
    +      # behaves as if the key were only specified once.
    +      class KeySet
    +        include Google::Apis::Core::Hashable
    +      
    +        # A list of key ranges. See KeyRange for more information about
    +        # key range specifications.
    +        # Corresponds to the JSON property `ranges`
    +        # @return [Array]
    +        attr_accessor :ranges
    +      
    +        # For convenience `all` can be set to `true` to indicate that this
    +        # `KeySet` matches all keys in the table or index. Note that any keys
    +        # specified in `keys` or `ranges` are only yielded once.
    +        # Corresponds to the JSON property `all`
    +        # @return [Boolean]
    +        attr_accessor :all
    +        alias_method :all?, :all
    +      
    +        # A list of specific keys. Entries in `keys` should have exactly as
    +        # many elements as there are columns in the primary or index key
    +        # with which this `KeySet` is used.  Individual key values are
    +        # encoded as described here.
    +        # Corresponds to the JSON property `keys`
    +        # @return [Array>]
    +        attr_accessor :keys
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @ranges = args[:ranges] if args.key?(:ranges)
    +          @all = args[:all] if args.key?(:all)
    +          @keys = args[:keys] if args.key?(:keys)
    +        end
    +      end
    +      
    +      # The response for GetDatabaseDdl.
    +      class GetDatabaseDdlResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A list of formatted DDL statements defining the schema of the database
    +        # specified in the request.
    +        # Corresponds to the JSON property `statements`
    +        # @return [Array]
    +        attr_accessor :statements
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @statements = args[:statements] if args.key?(:statements)
    +        end
    +      end
    +      
    +      # A Cloud Spanner database.
    +      class Database
    +        include Google::Apis::Core::Hashable
    +      
    +        # Output only. The current database state.
    +        # Corresponds to the JSON property `state`
    +        # @return [String]
    +        attr_accessor :state
    +      
    +        # Required. The name of the database. Values are of the form
    +        # `projects//instances//databases/`,
    +        # where `` is as specified in the `CREATE DATABASE`
    +        # statement. This name can be passed to other API methods to
    +        # identify the database.
    +        # 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)
    +          @state = args[:state] if args.key?(:state)
    +          @name = args[:name] if args.key?(:name)
    +        end
    +      end
    +      
    +      # An isolated set of Cloud Spanner resources on which databases can be hosted.
    +      class Instance
    +        include Google::Apis::Core::Hashable
    +      
    +        # Required. A unique identifier for the instance, which cannot be changed
    +        # after the instance is created. Values are of the form
    +        # `projects//instances/a-z*[a-z0-9]`. The final
    +        # segment of the name must be between 6 and 30 characters in length.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # Required. The descriptive name for this instance as it appears in UIs.
    +        # Must be unique per project and between 4 and 30 characters in length.
    +        # Corresponds to the JSON property `displayName`
    +        # @return [String]
    +        attr_accessor :display_name
    +      
    +        # Required. The number of nodes allocated to this instance. This may be zero
    +        # in API responses for instances that are not yet in state `READY`.
    +        # Corresponds to the JSON property `nodeCount`
    +        # @return [Fixnum]
    +        attr_accessor :node_count
    +      
    +        # Cloud Labels are a flexible and lightweight mechanism for organizing cloud
    +        # resources into groups that reflect a customer's organizational needs and
    +        # deployment strategies. Cloud Labels can be used to filter collections of
    +        # resources. They can be used to control how resource metrics are aggregated.
    +        # And they can be used as arguments to policy management rules (e.g. route,
    +        # firewall, load balancing, etc.).
    +        # * Label keys must be between 1 and 63 characters long and must conform to
    +        # the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
    +        # * Label values must be between 0 and 63 characters long and must conform
    +        # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
    +        # * No more than 64 labels can be associated with a given resource.
    +        # See https://goo.gl/xmQnxf for more information on and examples of labels.
    +        # If you plan to use labels in your own code, please note that additional
    +        # characters may be allowed in the future. And so you are advised to use an
    +        # internal label representation, such as JSON, which doesn't rely upon
    +        # specific characters being disallowed.  For example, representing labels
    +        # as the string:  name + "_" + value  would prove problematic if we were to
    +        # allow "_" in a future release.
    +        # Corresponds to the JSON property `labels`
    +        # @return [Hash]
    +        attr_accessor :labels
    +      
    +        # Required. The name of the instance's configuration. Values are of the form
    +        # `projects//instanceConfigs/`. See
    +        # also InstanceConfig and
    +        # ListInstanceConfigs.
    +        # Corresponds to the JSON property `config`
    +        # @return [String]
    +        attr_accessor :config
    +      
    +        # Output only. The current instance state. For
    +        # CreateInstance, the state must be
    +        # either omitted or set to `CREATING`. For
    +        # UpdateInstance, the state must be
    +        # either omitted or set to `READY`.
    +        # Corresponds to the JSON property `state`
    +        # @return [String]
    +        attr_accessor :state
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @name = args[:name] if args.key?(:name)
    +          @display_name = args[:display_name] if args.key?(:display_name)
    +          @node_count = args[:node_count] if args.key?(:node_count)
    +          @labels = args[:labels] if args.key?(:labels)
    +          @config = args[:config] if args.key?(:config)
    +          @state = args[:state] if args.key?(:state)
    +        end
    +      end
    +      
    +      # Request message for `SetIamPolicy` method.
    +      class SetIamPolicyRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Defines an Identity and Access Management (IAM) policy. It is used to
    +        # specify access control policies for Cloud Platform resources.
    +        # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
    +        # `members` to a `role`, where the members can be user accounts, Google groups,
    +        # Google domains, and service accounts. A `role` is a named list of permissions
    +        # defined by IAM.
    +        # **Example**
    +        # `
    +        # "bindings": [
    +        # `
    +        # "role": "roles/owner",
    +        # "members": [
    +        # "user:mike@example.com",
    +        # "group:admins@example.com",
    +        # "domain:google.com",
    +        # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
    +        # ]
    +        # `,
    +        # `
    +        # "role": "roles/viewer",
    +        # "members": ["user:sean@example.com"]
    +        # `
    +        # ]
    +        # `
    +        # For a description of IAM and its features, see the
    +        # [IAM developer's guide](https://cloud.google.com/iam).
    +        # Corresponds to the JSON property `policy`
    +        # @return [Google::Apis::SpannerV1::Policy]
    +        attr_accessor :policy
    +      
    +        # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    +        # the fields in the mask will be modified. If no mask is provided, the
    +        # following default mask is used:
    +        # paths: "bindings, etag"
    +        # This field is only used by Cloud IAM.
    +        # Corresponds to the JSON property `updateMask`
    +        # @return [String]
    +        attr_accessor :update_mask
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @policy = args[:policy] if args.key?(:policy)
    +          @update_mask = args[:update_mask] if args.key?(:update_mask)
    +        end
    +      end
    +      
    +      # The response for ListDatabases.
    +      class ListDatabasesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # `next_page_token` can be sent in a subsequent
    +        # ListDatabases call to fetch more
    +        # of the matching databases.
    +        # Corresponds to the JSON property `nextPageToken`
    +        # @return [String]
    +        attr_accessor :next_page_token
    +      
    +        # Databases that matched the request.
    +        # Corresponds to the JSON property `databases`
    +        # @return [Array]
    +        attr_accessor :databases
    +      
    +        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)
    +          @databases = args[:databases] if args.key?(:databases)
    +        end
    +      end
    +      
    +      # The request for Rollback.
    +      class RollbackRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Required. The transaction to roll back.
    +        # Corresponds to the JSON property `transactionId`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :transaction_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
    +        end
    +      end
    +      
    +      # A transaction.
    +      class Transaction
    +        include Google::Apis::Core::Hashable
    +      
    +        # For snapshot read-only transactions, the read timestamp chosen
    +        # for the transaction. Not returned by default: see
    +        # TransactionOptions.ReadOnly.return_read_timestamp.
    +        # Corresponds to the JSON property `readTimestamp`
    +        # @return [String]
    +        attr_accessor :read_timestamp
    +      
    +        # `id` may be used to identify the transaction in subsequent
    +        # Read,
    +        # ExecuteSql,
    +        # Commit, or
    +        # Rollback calls.
    +        # Single-use read-only transactions do not have IDs, because
    +        # single-use transactions do not support multiple requests.
    +        # Corresponds to the JSON property `id`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @read_timestamp = args[:read_timestamp] if args.key?(:read_timestamp)
    +          @id = args[:id] if args.key?(:id)
    +        end
    +      end
    +      
    +      # Metadata type for the operation returned by
    +      # UpdateDatabaseDdl.
    +      class UpdateDatabaseDdlMetadata
    +        include Google::Apis::Core::Hashable
    +      
    +        # The database being modified.
    +        # Corresponds to the JSON property `database`
    +        # @return [String]
    +        attr_accessor :database
    +      
    +        # For an update this list contains all the statements. For an
    +        # individual statement, this list contains only that statement.
    +        # Corresponds to the JSON property `statements`
    +        # @return [Array]
    +        attr_accessor :statements
    +      
    +        # Reports the commit timestamps of all statements that have
    +        # succeeded so far, where `commit_timestamps[i]` is the commit
    +        # timestamp for the statement `statements[i]`.
    +        # Corresponds to the JSON property `commitTimestamps`
    +        # @return [Array]
    +        attr_accessor :commit_timestamps
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @database = args[:database] if args.key?(:database)
    +          @statements = args[:statements] if args.key?(:statements)
    +          @commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps)
    +        end
    +      end
    +      
    +      # Options for counters
    +      class CounterOptions
    +        include Google::Apis::Core::Hashable
    +      
    +        # The field value to attribute.
    +        # Corresponds to the JSON property `field`
    +        # @return [String]
    +        attr_accessor :field
    +      
    +        # The metric to update.
    +        # Corresponds to the JSON property `metric`
    +        # @return [String]
    +        attr_accessor :metric
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @field = args[:field] if args.key?(:field)
    +          @metric = args[:metric] if args.key?(:metric)
    +        end
    +      end
    +      
    +      # `StructType` defines the fields of a STRUCT type.
    +      class StructType
    +        include Google::Apis::Core::Hashable
    +      
    +        # The list of fields that make up this struct. Order is
    +        # significant, because values of this struct type are represented as
    +        # lists, where the order of field values matches the order of
    +        # fields in the StructType. In turn, the order of fields
    +        # matches the order of columns in a read request, or the order of
    +        # fields in the `SELECT` clause of a query.
    +        # Corresponds to the JSON property `fields`
    +        # @return [Array]
    +        attr_accessor :fields
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fields = args[:fields] if args.key?(:fields)
    +        end
    +      end
    +      
    +      # Contains an ordered list of nodes appearing in the query plan.
    +      class QueryPlan
    +        include Google::Apis::Core::Hashable
    +      
    +        # The nodes in the query plan. Plan nodes are returned in pre-order starting
    +        # with the plan root. Each PlanNode's `id` corresponds to its index in
    +        # `plan_nodes`.
    +        # Corresponds to the JSON property `planNodes`
    +        # @return [Array]
    +        attr_accessor :plan_nodes
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @plan_nodes = args[:plan_nodes] if args.key?(:plan_nodes)
    +        end
    +      end
    +      
    +      # Message representing a single field of a struct.
    +      class Field
    +        include Google::Apis::Core::Hashable
    +      
    +        # The name of the field. For reads, this is the column name. For
    +        # SQL queries, it is the column alias (e.g., `"Word"` in the
    +        # query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
    +        # `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
    +        # columns might have an empty name (e.g., !"SELECT
    +        # UPPER(ColName)"`). Note that a query result can contain
    +        # multiple fields with the same name.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    +        # table cell or returned from an SQL query.
    +        # Corresponds to the JSON property `type`
    +        # @return [Google::Apis::SpannerV1::Type]
    +        attr_accessor :type
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @name = args[:name] if args.key?(:name)
    +          @type = args[:type] if args.key?(:type)
    +        end
    +      end
    +      
    +      # Request message for `TestIamPermissions` method.
    +      class TestIamPermissionsRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # REQUIRED: The set of permissions to check for 'resource'.
    +        # Permissions with wildcards (such as '*', 'spanner.*', 'spanner.instances.*')
    +        # are not allowed.
    +        # Corresponds to the JSON property `permissions`
    +        # @return [Array]
    +        attr_accessor :permissions
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @permissions = args[:permissions] if args.key?(:permissions)
    +        end
    +      end
    +      
    +      # Additional statistics about a ResultSet or PartialResultSet.
    +      class ResultSetStats
    +        include Google::Apis::Core::Hashable
    +      
    +        # Aggregated statistics from the execution of the query. Only present when
    +        # the query is profiled. For example, a query could return the statistics as
    +        # follows:
    +        # `
    +        # "rows_returned": "3",
    +        # "elapsed_time": "1.22 secs",
    +        # "cpu_time": "1.19 secs"
    +        # `
    +        # Corresponds to the JSON property `queryStats`
    +        # @return [Hash]
    +        attr_accessor :query_stats
    +      
    +        # Contains an ordered list of nodes appearing in the query plan.
    +        # Corresponds to the JSON property `queryPlan`
    +        # @return [Google::Apis::SpannerV1::QueryPlan]
    +        attr_accessor :query_plan
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @query_stats = args[:query_stats] if args.key?(:query_stats)
    +          @query_plan = args[:query_plan] if args.key?(:query_plan)
    +        end
    +      end
    +      
    +      # The response for Commit.
    +      class CommitResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # The Cloud Spanner timestamp at which the transaction committed.
    +        # Corresponds to the JSON property `commitTimestamp`
    +        # @return [String]
    +        attr_accessor :commit_timestamp
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
    +        end
    +      end
    +      
    +      # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    +      # table cell or returned from an SQL query.
    +      class Type
    +        include Google::Apis::Core::Hashable
    +      
    +        # `StructType` defines the fields of a STRUCT type.
    +        # Corresponds to the JSON property `structType`
    +        # @return [Google::Apis::SpannerV1::StructType]
    +        attr_accessor :struct_type
    +      
    +        # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
    +        # table cell or returned from an SQL query.
    +        # Corresponds to the JSON property `arrayElementType`
    +        # @return [Google::Apis::SpannerV1::Type]
    +        attr_accessor :array_element_type
    +      
    +        # Required. The TypeCode for this type.
    +        # Corresponds to the JSON property `code`
    +        # @return [String]
    +        attr_accessor :code
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @struct_type = args[:struct_type] if args.key?(:struct_type)
    +          @array_element_type = args[:array_element_type] if args.key?(:array_element_type)
    +          @code = args[:code] if args.key?(:code)
    +        end
    +      end
    +      
    +      # Node information for nodes appearing in a QueryPlan.plan_nodes.
    +      class PlanNode
    +        include Google::Apis::Core::Hashable
    +      
    +        # List of child node `index`es and their relationship to this parent.
    +        # Corresponds to the JSON property `childLinks`
    +        # @return [Array]
    +        attr_accessor :child_links
    +      
    +        # Attributes relevant to the node contained in a group of key-value pairs.
    +        # For example, a Parameter Reference node could have the following
    +        # information in its metadata:
    +        # `
    +        # "parameter_reference": "param1",
    +        # "parameter_type": "array"
    +        # `
    +        # Corresponds to the JSON property `metadata`
    +        # @return [Hash]
    +        attr_accessor :metadata
    +      
    +        # The execution statistics associated with the node, contained in a group of
    +        # key-value pairs. Only present if the plan was returned as a result of a
    +        # profile query. For example, number of executions, number of rows/time per
    +        # execution etc.
    +        # Corresponds to the JSON property `executionStats`
    +        # @return [Hash]
    +        attr_accessor :execution_stats
    +      
    +        # Condensed representation of a node and its subtree. Only present for
    +        # `SCALAR` PlanNode(s).
    +        # Corresponds to the JSON property `shortRepresentation`
    +        # @return [Google::Apis::SpannerV1::ShortRepresentation]
    +        attr_accessor :short_representation
    +      
    +        # The `PlanNode`'s index in node list.
    +        # Corresponds to the JSON property `index`
    +        # @return [Fixnum]
    +        attr_accessor :index
    +      
    +        # Used to determine the type of node. May be needed for visualizing
    +        # different kinds of nodes differently. For example, If the node is a
    +        # SCALAR node, it will have a condensed representation
    +        # which can be used to directly embed a description of the node in its
    +        # parent.
    +        # Corresponds to the JSON property `kind`
    +        # @return [String]
    +        attr_accessor :kind
    +      
    +        # The display name for the node.
    +        # Corresponds to the JSON property `displayName`
    +        # @return [String]
    +        attr_accessor :display_name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @child_links = args[:child_links] if args.key?(:child_links)
    +          @metadata = args[:metadata] if args.key?(:metadata)
    +          @execution_stats = args[:execution_stats] if args.key?(:execution_stats)
    +          @short_representation = args[:short_representation] if args.key?(:short_representation)
    +          @index = args[:index] if args.key?(:index)
    +          @kind = args[:kind] if args.key?(:kind)
    +          @display_name = args[:display_name] if args.key?(:display_name)
    +        end
    +      end
    +      
    +      # Metadata type for the operation returned by
    +      # CreateInstance.
    +      class CreateInstanceMetadata
    +        include Google::Apis::Core::Hashable
    +      
    +        # The time at which this operation failed or was completed successfully.
    +        # Corresponds to the JSON property `endTime`
    +        # @return [String]
    +        attr_accessor :end_time
    +      
    +        # The time at which this operation was cancelled. If set, this operation is
    +        # in the process of undoing itself (which is guaranteed to succeed) and
    +        # cannot be cancelled again.
    +        # Corresponds to the JSON property `cancelTime`
    +        # @return [String]
    +        attr_accessor :cancel_time
    +      
    +        # The time at which the
    +        # CreateInstance request was
    +        # received.
    +        # Corresponds to the JSON property `startTime`
    +        # @return [String]
    +        attr_accessor :start_time
    +      
    +        # An isolated set of Cloud Spanner resources on which databases can be hosted.
    +        # Corresponds to the JSON property `instance`
    +        # @return [Google::Apis::SpannerV1::Instance]
    +        attr_accessor :instance
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @end_time = args[:end_time] if args.key?(:end_time)
    +          @cancel_time = args[:cancel_time] if args.key?(:cancel_time)
    +          @start_time = args[:start_time] if args.key?(:start_time)
    +          @instance = args[:instance] if args.key?(:instance)
    +        end
    +      end
    +      
    +      # Specifies the audit configuration for a service.
    +      # The configuration determines which permission types are logged, and what
    +      # identities, if any, are exempted from logging.
    +      # An AuditConfig must have one or more AuditLogConfigs.
    +      # If there are AuditConfigs for both `allServices` and a specific service,
    +      # the union of the two AuditConfigs is used for that service: the log_types
    +      # specified in each AuditConfig are enabled, and the exempted_members in each
    +      # AuditConfig are exempted.
    +      # Example Policy with multiple AuditConfigs:
    +      # `
    +      # "audit_configs": [
    +      # `
    +      # "service": "allServices"
    +      # "audit_log_configs": [
    +      # `
    +      # "log_type": "DATA_READ",
    +      # "exempted_members": [
    +      # "user:foo@gmail.com"
    +      # ]
    +      # `,
    +      # `
    +      # "log_type": "DATA_WRITE",
    +      # `,
    +      # `
    +      # "log_type": "ADMIN_READ",
    +      # `
    +      # ]
    +      # `,
    +      # `
    +      # "service": "fooservice.googleapis.com"
    +      # "audit_log_configs": [
    +      # `
    +      # "log_type": "DATA_READ",
    +      # `,
    +      # `
    +      # "log_type": "DATA_WRITE",
    +      # "exempted_members": [
    +      # "user:bar@gmail.com"
    +      # ]
    +      # `
    +      # ]
    +      # `
    +      # ]
    +      # `
    +      # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
    +      # logging. It also exempts foo@gmail.com from DATA_READ logging, and
    +      # bar@gmail.com from DATA_WRITE logging.
    +      class AuditConfig
    +        include Google::Apis::Core::Hashable
    +      
    +        # The configuration for logging of each type of permission.
    +        # Next ID: 4
    +        # Corresponds to the JSON property `auditLogConfigs`
    +        # @return [Array]
    +        attr_accessor :audit_log_configs
    +      
    +        # 
    +        # Corresponds to the JSON property `exemptedMembers`
    +        # @return [Array]
    +        attr_accessor :exempted_members
    +      
    +        # Specifies a service that will be enabled for audit logging.
    +        # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
    +        # `allServices` is a special value that covers all services.
    +        # 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)
    +          @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
    +          @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
    +          @service = args[:service] if args.key?(:service)
    +        end
    +      end
    +      
    +      # Metadata associated with a parent-child relationship appearing in a
    +      # PlanNode.
    +      class ChildLink
    +        include Google::Apis::Core::Hashable
    +      
    +        # Only present if the child node is SCALAR and corresponds
    +        # to an output variable of the parent node. The field carries the name of
    +        # the output variable.
    +        # For example, a `TableScan` operator that reads rows from a table will
    +        # have child links to the `SCALAR` nodes representing the output variables
    +        # created for each column that is read by the operator. The corresponding
    +        # `variable` fields will be set to the variable names assigned to the
    +        # columns.
    +        # Corresponds to the JSON property `variable`
    +        # @return [String]
    +        attr_accessor :variable
    +      
    +        # The node to which the link points.
    +        # Corresponds to the JSON property `childIndex`
    +        # @return [Fixnum]
    +        attr_accessor :child_index
    +      
    +        # The type of the link. For example, in Hash Joins this could be used to
    +        # distinguish between the build child and the probe child, or in the case
    +        # of the child being an output variable, to represent the tag associated
    +        # with the output variable.
    +        # 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)
    +          @variable = args[:variable] if args.key?(:variable)
    +          @child_index = args[:child_index] if args.key?(:child_index)
    +          @type = args[:type] if args.key?(:type)
    +        end
    +      end
    +      
    +      # Write a Cloud Audit log
    +      class CloudAuditOptions
    +        include Google::Apis::Core::Hashable
    +      
    +        # The log_name to populate in the Cloud Audit Record.
    +        # Corresponds to the JSON property `logName`
    +        # @return [String]
    +        attr_accessor :log_name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @log_name = args[:log_name] if args.key?(:log_name)
    +        end
    +      end
    +      
    +      # Represents an expression text. Example:
    +      # title: "User account presence"
    +      # description: "Determines whether the request has a user account"
    +      # expression: "size(request.user) > 0"
    +      class Expr
    +        include Google::Apis::Core::Hashable
    +      
    +        # An optional description of the expression. This is a longer text which
    +        # describes the expression, e.g. when hovered over it in a UI.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # Textual representation of an expression in
    +        # [Common Expression Language](http://go/api-expr) syntax.
    +        # The application context of the containing message determines which
    +        # well-known feature set of CEL is supported.
    +        # Corresponds to the JSON property `expression`
    +        # @return [String]
    +        attr_accessor :expression
    +      
    +        # An optional string indicating the location of the expression for error
    +        # reporting, e.g. a file name and a position in the file.
    +        # Corresponds to the JSON property `location`
    +        # @return [String]
    +        attr_accessor :location
    +      
    +        # An optional title for the expression, i.e. a short string describing
    +        # its purpose. This can be used e.g. in UIs which allow to enter the
    +        # expression.
    +        # Corresponds to the JSON property `title`
    +        # @return [String]
    +        attr_accessor :title
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @description = args[:description] if args.key?(:description)
    +          @expression = args[:expression] if args.key?(:expression)
    +          @location = args[:location] if args.key?(:location)
    +          @title = args[:title] if args.key?(:title)
    +        end
    +      end
    +      
    +      # Arguments to delete operations.
    +      class Delete
    +        include Google::Apis::Core::Hashable
    +      
    +        # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All
    +        # the keys are expected to be in the same table or index. The keys need
    +        # not be sorted in any particular way.
    +        # If the same key is specified multiple times in the set (for example
    +        # if two ranges, two keys, or a key and a range overlap), Cloud Spanner
    +        # behaves as if the key were only specified once.
    +        # Corresponds to the JSON property `keySet`
    +        # @return [Google::Apis::SpannerV1::KeySet]
    +        attr_accessor :key_set
    +      
    +        # Required. The table whose rows will be deleted.
    +        # Corresponds to the JSON property `table`
    +        # @return [String]
    +        attr_accessor :table
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @key_set = args[:key_set] if args.key?(:key_set)
    +          @table = args[:table] if args.key?(:table)
    +        end
    +      end
    +      
    +      # The response for ListInstanceConfigs.
    +      class ListInstanceConfigsResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # `next_page_token` can be sent in a subsequent
    +        # ListInstanceConfigs call to
    +        # fetch more of the matching instance configurations.
    +        # Corresponds to the JSON property `nextPageToken`
    +        # @return [String]
    +        attr_accessor :next_page_token
    +      
    +        # The list of requested instance configurations.
    +        # Corresponds to the JSON property `instanceConfigs`
    +        # @return [Array]
    +        attr_accessor :instance_configs
    +      
    +        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)
    +          @instance_configs = args[:instance_configs] if args.key?(:instance_configs)
    +        end
    +      end
    +      
    +      # The request for BeginTransaction.
    +      class BeginTransactionRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # # Transactions
    +        # Each session can have at most one active transaction at a time. After the
    +        # active transaction is completed, the session can immediately be
    +        # re-used for the next transaction. It is not necessary to create a
    +        # new session for each transaction.
    +        # # Transaction Modes
    +        # Cloud Spanner supports two transaction modes:
    +        # 1. Locking read-write. This type of transaction is the only way
    +        # to write data into Cloud Spanner. These transactions rely on
    +        # pessimistic locking and, if necessary, two-phase commit.
    +        # Locking read-write transactions may abort, requiring the
    +        # application to retry.
    +        # 2. Snapshot read-only. This transaction type provides guaranteed
    +        # consistency across several reads, but does not allow
    +        # writes. Snapshot read-only transactions can be configured to
    +        # read at timestamps in the past. Snapshot read-only
    +        # transactions do not need to be committed.
    +        # For transactions that only read, snapshot read-only transactions
    +        # provide simpler semantics and are almost always faster. In
    +        # particular, read-only transactions do not take locks, so they do
    +        # not conflict with read-write transactions. As a consequence of not
    +        # taking locks, they also do not abort, so retry loops are not needed.
    +        # Transactions may only read/write data in a single database. They
    +        # may, however, read/write data in different tables within that
    +        # database.
    +        # ## Locking Read-Write Transactions
    +        # Locking transactions may be used to atomically read-modify-write
    +        # data anywhere in a database. This type of transaction is externally
    +        # consistent.
    +        # Clients should attempt to minimize the amount of time a transaction
    +        # is active. Faster transactions commit with higher probability
    +        # and cause less contention. Cloud Spanner attempts to keep read locks
    +        # active as long as the transaction continues to do reads, and the
    +        # transaction has not been terminated by
    +        # Commit or
    +        # Rollback.  Long periods of
    +        # inactivity at the client may cause Cloud Spanner to release a
    +        # transaction's locks and abort it.
    +        # Reads performed within a transaction acquire locks on the data
    +        # being read. Writes can only be done at commit time, after all reads
    +        # have been completed.
    +        # Conceptually, a read-write transaction consists of zero or more
    +        # reads or SQL queries followed by
    +        # Commit. At any time before
    +        # Commit, the client can send a
    +        # Rollback request to abort the
    +        # transaction.
    +        # ### Semantics
    +        # Cloud Spanner can commit the transaction if all read locks it acquired
    +        # are still valid at commit time, and it is able to acquire write
    +        # locks for all writes. Cloud Spanner can abort the transaction for any
    +        # reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees
    +        # that the transaction has not modified any user data in Cloud Spanner.
    +        # Unless the transaction commits, Cloud Spanner makes no guarantees about
    +        # how long the transaction's locks were held for. It is an error to
    +        # use Cloud Spanner locks for any sort of mutual exclusion other than
    +        # between Cloud Spanner transactions themselves.
    +        # ### Retrying Aborted Transactions
    +        # When a transaction aborts, the application can choose to retry the
    +        # whole transaction again. To maximize the chances of successfully
    +        # committing the retry, the client should execute the retry in the
    +        # same session as the original attempt. The original session's lock
    +        # priority increases with each consecutive abort, meaning that each
    +        # attempt has a slightly better chance of success than the previous.
    +        # Under some circumstances (e.g., many transactions attempting to
    +        # modify the same row(s)), a transaction can abort many times in a
    +        # short period before successfully committing. Thus, it is not a good
    +        # idea to cap the number of retries a transaction can attempt;
    +        # instead, it is better to limit the total amount of wall time spent
    +        # retrying.
    +        # ### Idle Transactions
    +        # A transaction is considered idle if it has no outstanding reads or
    +        # SQL queries and has not started a read or SQL query within the last 10
    +        # seconds. Idle transactions can be aborted by Cloud Spanner so that they
    +        # don't hold on to locks indefinitely. In that case, the commit will
    +        # fail with error `ABORTED`.
    +        # If this behavior is undesirable, periodically executing a simple
    +        # SQL query in the transaction (e.g., `SELECT 1`) prevents the
    +        # transaction from becoming idle.
    +        # ## Snapshot Read-Only Transactions
    +        # Snapshot read-only transactions provides a simpler method than
    +        # locking read-write transactions for doing several consistent
    +        # reads. However, this type of transaction does not support writes.
    +        # Snapshot transactions do not take locks. Instead, they work by
    +        # choosing a Cloud Spanner timestamp, then executing all reads at that
    +        # timestamp. Since they do not acquire locks, they do not block
    +        # concurrent read-write transactions.
    +        # Unlike locking read-write transactions, snapshot read-only
    +        # transactions never abort. They can fail if the chosen read
    +        # timestamp is garbage collected; however, the default garbage
    +        # collection policy is generous enough that most applications do not
    +        # need to worry about this in practice.
    +        # Snapshot read-only transactions do not need to call
    +        # Commit or
    +        # Rollback (and in fact are not
    +        # permitted to do so).
    +        # To execute a snapshot transaction, the client specifies a timestamp
    +        # bound, which tells Cloud Spanner how to choose a read timestamp.
    +        # The types of timestamp bound are:
    +        # - Strong (the default).
    +        # - Bounded staleness.
    +        # - Exact staleness.
    +        # If the Cloud Spanner database to be read is geographically distributed,
    +        # stale read-only transactions can execute more quickly than strong
    +        # or read-write transaction, because they are able to execute far
    +        # from the leader replica.
    +        # Each type of timestamp bound is discussed in detail below.
    +        # ### Strong
    +        # Strong reads are guaranteed to see the effects of all transactions
    +        # that have committed before the start of the read. Furthermore, all
    +        # rows yielded by a single read are consistent with each other -- if
    +        # any part of the read observes a transaction, all parts of the read
    +        # see the transaction.
    +        # Strong reads are not repeatable: two consecutive strong read-only
    +        # transactions might return inconsistent results if there are
    +        # concurrent writes. If consistency across reads is required, the
    +        # reads should be executed within a transaction or at an exact read
    +        # timestamp.
    +        # See TransactionOptions.ReadOnly.strong.
    +        # ### Exact Staleness
    +        # These timestamp bounds execute reads at a user-specified
    +        # timestamp. Reads at a timestamp are guaranteed to see a consistent
    +        # prefix of the global transaction history: they observe
    +        # modifications done by all transactions with a commit timestamp <=
    +        # the read timestamp, and observe none of the modifications done by
    +        # transactions with a larger commit timestamp. They will block until
    +        # all conflicting transactions that may be assigned commit timestamps
    +        # <= the read timestamp have finished.
    +        # The timestamp can either be expressed as an absolute Cloud Spanner commit
    +        # timestamp or a staleness relative to the current time.
    +        # These modes do not require a "negotiation phase" to pick a
    +        # timestamp. As a result, they execute slightly faster than the
    +        # equivalent boundedly stale concurrency modes. On the other hand,
    +        # boundedly stale reads usually return fresher results.
    +        # See TransactionOptions.ReadOnly.read_timestamp and
    +        # TransactionOptions.ReadOnly.exact_staleness.
    +        # ### Bounded Staleness
    +        # Bounded staleness modes allow Cloud Spanner to pick the read timestamp,
    +        # subject to a user-provided staleness bound. Cloud Spanner chooses the
    +        # newest timestamp within the staleness bound that allows execution
    +        # of the reads at the closest available replica without blocking.
    +        # All rows yielded are consistent with each other -- if any part of
    +        # the read observes a transaction, all parts of the read see the
    +        # transaction. Boundedly stale reads are not repeatable: two stale
    +        # reads, even if they use the same staleness bound, can execute at
    +        # different timestamps and thus return inconsistent results.
    +        # Boundedly stale reads execute in two phases: the first phase
    +        # negotiates a timestamp among all replicas needed to serve the
    +        # read. In the second phase, reads are executed at the negotiated
    +        # timestamp.
    +        # As a result of the two phase execution, bounded staleness reads are
    +        # usually a little slower than comparable exact staleness
    +        # reads. However, they are typically able to return fresher
    +        # results, and are more likely to execute at the closest replica.
    +        # Because the timestamp negotiation requires up-front knowledge of
    +        # which rows will be read, it can only be used with single-use
    +        # read-only transactions.
    +        # See TransactionOptions.ReadOnly.max_staleness and
    +        # TransactionOptions.ReadOnly.min_read_timestamp.
    +        # ### Old Read Timestamps and Garbage Collection
    +        # Cloud Spanner continuously garbage collects deleted and overwritten data
    +        # in the background to reclaim storage space. This process is known
    +        # as "version GC". By default, version GC reclaims versions after they
    +        # are one hour old. Because of this, Cloud Spanner cannot perform reads
    +        # at read timestamps more than one hour in the past. This
    +        # restriction also applies to in-progress reads and/or SQL queries whose
    +        # timestamp become too old while executing. Reads and SQL queries with
    +        # too-old read timestamps fail with the error `FAILED_PRECONDITION`.
    +        # Corresponds to the JSON property `options`
    +        # @return [Google::Apis::SpannerV1::TransactionOptions]
    +        attr_accessor :options
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @options = args[:options] if args.key?(:options)
    +        end
    +      end
    +      
    +      # The request for Commit.
    +      class CommitRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The mutations to be executed when this transaction commits. All
    +        # mutations are applied atomically, in the order they appear in
    +        # this list.
    +        # Corresponds to the JSON property `mutations`
    +        # @return [Array]
    +        attr_accessor :mutations
    +      
    +        # # Transactions
    +        # Each session can have at most one active transaction at a time. After the
    +        # active transaction is completed, the session can immediately be
    +        # re-used for the next transaction. It is not necessary to create a
    +        # new session for each transaction.
    +        # # Transaction Modes
    +        # Cloud Spanner supports two transaction modes:
    +        # 1. Locking read-write. This type of transaction is the only way
    +        # to write data into Cloud Spanner. These transactions rely on
    +        # pessimistic locking and, if necessary, two-phase commit.
    +        # Locking read-write transactions may abort, requiring the
    +        # application to retry.
    +        # 2. Snapshot read-only. This transaction type provides guaranteed
    +        # consistency across several reads, but does not allow
    +        # writes. Snapshot read-only transactions can be configured to
    +        # read at timestamps in the past. Snapshot read-only
    +        # transactions do not need to be committed.
    +        # For transactions that only read, snapshot read-only transactions
    +        # provide simpler semantics and are almost always faster. In
    +        # particular, read-only transactions do not take locks, so they do
    +        # not conflict with read-write transactions. As a consequence of not
    +        # taking locks, they also do not abort, so retry loops are not needed.
    +        # Transactions may only read/write data in a single database. They
    +        # may, however, read/write data in different tables within that
    +        # database.
    +        # ## Locking Read-Write Transactions
    +        # Locking transactions may be used to atomically read-modify-write
    +        # data anywhere in a database. This type of transaction is externally
    +        # consistent.
    +        # Clients should attempt to minimize the amount of time a transaction
    +        # is active. Faster transactions commit with higher probability
    +        # and cause less contention. Cloud Spanner attempts to keep read locks
    +        # active as long as the transaction continues to do reads, and the
    +        # transaction has not been terminated by
    +        # Commit or
    +        # Rollback.  Long periods of
    +        # inactivity at the client may cause Cloud Spanner to release a
    +        # transaction's locks and abort it.
    +        # Reads performed within a transaction acquire locks on the data
    +        # being read. Writes can only be done at commit time, after all reads
    +        # have been completed.
    +        # Conceptually, a read-write transaction consists of zero or more
    +        # reads or SQL queries followed by
    +        # Commit. At any time before
    +        # Commit, the client can send a
    +        # Rollback request to abort the
    +        # transaction.
    +        # ### Semantics
    +        # Cloud Spanner can commit the transaction if all read locks it acquired
    +        # are still valid at commit time, and it is able to acquire write
    +        # locks for all writes. Cloud Spanner can abort the transaction for any
    +        # reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees
    +        # that the transaction has not modified any user data in Cloud Spanner.
    +        # Unless the transaction commits, Cloud Spanner makes no guarantees about
    +        # how long the transaction's locks were held for. It is an error to
    +        # use Cloud Spanner locks for any sort of mutual exclusion other than
    +        # between Cloud Spanner transactions themselves.
    +        # ### Retrying Aborted Transactions
    +        # When a transaction aborts, the application can choose to retry the
    +        # whole transaction again. To maximize the chances of successfully
    +        # committing the retry, the client should execute the retry in the
    +        # same session as the original attempt. The original session's lock
    +        # priority increases with each consecutive abort, meaning that each
    +        # attempt has a slightly better chance of success than the previous.
    +        # Under some circumstances (e.g., many transactions attempting to
    +        # modify the same row(s)), a transaction can abort many times in a
    +        # short period before successfully committing. Thus, it is not a good
    +        # idea to cap the number of retries a transaction can attempt;
    +        # instead, it is better to limit the total amount of wall time spent
    +        # retrying.
    +        # ### Idle Transactions
    +        # A transaction is considered idle if it has no outstanding reads or
    +        # SQL queries and has not started a read or SQL query within the last 10
    +        # seconds. Idle transactions can be aborted by Cloud Spanner so that they
    +        # don't hold on to locks indefinitely. In that case, the commit will
    +        # fail with error `ABORTED`.
    +        # If this behavior is undesirable, periodically executing a simple
    +        # SQL query in the transaction (e.g., `SELECT 1`) prevents the
    +        # transaction from becoming idle.
    +        # ## Snapshot Read-Only Transactions
    +        # Snapshot read-only transactions provides a simpler method than
    +        # locking read-write transactions for doing several consistent
    +        # reads. However, this type of transaction does not support writes.
    +        # Snapshot transactions do not take locks. Instead, they work by
    +        # choosing a Cloud Spanner timestamp, then executing all reads at that
    +        # timestamp. Since they do not acquire locks, they do not block
    +        # concurrent read-write transactions.
    +        # Unlike locking read-write transactions, snapshot read-only
    +        # transactions never abort. They can fail if the chosen read
    +        # timestamp is garbage collected; however, the default garbage
    +        # collection policy is generous enough that most applications do not
    +        # need to worry about this in practice.
    +        # Snapshot read-only transactions do not need to call
    +        # Commit or
    +        # Rollback (and in fact are not
    +        # permitted to do so).
    +        # To execute a snapshot transaction, the client specifies a timestamp
    +        # bound, which tells Cloud Spanner how to choose a read timestamp.
    +        # The types of timestamp bound are:
    +        # - Strong (the default).
    +        # - Bounded staleness.
    +        # - Exact staleness.
    +        # If the Cloud Spanner database to be read is geographically distributed,
    +        # stale read-only transactions can execute more quickly than strong
    +        # or read-write transaction, because they are able to execute far
    +        # from the leader replica.
    +        # Each type of timestamp bound is discussed in detail below.
    +        # ### Strong
    +        # Strong reads are guaranteed to see the effects of all transactions
    +        # that have committed before the start of the read. Furthermore, all
    +        # rows yielded by a single read are consistent with each other -- if
    +        # any part of the read observes a transaction, all parts of the read
    +        # see the transaction.
    +        # Strong reads are not repeatable: two consecutive strong read-only
    +        # transactions might return inconsistent results if there are
    +        # concurrent writes. If consistency across reads is required, the
    +        # reads should be executed within a transaction or at an exact read
    +        # timestamp.
    +        # See TransactionOptions.ReadOnly.strong.
    +        # ### Exact Staleness
    +        # These timestamp bounds execute reads at a user-specified
    +        # timestamp. Reads at a timestamp are guaranteed to see a consistent
    +        # prefix of the global transaction history: they observe
    +        # modifications done by all transactions with a commit timestamp <=
    +        # the read timestamp, and observe none of the modifications done by
    +        # transactions with a larger commit timestamp. They will block until
    +        # all conflicting transactions that may be assigned commit timestamps
    +        # <= the read timestamp have finished.
    +        # The timestamp can either be expressed as an absolute Cloud Spanner commit
    +        # timestamp or a staleness relative to the current time.
    +        # These modes do not require a "negotiation phase" to pick a
    +        # timestamp. As a result, they execute slightly faster than the
    +        # equivalent boundedly stale concurrency modes. On the other hand,
    +        # boundedly stale reads usually return fresher results.
    +        # See TransactionOptions.ReadOnly.read_timestamp and
    +        # TransactionOptions.ReadOnly.exact_staleness.
    +        # ### Bounded Staleness
    +        # Bounded staleness modes allow Cloud Spanner to pick the read timestamp,
    +        # subject to a user-provided staleness bound. Cloud Spanner chooses the
    +        # newest timestamp within the staleness bound that allows execution
    +        # of the reads at the closest available replica without blocking.
    +        # All rows yielded are consistent with each other -- if any part of
    +        # the read observes a transaction, all parts of the read see the
    +        # transaction. Boundedly stale reads are not repeatable: two stale
    +        # reads, even if they use the same staleness bound, can execute at
    +        # different timestamps and thus return inconsistent results.
    +        # Boundedly stale reads execute in two phases: the first phase
    +        # negotiates a timestamp among all replicas needed to serve the
    +        # read. In the second phase, reads are executed at the negotiated
    +        # timestamp.
    +        # As a result of the two phase execution, bounded staleness reads are
    +        # usually a little slower than comparable exact staleness
    +        # reads. However, they are typically able to return fresher
    +        # results, and are more likely to execute at the closest replica.
    +        # Because the timestamp negotiation requires up-front knowledge of
    +        # which rows will be read, it can only be used with single-use
    +        # read-only transactions.
    +        # See TransactionOptions.ReadOnly.max_staleness and
    +        # TransactionOptions.ReadOnly.min_read_timestamp.
    +        # ### Old Read Timestamps and Garbage Collection
    +        # Cloud Spanner continuously garbage collects deleted and overwritten data
    +        # in the background to reclaim storage space. This process is known
    +        # as "version GC". By default, version GC reclaims versions after they
    +        # are one hour old. Because of this, Cloud Spanner cannot perform reads
    +        # at read timestamps more than one hour in the past. This
    +        # restriction also applies to in-progress reads and/or SQL queries whose
    +        # timestamp become too old while executing. Reads and SQL queries with
    +        # too-old read timestamps fail with the error `FAILED_PRECONDITION`.
    +        # Corresponds to the JSON property `singleUseTransaction`
    +        # @return [Google::Apis::SpannerV1::TransactionOptions]
    +        attr_accessor :single_use_transaction
    +      
    +        # Commit a previously-started transaction.
    +        # Corresponds to the JSON property `transactionId`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :transaction_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @mutations = args[:mutations] if args.key?(:mutations)
    +          @single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
    +          @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
    +        end
    +      end
    +      
    +      # Response message for `TestIamPermissions` method.
    +      class TestIamPermissionsResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A subset of `TestPermissionsRequest.permissions` that the caller is
    +        # allowed.
    +        # Corresponds to the JSON property `permissions`
    +        # @return [Array]
    +        attr_accessor :permissions
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @permissions = args[:permissions] if args.key?(:permissions)
    +        end
    +      end
    +      
    +      # Request message for `GetIamPolicy` method.
    +      class GetIamPolicyRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
    +      # A rule to be applied in a Policy.
    +      class Rule
    +        include Google::Apis::Core::Hashable
    +      
    +        # Additional restrictions that must be met
    +        # Corresponds to the JSON property `conditions`
    +        # @return [Array]
    +        attr_accessor :conditions
    +      
    +        # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
    +        # that match the LOG action.
    +        # Corresponds to the JSON property `logConfig`
    +        # @return [Array]
    +        attr_accessor :log_config
    +      
    +        # If one or more 'in' clauses are specified, the rule matches if
    +        # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
    +        # Corresponds to the JSON property `in`
    +        # @return [Array]
    +        attr_accessor :in
    +      
    +        # A permission is a string of form '..'
    +        # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
    +        # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
    +        # Corresponds to the JSON property `permissions`
    +        # @return [Array]
    +        attr_accessor :permissions
    +      
    +        # Required
    +        # Corresponds to the JSON property `action`
    +        # @return [String]
    +        attr_accessor :action
    +      
    +        # If one or more 'not_in' clauses are specified, the rule matches
    +        # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
    +        # The format for in and not_in entries is the same as for members in a
    +        # Binding (see google/iam/v1/policy.proto).
    +        # Corresponds to the JSON property `notIn`
    +        # @return [Array]
    +        attr_accessor :not_in
    +      
    +        # Human-readable description of the rule.
    +        # 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)
    +          @conditions = args[:conditions] if args.key?(:conditions)
    +          @log_config = args[:log_config] if args.key?(:log_config)
    +          @in = args[:in] if args.key?(:in)
    +          @permissions = args[:permissions] if args.key?(:permissions)
    +          @action = args[:action] if args.key?(:action)
    +          @not_in = args[:not_in] if args.key?(:not_in)
    +          @description = args[:description] if args.key?(:description)
    +        end
    +      end
    +      
    +      # Metadata type for the operation returned by
    +      # CreateDatabase.
    +      class CreateDatabaseMetadata
    +        include Google::Apis::Core::Hashable
    +      
    +        # The database being created.
    +        # Corresponds to the JSON property `database`
    +        # @return [String]
    +        attr_accessor :database
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @database = args[:database] if args.key?(:database)
    +        end
    +      end
    +      
    +      # Specifies what kind of log the caller must write
    +      class LogConfig
    +        include Google::Apis::Core::Hashable
    +      
    +        # Options for counters
    +        # Corresponds to the JSON property `counter`
    +        # @return [Google::Apis::SpannerV1::CounterOptions]
    +        attr_accessor :counter
    +      
    +        # Write a Data Access (Gin) log
    +        # Corresponds to the JSON property `dataAccess`
    +        # @return [Google::Apis::SpannerV1::DataAccessOptions]
    +        attr_accessor :data_access
    +      
    +        # Write a Cloud Audit log
    +        # Corresponds to the JSON property `cloudAudit`
    +        # @return [Google::Apis::SpannerV1::CloudAuditOptions]
    +        attr_accessor :cloud_audit
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @counter = args[:counter] if args.key?(:counter)
    +          @data_access = args[:data_access] if args.key?(:data_access)
    +          @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
    +        end
    +      end
    +      
    +      # A session in the Cloud Spanner API.
    +      class Session
    +        include Google::Apis::Core::Hashable
    +      
    +        # Required. The name of the session.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @name = args[:name] if args.key?(:name)
    +        end
    +      end
    +      
    +      # KeyRange represents a range of rows in a table or index.
    +      # A range has a start key and an end key. These keys can be open or
    +      # closed, indicating if the range includes rows with that key.
    +      # Keys are represented by lists, where the ith value in the list
    +      # corresponds to the ith component of the table or index primary key.
    +      # Individual values are encoded as described here.
    +      # For example, consider the following table definition:
    +      # CREATE TABLE UserEvents (
    +      # UserName STRING(MAX),
    +      # EventDate STRING(10)
    +      # ) PRIMARY KEY(UserName, EventDate);
    +      # The following keys name rows in this table:
    +      # "Bob", "2014-09-23"
    +      # Since the `UserEvents` table's `PRIMARY KEY` clause names two
    +      # columns, each `UserEvents` key has two elements; the first is the
    +      # `UserName`, and the second is the `EventDate`.
    +      # Key ranges with multiple components are interpreted
    +      # lexicographically by component using the table or index key's declared
    +      # sort order. For example, the following range returns all events for
    +      # user `"Bob"` that occurred in the year 2015:
    +      # "start_closed": ["Bob", "2015-01-01"]
    +      # "end_closed": ["Bob", "2015-12-31"]
    +      # Start and end keys can omit trailing key components. This affects the
    +      # inclusion and exclusion of rows that exactly match the provided key
    +      # components: if the key is closed, then rows that exactly match the
    +      # provided components are included; if the key is open, then rows
    +      # that exactly match are not included.
    +      # For example, the following range includes all events for `"Bob"` that
    +      # occurred during and after the year 2000:
    +      # "start_closed": ["Bob", "2000-01-01"]
    +      # "end_closed": ["Bob"]
    +      # The next example retrieves all events for `"Bob"`:
    +      # "start_closed": ["Bob"]
    +      # "end_closed": ["Bob"]
    +      # To retrieve events before the year 2000:
    +      # "start_closed": ["Bob"]
    +      # "end_open": ["Bob", "2000-01-01"]
    +      # The following range includes all rows in the table:
    +      # "start_closed": []
    +      # "end_closed": []
    +      # This range returns all users whose `UserName` begins with any
    +      # character from A to C:
    +      # "start_closed": ["A"]
    +      # "end_open": ["D"]
    +      # This range returns all users whose `UserName` begins with B:
    +      # "start_closed": ["B"]
    +      # "end_open": ["C"]
    +      # Key ranges honor column sort order. For example, suppose a table is
    +      # defined as follows:
    +      # CREATE TABLE DescendingSortedTable `
    +      # Key INT64,
    +      # ...
    +      # ) PRIMARY KEY(Key DESC);
    +      # The following range retrieves all rows with key values between 1
    +      # and 100 inclusive:
    +      # "start_closed": ["100"]
    +      # "end_closed": ["1"]
    +      # Note that 100 is passed as the start, and 1 is passed as the end,
    +      # because `Key` is a descending column in the schema.
    +      class KeyRange
    +        include Google::Apis::Core::Hashable
    +      
    +        # If the start is open, then the range excludes rows whose first
    +        # `len(start_open)` key columns exactly match `start_open`.
    +        # Corresponds to the JSON property `startOpen`
    +        # @return [Array]
    +        attr_accessor :start_open
    +      
    +        # If the start is closed, then the range includes all rows whose
    +        # first `len(start_closed)` key columns exactly match `start_closed`.
    +        # Corresponds to the JSON property `startClosed`
    +        # @return [Array]
    +        attr_accessor :start_closed
    +      
    +        # If the end is open, then the range excludes rows whose first
    +        # `len(end_open)` key columns exactly match `end_open`.
    +        # Corresponds to the JSON property `endOpen`
    +        # @return [Array]
    +        attr_accessor :end_open
    +      
    +        # If the end is closed, then the range includes all rows whose
    +        # first `len(end_closed)` key columns exactly match `end_closed`.
    +        # Corresponds to the JSON property `endClosed`
    +        # @return [Array]
    +        attr_accessor :end_closed
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @start_open = args[:start_open] if args.key?(:start_open)
    +          @start_closed = args[:start_closed] if args.key?(:start_closed)
    +          @end_open = args[:end_open] if args.key?(:end_open)
    +          @end_closed = args[:end_closed] if args.key?(:end_closed)
    +        end
    +      end
    +      
    +      # The response for ListInstances.
    +      class ListInstancesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # `next_page_token` can be sent in a subsequent
    +        # ListInstances call to fetch more
    +        # of the matching instances.
    +        # Corresponds to the JSON property `nextPageToken`
    +        # @return [String]
    +        attr_accessor :next_page_token
    +      
    +        # The list of requested instances.
    +        # Corresponds to the JSON property `instances`
    +        # @return [Array]
    +        attr_accessor :instances
    +      
    +        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)
    +          @instances = args[:instances] if args.key?(:instances)
    +        end
    +      end
    +      
    +      # Condensed representation of a node and its subtree. Only present for
    +      # `SCALAR` PlanNode(s).
    +      class ShortRepresentation
    +        include Google::Apis::Core::Hashable
    +      
    +        # A string representation of the expression subtree rooted at this node.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # A mapping of (subquery variable name) -> (subquery node id) for cases
    +        # where the `description` string of this node references a `SCALAR`
    +        # subquery contained in the expression subtree rooted at this node. The
    +        # referenced `SCALAR` subquery may not necessarily be a direct child of
    +        # this node.
    +        # Corresponds to the JSON property `subqueries`
    +        # @return [Hash]
    +        attr_accessor :subqueries
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @description = args[:description] if args.key?(:description)
    +          @subqueries = args[:subqueries] if args.key?(:subqueries)
    +        end
    +      end
    +      
    +      # A possible configuration for a Cloud Spanner instance. Configurations
    +      # define the geographic placement of nodes and their replication.
    +      class InstanceConfig
    +        include Google::Apis::Core::Hashable
    +      
    +        # A unique identifier for the instance configuration.  Values
    +        # are of the form
    +        # `projects//instanceConfigs/a-z*`
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # The name of this instance configuration as it appears in UIs.
    +        # Corresponds to the JSON property `displayName`
    +        # @return [String]
    +        attr_accessor :display_name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @name = args[:name] if args.key?(:name)
    +          @display_name = args[:display_name] if args.key?(:display_name)
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb
    index 88fa699ec..d993bfefe 100644
    --- a/generated/google/apis/spanner_v1/representations.rb
    +++ b/generated/google/apis/spanner_v1/representations.rb
    @@ -22,228 +22,6 @@ module Google
       module Apis
         module SpannerV1
           
    -      class KeySet
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Mutation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class GetDatabaseDdlResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Database
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListDatabasesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class SetIamPolicyRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Instance
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class RollbackRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Transaction
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class UpdateDatabaseDdlMetadata
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CounterOptions
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class QueryPlan
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class StructType
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Field
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ResultSetStats
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TestIamPermissionsRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CommitResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Type
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class PlanNode
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateInstanceMetadata
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AuditConfig
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ChildLink
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CloudAuditOptions
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Delete
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListInstanceConfigsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class BeginTransactionRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CommitRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class GetIamPolicyRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TestIamPermissionsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Rule
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class CreateDatabaseMetadata
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LogConfig
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Session
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class KeyRange
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListInstancesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ShortRepresentation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class InstanceConfig
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class UpdateInstanceRequest
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -316,13 +94,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class DataAccessOptions
    +      class ReadWrite
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class ReadWrite
    +      class DataAccessOptions
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -334,13 +112,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Status
    +      class ResultSet
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class ResultSet
    +      class Status
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -388,355 +166,240 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class KeySet
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation
    -      
    -          collection :keys, as: 'keys', :class => Array do
    -        include Representable::JSON::Collection
    -        items
    -      end
    -      
    -          property :all, as: 'all'
    -        end
    -      end
    -      
           class Mutation
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :delete, as: 'delete', class: Google::Apis::SpannerV1::Delete, decorator: Google::Apis::SpannerV1::Delete::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :insert, as: 'insert', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
           
    -          property :insert_or_update, as: 'insertOrUpdate', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +      class KeySet
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :update, as: 'update', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    -      
    -          property :replace, as: 'replace', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class GetDatabaseDdlResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :statements, as: 'statements'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Database
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :state, as: 'state'
    -          property :name, as: 'name'
    -        end
    -      end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -      class ListDatabasesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :next_page_token, as: 'nextPageToken'
    -          collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation
    -      
    -        end
    -      end
    -      
    -      class SetIamPolicyRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation
    -      
    -          property :update_mask, as: 'updateMask'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Instance
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :config, as: 'config'
    -          property :state, as: 'state'
    -          property :name, as: 'name'
    -          property :display_name, as: 'displayName'
    -          property :node_count, as: 'nodeCount'
    -          hash :labels, as: 'labels'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SetIamPolicyRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ListDatabasesResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class RollbackRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :transaction_id, :base64 => true, as: 'transactionId'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Transaction
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :read_timestamp, as: 'readTimestamp'
    -          property :id, :base64 => true, as: 'id'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class UpdateDatabaseDdlMetadata
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :statements, as: 'statements'
    -          collection :commit_timestamps, as: 'commitTimestamps'
    -          property :database, as: 'database'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CounterOptions
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :metric, as: 'metric'
    -          property :field, as: 'field'
    -        end
    -      end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -      class QueryPlan
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :plan_nodes, as: 'planNodes', class: Google::Apis::SpannerV1::PlanNode, decorator: Google::Apis::SpannerV1::PlanNode::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class StructType
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :fields, as: 'fields', class: Google::Apis::SpannerV1::Field, decorator: Google::Apis::SpannerV1::Field::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class QueryPlan
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Field
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :name, as: 'name'
    -          property :type, as: 'type', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    -      end
    -      
    -      class ResultSetStats
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          hash :query_stats, as: 'queryStats'
    -          property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TestIamPermissionsRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :permissions, as: 'permissions'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ResultSetStats
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CommitResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :commit_timestamp, as: 'commitTimestamp'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Type
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :array_element_type, as: 'arrayElementType', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
    -      
    -          property :code, as: 'code'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class PlanNode
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :short_representation, as: 'shortRepresentation', class: Google::Apis::SpannerV1::ShortRepresentation, decorator: Google::Apis::SpannerV1::ShortRepresentation::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :index, as: 'index'
    -          property :kind, as: 'kind'
    -          property :display_name, as: 'displayName'
    -          collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation
    -      
    -          hash :metadata, as: 'metadata'
    -          hash :execution_stats, as: 'executionStats'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CreateInstanceMetadata
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cancel_time, as: 'cancelTime'
    -          property :end_time, as: 'endTime'
    -          property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :start_time, as: 'startTime'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class AuditConfig
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :exempted_members, as: 'exemptedMembers'
    -          property :service, as: 'service'
    -          collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SpannerV1::AuditLogConfig, decorator: Google::Apis::SpannerV1::AuditLogConfig::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ChildLink
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :child_index, as: 'childIndex'
    -          property :variable, as: 'variable'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CloudAuditOptions
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Expr
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Delete
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :table, as: 'table'
    -          property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListInstanceConfigsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :next_page_token, as: 'nextPageToken'
    -          collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class BeginTransactionRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CommitRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
    -      
    -          property :transaction_id, :base64 => true, as: 'transactionId'
    -        end
    -      end
    -      
    -      class GetIamPolicyRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TestIamPermissionsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :permissions, as: 'permissions'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class GetIamPolicyRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Rule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :not_in, as: 'notIn'
    -          property :description, as: 'description'
    -          collection :conditions, as: 'conditions', class: Google::Apis::SpannerV1::Condition, decorator: Google::Apis::SpannerV1::Condition::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          collection :log_config, as: 'logConfig', class: Google::Apis::SpannerV1::LogConfig, decorator: Google::Apis::SpannerV1::LogConfig::Representation
    -      
    -          collection :in, as: 'in'
    -          collection :permissions, as: 'permissions'
    -          property :action, as: 'action'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class CreateDatabaseMetadata
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :database, as: 'database'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class LogConfig
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :counter, as: 'counter', class: Google::Apis::SpannerV1::CounterOptions, decorator: Google::Apis::SpannerV1::CounterOptions::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :data_access, as: 'dataAccess', class: Google::Apis::SpannerV1::DataAccessOptions, decorator: Google::Apis::SpannerV1::DataAccessOptions::Representation
    -      
    -          property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Session
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :name, as: 'name'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class KeyRange
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :start_closed, as: 'startClosed'
    -          collection :start_open, as: 'startOpen'
    -          collection :end_open, as: 'endOpen'
    -          collection :end_closed, as: 'endClosed'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListInstancesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ShortRepresentation
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :description, as: 'description'
    -          hash :subqueries, as: 'subqueries'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class InstanceConfig
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :display_name, as: 'displayName'
    -          property :name, as: 'name'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class UpdateInstanceRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :field_mask, as: 'fieldMask'
               property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
           
    -          property :field_mask, as: 'fieldMask'
             end
           end
           
    @@ -749,10 +412,10 @@ module Google
           class TransactionOptions
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :read_write, as: 'readWrite', class: Google::Apis::SpannerV1::ReadWrite, decorator: Google::Apis::SpannerV1::ReadWrite::Representation
    -      
               property :read_only, as: 'readOnly', class: Google::Apis::SpannerV1::ReadOnly, decorator: Google::Apis::SpannerV1::ReadOnly::Representation
           
    +          property :read_write, as: 'readWrite', class: Google::Apis::SpannerV1::ReadWrite, decorator: Google::Apis::SpannerV1::ReadWrite::Representation
    +      
             end
           end
           
    @@ -778,8 +441,8 @@ module Google
             class Representation < Google::Apis::Core::JsonRepresentation
               property :sys, as: 'sys'
               property :value, as: 'value'
    -          property :iam, as: 'iam'
               collection :values, as: 'values'
    +          property :iam, as: 'iam'
               property :op, as: 'op'
               property :svc, as: 'svc'
             end
    @@ -796,34 +459,32 @@ module Google
           class ReadOnly
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :strong, as: 'strong'
               property :min_read_timestamp, as: 'minReadTimestamp'
               property :max_staleness, as: 'maxStaleness'
               property :read_timestamp, as: 'readTimestamp'
               property :return_read_timestamp, as: 'returnReadTimestamp'
               property :exact_staleness, as: 'exactStaleness'
    +          property :strong, as: 'strong'
             end
           end
           
           class ExecuteSqlRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :sql, as: 'sql'
    -          hash :params, as: 'params'
    -          property :query_mode, as: 'queryMode'
               property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
           
               property :resume_token, :base64 => true, as: 'resumeToken'
               hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
           
    +          property :sql, as: 'sql'
    +          hash :params, as: 'params'
    +          property :query_mode, as: 'queryMode'
             end
           end
           
           class Policy
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :etag, :base64 => true, as: 'etag'
    -          property :iam_owned, as: 'iamOwned'
               collection :rules, as: 'rules', class: Google::Apis::SpannerV1::Rule, decorator: Google::Apis::SpannerV1::Rule::Representation
           
               property :version, as: 'version'
    @@ -831,6 +492,8 @@ module Google
           
               collection :bindings, as: 'bindings', class: Google::Apis::SpannerV1::Binding, decorator: Google::Apis::SpannerV1::Binding::Representation
           
    +          property :etag, :base64 => true, as: 'etag'
    +          property :iam_owned, as: 'iamOwned'
             end
           end
           
    @@ -853,22 +516,22 @@ module Google
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               property :table, as: 'table'
    -          collection :columns, as: 'columns'
               collection :values, as: 'values', :class => Array do
             include Representable::JSON::Collection
             items
           end
           
    +          collection :columns, as: 'columns'
             end
           end
           
    -      class DataAccessOptions
    +      class ReadWrite
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
             end
           end
           
    -      class ReadWrite
    +      class DataAccessOptions
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
             end
    @@ -886,20 +549,9 @@ module Google
             end
           end
           
    -      class Status
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :details, as: 'details'
    -          property :code, as: 'code'
    -          property :message, as: 'message'
    -        end
    -      end
    -      
           class ResultSet
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation
    -      
               property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation
           
               collection :rows, as: 'rows', :class => Array do
    @@ -907,6 +559,17 @@ module Google
             items
           end
           
    +          property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation
    +      
    +        end
    +      end
    +      
    +      class Status
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :details, as: 'details'
    +          property :code, as: 'code'
    +          property :message, as: 'message'
             end
           end
           
    @@ -923,30 +586,32 @@ module Google
             class Representation < Google::Apis::Core::JsonRepresentation
               collection :members, as: 'members'
               property :role, as: 'role'
    +          property :condition, as: 'condition', class: Google::Apis::SpannerV1::Expr, decorator: Google::Apis::SpannerV1::Expr::Representation
    +      
             end
           end
           
           class PartialResultSet
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation
    -      
               property :chunked_value, as: 'chunkedValue'
    +          collection :values, as: 'values'
               property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation
           
    -          collection :values, as: 'values'
               property :resume_token, :base64 => true, as: 'resumeToken'
    +          property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation
    +      
             end
           end
           
           class UpdateInstanceMetadata
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :cancel_time, as: 'cancelTime'
    -          property :end_time, as: 'endTime'
    +          property :start_time, as: 'startTime'
               property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
           
    -          property :start_time, as: 'startTime'
    +          property :end_time, as: 'endTime'
    +          property :cancel_time, as: 'cancelTime'
             end
           end
           
    @@ -979,6 +644,360 @@ module Google
               property :id, :base64 => true, as: 'id'
             end
           end
    +      
    +      class Mutation
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :delete, as: 'delete', class: Google::Apis::SpannerV1::Delete, decorator: Google::Apis::SpannerV1::Delete::Representation
    +      
    +          property :insert_or_update, as: 'insertOrUpdate', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +      
    +          property :insert, as: 'insert', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +      
    +          property :update, as: 'update', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +      
    +          property :replace, as: 'replace', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
    +      
    +        end
    +      end
    +      
    +      class KeySet
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation
    +      
    +          property :all, as: 'all'
    +          collection :keys, as: 'keys', :class => Array do
    +        include Representable::JSON::Collection
    +        items
    +      end
    +      
    +        end
    +      end
    +      
    +      class GetDatabaseDdlResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :statements, as: 'statements'
    +        end
    +      end
    +      
    +      class Database
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :state, as: 'state'
    +          property :name, as: 'name'
    +        end
    +      end
    +      
    +      class Instance
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +          property :display_name, as: 'displayName'
    +          property :node_count, as: 'nodeCount'
    +          hash :labels, as: 'labels'
    +          property :config, as: 'config'
    +          property :state, as: 'state'
    +        end
    +      end
    +      
    +      class SetIamPolicyRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation
    +      
    +          property :update_mask, as: 'updateMask'
    +        end
    +      end
    +      
    +      class ListDatabasesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation
    +      
    +        end
    +      end
    +      
    +      class RollbackRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :transaction_id, :base64 => true, as: 'transactionId'
    +        end
    +      end
    +      
    +      class Transaction
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :read_timestamp, as: 'readTimestamp'
    +          property :id, :base64 => true, as: 'id'
    +        end
    +      end
    +      
    +      class UpdateDatabaseDdlMetadata
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :database, as: 'database'
    +          collection :statements, as: 'statements'
    +          collection :commit_timestamps, as: 'commitTimestamps'
    +        end
    +      end
    +      
    +      class CounterOptions
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :field, as: 'field'
    +          property :metric, as: 'metric'
    +        end
    +      end
    +      
    +      class StructType
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :fields, as: 'fields', class: Google::Apis::SpannerV1::Field, decorator: Google::Apis::SpannerV1::Field::Representation
    +      
    +        end
    +      end
    +      
    +      class QueryPlan
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :plan_nodes, as: 'planNodes', class: Google::Apis::SpannerV1::PlanNode, decorator: Google::Apis::SpannerV1::PlanNode::Representation
    +      
    +        end
    +      end
    +      
    +      class Field
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +          property :type, as: 'type', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
    +      
    +        end
    +      end
    +      
    +      class TestIamPermissionsRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :permissions, as: 'permissions'
    +        end
    +      end
    +      
    +      class ResultSetStats
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          hash :query_stats, as: 'queryStats'
    +          property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation
    +      
    +        end
    +      end
    +      
    +      class CommitResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :commit_timestamp, as: 'commitTimestamp'
    +        end
    +      end
    +      
    +      class Type
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation
    +      
    +          property :array_element_type, as: 'arrayElementType', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
    +      
    +          property :code, as: 'code'
    +        end
    +      end
    +      
    +      class PlanNode
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation
    +      
    +          hash :metadata, as: 'metadata'
    +          hash :execution_stats, as: 'executionStats'
    +          property :short_representation, as: 'shortRepresentation', class: Google::Apis::SpannerV1::ShortRepresentation, decorator: Google::Apis::SpannerV1::ShortRepresentation::Representation
    +      
    +          property :index, as: 'index'
    +          property :kind, as: 'kind'
    +          property :display_name, as: 'displayName'
    +        end
    +      end
    +      
    +      class CreateInstanceMetadata
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :end_time, as: 'endTime'
    +          property :cancel_time, as: 'cancelTime'
    +          property :start_time, as: 'startTime'
    +          property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
    +      
    +        end
    +      end
    +      
    +      class AuditConfig
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SpannerV1::AuditLogConfig, decorator: Google::Apis::SpannerV1::AuditLogConfig::Representation
    +      
    +          collection :exempted_members, as: 'exemptedMembers'
    +          property :service, as: 'service'
    +        end
    +      end
    +      
    +      class ChildLink
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :variable, as: 'variable'
    +          property :child_index, as: 'childIndex'
    +          property :type, as: 'type'
    +        end
    +      end
    +      
    +      class CloudAuditOptions
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :log_name, as: 'logName'
    +        end
    +      end
    +      
    +      class Expr
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :description, as: 'description'
    +          property :expression, as: 'expression'
    +          property :location, as: 'location'
    +          property :title, as: 'title'
    +        end
    +      end
    +      
    +      class Delete
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation
    +      
    +          property :table, as: 'table'
    +        end
    +      end
    +      
    +      class ListInstanceConfigsResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation
    +      
    +        end
    +      end
    +      
    +      class BeginTransactionRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
    +      
    +        end
    +      end
    +      
    +      class CommitRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
    +      
    +          property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
    +      
    +          property :transaction_id, :base64 => true, as: 'transactionId'
    +        end
    +      end
    +      
    +      class TestIamPermissionsResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :permissions, as: 'permissions'
    +        end
    +      end
    +      
    +      class GetIamPolicyRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
    +      
    +      class Rule
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :conditions, as: 'conditions', class: Google::Apis::SpannerV1::Condition, decorator: Google::Apis::SpannerV1::Condition::Representation
    +      
    +          collection :log_config, as: 'logConfig', class: Google::Apis::SpannerV1::LogConfig, decorator: Google::Apis::SpannerV1::LogConfig::Representation
    +      
    +          collection :in, as: 'in'
    +          collection :permissions, as: 'permissions'
    +          property :action, as: 'action'
    +          collection :not_in, as: 'notIn'
    +          property :description, as: 'description'
    +        end
    +      end
    +      
    +      class CreateDatabaseMetadata
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :database, as: 'database'
    +        end
    +      end
    +      
    +      class LogConfig
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :counter, as: 'counter', class: Google::Apis::SpannerV1::CounterOptions, decorator: Google::Apis::SpannerV1::CounterOptions::Representation
    +      
    +          property :data_access, as: 'dataAccess', class: Google::Apis::SpannerV1::DataAccessOptions, decorator: Google::Apis::SpannerV1::DataAccessOptions::Representation
    +      
    +          property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation
    +      
    +        end
    +      end
    +      
    +      class Session
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +        end
    +      end
    +      
    +      class KeyRange
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :start_open, as: 'startOpen'
    +          collection :start_closed, as: 'startClosed'
    +          collection :end_open, as: 'endOpen'
    +          collection :end_closed, as: 'endClosed'
    +        end
    +      end
    +      
    +      class ListInstancesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
    +      
    +        end
    +      end
    +      
    +      class ShortRepresentation
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :description, as: 'description'
    +          hash :subqueries, as: 'subqueries'
    +        end
    +      end
    +      
    +      class InstanceConfig
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :name, as: 'name'
    +          property :display_name, as: 'displayName'
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb
    index 448470bcb..2e735979a 100644
    --- a/generated/google/apis/spanner_v1/service.rb
    +++ b/generated/google/apis/spanner_v1/service.rb
    @@ -48,18 +48,16 @@ module Google
               @batch_path = 'batch'
             end
             
    -        # Lists the supported instance configurations for a given project.
    -        # @param [String] parent
    -        #   Required. The name of the project for which a list of supported instance
    -        #   configurations is requested. Values are of the form
    -        #   `projects/`.
    -        # @param [String] page_token
    -        #   If non-empty, `page_token` should contain a
    -        #   next_page_token
    -        #   from a previous ListInstanceConfigsResponse.
    -        # @param [Fixnum] page_size
    -        #   Number of instance configurations to be returned in the response. If 0 or
    -        #   less, defaults to the server's maximum allowed page size.
    +        # Gets the access control policy for an instance resource. Returns an empty
    +        # policy if an instance exists but does not have a policy set.
    +        # Authorization requires `spanner.instances.getIamPolicy` on
    +        # resource.
    +        # @param [String] resource
    +        #   REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
    +        #   The format is `projects//instances/` for instance
    +        #   resources and `projects//instances//databases/<
    +        #   database ID>` for database resources.
    +        # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_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.
    @@ -69,52 +67,21 @@ module Google
             #   Request-specific options
             #
             # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::SpannerV1::ListInstanceConfigsResponse] parsed result object
    +        # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::SpannerV1::ListInstanceConfigsResponse]
    +        # @return [Google::Apis::SpannerV1::Policy]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_project_instance_configs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+parent}/instanceConfigs', options)
    -          command.response_representation = Google::Apis::SpannerV1::ListInstanceConfigsResponse::Representation
    -          command.response_class = Google::Apis::SpannerV1::ListInstanceConfigsResponse
    -          command.params['parent'] = parent unless parent.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['pageSize'] = page_size unless page_size.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 information about a particular instance configuration.
    -        # @param [String] name
    -        #   Required. The name of the requested instance configuration. Values are of
    -        #   the form `projects//instanceConfigs/`.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::InstanceConfig] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::InstanceConfig]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_config(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::SpannerV1::InstanceConfig::Representation
    -          command.response_class = Google::Apis::SpannerV1::InstanceConfig
    -          command.params['name'] = name unless name.nil?
    +        def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
    +          command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
    +          command.request_object = get_iam_policy_request_object
    +          command.response_representation = Google::Apis::SpannerV1::Policy::Representation
    +          command.response_class = Google::Apis::SpannerV1::Policy
    +          command.params['resource'] = resource unless resource.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
    @@ -299,13 +266,6 @@ module Google
             # @param [String] parent
             #   Required. The name of the project for which a list of instances is
             #   requested. Values are of the form `projects/`.
    -        # @param [String] page_token
    -        #   If non-empty, `page_token` should contain a
    -        #   next_page_token from a
    -        #   previous ListInstancesResponse.
    -        # @param [Fixnum] page_size
    -        #   Number of instances to be returned in the response. If 0 or less, defaults
    -        #   to the server's maximum allowed page size.
             # @param [String] filter
             #   An expression for filtering the results of the request. Filter rules are
             #   case insensitive. The fields eligible for filtering are:
    @@ -323,6 +283,13 @@ module Google
             #   * name:howl labels.env:dev --> The instance's name contains "howl" and
             #   it has the label "env" with its value
             #   containing "dev".
    +        # @param [String] page_token
    +        #   If non-empty, `page_token` should contain a
    +        #   next_page_token from a
    +        #   previous ListInstancesResponse.
    +        # @param [Fixnum] page_size
    +        #   Number of instances to be returned in the response. If 0 or less, defaults
    +        #   to the server's maximum allowed page size.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    @@ -340,14 +307,53 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_project_instances(parent, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def list_project_instances(parent, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+parent}/instances', options)
               command.response_representation = Google::Apis::SpannerV1::ListInstancesResponse::Representation
               command.response_class = Google::Apis::SpannerV1::ListInstancesResponse
               command.params['parent'] = parent unless parent.nil?
    +          command.query['filter'] = filter unless filter.nil?
               command.query['pageToken'] = page_token unless page_token.nil?
               command.query['pageSize'] = page_size unless page_size.nil?
    -          command.query['filter'] = filter unless filter.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Sets the access control policy on an instance resource. Replaces any
    +        # existing policy.
    +        # Authorization requires `spanner.instances.setIamPolicy` on
    +        # resource.
    +        # @param [String] resource
    +        #   REQUIRED: The Cloud Spanner resource for which the policy is being set. The
    +        #   format is `projects//instances/` for instance
    +        #   resources and `projects//instances//databases/<
    +        #   database ID>` for databases resources.
    +        # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_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::SpannerV1::Policy] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::Policy]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
    +          command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
    +          command.request_object = set_iam_policy_request_object
    +          command.response_representation = Google::Apis::SpannerV1::Policy::Representation
    +          command.response_class = Google::Apis::SpannerV1::Policy
    +          command.params['resource'] = resource unless resource.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
    @@ -413,9 +419,122 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Sets the access control policy on an instance resource. Replaces any
    +        # Returns the schema of a Cloud Spanner database as a list of formatted
    +        # DDL statements. This method does not show pending schema updates, those may
    +        # be queried using the Operations API.
    +        # @param [String] database
    +        #   Required. The database whose schema we wish to get.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::GetDatabaseDdlResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::GetDatabaseDdlResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_database_ddl(database, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+database}/ddl', options)
    +          command.response_representation = Google::Apis::SpannerV1::GetDatabaseDdlResponse::Representation
    +          command.response_class = Google::Apis::SpannerV1::GetDatabaseDdlResponse
    +          command.params['database'] = database unless database.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 Cloud Spanner databases.
    +        # @param [String] parent
    +        #   Required. The instance whose databases should be listed.
    +        #   Values are of the form `projects//instances/`.
    +        # @param [String] page_token
    +        #   If non-empty, `page_token` should contain a
    +        #   next_page_token from a
    +        #   previous ListDatabasesResponse.
    +        # @param [Fixnum] page_size
    +        #   Number of databases to be returned in the response. If 0 or less,
    +        #   defaults to the server's maximum allowed page size.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::ListDatabasesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::ListDatabasesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_databases(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+parent}/databases', options)
    +          command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
    +          command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
    +          command.params['parent'] = parent unless parent.nil?
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Creates a new Cloud Spanner database and starts to prepare it for serving.
    +        # The returned long-running operation will
    +        # have a name of the format `/operations/` and
    +        # can be used to track preparation of the database. The
    +        # metadata field type is
    +        # CreateDatabaseMetadata. The
    +        # response field type is
    +        # Database, if successful.
    +        # @param [String] parent
    +        #   Required. The name of the instance that will serve the new database.
    +        #   Values are of the form `projects//instances/`.
    +        # @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_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::SpannerV1::Operation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::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_database(parent, create_database_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+parent}/databases', options)
    +          command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
    +          command.request_object = create_database_request_object
    +          command.response_representation = Google::Apis::SpannerV1::Operation::Representation
    +          command.response_class = Google::Apis::SpannerV1::Operation
    +          command.params['parent'] = parent unless parent.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Sets the access control policy on a database resource. Replaces any
             # existing policy.
    -        # Authorization requires `spanner.instances.setIamPolicy` on
    +        # Authorization requires `spanner.databases.setIamPolicy` permission on
             # resource.
             # @param [String] resource
             #   REQUIRED: The Cloud Spanner resource for which the policy is being set. The
    @@ -440,7 +559,7 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def set_database_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
               command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
               command.request_object = set_iam_policy_request_object
    @@ -452,45 +571,6 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Gets the access control policy for an instance resource. Returns an empty
    -        # policy if an instance exists but does not have a policy set.
    -        # Authorization requires `spanner.instances.getIamPolicy` on
    -        # resource.
    -        # @param [String] resource
    -        #   REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
    -        #   The format is `projects//instances/` for instance
    -        #   resources and `projects//instances//databases/<
    -        #   database ID>` for database resources.
    -        # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_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::SpannerV1::Policy] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::Policy]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
    -          command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
    -          command.request_object = get_iam_policy_request_object
    -          command.response_representation = Google::Apis::SpannerV1::Policy::Representation
    -          command.response_class = Google::Apis::SpannerV1::Policy
    -          command.params['resource'] = resource unless resource.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 access control policy for a database resource. Returns an empty
             # policy if a database exists but does not have a policy set.
             # Authorization requires `spanner.databases.getIamPolicy` permission on
    @@ -670,11 +750,20 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Returns the schema of a Cloud Spanner database as a list of formatted
    -        # DDL statements. This method does not show pending schema updates, those may
    -        # be queried using the Operations API.
    -        # @param [String] database
    -        #   Required. The database whose schema we wish to get.
    +        # Reads rows from the database using key lookups and scans, as a
    +        # simple key/value style alternative to
    +        # ExecuteSql.  This method cannot be used to
    +        # return a result set larger than 10 MiB; if the read matches more
    +        # data than that, the read fails with a `FAILED_PRECONDITION`
    +        # error.
    +        # Reads inside read-write transactions might return `ABORTED`. If
    +        # this occurs, the application should restart the transaction from
    +        # the beginning. See Transaction for more details.
    +        # Larger result sets can be yielded in streaming fashion by calling
    +        # StreamingRead instead.
    +        # @param [String] session
    +        #   Required. The session in which the read should be performed.
    +        # @param [Google::Apis::SpannerV1::ReadRequest] read_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.
    @@ -684,285 +773,21 @@ module Google
             #   Request-specific options
             #
             # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::SpannerV1::GetDatabaseDdlResponse] parsed result object
    +        # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::SpannerV1::GetDatabaseDdlResponse]
    +        # @return [Google::Apis::SpannerV1::ResultSet]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_database_ddl(database, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+database}/ddl', options)
    -          command.response_representation = Google::Apis::SpannerV1::GetDatabaseDdlResponse::Representation
    -          command.response_class = Google::Apis::SpannerV1::GetDatabaseDdlResponse
    -          command.params['database'] = database unless database.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 Cloud Spanner databases.
    -        # @param [String] parent
    -        #   Required. The instance whose databases should be listed.
    -        #   Values are of the form `projects//instances/`.
    -        # @param [String] page_token
    -        #   If non-empty, `page_token` should contain a
    -        #   next_page_token from a
    -        #   previous ListDatabasesResponse.
    -        # @param [Fixnum] page_size
    -        #   Number of databases to be returned in the response. If 0 or less,
    -        #   defaults to the server's maximum allowed page size.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::ListDatabasesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::ListDatabasesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_databases(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+parent}/databases', options)
    -          command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
    -          command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
    -          command.params['parent'] = parent unless parent.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['pageSize'] = page_size unless page_size.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Creates a new Cloud Spanner database and starts to prepare it for serving.
    -        # The returned long-running operation will
    -        # have a name of the format `/operations/` and
    -        # can be used to track preparation of the database. The
    -        # metadata field type is
    -        # CreateDatabaseMetadata. The
    -        # response field type is
    -        # Database, if successful.
    -        # @param [String] parent
    -        #   Required. The name of the instance that will serve the new database.
    -        #   Values are of the form `projects//instances/`.
    -        # @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_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::SpannerV1::Operation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::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_database(parent, create_database_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+parent}/databases', options)
    -          command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
    -          command.request_object = create_database_request_object
    -          command.response_representation = Google::Apis::SpannerV1::Operation::Representation
    -          command.response_class = Google::Apis::SpannerV1::Operation
    -          command.params['parent'] = parent unless parent.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Sets the access control policy on a database resource. Replaces any
    -        # existing policy.
    -        # Authorization requires `spanner.databases.setIamPolicy` permission on
    -        # resource.
    -        # @param [String] resource
    -        #   REQUIRED: The Cloud Spanner resource for which the policy is being set. The
    -        #   format is `projects//instances/` for instance
    -        #   resources and `projects//instances//databases/<
    -        #   database ID>` for databases resources.
    -        # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_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::SpannerV1::Policy] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::Policy]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def set_database_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
    -          command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
    -          command.request_object = set_iam_policy_request_object
    -          command.response_representation = Google::Apis::SpannerV1::Policy::Representation
    -          command.response_class = Google::Apis::SpannerV1::Policy
    -          command.params['resource'] = resource unless resource.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 asynchronous cancellation on a long-running operation.  The server
    -        # makes a best effort to cancel the operation, but success is not
    -        # guaranteed.  If the server doesn't support this method, it returns
    -        # `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
    -        # Operations.GetOperation or
    -        # other methods to check whether the cancellation succeeded or whether the
    -        # operation completed despite cancellation. On successful cancellation,
    -        # the operation is not deleted; instead, it becomes an operation with
    -        # an Operation.error value with a google.rpc.Status.code of 1,
    -        # corresponding to `Code.CANCELLED`.
    -        # @param [String] name
    -        #   The name of the operation resource to be cancelled.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::Empty] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::Empty]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def cancel_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+name}:cancel', options)
    -          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    -          command.response_class = Google::Apis::SpannerV1::Empty
    -          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
    -        
    -        # Deletes a long-running operation. This method indicates that the client is
    -        # no longer interested in the operation result. It does not cancel the
    -        # operation. If the server doesn't support this method, it returns
    -        # `google.rpc.Code.UNIMPLEMENTED`.
    -        # @param [String] name
    -        #   The name of the operation resource to be deleted.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::Empty] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::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_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:delete, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    -          command.response_class = Google::Apis::SpannerV1::Empty
    -          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 [String] filter
    -        #   The standard list filter.
    -        # @param [String] page_token
    -        #   The standard list page token.
    -        # @param [Fixnum] page_size
    -        #   The standard list page size.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::ListOperationsResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::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_project_instance_database_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
    -          command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
    -          command.params['name'] = name unless name.nil?
    -          command.query['filter'] = filter unless filter.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['pageSize'] = page_size unless page_size.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::SpannerV1::Operation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::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_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::SpannerV1::Operation::Representation
    -          command.response_class = Google::Apis::SpannerV1::Operation
    -          command.params['name'] = name unless name.nil?
    +        def read_session(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+session}:read', options)
    +          command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
    +          command.request_object = read_request_object
    +          command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
    +          command.response_class = Google::Apis::SpannerV1::ResultSet
    +          command.params['session'] = session unless session.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
    @@ -1000,36 +825,6 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Ends a session, releasing server resources associated with it.
    -        # @param [String] name
    -        #   Required. The name of the session to delete.
    -        # @param [String] quota_user
    -        #   Available 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::SpannerV1::Empty] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::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_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:delete, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    -          command.response_class = Google::Apis::SpannerV1::Empty
    -          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
    -        
             # Like ExecuteSql, except returns the result
             # set as a stream. Unlike ExecuteSql, there
             # is no limit on the size of the returned result set. However, no
    @@ -1142,6 +937,36 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    +        # Ends a session, releasing server resources associated with it.
    +        # @param [String] name
    +        #   Required. The name of the session to delete.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::Empty] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::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_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:delete, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    +          command.response_class = Google::Apis::SpannerV1::Empty
    +          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
    +        
             # Executes an SQL query, returning all rows in a single reply. This
             # method cannot be used to return a result set larger than 10 MiB;
             # if the query yields more data than that, the query fails with
    @@ -1183,43 +1008,6 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Like Read, except returns the result set as a
    -        # stream. Unlike Read, there is no limit on the
    -        # size of the returned result set. However, no individual row in
    -        # the result set can exceed 100 MiB, and no column value can exceed
    -        # 10 MiB.
    -        # @param [String] session
    -        #   Required. The session in which the read should be performed.
    -        # @param [Google::Apis::SpannerV1::ReadRequest] read_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::SpannerV1::PartialResultSet] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpannerV1::PartialResultSet]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def streaming_project_instance_database_session_read(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+session}:streamingRead', options)
    -          command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
    -          command.request_object = read_request_object
    -          command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
    -          command.response_class = Google::Apis::SpannerV1::PartialResultSet
    -          command.params['session'] = session unless session.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
             # Rolls back a transaction, releasing any locks it holds. It is a good
             # idea to call this for any transaction that includes one or more
             # Read or ExecuteSql requests and
    @@ -1259,6 +1047,43 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    +        # Like Read, except returns the result set as a
    +        # stream. Unlike Read, there is no limit on the
    +        # size of the returned result set. However, no individual row in
    +        # the result set can exceed 100 MiB, and no column value can exceed
    +        # 10 MiB.
    +        # @param [String] session
    +        #   Required. The session in which the read should be performed.
    +        # @param [Google::Apis::SpannerV1::ReadRequest] read_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::SpannerV1::PartialResultSet] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::PartialResultSet]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def streaming_project_instance_database_session_read(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+session}:streamingRead', options)
    +          command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
    +          command.request_object = read_request_object
    +          command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
    +          command.response_class = Google::Apis::SpannerV1::PartialResultSet
    +          command.params['session'] = session unless session.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
             # Creates a new session. A session can be used to perform
             # transactions that read and/or modify data in a Cloud Spanner database.
             # Sessions are meant to be reused for many consecutive
    @@ -1304,20 +1129,18 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Reads rows from the database using key lookups and scans, as a
    -        # simple key/value style alternative to
    -        # ExecuteSql.  This method cannot be used to
    -        # return a result set larger than 10 MiB; if the read matches more
    -        # data than that, the read fails with a `FAILED_PRECONDITION`
    -        # error.
    -        # Reads inside read-write transactions might return `ABORTED`. If
    -        # this occurs, the application should restart the transaction from
    -        # the beginning. See Transaction for more details.
    -        # Larger result sets can be yielded in streaming fashion by calling
    -        # StreamingRead instead.
    -        # @param [String] session
    -        #   Required. The session in which the read should be performed.
    -        # @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
    +        # Starts asynchronous cancellation on a long-running operation.  The server
    +        # makes a best effort to cancel the operation, but success is not
    +        # guaranteed.  If the server doesn't support this method, it returns
    +        # `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
    +        # Operations.GetOperation or
    +        # other methods to check whether the cancellation succeeded or whether the
    +        # operation completed despite cancellation. On successful cancellation,
    +        # the operation is not deleted; instead, it becomes an operation with
    +        # an Operation.error value with a google.rpc.Status.code of 1,
    +        # corresponding to `Code.CANCELLED`.
    +        # @param [String] name
    +        #   The name of the operation resource to be cancelled.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    @@ -1327,21 +1150,84 @@ module Google
             #   Request-specific options
             #
             # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
    +        # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::SpannerV1::ResultSet]
    +        # @return [Google::Apis::SpannerV1::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 read_session(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+session}:read', options)
    -          command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
    -          command.request_object = read_request_object
    -          command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
    -          command.response_class = Google::Apis::SpannerV1::ResultSet
    -          command.params['session'] = session unless session.nil?
    +        def cancel_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+name}:cancel', options)
    +          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    +          command.response_class = Google::Apis::SpannerV1::Empty
    +          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
    +        
    +        # Deletes a long-running operation. This method indicates that the client is
    +        # no longer interested in the operation result. It does not cancel the
    +        # operation. If the server doesn't support this method, it returns
    +        # `google.rpc.Code.UNIMPLEMENTED`.
    +        # @param [String] name
    +        #   The name of the operation resource to be deleted.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::Empty] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::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_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:delete, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::SpannerV1::Empty::Representation
    +          command.response_class = Google::Apis::SpannerV1::Empty
    +          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
    +        
    +        # 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::SpannerV1::Operation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::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_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::SpannerV1::Operation::Representation
    +          command.response_class = Google::Apis::SpannerV1::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)
    @@ -1349,10 +1235,15 @@ module Google
             
             # 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`.
    +        # NOTE: the `name` binding allows API services to override the binding
    +        # to use different resource name schemes, such as `users/*/operations`. To
    +        # override the binding, API services can add a binding such as
    +        # `"/v1/`name=users/*`/operations"` to their service configuration.
    +        # For backwards compatibility, the default name includes the operations
    +        # collection id, however overriding users must ensure the name binding
    +        # is the parent resource, without the operations collection id.
             # @param [String] name
    -        #   The name of the operation collection.
    +        #   The name of the operation's parent resource.
             # @param [String] filter
             #   The standard list filter.
             # @param [String] page_token
    @@ -1376,7 +1267,7 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def list_project_instance_database_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+name}', options)
               command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
               command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
    @@ -1421,6 +1312,53 @@ module Google
               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 allows API services to override the binding
    +        # to use different resource name schemes, such as `users/*/operations`. To
    +        # override the binding, API services can add a binding such as
    +        # `"/v1/`name=users/*`/operations"` to their service configuration.
    +        # For backwards compatibility, the default name includes the operations
    +        # collection id, however overriding users must ensure the name binding
    +        # is the parent resource, without the operations collection id.
    +        # @param [String] name
    +        #   The name of the operation's parent resource.
    +        # @param [String] filter
    +        #   The standard list filter.
    +        # @param [String] page_token
    +        #   The standard list page token.
    +        # @param [Fixnum] page_size
    +        #   The standard list page size.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::ListOperationsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::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_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
    +          command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
    +          command.params['name'] = name unless name.nil?
    +          command.query['filter'] = filter unless filter.nil?
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.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 asynchronous cancellation on a long-running operation.  The server
             # makes a best effort to cancel the operation, but success is not
             # guaranteed.  If the server doesn't support this method, it returns
    @@ -1492,6 +1430,78 @@ module Google
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
    +        
    +        # Gets information about a particular instance configuration.
    +        # @param [String] name
    +        #   Required. The name of the requested instance configuration. Values are of
    +        #   the form `projects//instanceConfigs/`.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::InstanceConfig] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::InstanceConfig]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_config(name, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::SpannerV1::InstanceConfig::Representation
    +          command.response_class = Google::Apis::SpannerV1::InstanceConfig
    +          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 the supported instance configurations for a given project.
    +        # @param [String] parent
    +        #   Required. The name of the project for which a list of supported instance
    +        #   configurations is requested. Values are of the form
    +        #   `projects/`.
    +        # @param [String] page_token
    +        #   If non-empty, `page_token` should contain a
    +        #   next_page_token
    +        #   from a previous ListInstanceConfigsResponse.
    +        # @param [Fixnum] page_size
    +        #   Number of instance configurations to be returned in the response. If 0 or
    +        #   less, defaults to the server's maximum allowed page size.
    +        # @param [String] quota_user
    +        #   Available 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::SpannerV1::ListInstanceConfigsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpannerV1::ListInstanceConfigsResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_instance_configs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+parent}/instanceConfigs', options)
    +          command.response_representation = Google::Apis::SpannerV1::ListInstanceConfigsResponse::Representation
    +          command.response_class = Google::Apis::SpannerV1::ListInstanceConfigsResponse
    +          command.params['parent'] = parent unless parent.nil?
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.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
     
    diff --git a/generated/google/apis/speech_v1beta1.rb b/generated/google/apis/speech_v1beta1.rb
    index deb2fa87c..4b6d9a41d 100644
    --- a/generated/google/apis/speech_v1beta1.rb
    +++ b/generated/google/apis/speech_v1beta1.rb
    @@ -25,7 +25,7 @@ module Google
         # @see https://cloud.google.com/speech/
         module SpeechV1beta1
           VERSION = 'V1beta1'
    -      REVISION = '20170609'
    +      REVISION = '20170705'
     
           # 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/speech_v1beta1/classes.rb b/generated/google/apis/speech_v1beta1/classes.rb
    index 64ad0383d..6c8440d02 100644
    --- a/generated/google/apis/speech_v1beta1/classes.rb
    +++ b/generated/google/apis/speech_v1beta1/classes.rb
    @@ -22,6 +22,314 @@ module Google
       module Apis
         module SpeechV1beta1
           
    +      # The top-level message sent by the client for the `SyncRecognize` method.
    +      class SyncRecognizeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Contains audio data in the encoding specified in the `RecognitionConfig`.
    +        # Either `content` or `uri` must be supplied. Supplying both or neither
    +        # returns google.rpc.Code.INVALID_ARGUMENT. See
    +        # [audio limits](https://cloud.google.com/speech/limits#content).
    +        # Corresponds to the JSON property `audio`
    +        # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
    +        attr_accessor :audio
    +      
    +        # Provides information to the recognizer that specifies how to process the
    +        # request.
    +        # Corresponds to the JSON property `config`
    +        # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
    +        attr_accessor :config
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @audio = args[:audio] if args.key?(:audio)
    +          @config = args[:config] if args.key?(:config)
    +        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` that 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.
    +      # - 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 only message returned to the client by `SyncRecognize`. method. It
    +      # contains the result as zero or more sequential `SpeechRecognitionResult`
    +      # messages.
    +      class SyncRecognizeResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # *Output-only* Sequential list of transcription results corresponding to
    +        # sequential portions of audio.
    +        # Corresponds to the JSON property `results`
    +        # @return [Array]
    +        attr_accessor :results
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @results = args[:results] if args.key?(:results)
    +        end
    +      end
    +      
    +      # A generic empty message that you can re-use to avoid defining duplicated
    +      # empty messages in your APIs. A typical example is to use it as the request
    +      # or the response type of an API method. For instance:
    +      # service Foo `
    +      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    +      # `
    +      # The JSON representation for `Empty` is empty JSON object ````.
    +      class Empty
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
    +      # 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
    +      
    +      # Provides "hints" to the speech recognizer to favor specific words and phrases
    +      # in the results.
    +      class SpeechContext
    +        include Google::Apis::Core::Hashable
    +      
    +        # *Optional* A list of strings containing words and phrases "hints" so that
    +        # the speech recognition is more likely to recognize them. This can be used
    +        # to improve the accuracy for specific words and phrases, for example, if
    +        # specific commands are typically spoken by the user. This can also be used
    +        # to add additional words to the vocabulary of the recognizer. See
    +        # [usage limits](https://cloud.google.com/speech/limits#content).
    +        # Corresponds to the JSON property `phrases`
    +        # @return [Array]
    +        attr_accessor :phrases
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @phrases = args[:phrases] if args.key?(:phrases)
    +        end
    +      end
    +      
    +      # Alternative hypotheses (a.k.a. n-best list).
    +      class SpeechRecognitionAlternative
    +        include Google::Apis::Core::Hashable
    +      
    +        # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
    +        # indicates an estimated greater likelihood that the recognized words are
    +        # correct. This field is typically provided only for the top hypothesis, and
    +        # only for `is_final=true` results. Clients should not rely on the
    +        # `confidence` field as it is not guaranteed to be accurate, or even set, in
    +        # any of the results.
    +        # The default of 0.0 is a sentinel value indicating `confidence` was not set.
    +        # Corresponds to the JSON property `confidence`
    +        # @return [Float]
    +        attr_accessor :confidence
    +      
    +        # *Output-only* Transcript text representing the words that the user spoke.
    +        # Corresponds to the JSON property `transcript`
    +        # @return [String]
    +        attr_accessor :transcript
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @confidence = args[:confidence] if args.key?(:confidence)
    +          @transcript = args[:transcript] if args.key?(:transcript)
    +        end
    +      end
    +      
    +      # A speech recognition result corresponding to a portion of the audio.
    +      class SpeechRecognitionResult
    +        include Google::Apis::Core::Hashable
    +      
    +        # *Output-only* May contain one or more recognition hypotheses (up to the
    +        # maximum specified in `max_alternatives`).
    +        # Corresponds to the JSON property `alternatives`
    +        # @return [Array]
    +        attr_accessor :alternatives
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @alternatives = args[:alternatives] if args.key?(:alternatives)
    +        end
    +      end
    +      
    +      # The top-level message sent by the client for the `AsyncRecognize` method.
    +      class AsyncRecognizeRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # Contains audio data in the encoding specified in the `RecognitionConfig`.
    +        # Either `content` or `uri` must be supplied. Supplying both or neither
    +        # returns google.rpc.Code.INVALID_ARGUMENT. See
    +        # [audio limits](https://cloud.google.com/speech/limits#content).
    +        # Corresponds to the JSON property `audio`
    +        # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
    +        attr_accessor :audio
    +      
    +        # Provides information to the recognizer that specifies how to process the
    +        # request.
    +        # Corresponds to the JSON property `config`
    +        # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
    +        attr_accessor :config
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @audio = args[:audio] if args.key?(:audio)
    +          @config = args[:config] if args.key?(:config)
    +        end
    +      end
    +      
    +      # Contains audio data in the encoding specified in the `RecognitionConfig`.
    +      # Either `content` or `uri` must be supplied. Supplying both or neither
    +      # returns google.rpc.Code.INVALID_ARGUMENT. See
    +      # [audio limits](https://cloud.google.com/speech/limits#content).
    +      class RecognitionAudio
    +        include Google::Apis::Core::Hashable
    +      
    +        # The audio data bytes encoded as specified in
    +        # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
    +        # pure binary representation, whereas JSON representations use base64.
    +        # Corresponds to the JSON property `content`
    +        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    +        # @return [String]
    +        attr_accessor :content
    +      
    +        # URI that points to a file that contains audio data bytes as specified in
    +        # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
    +        # supported, which must be specified in the following format:
    +        # `gs://bucket_name/object_name` (other URI formats return
    +        # google.rpc.Code.INVALID_ARGUMENT). For more information, see
    +        # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
    +        # Corresponds to the JSON property `uri`
    +        # @return [String]
    +        attr_accessor :uri
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @content = args[:content] if args.key?(:content)
    +          @uri = args[:uri] if args.key?(:uri)
    +        end
    +      end
    +      
           # This resource represents a long-running operation that is the result of a
           # network API call.
           class Operation
    @@ -124,15 +432,14 @@ module Google
           class RecognitionConfig
             include Google::Apis::Core::Hashable
           
    -        # *Optional* Maximum number of recognition hypotheses to be returned.
    -        # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
    -        # within each `SpeechRecognitionResult`.
    -        # The server may return fewer than `max_alternatives`.
    -        # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
    -        # one. If omitted, will return a maximum of one.
    -        # Corresponds to the JSON property `maxAlternatives`
    -        # @return [Fixnum]
    -        attr_accessor :max_alternatives
    +        # *Optional* The language of the supplied audio as a BCP-47 language tag.
    +        # Example: "en-GB"  https://www.rfc-editor.org/rfc/bcp/bcp47.txt
    +        # If omitted, defaults to "en-US". See
    +        # [Language Support](https://cloud.google.com/speech/docs/languages)
    +        # for a list of the currently supported language codes.
    +        # Corresponds to the JSON property `languageCode`
    +        # @return [String]
    +        attr_accessor :language_code
           
             # *Required* Sample rate in Hertz of the audio data sent in all
             # `RecognitionAudio` messages. Valid values are: 8000-48000.
    @@ -143,14 +450,14 @@ module Google
             # @return [Fixnum]
             attr_accessor :sample_rate
           
    -        # *Optional* The language of the supplied audio as a BCP-47 language tag.
    -        # Example: "en-GB"  https://www.rfc-editor.org/rfc/bcp/bcp47.txt
    -        # If omitted, defaults to "en-US". See
    -        # [Language Support](https://cloud.google.com/speech/docs/languages)
    -        # for a list of the currently supported language codes.
    -        # Corresponds to the JSON property `languageCode`
    -        # @return [String]
    -        attr_accessor :language_code
    +        # *Optional* If set to `true`, the server will attempt to filter out
    +        # profanities, replacing all but the initial character in each filtered word
    +        # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
    +        # won't be filtered out.
    +        # Corresponds to the JSON property `profanityFilter`
    +        # @return [Boolean]
    +        attr_accessor :profanity_filter
    +        alias_method :profanity_filter?, :profanity_filter
           
             # Provides "hints" to the speech recognizer to favor specific words and phrases
             # in the results.
    @@ -163,14 +470,15 @@ module Google
             # @return [String]
             attr_accessor :encoding
           
    -        # *Optional* If set to `true`, the server will attempt to filter out
    -        # profanities, replacing all but the initial character in each filtered word
    -        # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
    -        # won't be filtered out.
    -        # Corresponds to the JSON property `profanityFilter`
    -        # @return [Boolean]
    -        attr_accessor :profanity_filter
    -        alias_method :profanity_filter?, :profanity_filter
    +        # *Optional* Maximum number of recognition hypotheses to be returned.
    +        # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
    +        # within each `SpeechRecognitionResult`.
    +        # The server may return fewer than `max_alternatives`.
    +        # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
    +        # one. If omitted, will return a maximum of one.
    +        # Corresponds to the JSON property `maxAlternatives`
    +        # @return [Fixnum]
    +        attr_accessor :max_alternatives
           
             def initialize(**args)
                update!(**args)
    @@ -178,320 +486,12 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
    -          @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
               @language_code = args[:language_code] if args.key?(:language_code)
    +          @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
    +          @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
               @speech_context = args[:speech_context] if args.key?(:speech_context)
               @encoding = args[:encoding] if args.key?(:encoding)
    -          @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
    -        end
    -      end
    -      
    -      # The top-level message sent by the client for the `SyncRecognize` method.
    -      class SyncRecognizeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Provides information to the recognizer that specifies how to process the
    -        # request.
    -        # Corresponds to the JSON property `config`
    -        # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
    -        attr_accessor :config
    -      
    -        # Contains audio data in the encoding specified in the `RecognitionConfig`.
    -        # Either `content` or `uri` must be supplied. Supplying both or neither
    -        # returns google.rpc.Code.INVALID_ARGUMENT. See
    -        # [audio limits](https://cloud.google.com/speech/limits#content).
    -        # Corresponds to the JSON property `audio`
    -        # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
    -        attr_accessor :audio
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @config = args[:config] if args.key?(:config)
    -          @audio = args[:audio] if args.key?(:audio)
    -        end
    -      end
    -      
    -      # The only message returned to the client by `SyncRecognize`. method. It
    -      # contains the result as zero or more sequential `SpeechRecognitionResult`
    -      # messages.
    -      class SyncRecognizeResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # *Output-only* Sequential list of transcription results corresponding to
    -        # sequential portions of audio.
    -        # Corresponds to the JSON property `results`
    -        # @return [Array]
    -        attr_accessor :results
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @results = args[:results] if args.key?(:results)
    -        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` that 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.
    -      # - 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
    -      
    -        # 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
    -      
    -        # The status code, which should be an enum value of google.rpc.Code.
    -        # Corresponds to the JSON property `code`
    -        # @return [Fixnum]
    -        attr_accessor :code
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @message = args[:message] if args.key?(:message)
    -          @details = args[:details] if args.key?(:details)
    -          @code = args[:code] if args.key?(:code)
    -        end
    -      end
    -      
    -      # A generic empty message that you can re-use to avoid defining duplicated
    -      # empty messages in your APIs. A typical example is to use it as the request
    -      # or the response type of an API method. For instance:
    -      # service Foo `
    -      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    -      # `
    -      # The JSON representation for `Empty` is empty JSON object ````.
    -      class Empty
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # Alternative hypotheses (a.k.a. n-best list).
    -      class SpeechRecognitionAlternative
    -        include Google::Apis::Core::Hashable
    -      
    -        # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
    -        # indicates an estimated greater likelihood that the recognized words are
    -        # correct. This field is typically provided only for the top hypothesis, and
    -        # only for `is_final=true` results. Clients should not rely on the
    -        # `confidence` field as it is not guaranteed to be accurate, or even set, in
    -        # any of the results.
    -        # The default of 0.0 is a sentinel value indicating `confidence` was not set.
    -        # Corresponds to the JSON property `confidence`
    -        # @return [Float]
    -        attr_accessor :confidence
    -      
    -        # *Output-only* Transcript text representing the words that the user spoke.
    -        # Corresponds to the JSON property `transcript`
    -        # @return [String]
    -        attr_accessor :transcript
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @confidence = args[:confidence] if args.key?(:confidence)
    -          @transcript = args[:transcript] if args.key?(:transcript)
    -        end
    -      end
    -      
    -      # Provides "hints" to the speech recognizer to favor specific words and phrases
    -      # in the results.
    -      class SpeechContext
    -        include Google::Apis::Core::Hashable
    -      
    -        # *Optional* A list of strings containing words and phrases "hints" so that
    -        # the speech recognition is more likely to recognize them. This can be used
    -        # to improve the accuracy for specific words and phrases, for example, if
    -        # specific commands are typically spoken by the user. This can also be used
    -        # to add additional words to the vocabulary of the recognizer. See
    -        # [usage limits](https://cloud.google.com/speech/limits#content).
    -        # Corresponds to the JSON property `phrases`
    -        # @return [Array]
    -        attr_accessor :phrases
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @phrases = args[:phrases] if args.key?(:phrases)
    -        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
    -      
    -      # A speech recognition result corresponding to a portion of the audio.
    -      class SpeechRecognitionResult
    -        include Google::Apis::Core::Hashable
    -      
    -        # *Output-only* May contain one or more recognition hypotheses (up to the
    -        # maximum specified in `max_alternatives`).
    -        # Corresponds to the JSON property `alternatives`
    -        # @return [Array]
    -        attr_accessor :alternatives
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @alternatives = args[:alternatives] if args.key?(:alternatives)
    -        end
    -      end
    -      
    -      # Contains audio data in the encoding specified in the `RecognitionConfig`.
    -      # Either `content` or `uri` must be supplied. Supplying both or neither
    -      # returns google.rpc.Code.INVALID_ARGUMENT. See
    -      # [audio limits](https://cloud.google.com/speech/limits#content).
    -      class RecognitionAudio
    -        include Google::Apis::Core::Hashable
    -      
    -        # The audio data bytes encoded as specified in
    -        # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
    -        # pure binary representation, whereas JSON representations use base64.
    -        # Corresponds to the JSON property `content`
    -        # NOTE: Values are automatically base64 encoded/decoded in the client library.
    -        # @return [String]
    -        attr_accessor :content
    -      
    -        # URI that points to a file that contains audio data bytes as specified in
    -        # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
    -        # supported, which must be specified in the following format:
    -        # `gs://bucket_name/object_name` (other URI formats return
    -        # google.rpc.Code.INVALID_ARGUMENT). For more information, see
    -        # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
    -        # Corresponds to the JSON property `uri`
    -        # @return [String]
    -        attr_accessor :uri
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @content = args[:content] if args.key?(:content)
    -          @uri = args[:uri] if args.key?(:uri)
    -        end
    -      end
    -      
    -      # The top-level message sent by the client for the `AsyncRecognize` method.
    -      class AsyncRecognizeRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # Provides information to the recognizer that specifies how to process the
    -        # request.
    -        # Corresponds to the JSON property `config`
    -        # @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
    -        attr_accessor :config
    -      
    -        # Contains audio data in the encoding specified in the `RecognitionConfig`.
    -        # Either `content` or `uri` must be supplied. Supplying both or neither
    -        # returns google.rpc.Code.INVALID_ARGUMENT. See
    -        # [audio limits](https://cloud.google.com/speech/limits#content).
    -        # Corresponds to the JSON property `audio`
    -        # @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
    -        attr_accessor :audio
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @config = args[:config] if args.key?(:config)
    -          @audio = args[:audio] if args.key?(:audio)
    +          @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
             end
           end
         end
    diff --git a/generated/google/apis/speech_v1beta1/representations.rb b/generated/google/apis/speech_v1beta1/representations.rb
    index 455ed38a7..6369f4cdb 100644
    --- a/generated/google/apis/speech_v1beta1/representations.rb
    +++ b/generated/google/apis/speech_v1beta1/representations.rb
    @@ -22,6 +22,66 @@ module Google
       module Apis
         module SpeechV1beta1
           
    +      class SyncRecognizeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Status
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SyncRecognizeResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Empty
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ListOperationsResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SpeechContext
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SpeechRecognitionAlternative
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SpeechRecognitionResult
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AsyncRecognizeRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class RecognitionAudio
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class Operation
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -35,63 +95,86 @@ module Google
           end
           
           class SyncRecognizeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    +          property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
           
    -      class SyncRecognizeResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class Status
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :code, as: 'code'
    +          property :message, as: 'message'
    +          collection :details, as: 'details'
    +        end
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +      class SyncRecognizeResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
    +      
    +        end
           end
           
           class Empty
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class SpeechRecognitionAlternative
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class SpeechContext
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
           end
           
           class ListOperationsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :next_page_token, as: 'nextPageToken'
    +        end
    +      end
    +      
    +      class SpeechContext
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :phrases, as: 'phrases'
    +        end
    +      end
    +      
    +      class SpeechRecognitionAlternative
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :confidence, as: 'confidence'
    +          property :transcript, as: 'transcript'
    +        end
           end
           
           class SpeechRecognitionResult
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class RecognitionAudio
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        end
           end
           
           class AsyncRecognizeRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
           
    -        include Google::Apis::Core::JsonObjectSupport
    +          property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
    +      
    +        end
    +      end
    +      
    +      class RecognitionAudio
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :content, :base64 => true, as: 'content'
    +          property :uri, as: 'uri'
    +        end
           end
           
           class Operation
    @@ -109,96 +192,13 @@ module Google
           class RecognitionConfig
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :max_alternatives, as: 'maxAlternatives'
    -          property :sample_rate, as: 'sampleRate'
               property :language_code, as: 'languageCode'
    +          property :sample_rate, as: 'sampleRate'
    +          property :profanity_filter, as: 'profanityFilter'
               property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation
           
               property :encoding, as: 'encoding'
    -          property :profanity_filter, as: 'profanityFilter'
    -        end
    -      end
    -      
    -      class SyncRecognizeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
    -      
    -          property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
    -      
    -        end
    -      end
    -      
    -      class SyncRecognizeResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
    -      
    -        end
    -      end
    -      
    -      class Status
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :message, as: 'message'
    -          collection :details, as: 'details'
    -          property :code, as: 'code'
    -        end
    -      end
    -      
    -      class Empty
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    -      end
    -      
    -      class SpeechRecognitionAlternative
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :confidence, as: 'confidence'
    -          property :transcript, as: 'transcript'
    -        end
    -      end
    -      
    -      class SpeechContext
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :phrases, as: 'phrases'
    -        end
    -      end
    -      
    -      class ListOperationsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
    -      
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    -      end
    -      
    -      class SpeechRecognitionResult
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
    -      
    -        end
    -      end
    -      
    -      class RecognitionAudio
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :content, :base64 => true, as: 'content'
    -          property :uri, as: 'uri'
    -        end
    -      end
    -      
    -      class AsyncRecognizeRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
    -      
    -          property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
    -      
    +          property :max_alternatives, as: 'maxAlternatives'
             end
           end
         end
    diff --git a/generated/google/apis/speech_v1beta1/service.rb b/generated/google/apis/speech_v1beta1/service.rb
    index 76d38724c..a461be9d6 100644
    --- a/generated/google/apis/speech_v1beta1/service.rb
    +++ b/generated/google/apis/speech_v1beta1/service.rb
    @@ -32,21 +32,133 @@ module Google
           #
           # @see https://cloud.google.com/speech/
           class SpeechService < Google::Apis::Core::BaseService
    -        # @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
    -
             # @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://speech.googleapis.com/', '')
               @batch_path = 'batch'
             end
             
    +        # Deletes a long-running operation. This method indicates that the client is
    +        # no longer interested in the operation result. It does not cancel the
    +        # operation. If the server doesn't support this method, it returns
    +        # `google.rpc.Code.UNIMPLEMENTED`.
    +        # @param [String] name
    +        #   The name of the operation resource to be deleted.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpeechV1beta1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
    +          command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
    +          command.response_class = Google::Apis::SpeechV1beta1::Empty
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Gets the latest state of a long-running operation.  Clients can use this
    +        # method to poll the operation result at intervals as recommended by the API
    +        # service.
    +        # @param [String] name
    +        #   The name of the operation resource.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpeechV1beta1::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, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1beta1/operations/{+name}', options)
    +          command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
    +          command.response_class = Google::Apis::SpeechV1beta1::Operation
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Lists operations that match the specified filter in the request. If the
    +        # server doesn't support this method, it returns `UNIMPLEMENTED`.
    +        # NOTE: the `name` binding allows API services to override the binding
    +        # to use different resource name schemes, such as `users/*/operations`. To
    +        # override the binding, API services can add a binding such as
    +        # `"/v1/`name=users/*`/operations"` to their service configuration.
    +        # For backwards compatibility, the default name includes the operations
    +        # collection id, however overriding users must ensure the name binding
    +        # is the parent resource, without the operations collection id.
    +        # @param [String] page_token
    +        #   The standard list page token.
    +        # @param [String] name
    +        #   The name of the operation's parent resource.
    +        # @param [Fixnum] page_size
    +        #   The standard list page size.
    +        # @param [String] filter
    +        #   The standard list filter.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available 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::SpeechV1beta1::ListOperationsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::SpeechV1beta1::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(page_token: nil, name: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1beta1/operations', options)
    +          command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
    +          command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['name'] = name unless name.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
    +          command.query['filter'] = filter unless filter.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
             # Starts asynchronous cancellation on a long-running operation.  The server
             # makes a best effort to cancel the operation, but success is not
             # guaranteed.  If the server doesn't support this method, it returns
    @@ -59,11 +171,11 @@ module Google
             # corresponding to `Code.CANCELLED`.
             # @param [String] name
             #   The name of the operation resource to be cancelled.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -76,106 +188,28 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def cancel_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    +        def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options)
               command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
               command.response_class = Google::Apis::SpeechV1beta1::Empty
               command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.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 long-running operation. This method indicates that the client is
    -        # no longer interested in the operation result. It does not cancel the
    -        # operation. If the server doesn't support this method, it returns
    -        # `google.rpc.Code.UNIMPLEMENTED`.
    -        # @param [String] name
    -        #   The name of the operation resource to be deleted.
    +        # Performs asynchronous speech recognition: receive results via the
    +        # [google.longrunning.Operations]
    +        # (/speech/reference/rest/v1beta1/operations#Operation)
    +        # interface. Returns either an
    +        # `Operation.error` or an `Operation.response` which contains
    +        # an `AsyncRecognizeResponse` message.
    +        # @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_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 [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::SpeechV1beta1::Empty] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpeechV1beta1::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_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
    -          command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
    -          command.response_class = Google::Apis::SpeechV1beta1::Empty
    -          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 allows API services to override the binding
    -        # to use different resource name schemes, such as `users/*/operations`. To
    -        # override the binding, API services can add a binding such as
    -        # `"/v1/`name=users/*`/operations"` to their service configuration.
    -        # For backwards compatibility, the default name includes the operations
    -        # collection id, however overriding users must ensure the name binding
    -        # is the parent resource, without the operations collection id.
    -        # @param [String] filter
    -        #   The standard list filter.
    -        # @param [String] name
    -        #   The name of the operation's parent resource.
    -        # @param [String] page_token
    -        #   The standard list page token.
    -        # @param [Fixnum] page_size
    -        #   The standard list page size.
    -        # @param [String] quota_user
    -        #   Available 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::SpeechV1beta1::ListOperationsResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpeechV1beta1::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(filter: nil, name: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1beta1/operations', options)
    -          command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
    -          command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
    -          command.query['filter'] = filter unless filter.nil?
    -          command.query['name'] = name unless name.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['pageSize'] = page_size unless page_size.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
             #
    @@ -188,24 +222,25 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1beta1/operations/{+name}', options)
    +        def async_recognize_speech(async_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
    +          command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
    +          command.request_object = async_recognize_request_object
               command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
               command.response_class = Google::Apis::SpeechV1beta1::Operation
    -          command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
             # Performs synchronous speech recognition: receive results after all audio
             # has been sent and processed.
             # @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_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 [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -218,57 +253,22 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def sync_recognize_speech(sync_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
               command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
               command.request_object = sync_recognize_request_object
               command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
               command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Performs asynchronous speech recognition: receive results via the
    -        # [google.longrunning.Operations]
    -        # (/speech/reference/rest/v1beta1/operations#Operation)
    -        # interface. Returns either an
    -        # `Operation.error` or an `Operation.response` which contains
    -        # an `AsyncRecognizeResponse` message.
    -        # @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_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::SpeechV1beta1::Operation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::SpeechV1beta1::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 async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
    -          command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
    -          command.request_object = async_recognize_request_object
    -          command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
    -          command.response_class = Google::Apis::SpeechV1beta1::Operation
               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['quotaUser'] = quota_user unless quota_user.nil?
               command.query['key'] = key unless key.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
             end
           end
         end
    diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb
    index 0fdc0e11b..3efecb8a5 100644
    --- a/generated/google/apis/storage_v1.rb
    +++ b/generated/google/apis/storage_v1.rb
    @@ -25,7 +25,7 @@ module Google
         # @see https://developers.google.com/storage/docs/json_api/
         module StorageV1
           VERSION = 'V1'
    -      REVISION = '20170531'
    +      REVISION = '20170607'
     
           # 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/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb
    index 7aa25a443..682eaf92b 100644
    --- a/generated/google/apis/storagetransfer_v1.rb
    +++ b/generated/google/apis/storagetransfer_v1.rb
    @@ -26,7 +26,7 @@ module Google
         # @see https://cloud.google.com/storage/transfer
         module StoragetransferV1
           VERSION = 'V1'
    -      REVISION = '20170608'
    +      REVISION = '20170707'
     
           # 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/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb
    index b76b07448..e5ebdbd14 100644
    --- a/generated/google/apis/storagetransfer_v1/classes.rb
    +++ b/generated/google/apis/storagetransfer_v1/classes.rb
    @@ -22,852 +22,43 @@ module Google
       module Apis
         module StoragetransferV1
           
    -      # Request passed to UpdateTransferJob.
    -      class UpdateTransferJobRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # This resource represents the configuration of a transfer job that runs
    -        # periodically.
    -        # Corresponds to the JSON property `transferJob`
    -        # @return [Google::Apis::StoragetransferV1::TransferJob]
    -        attr_accessor :transfer_job
    -      
    -        # The ID of the Google Cloud Platform Console project that owns the job.
    -        # Required.
    -        # Corresponds to the JSON property `projectId`
    -        # @return [String]
    -        attr_accessor :project_id
    -      
    -        # The field mask of the fields in `transferJob` that are to be updated in
    -        # this request.  Fields in `transferJob` that can be updated are:
    -        # `description`, `transferSpec`, and `status`.  To update the `transferSpec`
    -        # of the job, a complete transfer specification has to be provided. An
    -        # incomplete specification which misses any required fields will be rejected
    -        # with the error `INVALID_ARGUMENT`.
    -        # Corresponds to the JSON property `updateTransferJobFieldMask`
    -        # @return [String]
    -        attr_accessor :update_transfer_job_field_mask
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @transfer_job = args[:transfer_job] if args.key?(:transfer_job)
    -          @project_id = args[:project_id] if args.key?(:project_id)
    -          @update_transfer_job_field_mask = args[:update_transfer_job_field_mask] if args.key?(:update_transfer_job_field_mask)
    -        end
    -      end
    -      
    -      # Conditions that determine which objects will be transferred.
    -      class ObjectConditions
    -        include Google::Apis::Core::Hashable
    -      
    -        # If unspecified, `minTimeElapsedSinceLastModification` takes a zero value
    -        # and `maxTimeElapsedSinceLastModification` takes the maximum possible
    -        # value of Duration. Objects that satisfy the object conditions
    -        # must either have a `lastModificationTime` greater or equal to
    -        # `NOW` - `maxTimeElapsedSinceLastModification` and less than
    -        # `NOW` - `minTimeElapsedSinceLastModification`, or not have a
    -        # `lastModificationTime`.
    -        # Corresponds to the JSON property `minTimeElapsedSinceLastModification`
    -        # @return [String]
    -        attr_accessor :min_time_elapsed_since_last_modification
    -      
    -        # `excludePrefixes` must follow the requirements described for
    -        # `includePrefixes`.
    -        # The max size of `excludePrefixes` is 1000.
    -        # Corresponds to the JSON property `excludePrefixes`
    -        # @return [Array]
    -        attr_accessor :exclude_prefixes
    -      
    -        # `maxTimeElapsedSinceLastModification` is the complement to
    -        # `minTimeElapsedSinceLastModification`.
    -        # Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
    -        # @return [String]
    -        attr_accessor :max_time_elapsed_since_last_modification
    -      
    -        # If `includePrefixes` is specified, objects that satisfy the object
    -        # conditions must have names that start with one of the `includePrefixes`
    -        # and that do not start with any of the `excludePrefixes`. If `includePrefixes`
    -        # is not specified, all objects except those that have names starting with
    -        # one of the `excludePrefixes` must satisfy the object conditions.
    -        # Requirements:
    -        # * Each include-prefix and exclude-prefix can contain any sequence of
    -        # Unicode characters, of max length 1024 bytes when UTF8-encoded, and
    -        # must not contain Carriage Return or Line Feed characters.  Wildcard
    -        # matching and regular expression matching are not supported.
    -        # * Each include-prefix and exclude-prefix must omit the leading slash.
    -        # For example, to include the `requests.gz` object in a transfer from
    -        # `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include
    -        # prefix as `logs/y=2015/requests.gz`.
    -        # * None of the include-prefix or the exclude-prefix values can be empty,
    -        # if specified.
    -        # * Each include-prefix must include a distinct portion of the object
    -        # namespace, i.e., no include-prefix may be a prefix of another
    -        # include-prefix.
    -        # * Each exclude-prefix must exclude a distinct portion of the object
    -        # namespace, i.e., no exclude-prefix may be a prefix of another
    -        # exclude-prefix.
    -        # * If `includePrefixes` is specified, then each exclude-prefix must start
    -        # with the value of a path explicitly included by `includePrefixes`.
    -        # The max size of `includePrefixes` is 1000.
    -        # Corresponds to the JSON property `includePrefixes`
    -        # @return [Array]
    -        attr_accessor :include_prefixes
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @min_time_elapsed_since_last_modification = args[:min_time_elapsed_since_last_modification] if args.key?(:min_time_elapsed_since_last_modification)
    -          @exclude_prefixes = args[:exclude_prefixes] if args.key?(:exclude_prefixes)
    -          @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)
    -        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
    -      
    -        # 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
    -      
    -        # The server-assigned name, which is only unique within the same service that
    -        # originally returns it. If you use the default HTTP mapping, the `name` should
    -        # have the format of `transferOperations/some/unique/name`.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # 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` that 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.
    -        # - Batch operations. If a client uses batch request and batch response, the
    -        # `Status` message should be used directly inside batch response, one for
    -        # each error sub-response.
    -        # - Asynchronous operations. If an API call embeds asynchronous operation
    -        # results in its response, the status of those operations should be
    -        # represented directly using the `Status` message.
    -        # - Logging. If some API errors are stored in logs, the message `Status` could
    -        # be used directly after any stripping needed for security/privacy reasons.
    -        # Corresponds to the JSON property `error`
    -        # @return [Google::Apis::StoragetransferV1::Status]
    -        attr_accessor :error
    -      
    -        # Represents the transfer operation object.
    -        # Corresponds to the JSON property `metadata`
    -        # @return [Hash]
    -        attr_accessor :metadata
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @done = args[:done] if args.key?(:done)
    -          @response = args[:response] if args.key?(:response)
    -          @name = args[:name] if args.key?(:name)
    -          @error = args[:error] if args.key?(:error)
    -          @metadata = args[:metadata] if args.key?(:metadata)
    -        end
    -      end
    -      
    -      # TransferOptions uses three boolean parameters to define the actions
    -      # to be performed on objects in a transfer.
    -      class TransferOptions
    -        include Google::Apis::Core::Hashable
    -      
    -        # Whether objects that exist only in the sink should be deleted.
    -        # Corresponds to the JSON property `deleteObjectsUniqueInSink`
    -        # @return [Boolean]
    -        attr_accessor :delete_objects_unique_in_sink
    -        alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
    -      
    -        # Whether overwriting objects that already exist in the sink is allowed.
    -        # Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink`
    -        # @return [Boolean]
    -        attr_accessor :overwrite_objects_already_existing_in_sink
    -        alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink
    -      
    -        # Whether objects should be deleted from the source after they are
    -        # transferred to the sink.
    -        # Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer`
    -        # @return [Boolean]
    -        attr_accessor :delete_objects_from_source_after_transfer
    -        alias_method :delete_objects_from_source_after_transfer?, :delete_objects_from_source_after_transfer
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
    -          @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_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
    -      
    -      # Configuration for running a transfer.
    -      class TransferSpec
    -        include Google::Apis::Core::Hashable
    -      
    -        # In a GcsData, an object's name is the Google Cloud Storage object's name and
    -        # its `lastModificationTime` refers to the object's updated time, which changes
    -        # when the content or the metadata of the object is updated.
    -        # Corresponds to the JSON property `gcsDataSource`
    -        # @return [Google::Apis::StoragetransferV1::GcsData]
    -        attr_accessor :gcs_data_source
    -      
    -        # TransferOptions uses three boolean parameters to define the actions
    -        # to be performed on objects in a transfer.
    -        # Corresponds to the JSON property `transferOptions`
    -        # @return [Google::Apis::StoragetransferV1::TransferOptions]
    -        attr_accessor :transfer_options
    -      
    -        # An AwsS3Data can be a data source, but not a data sink.
    -        # In an AwsS3Data, an object's name is the S3 object's key name.
    -        # Corresponds to the JSON property `awsS3DataSource`
    -        # @return [Google::Apis::StoragetransferV1::AwsS3Data]
    -        attr_accessor :aws_s3_data_source
    -      
    -        # An HttpData specifies a list of objects on the web to be transferred over
    -        # HTTP.  The information of the objects to be transferred is contained in a
    -        # file referenced by a URL. The first line in the file must be
    -        # "TsvHttpData-1.0", which specifies the format of the file.  Subsequent lines
    -        # specify the information of the list of objects, one object per list entry.
    -        # Each entry has the following tab-delimited fields:
    -        # * HTTP URL - The location of the object.
    -        # * Length - The size of the object in bytes.
    -        # * MD5 - The base64-encoded MD5 hash of the object.
    -        # For an example of a valid TSV file, see
    -        # [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
    -        # When transferring data based on a URL list, keep the following in mind:
    -        # * When an object located at `http(s)://hostname:port/` is
    -        # transferred
    -        # to a data sink, the name of the object at the data sink is
    -        # `/`.
    -        # * If the specified size of an object does not match the actual size of the
    -        # object fetched, the object will not be transferred.
    -        # * If the specified MD5 does not match the MD5 computed from the transferred
    -        # bytes, the object transfer will fail. For more information, see
    -        # [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
    -        # * Ensure that each URL you specify is publicly accessible. For
    -        # example, in Google Cloud Storage you can
    -        # [share an object publicly]
    -        # (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
    -        # a link to it.
    -        # * Storage Transfer Service obeys `robots.txt` rules and requires the source
    -        # HTTP server to support `Range` requests and to return a `Content-Length`
    -        # header in each response.
    -        # * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
    -        # to transfer.
    -        # Corresponds to the JSON property `httpDataSource`
    -        # @return [Google::Apis::StoragetransferV1::HttpData]
    -        attr_accessor :http_data_source
    -      
    -        # Conditions that determine which objects will be transferred.
    -        # Corresponds to the JSON property `objectConditions`
    -        # @return [Google::Apis::StoragetransferV1::ObjectConditions]
    -        attr_accessor :object_conditions
    -      
    -        # In a GcsData, an object's name is the Google Cloud Storage object's name and
    -        # its `lastModificationTime` refers to the object's updated time, which changes
    -        # when the content or the metadata of the object is updated.
    -        # Corresponds to the JSON property `gcsDataSink`
    -        # @return [Google::Apis::StoragetransferV1::GcsData]
    -        attr_accessor :gcs_data_sink
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
    -          @transfer_options = args[:transfer_options] if args.key?(:transfer_options)
    -          @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)
    -          @object_conditions = args[:object_conditions] if args.key?(:object_conditions)
    -          @gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
    -        end
    -      end
    -      
    -      # Request passed to ResumeTransferOperation.
    -      class ResumeTransferOperationRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # 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` that 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.
    -      # - 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
    -      
    -        # 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
    -      
    -        # The status code, which should be an enum value of google.rpc.Code.
    -        # Corresponds to the JSON property `code`
    -        # @return [Fixnum]
    -        attr_accessor :code
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @message = args[:message] if args.key?(:message)
    -          @details = args[:details] if args.key?(:details)
    -          @code = args[:code] if args.key?(:code)
    -        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
    -      
    -      # Google service account
    -      class GoogleServiceAccount
    -        include Google::Apis::Core::Hashable
    -      
    -        # Required.
    -        # Corresponds to the JSON property `accountEmail`
    -        # @return [String]
    -        attr_accessor :account_email
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @account_email = args[:account_email] if args.key?(:account_email)
    -        end
    -      end
    -      
    -      # Represents a time of day. The date and time zone are either not significant
    -      # or are specified elsewhere. An API may choose to allow leap seconds. Related
    -      # types are google.type.Date and `google.protobuf.Timestamp`.
    -      class TimeOfDay
    -        include Google::Apis::Core::Hashable
    -      
    -        # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
    -        # allow the value 60 if it allows leap-seconds.
    -        # Corresponds to the JSON property `seconds`
    -        # @return [Fixnum]
    -        attr_accessor :seconds
    -      
    -        # Minutes of hour of day. Must be from 0 to 59.
    -        # Corresponds to the JSON property `minutes`
    -        # @return [Fixnum]
    -        attr_accessor :minutes
    -      
    -        # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
    -        # to allow the value "24:00:00" for scenarios like business closing time.
    -        # Corresponds to the JSON property `hours`
    -        # @return [Fixnum]
    -        attr_accessor :hours
    -      
    -        # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    -        # Corresponds to the JSON property `nanos`
    -        # @return [Fixnum]
    -        attr_accessor :nanos
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @seconds = args[:seconds] if args.key?(:seconds)
    -          @minutes = args[:minutes] if args.key?(:minutes)
    -          @hours = args[:hours] if args.key?(:hours)
    -          @nanos = args[:nanos] if args.key?(:nanos)
    -        end
    -      end
    -      
    -      # An entry describing an error that has occurred.
    -      class ErrorLogEntry
    -        include Google::Apis::Core::Hashable
    -      
    -        # A URL that refers to the target (a data source, a data sink,
    -        # or an object) with which the error is associated.
    -        # Required.
    -        # Corresponds to the JSON property `url`
    -        # @return [String]
    -        attr_accessor :url
    -      
    -        # A list of messages that carry the error details.
    -        # Corresponds to the JSON property `errorDetails`
    -        # @return [Array]
    -        attr_accessor :error_details
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @url = args[:url] if args.key?(:url)
    -          @error_details = args[:error_details] if args.key?(:error_details)
    -        end
    -      end
    -      
    -      # This resource represents the configuration of a transfer job that runs
    -      # periodically.
    -      class TransferJob
    -        include Google::Apis::Core::Hashable
    -      
    -        # This field cannot be changed by user requests.
    -        # Corresponds to the JSON property `creationTime`
    -        # @return [String]
    -        attr_accessor :creation_time
    -      
    -        # Configuration for running a transfer.
    -        # Corresponds to the JSON property `transferSpec`
    -        # @return [Google::Apis::StoragetransferV1::TransferSpec]
    -        attr_accessor :transfer_spec
    -      
    -        # Status of the job. This value MUST be specified for
    -        # `CreateTransferJobRequests`.
    -        # NOTE: The effect of the new job status takes place during a subsequent job
    -        # run. For example, if you change the job status from `ENABLED` to
    -        # `DISABLED`, and an operation spawned by the transfer is running, the status
    -        # change would not affect the current operation.
    -        # Corresponds to the JSON property `status`
    -        # @return [String]
    -        attr_accessor :status
    -      
    -        # Transfers can be scheduled to recur or to run just once.
    -        # Corresponds to the JSON property `schedule`
    -        # @return [Google::Apis::StoragetransferV1::Schedule]
    -        attr_accessor :schedule
    -      
    -        # A globally unique name assigned by Storage Transfer Service when the
    -        # job is created. This field should be left empty in requests to create a new
    -        # transfer job; otherwise, the requests result in an `INVALID_ARGUMENT`
    -        # error.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # This field cannot be changed by user requests.
    -        # Corresponds to the JSON property `deletionTime`
    -        # @return [String]
    -        attr_accessor :deletion_time
    -      
    -        # This field cannot be changed by user requests.
    -        # Corresponds to the JSON property `lastModificationTime`
    -        # @return [String]
    -        attr_accessor :last_modification_time
    -      
    -        # The ID of the Google Cloud Platform Console project that owns the job.
    -        # Required.
    -        # Corresponds to the JSON property `projectId`
    -        # @return [String]
    -        attr_accessor :project_id
    -      
    -        # A description provided by the user for the job. Its max length is 1024
    -        # bytes when Unicode-encoded.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @creation_time = args[:creation_time] if args.key?(:creation_time)
    -          @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
    -          @status = args[:status] if args.key?(:status)
    -          @schedule = args[:schedule] if args.key?(:schedule)
    -          @name = args[:name] if args.key?(:name)
    -          @deletion_time = args[:deletion_time] if args.key?(:deletion_time)
    -          @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
    -          @project_id = args[:project_id] if args.key?(:project_id)
    -          @description = args[:description] if args.key?(:description)
    -        end
    -      end
    -      
    -      # Transfers can be scheduled to recur or to run just once.
    -      class Schedule
    -        include Google::Apis::Core::Hashable
    -      
    -        # Represents a whole calendar date, e.g. date of birth. The time of day and
    -        # time zone are either specified elsewhere or are not significant. The date
    -        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    -        # represent a year and month where the day is not significant, e.g. credit card
    -        # expiration date. The year may be 0 to represent a month and day independent
    -        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    -        # and `google.protobuf.Timestamp`.
    -        # Corresponds to the JSON property `scheduleEndDate`
    -        # @return [Google::Apis::StoragetransferV1::Date]
    -        attr_accessor :schedule_end_date
    -      
    -        # Represents a time of day. The date and time zone are either not significant
    -        # or are specified elsewhere. An API may choose to allow leap seconds. Related
    -        # types are google.type.Date and `google.protobuf.Timestamp`.
    -        # Corresponds to the JSON property `startTimeOfDay`
    -        # @return [Google::Apis::StoragetransferV1::TimeOfDay]
    -        attr_accessor :start_time_of_day
    -      
    -        # Represents a whole calendar date, e.g. date of birth. The time of day and
    -        # time zone are either specified elsewhere or are not significant. The date
    -        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    -        # represent a year and month where the day is not significant, e.g. credit card
    -        # expiration date. The year may be 0 to represent a month and day independent
    -        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    -        # and `google.protobuf.Timestamp`.
    -        # Corresponds to the JSON property `scheduleStartDate`
    -        # @return [Google::Apis::StoragetransferV1::Date]
    -        attr_accessor :schedule_start_date
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @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)
    -          @schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date)
    -        end
    -      end
    -      
    -      # Represents a whole calendar date, e.g. date of birth. The time of day and
    -      # time zone are either specified elsewhere or are not significant. The date
    -      # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    -      # represent a year and month where the day is not significant, e.g. credit card
    -      # expiration date. The year may be 0 to represent a month and day independent
    -      # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    -      # and `google.protobuf.Timestamp`.
    -      class Date
    -        include Google::Apis::Core::Hashable
    -      
    -        # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    -        # a year.
    -        # Corresponds to the JSON property `year`
    -        # @return [Fixnum]
    -        attr_accessor :year
    -      
    -        # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    -        # if specifying a year/month where the day is not significant.
    -        # Corresponds to the JSON property `day`
    -        # @return [Fixnum]
    -        attr_accessor :day
    -      
    -        # Month of year. Must be from 1 to 12.
    -        # Corresponds to the JSON property `month`
    -        # @return [Fixnum]
    -        attr_accessor :month
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @year = args[:year] if args.key?(:year)
    -          @day = args[:day] if args.key?(:day)
    -          @month = args[:month] if args.key?(:month)
    -        end
    -      end
    -      
    -      # A description of the execution of a transfer.
    -      class TransferOperation
    -        include Google::Apis::Core::Hashable
    -      
    -        # Start time of this transfer execution.
    -        # Corresponds to the JSON property `startTime`
    -        # @return [String]
    -        attr_accessor :start_time
    -      
    -        # The name of the transfer job that triggers this transfer operation.
    -        # Corresponds to the JSON property `transferJobName`
    -        # @return [String]
    -        attr_accessor :transfer_job_name
    -      
    -        # Configuration for running a transfer.
    -        # Corresponds to the JSON property `transferSpec`
    -        # @return [Google::Apis::StoragetransferV1::TransferSpec]
    -        attr_accessor :transfer_spec
    -      
    -        # A collection of counters that report the progress of a transfer operation.
    -        # Corresponds to the JSON property `counters`
    -        # @return [Google::Apis::StoragetransferV1::TransferCounters]
    -        attr_accessor :counters
    -      
    -        # Status of the transfer operation.
    -        # Corresponds to the JSON property `status`
    -        # @return [String]
    -        attr_accessor :status
    -      
    -        # Summarizes errors encountered with sample error log entries.
    -        # Corresponds to the JSON property `errorBreakdowns`
    -        # @return [Array]
    -        attr_accessor :error_breakdowns
    -      
    -        # A globally unique ID assigned by the system.
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The ID of the Google Cloud Platform Console project that owns the operation.
    -        # Required.
    -        # Corresponds to the JSON property `projectId`
    -        # @return [String]
    -        attr_accessor :project_id
    -      
    -        # End time of this transfer execution.
    -        # Corresponds to the JSON property `endTime`
    -        # @return [String]
    -        attr_accessor :end_time
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @start_time = args[:start_time] if args.key?(:start_time)
    -          @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name)
    -          @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
    -          @counters = args[:counters] if args.key?(:counters)
    -          @status = args[:status] if args.key?(:status)
    -          @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
    -          @name = args[:name] if args.key?(:name)
    -          @project_id = args[:project_id] if args.key?(:project_id)
    -          @end_time = args[:end_time] if args.key?(:end_time)
    -        end
    -      end
    -      
    -      # An AwsS3Data can be a data source, but not a data sink.
    -      # In an AwsS3Data, an object's name is the S3 object's key name.
    -      class AwsS3Data
    -        include Google::Apis::Core::Hashable
    -      
    -        # AWS access key (see
    -        # [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
    -        # security-credentials.html)).
    -        # Corresponds to the JSON property `awsAccessKey`
    -        # @return [Google::Apis::StoragetransferV1::AwsAccessKey]
    -        attr_accessor :aws_access_key
    -      
    -        # S3 Bucket name (see
    -        # [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-
    -        # bucket-get-location-example.html)).
    -        # Required.
    -        # Corresponds to the JSON property `bucketName`
    -        # @return [String]
    -        attr_accessor :bucket_name
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @aws_access_key = args[:aws_access_key] if args.key?(:aws_access_key)
    -          @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
    -        end
    -      end
    -      
    -      # AWS access key (see
    -      # [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
    -      # security-credentials.html)).
    -      class AwsAccessKey
    -        include Google::Apis::Core::Hashable
    -      
    -        # AWS secret access key. This field is not returned in RPC responses.
    -        # Required.
    -        # Corresponds to the JSON property `secretAccessKey`
    -        # @return [String]
    -        attr_accessor :secret_access_key
    -      
    -        # AWS access key ID.
    -        # Required.
    -        # Corresponds to the JSON property `accessKeyId`
    -        # @return [String]
    -        attr_accessor :access_key_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key)
    -          @access_key_id = args[:access_key_id] if args.key?(:access_key_id)
    -        end
    -      end
    -      
    -      # A generic empty message that you can re-use to avoid defining duplicated
    -      # empty messages in your APIs. A typical example is to use it as the request
    -      # or the response type of an API method. For instance:
    -      # service Foo `
    -      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    -      # `
    -      # The JSON representation for `Empty` is empty JSON object ````.
    -      class Empty
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # Request passed to PauseTransferOperation.
    -      class PauseTransferOperationRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
           # A collection of counters that report the progress of a transfer operation.
           class TransferCounters
             include Google::Apis::Core::Hashable
           
    +        # Bytes that are deleted from the data source.
    +        # Corresponds to the JSON property `bytesDeletedFromSource`
    +        # @return [Fixnum]
    +        attr_accessor :bytes_deleted_from_source
    +      
    +        # Objects found in the data source that are scheduled to be transferred,
    +        # which will be copied, excluded based on conditions, or skipped due to
    +        # failures.
    +        # Corresponds to the JSON property `objectsFoundFromSource`
    +        # @return [Fixnum]
    +        attr_accessor :objects_found_from_source
    +      
    +        # Objects that failed to be deleted from the data sink.
    +        # Corresponds to the JSON property `objectsFailedToDeleteFromSink`
    +        # @return [Fixnum]
    +        attr_accessor :objects_failed_to_delete_from_sink
    +      
    +        # Objects that are deleted from the data sink.
    +        # Corresponds to the JSON property `objectsDeletedFromSink`
    +        # @return [Fixnum]
    +        attr_accessor :objects_deleted_from_sink
    +      
    +        # Objects found only in the data sink that are scheduled to be deleted.
    +        # Corresponds to the JSON property `objectsFoundOnlyFromSink`
    +        # @return [Fixnum]
    +        attr_accessor :objects_found_only_from_sink
    +      
    +        # Bytes in the data source that are not transferred because they already
    +        # exist in the data sink.
    +        # Corresponds to the JSON property `bytesFromSourceSkippedBySync`
    +        # @return [Fixnum]
    +        attr_accessor :bytes_from_source_skipped_by_sync
    +      
             # Bytes that are deleted from the data sink.
             # Corresponds to the JSON property `bytesDeletedFromSink`
             # @return [Fixnum]
    @@ -883,16 +74,16 @@ module Google
             # @return [Fixnum]
             attr_accessor :bytes_from_source_failed
           
    -        # Objects that are copied to the data sink.
    -        # Corresponds to the JSON property `objectsCopiedToSink`
    -        # @return [Fixnum]
    -        attr_accessor :objects_copied_to_sink
    -      
             # Objects in the data source that failed during the transfer.
             # Corresponds to the JSON property `objectsFromSourceFailed`
             # @return [Fixnum]
             attr_accessor :objects_from_source_failed
           
    +        # Objects that are copied to the data sink.
    +        # Corresponds to the JSON property `objectsCopiedToSink`
    +        # @return [Fixnum]
    +        attr_accessor :objects_copied_to_sink
    +      
             # Bytes found only in the data sink that are scheduled to be deleted.
             # Corresponds to the JSON property `bytesFoundOnlyFromSink`
             # @return [Fixnum]
    @@ -921,61 +112,28 @@ module Google
             # @return [Fixnum]
             attr_accessor :objects_from_source_skipped_by_sync
           
    -        # Bytes that are deleted from the data source.
    -        # Corresponds to the JSON property `bytesDeletedFromSource`
    -        # @return [Fixnum]
    -        attr_accessor :bytes_deleted_from_source
    -      
    -        # Objects found in the data source that are scheduled to be transferred,
    -        # which will be copied, excluded based on conditions, or skipped due to
    -        # failures.
    -        # Corresponds to the JSON property `objectsFoundFromSource`
    -        # @return [Fixnum]
    -        attr_accessor :objects_found_from_source
    -      
    -        # Objects that failed to be deleted from the data sink.
    -        # Corresponds to the JSON property `objectsFailedToDeleteFromSink`
    -        # @return [Fixnum]
    -        attr_accessor :objects_failed_to_delete_from_sink
    -      
    -        # Objects found only in the data sink that are scheduled to be deleted.
    -        # Corresponds to the JSON property `objectsFoundOnlyFromSink`
    -        # @return [Fixnum]
    -        attr_accessor :objects_found_only_from_sink
    -      
    -        # Objects that are deleted from the data sink.
    -        # Corresponds to the JSON property `objectsDeletedFromSink`
    -        # @return [Fixnum]
    -        attr_accessor :objects_deleted_from_sink
    -      
    -        # Bytes in the data source that are not transferred because they already
    -        # exist in the data sink.
    -        # Corresponds to the JSON property `bytesFromSourceSkippedBySync`
    -        # @return [Fixnum]
    -        attr_accessor :bytes_from_source_skipped_by_sync
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
    +          @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
    +          @objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink)
    +          @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
    +          @objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
    +          @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
               @bytes_deleted_from_sink = args[:bytes_deleted_from_sink] if args.key?(:bytes_deleted_from_sink)
               @bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] if args.key?(:bytes_failed_to_delete_from_sink)
               @bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
    -          @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
               @objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed)
    +          @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
               @bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
               @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
               @bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink)
               @bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source)
               @objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync)
    -          @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
    -          @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
    -          @objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink)
    -          @objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
    -          @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
    -          @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
             end
           end
           
    @@ -1112,6 +270,851 @@ module Google
               @transfer_jobs = args[:transfer_jobs] if args.key?(:transfer_jobs)
             end
           end
    +      
    +      # Request passed to UpdateTransferJob.
    +      class UpdateTransferJobRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The ID of the Google Cloud Platform Console project that owns the job.
    +        # Required.
    +        # Corresponds to the JSON property `projectId`
    +        # @return [String]
    +        attr_accessor :project_id
    +      
    +        # The field mask of the fields in `transferJob` that are to be updated in
    +        # this request.  Fields in `transferJob` that can be updated are:
    +        # `description`, `transferSpec`, and `status`.  To update the `transferSpec`
    +        # of the job, a complete transfer specification has to be provided. An
    +        # incomplete specification which misses any required fields will be rejected
    +        # with the error `INVALID_ARGUMENT`.
    +        # Corresponds to the JSON property `updateTransferJobFieldMask`
    +        # @return [String]
    +        attr_accessor :update_transfer_job_field_mask
    +      
    +        # This resource represents the configuration of a transfer job that runs
    +        # periodically.
    +        # Corresponds to the JSON property `transferJob`
    +        # @return [Google::Apis::StoragetransferV1::TransferJob]
    +        attr_accessor :transfer_job
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @project_id = args[:project_id] if args.key?(:project_id)
    +          @update_transfer_job_field_mask = args[:update_transfer_job_field_mask] if args.key?(:update_transfer_job_field_mask)
    +          @transfer_job = args[:transfer_job] if args.key?(:transfer_job)
    +        end
    +      end
    +      
    +      # Conditions that determine which objects will be transferred.
    +      class ObjectConditions
    +        include Google::Apis::Core::Hashable
    +      
    +        # `excludePrefixes` must follow the requirements described for
    +        # `includePrefixes`.
    +        # The max size of `excludePrefixes` is 1000.
    +        # Corresponds to the JSON property `excludePrefixes`
    +        # @return [Array]
    +        attr_accessor :exclude_prefixes
    +      
    +        # If unspecified, `minTimeElapsedSinceLastModification` takes a zero value
    +        # and `maxTimeElapsedSinceLastModification` takes the maximum possible
    +        # value of Duration. Objects that satisfy the object conditions
    +        # must either have a `lastModificationTime` greater or equal to
    +        # `NOW` - `maxTimeElapsedSinceLastModification` and less than
    +        # `NOW` - `minTimeElapsedSinceLastModification`, or not have a
    +        # `lastModificationTime`.
    +        # Corresponds to the JSON property `minTimeElapsedSinceLastModification`
    +        # @return [String]
    +        attr_accessor :min_time_elapsed_since_last_modification
    +      
    +        # `maxTimeElapsedSinceLastModification` is the complement to
    +        # `minTimeElapsedSinceLastModification`.
    +        # Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
    +        # @return [String]
    +        attr_accessor :max_time_elapsed_since_last_modification
    +      
    +        # If `includePrefixes` is specified, objects that satisfy the object
    +        # conditions must have names that start with one of the `includePrefixes`
    +        # and that do not start with any of the `excludePrefixes`. If `includePrefixes`
    +        # is not specified, all objects except those that have names starting with
    +        # one of the `excludePrefixes` must satisfy the object conditions.
    +        # Requirements:
    +        # * Each include-prefix and exclude-prefix can contain any sequence of
    +        # Unicode characters, of max length 1024 bytes when UTF8-encoded, and
    +        # must not contain Carriage Return or Line Feed characters.  Wildcard
    +        # matching and regular expression matching are not supported.
    +        # * Each include-prefix and exclude-prefix must omit the leading slash.
    +        # For example, to include the `requests.gz` object in a transfer from
    +        # `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include
    +        # prefix as `logs/y=2015/requests.gz`.
    +        # * None of the include-prefix or the exclude-prefix values can be empty,
    +        # if specified.
    +        # * Each include-prefix must include a distinct portion of the object
    +        # namespace, i.e., no include-prefix may be a prefix of another
    +        # include-prefix.
    +        # * Each exclude-prefix must exclude a distinct portion of the object
    +        # namespace, i.e., no exclude-prefix may be a prefix of another
    +        # exclude-prefix.
    +        # * If `includePrefixes` is specified, then each exclude-prefix must start
    +        # with the value of a path explicitly included by `includePrefixes`.
    +        # The max size of `includePrefixes` is 1000.
    +        # Corresponds to the JSON property `includePrefixes`
    +        # @return [Array]
    +        attr_accessor :include_prefixes
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @exclude_prefixes = args[:exclude_prefixes] if args.key?(:exclude_prefixes)
    +          @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)
    +        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
    +      
    +        # 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
    +      
    +        # The server-assigned name, which is only unique within the same service that
    +        # originally returns it. If you use the default HTTP mapping, the `name` should
    +        # have the format of `transferOperations/some/unique/name`.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # 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` that 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.
    +        # - Batch operations. If a client uses batch request and batch response, the
    +        # `Status` message should be used directly inside batch response, one for
    +        # each error sub-response.
    +        # - Asynchronous operations. If an API call embeds asynchronous operation
    +        # results in its response, the status of those operations should be
    +        # represented directly using the `Status` message.
    +        # - Logging. If some API errors are stored in logs, the message `Status` could
    +        # be used directly after any stripping needed for security/privacy reasons.
    +        # Corresponds to the JSON property `error`
    +        # @return [Google::Apis::StoragetransferV1::Status]
    +        attr_accessor :error
    +      
    +        # Represents the transfer operation object.
    +        # Corresponds to the JSON property `metadata`
    +        # @return [Hash]
    +        attr_accessor :metadata
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @done = args[:done] if args.key?(:done)
    +          @response = args[:response] if args.key?(:response)
    +          @name = args[:name] if args.key?(:name)
    +          @error = args[:error] if args.key?(:error)
    +          @metadata = args[:metadata] if args.key?(:metadata)
    +        end
    +      end
    +      
    +      # TransferOptions uses three boolean parameters to define the actions
    +      # to be performed on objects in a transfer.
    +      class TransferOptions
    +        include Google::Apis::Core::Hashable
    +      
    +        # Whether objects that exist only in the sink should be deleted.  Note that
    +        # this option and `deleteObjectsFromSourceAfterTransfer` are mutually
    +        # exclusive.
    +        # Corresponds to the JSON property `deleteObjectsUniqueInSink`
    +        # @return [Boolean]
    +        attr_accessor :delete_objects_unique_in_sink
    +        alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
    +      
    +        # Whether overwriting objects that already exist in the sink is allowed.
    +        # Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink`
    +        # @return [Boolean]
    +        attr_accessor :overwrite_objects_already_existing_in_sink
    +        alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink
    +      
    +        # Whether objects should be deleted from the source after they are
    +        # transferred to the sink.  Note that this option and
    +        # `deleteObjectsUniqueInSink` are mutually exclusive.
    +        # Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer`
    +        # @return [Boolean]
    +        attr_accessor :delete_objects_from_source_after_transfer
    +        alias_method :delete_objects_from_source_after_transfer?, :delete_objects_from_source_after_transfer
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
    +          @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_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
    +      
    +      # Configuration for running a transfer.
    +      class TransferSpec
    +        include Google::Apis::Core::Hashable
    +      
    +        # TransferOptions uses three boolean parameters to define the actions
    +        # to be performed on objects in a transfer.
    +        # Corresponds to the JSON property `transferOptions`
    +        # @return [Google::Apis::StoragetransferV1::TransferOptions]
    +        attr_accessor :transfer_options
    +      
    +        # An AwsS3Data can be a data source, but not a data sink.
    +        # In an AwsS3Data, an object's name is the S3 object's key name.
    +        # Corresponds to the JSON property `awsS3DataSource`
    +        # @return [Google::Apis::StoragetransferV1::AwsS3Data]
    +        attr_accessor :aws_s3_data_source
    +      
    +        # An HttpData specifies a list of objects on the web to be transferred over
    +        # HTTP.  The information of the objects to be transferred is contained in a
    +        # file referenced by a URL. The first line in the file must be
    +        # "TsvHttpData-1.0", which specifies the format of the file.  Subsequent lines
    +        # specify the information of the list of objects, one object per list entry.
    +        # Each entry has the following tab-delimited fields:
    +        # * HTTP URL - The location of the object.
    +        # * Length - The size of the object in bytes.
    +        # * MD5 - The base64-encoded MD5 hash of the object.
    +        # For an example of a valid TSV file, see
    +        # [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
    +        # When transferring data based on a URL list, keep the following in mind:
    +        # * When an object located at `http(s)://hostname:port/` is
    +        # transferred
    +        # to a data sink, the name of the object at the data sink is
    +        # `/`.
    +        # * If the specified size of an object does not match the actual size of the
    +        # object fetched, the object will not be transferred.
    +        # * If the specified MD5 does not match the MD5 computed from the transferred
    +        # bytes, the object transfer will fail. For more information, see
    +        # [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
    +        # * Ensure that each URL you specify is publicly accessible. For
    +        # example, in Google Cloud Storage you can
    +        # [share an object publicly]
    +        # (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
    +        # a link to it.
    +        # * Storage Transfer Service obeys `robots.txt` rules and requires the source
    +        # HTTP server to support `Range` requests and to return a `Content-Length`
    +        # header in each response.
    +        # * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
    +        # to transfer.
    +        # Corresponds to the JSON property `httpDataSource`
    +        # @return [Google::Apis::StoragetransferV1::HttpData]
    +        attr_accessor :http_data_source
    +      
    +        # Conditions that determine which objects will be transferred.
    +        # Corresponds to the JSON property `objectConditions`
    +        # @return [Google::Apis::StoragetransferV1::ObjectConditions]
    +        attr_accessor :object_conditions
    +      
    +        # In a GcsData, an object's name is the Google Cloud Storage object's name and
    +        # its `lastModificationTime` refers to the object's updated time, which changes
    +        # when the content or the metadata of the object is updated.
    +        # Corresponds to the JSON property `gcsDataSink`
    +        # @return [Google::Apis::StoragetransferV1::GcsData]
    +        attr_accessor :gcs_data_sink
    +      
    +        # In a GcsData, an object's name is the Google Cloud Storage object's name and
    +        # its `lastModificationTime` refers to the object's updated time, which changes
    +        # when the content or the metadata of the object is updated.
    +        # Corresponds to the JSON property `gcsDataSource`
    +        # @return [Google::Apis::StoragetransferV1::GcsData]
    +        attr_accessor :gcs_data_source
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @transfer_options = args[:transfer_options] if args.key?(:transfer_options)
    +          @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)
    +          @object_conditions = args[:object_conditions] if args.key?(:object_conditions)
    +          @gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
    +          @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
    +        end
    +      end
    +      
    +      # Request passed to ResumeTransferOperation.
    +      class ResumeTransferOperationRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
    +      # 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` that 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.
    +      # - 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
    +      
    +        # A list of messages that carry the error details.  There is a common set of
    +        # message types for APIs to use.
    +        # Corresponds to the JSON property `details`
    +        # @return [Array>]
    +        attr_accessor :details
    +      
    +        # 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
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @details = args[:details] if args.key?(:details)
    +          @code = args[:code] if args.key?(:code)
    +          @message = args[:message] if args.key?(:message)
    +        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
    +      
    +      # Google service account
    +      class GoogleServiceAccount
    +        include Google::Apis::Core::Hashable
    +      
    +        # Required.
    +        # Corresponds to the JSON property `accountEmail`
    +        # @return [String]
    +        attr_accessor :account_email
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @account_email = args[:account_email] if args.key?(:account_email)
    +        end
    +      end
    +      
    +      # Represents a time of day. The date and time zone are either not significant
    +      # or are specified elsewhere. An API may choose to allow leap seconds. Related
    +      # types are google.type.Date and `google.protobuf.Timestamp`.
    +      class TimeOfDay
    +        include Google::Apis::Core::Hashable
    +      
    +        # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
    +        # to allow the value "24:00:00" for scenarios like business closing time.
    +        # Corresponds to the JSON property `hours`
    +        # @return [Fixnum]
    +        attr_accessor :hours
    +      
    +        # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    +        # Corresponds to the JSON property `nanos`
    +        # @return [Fixnum]
    +        attr_accessor :nanos
    +      
    +        # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
    +        # allow the value 60 if it allows leap-seconds.
    +        # Corresponds to the JSON property `seconds`
    +        # @return [Fixnum]
    +        attr_accessor :seconds
    +      
    +        # Minutes of hour of day. Must be from 0 to 59.
    +        # Corresponds to the JSON property `minutes`
    +        # @return [Fixnum]
    +        attr_accessor :minutes
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @hours = args[:hours] if args.key?(:hours)
    +          @nanos = args[:nanos] if args.key?(:nanos)
    +          @seconds = args[:seconds] if args.key?(:seconds)
    +          @minutes = args[:minutes] if args.key?(:minutes)
    +        end
    +      end
    +      
    +      # An entry describing an error that has occurred.
    +      class ErrorLogEntry
    +        include Google::Apis::Core::Hashable
    +      
    +        # A list of messages that carry the error details.
    +        # Corresponds to the JSON property `errorDetails`
    +        # @return [Array]
    +        attr_accessor :error_details
    +      
    +        # A URL that refers to the target (a data source, a data sink,
    +        # or an object) with which the error is associated.
    +        # Required.
    +        # Corresponds to the JSON property `url`
    +        # @return [String]
    +        attr_accessor :url
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @error_details = args[:error_details] if args.key?(:error_details)
    +          @url = args[:url] if args.key?(:url)
    +        end
    +      end
    +      
    +      # This resource represents the configuration of a transfer job that runs
    +      # periodically.
    +      class TransferJob
    +        include Google::Apis::Core::Hashable
    +      
    +        # A description provided by the user for the job. Its max length is 1024
    +        # bytes when Unicode-encoded.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # This field cannot be changed by user requests.
    +        # Corresponds to the JSON property `creationTime`
    +        # @return [String]
    +        attr_accessor :creation_time
    +      
    +        # Configuration for running a transfer.
    +        # Corresponds to the JSON property `transferSpec`
    +        # @return [Google::Apis::StoragetransferV1::TransferSpec]
    +        attr_accessor :transfer_spec
    +      
    +        # Status of the job. This value MUST be specified for
    +        # `CreateTransferJobRequests`.
    +        # NOTE: The effect of the new job status takes place during a subsequent job
    +        # run. For example, if you change the job status from `ENABLED` to
    +        # `DISABLED`, and an operation spawned by the transfer is running, the status
    +        # change would not affect the current operation.
    +        # Corresponds to the JSON property `status`
    +        # @return [String]
    +        attr_accessor :status
    +      
    +        # Transfers can be scheduled to recur or to run just once.
    +        # Corresponds to the JSON property `schedule`
    +        # @return [Google::Apis::StoragetransferV1::Schedule]
    +        attr_accessor :schedule
    +      
    +        # This field cannot be changed by user requests.
    +        # Corresponds to the JSON property `deletionTime`
    +        # @return [String]
    +        attr_accessor :deletion_time
    +      
    +        # A globally unique name assigned by Storage Transfer Service when the
    +        # job is created. This field should be left empty in requests to create a new
    +        # transfer job; otherwise, the requests result in an `INVALID_ARGUMENT`
    +        # error.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # The ID of the Google Cloud Platform Console project that owns the job.
    +        # Required.
    +        # Corresponds to the JSON property `projectId`
    +        # @return [String]
    +        attr_accessor :project_id
    +      
    +        # This field cannot be changed by user requests.
    +        # Corresponds to the JSON property `lastModificationTime`
    +        # @return [String]
    +        attr_accessor :last_modification_time
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @description = args[:description] if args.key?(:description)
    +          @creation_time = args[:creation_time] if args.key?(:creation_time)
    +          @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
    +          @status = args[:status] if args.key?(:status)
    +          @schedule = args[:schedule] if args.key?(:schedule)
    +          @deletion_time = args[:deletion_time] if args.key?(:deletion_time)
    +          @name = args[:name] if args.key?(:name)
    +          @project_id = args[:project_id] if args.key?(:project_id)
    +          @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
    +        end
    +      end
    +      
    +      # Transfers can be scheduled to recur or to run just once.
    +      class Schedule
    +        include Google::Apis::Core::Hashable
    +      
    +        # Represents a whole calendar date, e.g. date of birth. The time of day and
    +        # time zone are either specified elsewhere or are not significant. The date
    +        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    +        # represent a year and month where the day is not significant, e.g. credit card
    +        # expiration date. The year may be 0 to represent a month and day independent
    +        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    +        # and `google.protobuf.Timestamp`.
    +        # Corresponds to the JSON property `scheduleEndDate`
    +        # @return [Google::Apis::StoragetransferV1::Date]
    +        attr_accessor :schedule_end_date
    +      
    +        # Represents a time of day. The date and time zone are either not significant
    +        # or are specified elsewhere. An API may choose to allow leap seconds. Related
    +        # types are google.type.Date and `google.protobuf.Timestamp`.
    +        # Corresponds to the JSON property `startTimeOfDay`
    +        # @return [Google::Apis::StoragetransferV1::TimeOfDay]
    +        attr_accessor :start_time_of_day
    +      
    +        # Represents a whole calendar date, e.g. date of birth. The time of day and
    +        # time zone are either specified elsewhere or are not significant. The date
    +        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    +        # represent a year and month where the day is not significant, e.g. credit card
    +        # expiration date. The year may be 0 to represent a month and day independent
    +        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    +        # and `google.protobuf.Timestamp`.
    +        # Corresponds to the JSON property `scheduleStartDate`
    +        # @return [Google::Apis::StoragetransferV1::Date]
    +        attr_accessor :schedule_start_date
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @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)
    +          @schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date)
    +        end
    +      end
    +      
    +      # Represents a whole calendar date, e.g. date of birth. The time of day and
    +      # time zone are either specified elsewhere or are not significant. The date
    +      # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
    +      # represent a year and month where the day is not significant, e.g. credit card
    +      # expiration date. The year may be 0 to represent a month and day independent
    +      # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
    +      # and `google.protobuf.Timestamp`.
    +      class Date
    +        include Google::Apis::Core::Hashable
    +      
    +        # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    +        # if specifying a year/month where the day is not significant.
    +        # Corresponds to the JSON property `day`
    +        # @return [Fixnum]
    +        attr_accessor :day
    +      
    +        # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    +        # a year.
    +        # Corresponds to the JSON property `year`
    +        # @return [Fixnum]
    +        attr_accessor :year
    +      
    +        # Month of year. Must be from 1 to 12.
    +        # Corresponds to the JSON property `month`
    +        # @return [Fixnum]
    +        attr_accessor :month
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @day = args[:day] if args.key?(:day)
    +          @year = args[:year] if args.key?(:year)
    +          @month = args[:month] if args.key?(:month)
    +        end
    +      end
    +      
    +      # A description of the execution of a transfer.
    +      class TransferOperation
    +        include Google::Apis::Core::Hashable
    +      
    +        # End time of this transfer execution.
    +        # Corresponds to the JSON property `endTime`
    +        # @return [String]
    +        attr_accessor :end_time
    +      
    +        # Start time of this transfer execution.
    +        # Corresponds to the JSON property `startTime`
    +        # @return [String]
    +        attr_accessor :start_time
    +      
    +        # The name of the transfer job that triggers this transfer operation.
    +        # Corresponds to the JSON property `transferJobName`
    +        # @return [String]
    +        attr_accessor :transfer_job_name
    +      
    +        # Configuration for running a transfer.
    +        # Corresponds to the JSON property `transferSpec`
    +        # @return [Google::Apis::StoragetransferV1::TransferSpec]
    +        attr_accessor :transfer_spec
    +      
    +        # A collection of counters that report the progress of a transfer operation.
    +        # Corresponds to the JSON property `counters`
    +        # @return [Google::Apis::StoragetransferV1::TransferCounters]
    +        attr_accessor :counters
    +      
    +        # Status of the transfer operation.
    +        # Corresponds to the JSON property `status`
    +        # @return [String]
    +        attr_accessor :status
    +      
    +        # Summarizes errors encountered with sample error log entries.
    +        # Corresponds to the JSON property `errorBreakdowns`
    +        # @return [Array]
    +        attr_accessor :error_breakdowns
    +      
    +        # A globally unique ID assigned by the system.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # The ID of the Google Cloud Platform Console project that owns the operation.
    +        # Required.
    +        # 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)
    +          @end_time = args[:end_time] if args.key?(:end_time)
    +          @start_time = args[:start_time] if args.key?(:start_time)
    +          @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name)
    +          @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
    +          @counters = args[:counters] if args.key?(:counters)
    +          @status = args[:status] if args.key?(:status)
    +          @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
    +          @name = args[:name] if args.key?(:name)
    +          @project_id = args[:project_id] if args.key?(:project_id)
    +        end
    +      end
    +      
    +      # An AwsS3Data can be a data source, but not a data sink.
    +      # In an AwsS3Data, an object's name is the S3 object's key name.
    +      class AwsS3Data
    +        include Google::Apis::Core::Hashable
    +      
    +        # AWS access key (see
    +        # [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
    +        # security-credentials.html)).
    +        # Corresponds to the JSON property `awsAccessKey`
    +        # @return [Google::Apis::StoragetransferV1::AwsAccessKey]
    +        attr_accessor :aws_access_key
    +      
    +        # S3 Bucket name (see
    +        # [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-
    +        # bucket-get-location-example.html)).
    +        # Required.
    +        # Corresponds to the JSON property `bucketName`
    +        # @return [String]
    +        attr_accessor :bucket_name
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @aws_access_key = args[:aws_access_key] if args.key?(:aws_access_key)
    +          @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
    +        end
    +      end
    +      
    +      # A generic empty message that you can re-use to avoid defining duplicated
    +      # empty messages in your APIs. A typical example is to use it as the request
    +      # or the response type of an API method. For instance:
    +      # service Foo `
    +      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    +      # `
    +      # The JSON representation for `Empty` is empty JSON object ````.
    +      class Empty
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
    +      # AWS access key (see
    +      # [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
    +      # security-credentials.html)).
    +      class AwsAccessKey
    +        include Google::Apis::Core::Hashable
    +      
    +        # AWS secret access key. This field is not returned in RPC responses.
    +        # Required.
    +        # Corresponds to the JSON property `secretAccessKey`
    +        # @return [String]
    +        attr_accessor :secret_access_key
    +      
    +        # AWS access key ID.
    +        # Required.
    +        # Corresponds to the JSON property `accessKeyId`
    +        # @return [String]
    +        attr_accessor :access_key_id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key)
    +          @access_key_id = args[:access_key_id] if args.key?(:access_key_id)
    +        end
    +      end
    +      
    +      # Request passed to PauseTransferOperation.
    +      class PauseTransferOperationRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/storagetransfer_v1/representations.rb b/generated/google/apis/storagetransfer_v1/representations.rb
    index 8bf931a5d..107e8b0a3 100644
    --- a/generated/google/apis/storagetransfer_v1/representations.rb
    +++ b/generated/google/apis/storagetransfer_v1/representations.rb
    @@ -22,120 +22,6 @@ module Google
       module Apis
         module StoragetransferV1
           
    -      class UpdateTransferJobRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ObjectConditions
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Operation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TransferOptions
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TransferSpec
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ResumeTransferOperationRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Status
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListOperationsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class GoogleServiceAccount
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TimeOfDay
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ErrorLogEntry
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TransferJob
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Schedule
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Date
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class TransferOperation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AwsS3Data
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class AwsAccessKey
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Empty
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class PauseTransferOperationRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class TransferCounters
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -167,217 +53,138 @@ module Google
           end
           
           class UpdateTransferJobRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :transfer_job, as: 'transferJob', class: Google::Apis::StoragetransferV1::TransferJob, decorator: Google::Apis::StoragetransferV1::TransferJob::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :project_id, as: 'projectId'
    -          property :update_transfer_job_field_mask, as: 'updateTransferJobFieldMask'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ObjectConditions
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :min_time_elapsed_since_last_modification, as: 'minTimeElapsedSinceLastModification'
    -          collection :exclude_prefixes, as: 'excludePrefixes'
    -          property :max_time_elapsed_since_last_modification, as: 'maxTimeElapsedSinceLastModification'
    -          collection :include_prefixes, as: 'includePrefixes'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Operation
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :done, as: 'done'
    -          hash :response, as: 'response'
    -          property :name, as: 'name'
    -          property :error, as: 'error', class: Google::Apis::StoragetransferV1::Status, decorator: Google::Apis::StoragetransferV1::Status::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          hash :metadata, as: 'metadata'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TransferOptions
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :delete_objects_unique_in_sink, as: 'deleteObjectsUniqueInSink'
    -          property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink'
    -          property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TransferSpec
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
    -      
    -          property :aws_s3_data_source, as: 'awsS3DataSource', class: Google::Apis::StoragetransferV1::AwsS3Data, decorator: Google::Apis::StoragetransferV1::AwsS3Data::Representation
    -      
    -          property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation
    -      
    -          property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
    -      
    -          property :gcs_data_sink, as: 'gcsDataSink', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ResumeTransferOperationRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Status
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :message, as: 'message'
    -          collection :details, as: 'details'
    -          property :code, as: 'code'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListOperationsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :next_page_token, as: 'nextPageToken'
    -          collection :operations, as: 'operations', class: Google::Apis::StoragetransferV1::Operation, decorator: Google::Apis::StoragetransferV1::Operation::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class GoogleServiceAccount
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :account_email, as: 'accountEmail'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TimeOfDay
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :seconds, as: 'seconds'
    -          property :minutes, as: 'minutes'
    -          property :hours, as: 'hours'
    -          property :nanos, as: 'nanos'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ErrorLogEntry
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :url, as: 'url'
    -          collection :error_details, as: 'errorDetails'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TransferJob
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :creation_time, as: 'creationTime'
    -          property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :status, as: 'status'
    -          property :schedule, as: 'schedule', class: Google::Apis::StoragetransferV1::Schedule, decorator: Google::Apis::StoragetransferV1::Schedule::Representation
    -      
    -          property :name, as: 'name'
    -          property :deletion_time, as: 'deletionTime'
    -          property :last_modification_time, as: 'lastModificationTime'
    -          property :project_id, as: 'projectId'
    -          property :description, as: 'description'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Schedule
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :schedule_end_date, as: 'scheduleEndDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :start_time_of_day, as: 'startTimeOfDay', class: Google::Apis::StoragetransferV1::TimeOfDay, decorator: Google::Apis::StoragetransferV1::TimeOfDay::Representation
    -      
    -          property :schedule_start_date, as: 'scheduleStartDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation
    -      
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Date
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :year, as: 'year'
    -          property :day, as: 'day'
    -          property :month, as: 'month'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TransferOperation
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :start_time, as: 'startTime'
    -          property :transfer_job_name, as: 'transferJobName'
    -          property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :counters, as: 'counters', class: Google::Apis::StoragetransferV1::TransferCounters, decorator: Google::Apis::StoragetransferV1::TransferCounters::Representation
    -      
    -          property :status, as: 'status'
    -          collection :error_breakdowns, as: 'errorBreakdowns', class: Google::Apis::StoragetransferV1::ErrorSummary, decorator: Google::Apis::StoragetransferV1::ErrorSummary::Representation
    -      
    -          property :name, as: 'name'
    -          property :project_id, as: 'projectId'
    -          property :end_time, as: 'endTime'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class AwsS3Data
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :aws_access_key, as: 'awsAccessKey', class: Google::Apis::StoragetransferV1::AwsAccessKey, decorator: Google::Apis::StoragetransferV1::AwsAccessKey::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :bucket_name, as: 'bucketName'
    -        end
    -      end
    -      
    -      class AwsAccessKey
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :secret_access_key, as: 'secretAccessKey'
    -          property :access_key_id, as: 'accessKeyId'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Empty
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class AwsAccessKey
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class PauseTransferOperationRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class TransferCounters
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :bytes_deleted_from_source, :numeric_string => true, as: 'bytesDeletedFromSource'
    +          property :objects_found_from_source, :numeric_string => true, as: 'objectsFoundFromSource'
    +          property :objects_failed_to_delete_from_sink, :numeric_string => true, as: 'objectsFailedToDeleteFromSink'
    +          property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
    +          property :objects_found_only_from_sink, :numeric_string => true, as: 'objectsFoundOnlyFromSink'
    +          property :bytes_from_source_skipped_by_sync, :numeric_string => true, as: 'bytesFromSourceSkippedBySync'
               property :bytes_deleted_from_sink, :numeric_string => true, as: 'bytesDeletedFromSink'
               property :bytes_failed_to_delete_from_sink, :numeric_string => true, as: 'bytesFailedToDeleteFromSink'
               property :bytes_from_source_failed, :numeric_string => true, as: 'bytesFromSourceFailed'
    -          property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
               property :objects_from_source_failed, :numeric_string => true, as: 'objectsFromSourceFailed'
    +          property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
               property :bytes_found_only_from_sink, :numeric_string => true, as: 'bytesFoundOnlyFromSink'
               property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
               property :bytes_copied_to_sink, :numeric_string => true, as: 'bytesCopiedToSink'
               property :bytes_found_from_source, :numeric_string => true, as: 'bytesFoundFromSource'
               property :objects_from_source_skipped_by_sync, :numeric_string => true, as: 'objectsFromSourceSkippedBySync'
    -          property :bytes_deleted_from_source, :numeric_string => true, as: 'bytesDeletedFromSource'
    -          property :objects_found_from_source, :numeric_string => true, as: 'objectsFoundFromSource'
    -          property :objects_failed_to_delete_from_sink, :numeric_string => true, as: 'objectsFailedToDeleteFromSink'
    -          property :objects_found_only_from_sink, :numeric_string => true, as: 'objectsFoundOnlyFromSink'
    -          property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
    -          property :bytes_from_source_skipped_by_sync, :numeric_string => true, as: 'bytesFromSourceSkippedBySync'
             end
           end
           
    @@ -413,6 +220,199 @@ module Google
           
             end
           end
    +      
    +      class UpdateTransferJobRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :project_id, as: 'projectId'
    +          property :update_transfer_job_field_mask, as: 'updateTransferJobFieldMask'
    +          property :transfer_job, as: 'transferJob', class: Google::Apis::StoragetransferV1::TransferJob, decorator: Google::Apis::StoragetransferV1::TransferJob::Representation
    +      
    +        end
    +      end
    +      
    +      class ObjectConditions
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :exclude_prefixes, as: 'excludePrefixes'
    +          property :min_time_elapsed_since_last_modification, as: 'minTimeElapsedSinceLastModification'
    +          property :max_time_elapsed_since_last_modification, as: 'maxTimeElapsedSinceLastModification'
    +          collection :include_prefixes, as: 'includePrefixes'
    +        end
    +      end
    +      
    +      class Operation
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :done, as: 'done'
    +          hash :response, as: 'response'
    +          property :name, as: 'name'
    +          property :error, as: 'error', class: Google::Apis::StoragetransferV1::Status, decorator: Google::Apis::StoragetransferV1::Status::Representation
    +      
    +          hash :metadata, as: 'metadata'
    +        end
    +      end
    +      
    +      class TransferOptions
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :delete_objects_unique_in_sink, as: 'deleteObjectsUniqueInSink'
    +          property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink'
    +          property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer'
    +        end
    +      end
    +      
    +      class TransferSpec
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
    +      
    +          property :aws_s3_data_source, as: 'awsS3DataSource', class: Google::Apis::StoragetransferV1::AwsS3Data, decorator: Google::Apis::StoragetransferV1::AwsS3Data::Representation
    +      
    +          property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation
    +      
    +          property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
    +      
    +          property :gcs_data_sink, as: 'gcsDataSink', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
    +      
    +          property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
    +      
    +        end
    +      end
    +      
    +      class ResumeTransferOperationRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
    +      
    +      class Status
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :details, as: 'details'
    +          property :code, as: 'code'
    +          property :message, as: 'message'
    +        end
    +      end
    +      
    +      class ListOperationsResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :operations, as: 'operations', class: Google::Apis::StoragetransferV1::Operation, decorator: Google::Apis::StoragetransferV1::Operation::Representation
    +      
    +        end
    +      end
    +      
    +      class GoogleServiceAccount
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :account_email, as: 'accountEmail'
    +        end
    +      end
    +      
    +      class TimeOfDay
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :hours, as: 'hours'
    +          property :nanos, as: 'nanos'
    +          property :seconds, as: 'seconds'
    +          property :minutes, as: 'minutes'
    +        end
    +      end
    +      
    +      class ErrorLogEntry
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :error_details, as: 'errorDetails'
    +          property :url, as: 'url'
    +        end
    +      end
    +      
    +      class TransferJob
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :description, as: 'description'
    +          property :creation_time, as: 'creationTime'
    +          property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation
    +      
    +          property :status, as: 'status'
    +          property :schedule, as: 'schedule', class: Google::Apis::StoragetransferV1::Schedule, decorator: Google::Apis::StoragetransferV1::Schedule::Representation
    +      
    +          property :deletion_time, as: 'deletionTime'
    +          property :name, as: 'name'
    +          property :project_id, as: 'projectId'
    +          property :last_modification_time, as: 'lastModificationTime'
    +        end
    +      end
    +      
    +      class Schedule
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :schedule_end_date, as: 'scheduleEndDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation
    +      
    +          property :start_time_of_day, as: 'startTimeOfDay', class: Google::Apis::StoragetransferV1::TimeOfDay, decorator: Google::Apis::StoragetransferV1::TimeOfDay::Representation
    +      
    +          property :schedule_start_date, as: 'scheduleStartDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation
    +      
    +        end
    +      end
    +      
    +      class Date
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :day, as: 'day'
    +          property :year, as: 'year'
    +          property :month, as: 'month'
    +        end
    +      end
    +      
    +      class TransferOperation
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :end_time, as: 'endTime'
    +          property :start_time, as: 'startTime'
    +          property :transfer_job_name, as: 'transferJobName'
    +          property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation
    +      
    +          property :counters, as: 'counters', class: Google::Apis::StoragetransferV1::TransferCounters, decorator: Google::Apis::StoragetransferV1::TransferCounters::Representation
    +      
    +          property :status, as: 'status'
    +          collection :error_breakdowns, as: 'errorBreakdowns', class: Google::Apis::StoragetransferV1::ErrorSummary, decorator: Google::Apis::StoragetransferV1::ErrorSummary::Representation
    +      
    +          property :name, as: 'name'
    +          property :project_id, as: 'projectId'
    +        end
    +      end
    +      
    +      class AwsS3Data
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :aws_access_key, as: 'awsAccessKey', class: Google::Apis::StoragetransferV1::AwsAccessKey, decorator: Google::Apis::StoragetransferV1::AwsAccessKey::Representation
    +      
    +          property :bucket_name, as: 'bucketName'
    +        end
    +      end
    +      
    +      class Empty
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
    +      
    +      class AwsAccessKey
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :secret_access_key, as: 'secretAccessKey'
    +          property :access_key_id, as: 'accessKeyId'
    +        end
    +      end
    +      
    +      class PauseTransferOperationRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb
    index bf4439965..c8bbeff33 100644
    --- a/generated/google/apis/storagetransfer_v1/service.rb
    +++ b/generated/google/apis/storagetransfer_v1/service.rb
    @@ -60,11 +60,11 @@ module Google
             #   The ID of the Google Cloud Platform Console project that the Google service
             #   account is associated with.
             #   Required.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -77,168 +77,25 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_google_service_account(project_id, quota_user: nil, fields: nil, options: nil, &block)
    +        def get_google_service_account(project_id, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/googleServiceAccounts/{projectId}', options)
               command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation
               command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount
               command.params['projectId'] = project_id unless project_id.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    -        # Creates a transfer job that runs periodically.
    -        # @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
    -        # @param [String] quota_user
    -        #   Available 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::StoragetransferV1::TransferJob] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::StoragetransferV1::TransferJob]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def create_transfer_job(transfer_job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/transferJobs', options)
    -          command.request_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    -          command.request_object = transfer_job_object
    -          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Updates a transfer job. Updating a job's transfer spec does not affect
    -        # transfer operations that are running already. Updating the scheduling
    -        # of a job is not allowed.
    -        # @param [String] job_name
    -        #   The name of job to update.
    -        #   Required.
    -        # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object
    -        # @param [String] quota_user
    -        #   Available 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::StoragetransferV1::TransferJob] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::StoragetransferV1::TransferJob]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def patch_transfer_job(job_name, update_transfer_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:patch, 'v1/{+jobName}', options)
    -          command.request_representation = Google::Apis::StoragetransferV1::UpdateTransferJobRequest::Representation
    -          command.request_object = update_transfer_job_request_object
    -          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    -          command.params['jobName'] = job_name unless job_name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Gets a transfer job.
    -        # @param [String] job_name
    -        #   The job to get.
    -        #   Required.
    -        # @param [String] project_id
    -        #   The ID of the Google Cloud Platform Console project that owns the job.
    -        #   Required.
    -        # @param [String] quota_user
    -        #   Available 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::StoragetransferV1::TransferJob] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::StoragetransferV1::TransferJob]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_transfer_job(job_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+jobName}', options)
    -          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    -          command.params['jobName'] = job_name unless job_name.nil?
    -          command.query['projectId'] = project_id unless project_id.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Lists transfer jobs.
    -        # @param [String] filter
    -        #   A list of query parameters specified as JSON text in the form of
    -        #   `"project_id":"my_project_id",
    -        #   "job_names":["jobid1","jobid2",...],
    -        #   "job_statuses":["status1","status2",...]`.
    -        #   Since `job_names` and `job_statuses` support multiple values, their values
    -        #   must be specified with array notation. `project_id` is required. `job_names`
    -        #   and `job_statuses` are optional.  The valid values for `job_statuses` are
    -        #   case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`.
    -        # @param [String] page_token
    -        #   The list page token.
    -        # @param [Fixnum] page_size
    -        #   The list page size. The max allowed value is 256.
    -        # @param [String] quota_user
    -        #   Available 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::StoragetransferV1::ListTransferJobsResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::StoragetransferV1::ListTransferJobsResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_transfer_jobs(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/transferJobs', options)
    -          command.response_representation = Google::Apis::StoragetransferV1::ListTransferJobsResponse::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::ListTransferJobsResponse
    -          command.query['filter'] = filter unless filter.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['pageSize'] = page_size unless page_size.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # This method is not supported and the server returns `UNIMPLEMENTED`.
    +        # Cancels a transfer. Use the get method to check whether the cancellation
    +        # succeeded or whether the operation completed despite cancellation.
             # @param [String] name
    -        #   The name of the operation resource to be deleted.
    +        #   The name of the operation resource to be cancelled.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -251,13 +108,109 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def delete_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    +        def cancel_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+name}:cancel', options)
    +          command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::Empty
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Gets the latest state of a long-running operation.  Clients can use this
    +        # method to poll the operation result at intervals as recommended by the API
    +        # service.
    +        # @param [String] name
    +        #   The name of the operation resource.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::StoragetransferV1::Operation]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def get_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+name}', options)
    +          command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::Operation
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Pauses a transfer operation.
    +        # @param [String] name
    +        #   The name of the transfer operation.
    +        #   Required.
    +        # @param [Google::Apis::StoragetransferV1::PauseTransferOperationRequest] pause_transfer_operation_request_object
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::StoragetransferV1::Empty]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def pause_transfer_operation(name, pause_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/{+name}:pause', options)
    +          command.request_representation = Google::Apis::StoragetransferV1::PauseTransferOperationRequest::Representation
    +          command.request_object = pause_transfer_operation_request_object
    +          command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::Empty
    +          command.params['name'] = name unless name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # This method is not supported and the server returns `UNIMPLEMENTED`.
    +        # @param [String] name
    +        #   The name of the operation resource to be deleted.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::StoragetransferV1::Empty]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def delete_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:delete, 'v1/{+name}', options)
               command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
               command.response_class = Google::Apis::StoragetransferV1::Empty
               command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -272,10 +225,6 @@ module Google
             # is the parent resource, without the operations collection id.
             # @param [String] name
             #   The value `transferOperations`.
    -        # @param [String] page_token
    -        #   The list page token.
    -        # @param [Fixnum] page_size
    -        #   The list page size. The max allowed value is 256.
             # @param [String] filter
             #   A list of query parameters specified as JSON text in the form of `\"project_id\
             #   " : \"my_project_id\", \"job_names\" : [\"jobid1\", \"jobid2\",...], \"
    @@ -283,11 +232,15 @@ module Google
             #   status1\", \"status2\",...]`. Since `job_names`, `operation_names`, and `
             #   transfer_statuses` support multiple values, they must be specified with array
             #   notation. `job_names`, `operation_names`, and `transfer_statuses` are optional.
    +        # @param [String] page_token
    +        #   The list page token.
    +        # @param [Fixnum] page_size
    +        #   The list page size. The max allowed value is 256.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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
             #
    @@ -300,16 +253,16 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_transfer_operations(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def list_transfer_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:get, 'v1/{+name}', options)
               command.response_representation = Google::Apis::StoragetransferV1::ListOperationsResponse::Representation
               command.response_class = Google::Apis::StoragetransferV1::ListOperationsResponse
               command.params['name'] = name unless name.nil?
    +          command.query['filter'] = filter unless filter.nil?
               command.query['pageToken'] = page_token unless page_token.nil?
               command.query['pageSize'] = page_size unless page_size.nil?
    -          command.query['filter'] = filter unless filter.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    @@ -318,11 +271,11 @@ module Google
             #   The name of the transfer operation.
             #   Required.
             # @param [Google::Apis::StoragetransferV1::ResumeTransferOperationRequest] resume_transfer_operation_request_object
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [String] fields
    -        #   Selector specifying which fields to include in a partial response.
             # @param [Google::Apis::RequestOptions] options
             #   Request-specific options
             #
    @@ -335,112 +288,159 @@ module Google
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +        def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
               command =  make_simple_command(:post, 'v1/{+name}:resume', options)
               command.request_representation = Google::Apis::StoragetransferV1::ResumeTransferOperationRequest::Representation
               command.request_object = resume_transfer_operation_request_object
               command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
               command.response_class = Google::Apis::StoragetransferV1::Empty
               command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    -        # Cancels a transfer. Use the get method to check whether the cancellation
    -        # succeeded or whether the operation completed despite cancellation.
    -        # @param [String] name
    -        #   The name of the operation resource to be cancelled.
    +        # Lists transfer jobs.
    +        # @param [String] page_token
    +        #   The list page token.
    +        # @param [Fixnum] page_size
    +        #   The list page size. The max allowed value is 256.
    +        # @param [String] filter
    +        #   A list of query parameters specified as JSON text in the form of
    +        #   `"project_id":"my_project_id",
    +        #   "job_names":["jobid1","jobid2",...],
    +        #   "job_statuses":["status1","status2",...]`.
    +        #   Since `job_names` and `job_statuses` support multiple values, their values
    +        #   must be specified with array notation. `project_id` is required. `job_names`
    +        #   and `job_statuses` are optional.  The valid values for `job_statuses` are
    +        #   case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available 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::StoragetransferV1::Empty] parsed result object
    +        # @yieldparam result [Google::Apis::StoragetransferV1::ListTransferJobsResponse] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::StoragetransferV1::Empty]
    +        # @return [Google::Apis::StoragetransferV1::ListTransferJobsResponse]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def cancel_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+name}:cancel', options)
    -          command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::Empty
    -          command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +        def list_transfer_jobs(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/transferJobs', options)
    +          command.response_representation = Google::Apis::StoragetransferV1::ListTransferJobsResponse::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::ListTransferJobsResponse
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
    +          command.query['filter'] = filter unless filter.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
             
    -        # 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::StoragetransferV1::Operation] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::StoragetransferV1::Operation]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/{+name}', options)
    -          command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::Operation
    -          command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Pauses a transfer operation.
    -        # @param [String] name
    -        #   The name of the transfer operation.
    +        # Gets a transfer job.
    +        # @param [String] job_name
    +        #   The job to get.
             #   Required.
    -        # @param [Google::Apis::StoragetransferV1::PauseTransferOperationRequest] pause_transfer_operation_request_object
    +        # @param [String] project_id
    +        #   The ID of the Google Cloud Platform Console project that owns the job.
    +        #   Required.
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    -        # @param [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::StoragetransferV1::Empty] parsed result object
    +        # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::StoragetransferV1::Empty]
    +        # @return [Google::Apis::StoragetransferV1::TransferJob]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def pause_transfer_operation(name, pause_transfer_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v1/{+name}:pause', options)
    -          command.request_representation = Google::Apis::StoragetransferV1::PauseTransferOperationRequest::Representation
    -          command.request_object = pause_transfer_operation_request_object
    -          command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
    -          command.response_class = Google::Apis::StoragetransferV1::Empty
    -          command.params['name'] = name unless name.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +        def get_transfer_job(job_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/{+jobName}', options)
    +          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    +          command.params['jobName'] = job_name unless job_name.nil?
    +          command.query['projectId'] = project_id unless project_id.nil?
               command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Updates a transfer job. Updating a job's transfer spec does not affect
    +        # transfer operations that are running already. Updating the scheduling
    +        # of a job is not allowed.
    +        # @param [String] job_name
    +        #   The name of job to update.
    +        #   Required.
    +        # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::StoragetransferV1::TransferJob]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def patch_transfer_job(job_name, update_transfer_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:patch, 'v1/{+jobName}', options)
    +          command.request_representation = Google::Apis::StoragetransferV1::UpdateTransferJobRequest::Representation
    +          command.request_object = update_transfer_job_request_object
    +          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    +          command.params['jobName'] = job_name unless job_name.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Creates a transfer job that runs periodically.
    +        # @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
    +        # @param [String] fields
    +        #   Selector specifying which fields to include in a partial response.
    +        # @param [String] quota_user
    +        #   Available to use for quota purposes for server-side applications. Can be any
    +        #   arbitrary string assigned to a user, but should not exceed 40 characters.
    +        # @param [Google::Apis::RequestOptions] options
    +        #   Request-specific options
    +        #
    +        # @yield [result, err] Result & error if block supplied
    +        # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::StoragetransferV1::TransferJob]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def create_transfer_job(transfer_job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v1/transferJobs', options)
    +          command.request_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    +          command.request_object = transfer_job_object
    +          command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
    +          command.response_class = Google::Apis::StoragetransferV1::TransferJob
    +          command.query['fields'] = fields unless fields.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
               execute_or_queue_command(command, &block)
             end
     
    diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb
    index 9731d3933..4abb3fd85 100644
    --- a/generated/google/apis/toolresults_v1beta3.rb
    +++ b/generated/google/apis/toolresults_v1beta3.rb
    @@ -25,7 +25,7 @@ module Google
         # @see https://firebase.google.com/docs/test-lab/
         module ToolresultsV1beta3
           VERSION = 'V1beta3'
    -      REVISION = '20170613'
    +      REVISION = '20170707'
     
           # 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/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb
    index ce14b41d6..ed83d3fa6 100644
    --- a/generated/google/apis/toolresults_v1beta3/classes.rb
    +++ b/generated/google/apis/toolresults_v1beta3/classes.rb
    @@ -91,6 +91,89 @@ module Google
             end
           end
           
    +      # 
    +      class AppStartTime
    +        include Google::Apis::Core::Hashable
    +      
    +        # A Duration represents a signed, fixed-length span of time represented as a
    +        # count of seconds and fractions of seconds at nanosecond resolution. It is
    +        # independent of any calendar and concepts like "day" or "month". It is related
    +        # to Timestamp in that the difference between two Timestamp values is a Duration
    +        # and it can be added or subtracted from a Timestamp. Range is approximately +-
    +        # 10,000 years.
    +        # # Examples
    +        # Example 1: Compute Duration from two Timestamps in pseudo code.
    +        # Timestamp start = ...; Timestamp end = ...; Duration duration = ...;
    +        # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos -
    +        # start.nanos;
    +        # if (duration.seconds  0) ` duration.seconds += 1; duration.nanos -= 1000000000;
    +        # ` else if (durations.seconds > 0 && duration.nanos < 0) ` duration.seconds -=
    +        # 1; duration.nanos += 1000000000; `
    +        # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
    +        # Timestamp start = ...; Duration duration = ...; Timestamp end = ...;
    +        # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos +
    +        # duration.nanos;
    +        # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; `
    +        # Example 3: Compute Duration from datetime.timedelta in Python.
    +        # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration.
    +        # FromTimedelta(td)
    +        # # JSON Mapping
    +        # In JSON format, the Duration type is encoded as a string rather than an object,
    +        # where the string ends in the suffix "s" (indicating seconds) and is preceded
    +        # by the number of seconds, with nanoseconds expressed as fractional seconds.
    +        # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as "
    +        # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3.
    +        # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON
    +        # format as "3.000001s".
    +        # Corresponds to the JSON property `fullyDrawnTime`
    +        # @return [Google::Apis::ToolresultsV1beta3::Duration]
    +        attr_accessor :fully_drawn_time
    +      
    +        # A Duration represents a signed, fixed-length span of time represented as a
    +        # count of seconds and fractions of seconds at nanosecond resolution. It is
    +        # independent of any calendar and concepts like "day" or "month". It is related
    +        # to Timestamp in that the difference between two Timestamp values is a Duration
    +        # and it can be added or subtracted from a Timestamp. Range is approximately +-
    +        # 10,000 years.
    +        # # Examples
    +        # Example 1: Compute Duration from two Timestamps in pseudo code.
    +        # Timestamp start = ...; Timestamp end = ...; Duration duration = ...;
    +        # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos -
    +        # start.nanos;
    +        # if (duration.seconds  0) ` duration.seconds += 1; duration.nanos -= 1000000000;
    +        # ` else if (durations.seconds > 0 && duration.nanos < 0) ` duration.seconds -=
    +        # 1; duration.nanos += 1000000000; `
    +        # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
    +        # Timestamp start = ...; Duration duration = ...; Timestamp end = ...;
    +        # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos +
    +        # duration.nanos;
    +        # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; `
    +        # Example 3: Compute Duration from datetime.timedelta in Python.
    +        # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration.
    +        # FromTimedelta(td)
    +        # # JSON Mapping
    +        # In JSON format, the Duration type is encoded as a string rather than an object,
    +        # where the string ends in the suffix "s" (indicating seconds) and is preceded
    +        # by the number of seconds, with nanoseconds expressed as fractional seconds.
    +        # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as "
    +        # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3.
    +        # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON
    +        # format as "3.000001s".
    +        # Corresponds to the JSON property `initialDisplayTime`
    +        # @return [Google::Apis::ToolresultsV1beta3::Duration]
    +        attr_accessor :initial_display_time
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @fully_drawn_time = args[:fully_drawn_time] if args.key?(:fully_drawn_time)
    +          @initial_display_time = args[:initial_display_time] if args.key?(:initial_display_time)
    +        end
    +      end
    +      
           # Encapsulates the metadata for basic sample series represented by a line chart
           class BasicPerfSampleSeries
             include Google::Apis::Core::Hashable
    @@ -909,6 +992,11 @@ module Google
           class PerfMetricsSummary
             include Google::Apis::Core::Hashable
           
    +        # 
    +        # Corresponds to the JSON property `appStartTime`
    +        # @return [Google::Apis::ToolresultsV1beta3::AppStartTime]
    +        attr_accessor :app_start_time
    +      
             # A tool results execution ID.
             # Corresponds to the JSON property `executionId`
             # @return [String]
    @@ -945,6 +1033,7 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    +          @app_start_time = args[:app_start_time] if args.key?(:app_start_time)
               @execution_id = args[:execution_id] if args.key?(:execution_id)
               @history_id = args[:history_id] if args.key?(:history_id)
               @perf_environment = args[:perf_environment] if args.key?(:perf_environment)
    @@ -1228,7 +1317,7 @@ module Google
             # @return [Fixnum]
             attr_accessor :code
           
    -        # A list of messages that carry the error details. There will be a common set of
    +        # A list of messages that carry the error details. There is a common set of
             # message types for APIs to use.
             # Corresponds to the JSON property `details`
             # @return [Array]
    diff --git a/generated/google/apis/toolresults_v1beta3/representations.rb b/generated/google/apis/toolresults_v1beta3/representations.rb
    index 0622a3a98..a1b1d4909 100644
    --- a/generated/google/apis/toolresults_v1beta3/representations.rb
    +++ b/generated/google/apis/toolresults_v1beta3/representations.rb
    @@ -28,6 +28,12 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    +      class AppStartTime
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class BasicPerfSampleSeries
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -294,6 +300,16 @@ module Google
             end
           end
           
    +      class AppStartTime
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :fully_drawn_time, as: 'fullyDrawnTime', class: Google::Apis::ToolresultsV1beta3::Duration, decorator: Google::Apis::ToolresultsV1beta3::Duration::Representation
    +      
    +          property :initial_display_time, as: 'initialDisplayTime', class: Google::Apis::ToolresultsV1beta3::Duration, decorator: Google::Apis::ToolresultsV1beta3::Duration::Representation
    +      
    +        end
    +      end
    +      
           class BasicPerfSampleSeries
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -488,6 +504,8 @@ module Google
           class PerfMetricsSummary
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :app_start_time, as: 'appStartTime', class: Google::Apis::ToolresultsV1beta3::AppStartTime, decorator: Google::Apis::ToolresultsV1beta3::AppStartTime::Representation
    +      
               property :execution_id, as: 'executionId'
               property :history_id, as: 'historyId'
               property :perf_environment, as: 'perfEnvironment', class: Google::Apis::ToolresultsV1beta3::PerfEnvironment, decorator: Google::Apis::ToolresultsV1beta3::PerfEnvironment::Representation
    diff --git a/generated/google/apis/translate_v2/classes.rb b/generated/google/apis/translate_v2/classes.rb
    index 1c943b11a..e801775d9 100644
    --- a/generated/google/apis/translate_v2/classes.rb
    +++ b/generated/google/apis/translate_v2/classes.rb
    @@ -22,10 +22,194 @@ module Google
       module Apis
         module TranslateV2
           
    +      # 
    +      class ListLanguagesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # List of source/target languages supported by the translation API. If target
    +        # parameter is unspecified, the list is sorted by the ASCII code point order of
    +        # the language code. If target parameter is specified, the list is sorted by the
    +        # collation order of the language name in the target language.
    +        # Corresponds to the JSON property `languages`
    +        # @return [Array]
    +        attr_accessor :languages
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @languages = args[:languages] if args.key?(:languages)
    +        end
    +      end
    +      
    +      # 
    +      class DetectionsResource
    +        include Google::Apis::Core::Hashable
    +      
    +        # The confidence of the detection result of this language.
    +        # Corresponds to the JSON property `confidence`
    +        # @return [Float]
    +        attr_accessor :confidence
    +      
    +        # The language we detected.
    +        # Corresponds to the JSON property `language`
    +        # @return [String]
    +        attr_accessor :language
    +      
    +        # A boolean to indicate is the language detection result reliable.
    +        # Corresponds to the JSON property `isReliable`
    +        # @return [Boolean]
    +        attr_accessor :is_reliable
    +        alias_method :is_reliable?, :is_reliable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @confidence = args[:confidence] if args.key?(:confidence)
    +          @language = args[:language] if args.key?(:language)
    +          @is_reliable = args[:is_reliable] if args.key?(:is_reliable)
    +        end
    +      end
    +      
    +      # 
    +      class TranslationsResource
    +        include Google::Apis::Core::Hashable
    +      
    +        # The `model` type used for this translation. Valid values are
    +        # listed in public documentation. Can be different from requested `model`.
    +        # Present only if specific model type was explicitly requested.
    +        # Corresponds to the JSON property `model`
    +        # @return [String]
    +        attr_accessor :model
    +      
    +        # Text translated into the target language.
    +        # Corresponds to the JSON property `translatedText`
    +        # @return [String]
    +        attr_accessor :translated_text
    +      
    +        # The source language of the initial request, detected automatically, if
    +        # no source language was passed within the initial request. If the
    +        # source language was passed, auto-detection of the language will not
    +        # occur and this field will be empty.
    +        # Corresponds to the JSON property `detectedSourceLanguage`
    +        # @return [String]
    +        attr_accessor :detected_source_language
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @model = args[:model] if args.key?(:model)
    +          @translated_text = args[:translated_text] if args.key?(:translated_text)
    +          @detected_source_language = args[:detected_source_language] if args.key?(:detected_source_language)
    +        end
    +      end
    +      
    +      # The main language translation response message.
    +      class ListTranslationsResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # Translations contains list of translation results of given text
    +        # Corresponds to the JSON property `translations`
    +        # @return [Array]
    +        attr_accessor :translations
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @translations = args[:translations] if args.key?(:translations)
    +        end
    +      end
    +      
    +      # The main translation request message for the Cloud Translation API.
    +      class TranslateTextRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The language to use for translation of the input text, set to one of the
    +        # language codes listed in Language Support.
    +        # Corresponds to the JSON property `target`
    +        # @return [String]
    +        attr_accessor :target
    +      
    +        # The format of the source text, in either HTML (default) or plain-text. A
    +        # value of "html" indicates HTML and a value of "text" indicates plain-text.
    +        # Corresponds to the JSON property `format`
    +        # @return [String]
    +        attr_accessor :format
    +      
    +        # The input text to translate. Repeat this parameter to perform translation
    +        # operations on multiple text inputs.
    +        # Corresponds to the JSON property `q`
    +        # @return [Array]
    +        attr_accessor :q
    +      
    +        # The language of the source text, set to one of the language codes listed in
    +        # Language Support. If the source language is not specified, the API will
    +        # attempt to identify the source language automatically and return it within
    +        # the response.
    +        # Corresponds to the JSON property `source`
    +        # @return [String]
    +        attr_accessor :source
    +      
    +        # The `model` type requested for this translation. Valid values are
    +        # listed in public documentation.
    +        # Corresponds to the JSON property `model`
    +        # @return [String]
    +        attr_accessor :model
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @target = args[:target] if args.key?(:target)
    +          @format = args[:format] if args.key?(:format)
    +          @q = args[:q] if args.key?(:q)
    +          @source = args[:source] if args.key?(:source)
    +          @model = args[:model] if args.key?(:model)
    +        end
    +      end
    +      
    +      # The request message for language detection.
    +      class DetectLanguageRequest
    +        include Google::Apis::Core::Hashable
    +      
    +        # The input text upon which to perform language detection. Repeat this
    +        # parameter to perform language detection on multiple text inputs.
    +        # Corresponds to the JSON property `q`
    +        # @return [Array]
    +        attr_accessor :q
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @q = args[:q] if args.key?(:q)
    +        end
    +      end
    +      
           # 
           class LanguagesResource
             include Google::Apis::Core::Hashable
           
    +        # Human readable name of the language localized to the target language.
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
             # Supported language code, generally consisting of its ISO 639-1
             # identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including
             # language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')
    @@ -33,19 +217,14 @@ module Google
             # @return [String]
             attr_accessor :language
           
    -        # Human readable name of the language localized to the target language.
    -        # 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)
    -          @language = args[:language] if args.key?(:language)
               @name = args[:name] if args.key?(:name)
    +          @language = args[:language] if args.key?(:language)
             end
           end
           
    @@ -87,185 +266,6 @@ module Google
               @target = args[:target] if args.key?(:target)
             end
           end
    -      
    -      # 
    -      class ListLanguagesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # List of source/target languages supported by the translation API. If target
    -        # parameter is unspecified, the list is sorted by the ASCII code point order of
    -        # the language code. If target parameter is specified, the list is sorted by the
    -        # collation order of the language name in the target language.
    -        # Corresponds to the JSON property `languages`
    -        # @return [Array]
    -        attr_accessor :languages
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @languages = args[:languages] if args.key?(:languages)
    -        end
    -      end
    -      
    -      # 
    -      class TranslationsResource
    -        include Google::Apis::Core::Hashable
    -      
    -        # The source language of the initial request, detected automatically, if
    -        # no source language was passed within the initial request. If the
    -        # source language was passed, auto-detection of the language will not
    -        # occur and this field will be empty.
    -        # Corresponds to the JSON property `detectedSourceLanguage`
    -        # @return [String]
    -        attr_accessor :detected_source_language
    -      
    -        # The `model` type used for this translation. Valid values are
    -        # listed in public documentation. Can be different from requested `model`.
    -        # Present only if specific model type was explicitly requested.
    -        # Corresponds to the JSON property `model`
    -        # @return [String]
    -        attr_accessor :model
    -      
    -        # Text translated into the target language.
    -        # Corresponds to the JSON property `translatedText`
    -        # @return [String]
    -        attr_accessor :translated_text
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @detected_source_language = args[:detected_source_language] if args.key?(:detected_source_language)
    -          @model = args[:model] if args.key?(:model)
    -          @translated_text = args[:translated_text] if args.key?(:translated_text)
    -        end
    -      end
    -      
    -      # 
    -      class DetectionsResource
    -        include Google::Apis::Core::Hashable
    -      
    -        # The confidence of the detection result of this language.
    -        # Corresponds to the JSON property `confidence`
    -        # @return [Float]
    -        attr_accessor :confidence
    -      
    -        # A boolean to indicate is the language detection result reliable.
    -        # Corresponds to the JSON property `isReliable`
    -        # @return [Boolean]
    -        attr_accessor :is_reliable
    -        alias_method :is_reliable?, :is_reliable
    -      
    -        # The language we detected.
    -        # Corresponds to the JSON property `language`
    -        # @return [String]
    -        attr_accessor :language
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @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
    -      
    -      # The main language translation response message.
    -      class ListTranslationsResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # Translations contains list of translation results of given text
    -        # Corresponds to the JSON property `translations`
    -        # @return [Array]
    -        attr_accessor :translations
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @translations = args[:translations] if args.key?(:translations)
    -        end
    -      end
    -      
    -      # The main translation request message for the Cloud Translation API.
    -      class TranslateTextRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The language to use for translation of the input text, set to one of the
    -        # language codes listed in Language Support.
    -        # Corresponds to the JSON property `target`
    -        # @return [String]
    -        attr_accessor :target
    -      
    -        # The input text to translate. Repeat this parameter to perform translation
    -        # operations on multiple text inputs.
    -        # Corresponds to the JSON property `q`
    -        # @return [Array]
    -        attr_accessor :q
    -      
    -        # The format of the source text, in either HTML (default) or plain-text. A
    -        # value of "html" indicates HTML and a value of "text" indicates plain-text.
    -        # Corresponds to the JSON property `format`
    -        # @return [String]
    -        attr_accessor :format
    -      
    -        # The language of the source text, set to one of the language codes listed in
    -        # Language Support. If the source language is not specified, the API will
    -        # attempt to identify the source language automatically and return it within
    -        # the response.
    -        # Corresponds to the JSON property `source`
    -        # @return [String]
    -        attr_accessor :source
    -      
    -        # The `model` type requested for this translation. Valid values are
    -        # listed in public documentation.
    -        # Corresponds to the JSON property `model`
    -        # @return [String]
    -        attr_accessor :model
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @target = args[:target] if args.key?(:target)
    -          @q = args[:q] if args.key?(:q)
    -          @format = args[:format] if args.key?(:format)
    -          @source = args[:source] if args.key?(:source)
    -          @model = args[:model] if args.key?(:model)
    -        end
    -      end
    -      
    -      # The request message for language detection.
    -      class DetectLanguageRequest
    -        include Google::Apis::Core::Hashable
    -      
    -        # The input text upon which to perform language detection. Repeat this
    -        # parameter to perform language detection on multiple text inputs.
    -        # Corresponds to the JSON property `q`
    -        # @return [Array]
    -        attr_accessor :q
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @q = args[:q] if args.key?(:q)
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/translate_v2/representations.rb b/generated/google/apis/translate_v2/representations.rb
    index 4139d908d..1e4026412 100644
    --- a/generated/google/apis/translate_v2/representations.rb
    +++ b/generated/google/apis/translate_v2/representations.rb
    @@ -22,37 +22,19 @@ module Google
       module Apis
         module TranslateV2
           
    -      class LanguagesResource
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListDetectionsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class GetSupportedLanguagesRequest
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class ListLanguagesResponse
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class TranslationsResource
    +      class DetectionsResource
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class DetectionsResource
    +      class TranslationsResource
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -76,12 +58,88 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    +      class LanguagesResource
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ListDetectionsResponse
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class GetSupportedLanguagesRequest
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ListLanguagesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::ListLanguagesResponse }
    +          collection :languages, as: 'languages', class: Google::Apis::TranslateV2::LanguagesResource, decorator: Google::Apis::TranslateV2::LanguagesResource::Representation
    +      
    +        end
    +      end
    +      
    +      class DetectionsResource
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::DetectionsResource }
    +          property :confidence, as: 'confidence'
    +          property :language, as: 'language'
    +          property :is_reliable, as: 'isReliable'
    +        end
    +      end
    +      
    +      class TranslationsResource
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::TranslationsResource }
    +          property :model, as: 'model'
    +          property :translated_text, as: 'translatedText'
    +          property :detected_source_language, as: 'detectedSourceLanguage'
    +        end
    +      end
    +      
    +      class ListTranslationsResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::ListTranslationsResponse }
    +          collection :translations, as: 'translations', class: Google::Apis::TranslateV2::TranslationsResource, decorator: Google::Apis::TranslateV2::TranslationsResource::Representation
    +      
    +        end
    +      end
    +      
    +      class TranslateTextRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::TranslateTextRequest }
    +          property :target, as: 'target'
    +          property :format, as: 'format'
    +          collection :q, as: 'q'
    +          property :source, as: 'source'
    +          property :model, as: 'model'
    +        end
    +      end
    +      
    +      class DetectLanguageRequest
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::DetectLanguageRequest }
    +          collection :q, as: 'q'
    +        end
    +      end
    +      
           class LanguagesResource
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
               self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::LanguagesResource }
    -          property :language, as: 'language'
               property :name, as: 'name'
    +          property :language, as: 'language'
             end
           end
           
    @@ -105,64 +163,6 @@ module Google
               property :target, as: 'target'
             end
           end
    -      
    -      class ListLanguagesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::ListLanguagesResponse }
    -          collection :languages, as: 'languages', class: Google::Apis::TranslateV2::LanguagesResource, decorator: Google::Apis::TranslateV2::LanguagesResource::Representation
    -      
    -        end
    -      end
    -      
    -      class TranslationsResource
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::TranslationsResource }
    -          property :detected_source_language, as: 'detectedSourceLanguage'
    -          property :model, as: 'model'
    -          property :translated_text, as: 'translatedText'
    -        end
    -      end
    -      
    -      class DetectionsResource
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::DetectionsResource }
    -          property :confidence, as: 'confidence'
    -          property :is_reliable, as: 'isReliable'
    -          property :language, as: 'language'
    -        end
    -      end
    -      
    -      class ListTranslationsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::ListTranslationsResponse }
    -          collection :translations, as: 'translations', class: Google::Apis::TranslateV2::TranslationsResource, decorator: Google::Apis::TranslateV2::TranslationsResource::Representation
    -      
    -        end
    -      end
    -      
    -      class TranslateTextRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::TranslateTextRequest }
    -          property :target, as: 'target'
    -          collection :q, as: 'q'
    -          property :format, as: 'format'
    -          property :source, as: 'source'
    -          property :model, as: 'model'
    -        end
    -      end
    -      
    -      class DetectLanguageRequest
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          self.representation_wrap = lambda { |args| :data if args[:unwrap] == Google::Apis::TranslateV2::DetectLanguageRequest }
    -          collection :q, as: 'q'
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/translate_v2/service.rb b/generated/google/apis/translate_v2/service.rb
    index b97ae938c..6fac754b3 100644
    --- a/generated/google/apis/translate_v2/service.rb
    +++ b/generated/google/apis/translate_v2/service.rb
    @@ -33,120 +33,22 @@ module Google
           #
           # @see https://code.google.com/apis/language/translate/v2/getting_started.html
           class TranslateService < 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]
    +        #  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
    +
             def initialize
               super('https://translation.googleapis.com/', 'language/translate/')
               @batch_path = 'batch/translate'
             end
             
    -        # Detects the language of text within a request.
    -        # @param [Array, String] q
    -        #   The input text upon which to perform language detection. Repeat this
    -        #   parameter to perform language detection on multiple text inputs.
    -        # @param [String] quota_user
    -        #   Available 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] 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::TranslateV2::ListDetectionsResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::TranslateV2::ListDetectionsResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_detections(q, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v2/detect', options)
    -          command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation
    -          command.response_class = Google::Apis::TranslateV2::ListDetectionsResponse
    -          command.query['q'] = q unless q.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Detects the language of text within a request.
    -        # @param [Google::Apis::TranslateV2::DetectLanguageRequest] detect_language_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.
    -        #   Overrides userIp if both are provided.
    -        # @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::TranslateV2::ListDetectionsResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::TranslateV2::ListDetectionsResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def detect_detection_language(detect_language_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:post, 'v2/detect', options)
    -          command.request_representation = Google::Apis::TranslateV2::DetectLanguageRequest::Representation
    -          command.request_object = detect_language_request_object
    -          command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation
    -          command.response_class = Google::Apis::TranslateV2::ListDetectionsResponse
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Returns a list of supported languages for translation.
    -        # @param [String] model
    -        #   The model type for which supported languages should be returned.
    -        # @param [String] target
    -        #   The language to use to return localized, human readable names of supported
    -        #   languages.
    -        # @param [String] quota_user
    -        #   Available 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] 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::TranslateV2::ListLanguagesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::TranslateV2::ListLanguagesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_languages(model: nil, target: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v2/languages', options)
    -          command.response_representation = Google::Apis::TranslateV2::ListLanguagesResponse::Representation
    -          command.response_class = Google::Apis::TranslateV2::ListLanguagesResponse
    -          command.query['model'] = model unless model.nil?
    -          command.query['target'] = target unless target.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
             # Translates input text, returning translated text.
             # @param [Google::Apis::TranslateV2::TranslateTextRequest] translate_text_request_object
             # @param [String] quota_user
    @@ -230,12 +132,110 @@ module Google
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
    +        
    +        # Detects the language of text within a request.
    +        # @param [Google::Apis::TranslateV2::DetectLanguageRequest] detect_language_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.
    +        #   Overrides userIp if both are provided.
    +        # @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::TranslateV2::ListDetectionsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::TranslateV2::ListDetectionsResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def detect_detection_language(detect_language_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:post, 'v2/detect', options)
    +          command.request_representation = Google::Apis::TranslateV2::DetectLanguageRequest::Representation
    +          command.request_object = detect_language_request_object
    +          command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation
    +          command.response_class = Google::Apis::TranslateV2::ListDetectionsResponse
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Detects the language of text within a request.
    +        # @param [Array, String] q
    +        #   The input text upon which to perform language detection. Repeat this
    +        #   parameter to perform language detection on multiple text inputs.
    +        # @param [String] quota_user
    +        #   Available 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] 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::TranslateV2::ListDetectionsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::TranslateV2::ListDetectionsResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_detections(q, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v2/detect', options)
    +          command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation
    +          command.response_class = Google::Apis::TranslateV2::ListDetectionsResponse
    +          command.query['q'] = q unless q.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
    +        # Returns a list of supported languages for translation.
    +        # @param [String] model
    +        #   The model type for which supported languages should be returned.
    +        # @param [String] target
    +        #   The language to use to return localized, human readable names of supported
    +        #   languages.
    +        # @param [String] quota_user
    +        #   Available 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] 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::TranslateV2::ListLanguagesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::TranslateV2::ListLanguagesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_languages(model: nil, target: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v2/languages', options)
    +          command.response_representation = Google::Apis::TranslateV2::ListLanguagesResponse::Representation
    +          command.response_class = Google::Apis::TranslateV2::ListLanguagesResponse
    +          command.query['model'] = model unless model.nil?
    +          command.query['target'] = target unless target.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?
    +          command.query['key'] = key unless key.nil?
             end
           end
         end
    diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb
    index 8e759cec1..778140738 100644
    --- a/generated/google/apis/vision_v1.rb
    +++ b/generated/google/apis/vision_v1.rb
    @@ -27,7 +27,10 @@ module Google
         # @see https://cloud.google.com/vision/
         module VisionV1
           VERSION = 'V1'
    -      REVISION = '20170606'
    +      REVISION = '20170706'
    +
    +      # Apply machine learning models to understand and label images
    +      AUTH_CLOUD_VISION = 'https://www.googleapis.com/auth/cloud-vision'
     
           # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb
    index e27ef0f48..186bf4b72 100644
    --- a/generated/google/apis/vision_v1/classes.rb
    +++ b/generated/google/apis/vision_v1/classes.rb
    @@ -22,6 +22,237 @@ module Google
       module Apis
         module VisionV1
           
    +      # Represents a color in the RGBA color space. This representation is designed
    +      # for simplicity of conversion to/from color representations in various
    +      # languages over compactness; for example, the fields of this representation
    +      # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    +      # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    +      # method in iOS; and, with just a little work, it can be easily formatted into
    +      # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    +      # Example (Java):
    +      # import com.google.type.Color;
    +      # // ...
    +      # public static java.awt.Color fromProto(Color protocolor) `
    +      # float alpha = protocolor.hasAlpha()
    +      # ? protocolor.getAlpha().getValue()
    +      # : 1.0;
    +      # return new java.awt.Color(
    +      # protocolor.getRed(),
    +      # protocolor.getGreen(),
    +      # protocolor.getBlue(),
    +      # alpha);
    +      # `
    +      # public static Color toProto(java.awt.Color color) `
    +      # float red = (float) color.getRed();
    +      # float green = (float) color.getGreen();
    +      # float blue = (float) color.getBlue();
    +      # float denominator = 255.0;
    +      # Color.Builder resultBuilder =
    +      # Color
    +      # .newBuilder()
    +      # .setRed(red / denominator)
    +      # .setGreen(green / denominator)
    +      # .setBlue(blue / denominator);
    +      # int alpha = color.getAlpha();
    +      # if (alpha != 255) `
    +      # result.setAlpha(
    +      # FloatValue
    +      # .newBuilder()
    +      # .setValue(((float) alpha) / denominator)
    +      # .build());
    +      # `
    +      # return resultBuilder.build();
    +      # `
    +      # // ...
    +      # Example (iOS / Obj-C):
    +      # // ...
    +      # static UIColor* fromProto(Color* protocolor) `
    +      # float red = [protocolor red];
    +      # float green = [protocolor green];
    +      # float blue = [protocolor blue];
    +      # FloatValue* alpha_wrapper = [protocolor alpha];
    +      # float alpha = 1.0;
    +      # if (alpha_wrapper != nil) `
    +      # alpha = [alpha_wrapper value];
    +      # `
    +      # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    +      # `
    +      # static Color* toProto(UIColor* color) `
    +      # CGFloat red, green, blue, alpha;
    +      # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    +      # return nil;
    +      # `
    +      # Color* result = [Color alloc] init];
    +      # [result setRed:red];
    +      # [result setGreen:green];
    +      # [result setBlue:blue];
    +      # if (alpha <= 0.9999) `
    +      # [result setAlpha:floatWrapperWithValue(alpha)];
    +      # `
    +      # [result autorelease];
    +      # return result;
    +      # `
    +      # // ...
    +      # Example (JavaScript):
    +      # // ...
    +      # var protoToCssColor = function(rgb_color) `
    +      # var redFrac = rgb_color.red || 0.0;
    +      # var greenFrac = rgb_color.green || 0.0;
    +      # var blueFrac = rgb_color.blue || 0.0;
    +      # var red = Math.floor(redFrac * 255);
    +      # var green = Math.floor(greenFrac * 255);
    +      # var blue = Math.floor(blueFrac * 255);
    +      # if (!('alpha' in rgb_color)) `
    +      # return rgbToCssColor_(red, green, blue);
    +      # `
    +      # var alphaFrac = rgb_color.alpha.value || 0.0;
    +      # var rgbParams = [red, green, blue].join(',');
    +      # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    +      # `;
    +      # var rgbToCssColor_ = function(red, green, blue) `
    +      # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    +      # var hexString = rgbNumber.toString(16);
    +      # var missingZeros = 6 - hexString.length;
    +      # var resultBuilder = ['#'];
    +      # for (var i = 0; i < missingZeros; i++) `
    +      # resultBuilder.push('0');
    +      # `
    +      # resultBuilder.push(hexString);
    +      # return resultBuilder.join('');
    +      # `;
    +      # // ...
    +      class Color
    +        include Google::Apis::Core::Hashable
    +      
    +        # The amount of red in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `red`
    +        # @return [Float]
    +        attr_accessor :red
    +      
    +        # The fraction of this color that should be applied to the pixel. That is,
    +        # the final pixel color is defined by the equation:
    +        # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
    +        # This means that a value of 1.0 corresponds to a solid color, whereas
    +        # a value of 0.0 corresponds to a completely transparent color. This
    +        # uses a wrapper message rather than a simple float scalar so that it is
    +        # possible to distinguish between a default value and the value being unset.
    +        # If omitted, this color object is to be rendered as a solid color
    +        # (as if the alpha value had been explicitly given with a value of 1.0).
    +        # Corresponds to the JSON property `alpha`
    +        # @return [Float]
    +        attr_accessor :alpha
    +      
    +        # The amount of blue in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `blue`
    +        # @return [Float]
    +        attr_accessor :blue
    +      
    +        # The amount of green in the color as a value in the interval [0, 1].
    +        # Corresponds to the JSON property `green`
    +        # @return [Float]
    +        attr_accessor :green
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @red = args[:red] if args.key?(:red)
    +          @alpha = args[:alpha] if args.key?(:alpha)
    +          @blue = args[:blue] if args.key?(:blue)
    +          @green = args[:green] if args.key?(:green)
    +        end
    +      end
    +      
    +      # Users describe the type of Google Cloud Vision API tasks to perform over
    +      # images by using *Feature*s. Each Feature indicates a type of image
    +      # detection task to perform. Features encode the Cloud Vision API
    +      # vertical to operate on and the number of top-scoring results to return.
    +      class Feature
    +        include Google::Apis::Core::Hashable
    +      
    +        # Maximum number of results of this type.
    +        # Corresponds to the JSON property `maxResults`
    +        # @return [Fixnum]
    +        attr_accessor :max_results
    +      
    +        # The feature type.
    +        # 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)
    +          @max_results = args[:max_results] if args.key?(:max_results)
    +          @type = args[:type] if args.key?(:type)
    +        end
    +      end
    +      
    +      # Stores image properties, such as dominant colors.
    +      class ImageProperties
    +        include Google::Apis::Core::Hashable
    +      
    +        # Set of dominant colors and their corresponding scores.
    +        # Corresponds to the JSON property `dominantColors`
    +        # @return [Google::Apis::VisionV1::DominantColorsAnnotation]
    +        attr_accessor :dominant_colors
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
    +        end
    +      end
    +      
    +      # Set of features pertaining to the image, computed by computer vision
    +      # methods over safe-search verticals (for example, adult, spoof, medical,
    +      # violence).
    +      class SafeSearchAnnotation
    +        include Google::Apis::Core::Hashable
    +      
    +        # Likelihood that this is a medical image.
    +        # Corresponds to the JSON property `medical`
    +        # @return [String]
    +        attr_accessor :medical
    +      
    +        # Violence likelihood.
    +        # Corresponds to the JSON property `violence`
    +        # @return [String]
    +        attr_accessor :violence
    +      
    +        # Represents the adult content likelihood for the image.
    +        # Corresponds to the JSON property `adult`
    +        # @return [String]
    +        attr_accessor :adult
    +      
    +        # Spoof likelihood. The likelihood that an modification
    +        # was made to the image's canonical version to make it appear
    +        # funny or offensive.
    +        # Corresponds to the JSON property `spoof`
    +        # @return [String]
    +        attr_accessor :spoof
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @medical = args[:medical] if args.key?(:medical)
    +          @violence = args[:violence] if args.key?(:violence)
    +          @adult = args[:adult] if args.key?(:adult)
    +          @spoof = args[:spoof] if args.key?(:spoof)
    +        end
    +      end
    +      
           # Set of dominant colors and their corresponding scores.
           class DominantColorsAnnotation
             include Google::Apis::Core::Hashable
    @@ -125,19 +356,25 @@ module Google
             end
           end
           
    -      # Additional information detected on the structural component.
    -      class TextProperty
    +      # Entity deduced from similar images on the Internet.
    +      class WebEntity
             include Google::Apis::Core::Hashable
           
    -        # Detected start or end of a structural component.
    -        # Corresponds to the JSON property `detectedBreak`
    -        # @return [Google::Apis::VisionV1::DetectedBreak]
    -        attr_accessor :detected_break
    +        # Opaque entity ID.
    +        # Corresponds to the JSON property `entityId`
    +        # @return [String]
    +        attr_accessor :entity_id
           
    -        # A list of detected languages together with confidence.
    -        # Corresponds to the JSON property `detectedLanguages`
    -        # @return [Array]
    -        attr_accessor :detected_languages
    +        # Canonical description of the entity, in English.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
    +        # Overall relevancy score for the entity.
    +        # Not normalized and not comparable across different image queries.
    +        # Corresponds to the JSON property `score`
    +        # @return [Float]
    +        attr_accessor :score
           
             def initialize(**args)
                update!(**args)
    @@ -145,8 +382,9 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @detected_break = args[:detected_break] if args.key?(:detected_break)
    -          @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
    +          @entity_id = args[:entity_id] if args.key?(:entity_id)
    +          @description = args[:description] if args.key?(:description)
    +          @score = args[:score] if args.key?(:score)
             end
           end
           
    @@ -169,25 +407,19 @@ module Google
             end
           end
           
    -      # Entity deduced from similar images on the Internet.
    -      class WebEntity
    +      # Additional information detected on the structural component.
    +      class TextProperty
             include Google::Apis::Core::Hashable
           
    -        # Overall relevancy score for the entity.
    -        # Not normalized and not comparable across different image queries.
    -        # Corresponds to the JSON property `score`
    -        # @return [Float]
    -        attr_accessor :score
    +        # A list of detected languages together with confidence.
    +        # Corresponds to the JSON property `detectedLanguages`
    +        # @return [Array]
    +        attr_accessor :detected_languages
           
    -        # Opaque entity ID.
    -        # Corresponds to the JSON property `entityId`
    -        # @return [String]
    -        attr_accessor :entity_id
    -      
    -        # Canonical description of the entity, in English.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    +        # Detected start or end of a structural component.
    +        # Corresponds to the JSON property `detectedBreak`
    +        # @return [Google::Apis::VisionV1::DetectedBreak]
    +        attr_accessor :detected_break
           
             def initialize(**args)
                update!(**args)
    @@ -195,9 +427,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @score = args[:score] if args.key?(:score)
    -          @entity_id = args[:entity_id] if args.key?(:entity_id)
    -          @description = args[:description] if args.key?(:description)
    +          @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
    +          @detected_break = args[:detected_break] if args.key?(:detected_break)
             end
           end
           
    @@ -205,6 +436,18 @@ module Google
           class AnnotateImageResponse
             include Google::Apis::Core::Hashable
           
    +        # If present, label detection has completed successfully.
    +        # Corresponds to the JSON property `labelAnnotations`
    +        # @return [Array]
    +        attr_accessor :label_annotations
    +      
    +        # Set of features pertaining to the image, computed by computer vision
    +        # methods over safe-search verticals (for example, adult, spoof, medical,
    +        # violence).
    +        # Corresponds to the JSON property `safeSearchAnnotation`
    +        # @return [Google::Apis::VisionV1::SafeSearchAnnotation]
    +        attr_accessor :safe_search_annotation
    +      
             # 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:
    @@ -269,16 +512,16 @@ module Google
             # @return [Array]
             attr_accessor :text_annotations
           
    -        # If present, face detection has completed successfully.
    -        # Corresponds to the JSON property `faceAnnotations`
    -        # @return [Array]
    -        attr_accessor :face_annotations
    -      
             # Stores image properties, such as dominant colors.
             # Corresponds to the JSON property `imagePropertiesAnnotation`
             # @return [Google::Apis::VisionV1::ImageProperties]
             attr_accessor :image_properties_annotation
           
    +        # If present, face detection has completed successfully.
    +        # Corresponds to the JSON property `faceAnnotations`
    +        # @return [Array]
    +        attr_accessor :face_annotations
    +      
             # If present, logo detection has completed successfully.
             # Corresponds to the JSON property `logoAnnotations`
             # @return [Array]
    @@ -294,35 +537,23 @@ module Google
             # @return [Google::Apis::VisionV1::WebDetection]
             attr_accessor :web_detection
           
    -        # If present, label detection has completed successfully.
    -        # Corresponds to the JSON property `labelAnnotations`
    -        # @return [Array]
    -        attr_accessor :label_annotations
    -      
    -        # Set of features pertaining to the image, computed by computer vision
    -        # methods over safe-search verticals (for example, adult, spoof, medical,
    -        # violence).
    -        # Corresponds to the JSON property `safeSearchAnnotation`
    -        # @return [Google::Apis::VisionV1::SafeSearchAnnotation]
    -        attr_accessor :safe_search_annotation
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
    +          @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
               @error = args[:error] if args.key?(:error)
               @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
               @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
               @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
    -          @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
               @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
    +          @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
               @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
               @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
               @web_detection = args[:web_detection] if args.key?(:web_detection)
    -          @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
    -          @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
             end
           end
           
    @@ -387,6 +618,110 @@ module Google
             end
           end
           
    +      # Relevant information for the image from the Internet.
    +      class WebDetection
    +        include Google::Apis::Core::Hashable
    +      
    +        # Web pages containing the matching images from the Internet.
    +        # Corresponds to the JSON property `pagesWithMatchingImages`
    +        # @return [Array]
    +        attr_accessor :pages_with_matching_images
    +      
    +        # The visually similar image results.
    +        # Corresponds to the JSON property `visuallySimilarImages`
    +        # @return [Array]
    +        attr_accessor :visually_similar_images
    +      
    +        # Partial matching images from the Internet.
    +        # Those images are similar enough to share some key-point features. For
    +        # example an original image will likely have partial matching for its crops.
    +        # Corresponds to the JSON property `partialMatchingImages`
    +        # @return [Array]
    +        attr_accessor :partial_matching_images
    +      
    +        # Fully matching images from the Internet.
    +        # Can include resized copies of the query image.
    +        # Corresponds to the JSON property `fullMatchingImages`
    +        # @return [Array]
    +        attr_accessor :full_matching_images
    +      
    +        # Deduced entities from similar images on the Internet.
    +        # Corresponds to the JSON property `webEntities`
    +        # @return [Array]
    +        attr_accessor :web_entities
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
    +          @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
    +          @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
    +          @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
    +          @web_entities = args[:web_entities] if args.key?(:web_entities)
    +        end
    +      end
    +      
    +      # Response to a batch image annotation request.
    +      class BatchAnnotateImagesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # Individual responses to image annotation requests within the batch.
    +        # Corresponds to the JSON property `responses`
    +        # @return [Array]
    +        attr_accessor :responses
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @responses = args[:responses] if args.key?(:responses)
    +        end
    +      end
    +      
    +      # External image source (Google Cloud Storage image location).
    +      class ImageSource
    +        include Google::Apis::Core::Hashable
    +      
    +        # NOTE: For new code `image_uri` below is preferred.
    +        # Google Cloud Storage image URI, which must be in the following form:
    +        # `gs://bucket_name/object_name` (for details, see
    +        # [Google Cloud Storage Request
    +        # URIs](https://cloud.google.com/storage/docs/reference-uris)).
    +        # NOTE: Cloud Storage object versioning is not supported.
    +        # Corresponds to the JSON property `gcsImageUri`
    +        # @return [String]
    +        attr_accessor :gcs_image_uri
    +      
    +        # Image URI which supports:
    +        # 1) Google Cloud Storage image URI, which must be in the following form:
    +        # `gs://bucket_name/object_name` (for details, see
    +        # [Google Cloud Storage Request
    +        # URIs](https://cloud.google.com/storage/docs/reference-uris)).
    +        # NOTE: Cloud Storage object versioning is not supported.
    +        # 2) Publicly accessible image HTTP/HTTPS URL.
    +        # This is preferred over the legacy `gcs_image_uri` above. When both
    +        # `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
    +        # precedence.
    +        # Corresponds to the JSON property `imageUri`
    +        # @return [String]
    +        attr_accessor :image_uri
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @gcs_image_uri = args[:gcs_image_uri] if args.key?(:gcs_image_uri)
    +          @image_uri = args[:image_uri] if args.key?(:image_uri)
    +        end
    +      end
    +      
           # A `Property` consists of a user-supplied name/value pair.
           class Property
             include Google::Apis::Core::Hashable
    @@ -471,130 +806,26 @@ module Google
             end
           end
           
    -      # External image source (Google Cloud Storage image location).
    -      class ImageSource
    -        include Google::Apis::Core::Hashable
    -      
    -        # NOTE: For new code `image_uri` below is preferred.
    -        # Google Cloud Storage image URI, which must be in the following form:
    -        # `gs://bucket_name/object_name` (for details, see
    -        # [Google Cloud Storage Request
    -        # URIs](https://cloud.google.com/storage/docs/reference-uris)).
    -        # NOTE: Cloud Storage object versioning is not supported.
    -        # Corresponds to the JSON property `gcsImageUri`
    -        # @return [String]
    -        attr_accessor :gcs_image_uri
    -      
    -        # Image URI which supports:
    -        # 1) Google Cloud Storage image URI, which must be in the following form:
    -        # `gs://bucket_name/object_name` (for details, see
    -        # [Google Cloud Storage Request
    -        # URIs](https://cloud.google.com/storage/docs/reference-uris)).
    -        # NOTE: Cloud Storage object versioning is not supported.
    -        # 2) Publicly accessible image HTTP/HTTPS URL.
    -        # This is preferred over the legacy `gcs_image_uri` above. When both
    -        # `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
    -        # precedence.
    -        # Corresponds to the JSON property `imageUri`
    -        # @return [String]
    -        attr_accessor :image_uri
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @gcs_image_uri = args[:gcs_image_uri] if args.key?(:gcs_image_uri)
    -          @image_uri = args[:image_uri] if args.key?(:image_uri)
    -        end
    -      end
    -      
    -      # Response to a batch image annotation request.
    -      class BatchAnnotateImagesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # Individual responses to image annotation requests within the batch.
    -        # Corresponds to the JSON property `responses`
    -        # @return [Array]
    -        attr_accessor :responses
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @responses = args[:responses] if args.key?(:responses)
    -        end
    -      end
    -      
    -      # Relevant information for the image from the Internet.
    -      class WebDetection
    -        include Google::Apis::Core::Hashable
    -      
    -        # Fully matching images from the Internet.
    -        # Can include resized copies of the query image.
    -        # Corresponds to the JSON property `fullMatchingImages`
    -        # @return [Array]
    -        attr_accessor :full_matching_images
    -      
    -        # Deduced entities from similar images on the Internet.
    -        # Corresponds to the JSON property `webEntities`
    -        # @return [Array]
    -        attr_accessor :web_entities
    -      
    -        # Web pages containing the matching images from the Internet.
    -        # Corresponds to the JSON property `pagesWithMatchingImages`
    -        # @return [Array]
    -        attr_accessor :pages_with_matching_images
    -      
    -        # Partial matching images from the Internet.
    -        # Those images are similar enough to share some key-point features. For
    -        # example an original image will likely have partial matching for its crops.
    -        # Corresponds to the JSON property `partialMatchingImages`
    -        # @return [Array]
    -        attr_accessor :partial_matching_images
    -      
    -        # The visually similar image results.
    -        # Corresponds to the JSON property `visuallySimilarImages`
    -        # @return [Array]
    -        attr_accessor :visually_similar_images
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
    -          @web_entities = args[:web_entities] if args.key?(:web_entities)
    -          @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
    -          @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
    -          @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
    -        end
    -      end
    -      
           # A 3D position in the image, used primarily for Face detection landmarks.
           # A valid Position must have both x and y coordinates.
           # The position coordinates are in the same scale as the original image.
           class Position
             include Google::Apis::Core::Hashable
           
    -        # Y coordinate.
    -        # Corresponds to the JSON property `y`
    +        # Z coordinate (or depth).
    +        # Corresponds to the JSON property `z`
             # @return [Float]
    -        attr_accessor :y
    +        attr_accessor :z
           
             # X coordinate.
             # Corresponds to the JSON property `x`
             # @return [Float]
             attr_accessor :x
           
    -        # Z coordinate (or depth).
    -        # Corresponds to the JSON property `z`
    +        # Y coordinate.
    +        # Corresponds to the JSON property `y`
             # @return [Float]
    -        attr_accessor :z
    +        attr_accessor :y
           
             def initialize(**args)
                update!(**args)
    @@ -602,9 +833,9 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @y = args[:y] if args.key?(:y)
    -          @x = args[:x] if args.key?(:x)
               @z = args[:z] if args.key?(:z)
    +          @x = args[:x] if args.key?(:x)
    +          @y = args[:y] if args.key?(:y)
             end
           end
           
    @@ -639,11 +870,6 @@ module Google
           class ColorInfo
             include Google::Apis::Core::Hashable
           
    -        # Image-specific score for this color. Value in range [0, 1].
    -        # Corresponds to the JSON property `score`
    -        # @return [Float]
    -        attr_accessor :score
    -      
             # The fraction of pixels the color occupies in the image.
             # Value in range [0, 1].
             # Corresponds to the JSON property `pixelFraction`
    @@ -753,15 +979,20 @@ module Google
             # @return [Google::Apis::VisionV1::Color]
             attr_accessor :color
           
    +        # Image-specific score for this color. Value in range [0, 1].
    +        # Corresponds to the JSON property `score`
    +        # @return [Float]
    +        attr_accessor :score
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @score = args[:score] if args.key?(:score)
               @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
               @color = args[:color] if args.key?(:color)
    +          @score = args[:score] if args.key?(:score)
             end
           end
           
    @@ -795,11 +1026,6 @@ module Google
             # @return [Google::Apis::VisionV1::BoundingPoly]
             attr_accessor :bounding_poly
           
    -        # Entity textual description, expressed in its `locale` language.
    -        # Corresponds to the JSON property `description`
    -        # @return [String]
    -        attr_accessor :description
    -      
             # The relevancy of the ICA (Image Content Annotation) label to the
             # image. For example, the relevancy of "tower" is likely higher to an image
             # containing the detected "Eiffel Tower" than to an image containing a
    @@ -809,6 +1035,11 @@ module Google
             # @return [Float]
             attr_accessor :topicality
           
    +        # Entity textual description, expressed in its `locale` language.
    +        # Corresponds to the JSON property `description`
    +        # @return [String]
    +        attr_accessor :description
    +      
             # Some entities may have optional user-supplied `Property` (name/value)
             # fields, such a score or string that qualifies the entity.
             # Corresponds to the JSON property `properties`
    @@ -839,8 +1070,8 @@ module Google
               @confidence = args[:confidence] if args.key?(:confidence)
               @locale = args[:locale] if args.key?(:locale)
               @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
    -          @description = args[:description] if args.key?(:description)
               @topicality = args[:topicality] if args.key?(:topicality)
    +          @description = args[:description] if args.key?(:description)
               @properties = args[:properties] if args.key?(:properties)
               @score = args[:score] if args.key?(:score)
               @locations = args[:locations] if args.key?(:locations)
    @@ -851,17 +1082,17 @@ module Google
           class CropHint
             include Google::Apis::Core::Hashable
           
    -        # Confidence of this being a salient region.  Range [0, 1].
    -        # Corresponds to the JSON property `confidence`
    -        # @return [Float]
    -        attr_accessor :confidence
    -      
             # Fraction of importance of this salient region with respect to the original
             # image.
             # Corresponds to the JSON property `importanceFraction`
             # @return [Float]
             attr_accessor :importance_fraction
           
    +        # Confidence of this being a salient region.  Range [0, 1].
    +        # Corresponds to the JSON property `confidence`
    +        # @return [Float]
    +        attr_accessor :confidence
    +      
             # A bounding polygon for the detected image annotation.
             # Corresponds to the JSON property `boundingPoly`
             # @return [Google::Apis::VisionV1::BoundingPoly]
    @@ -873,8 +1104,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @confidence = args[:confidence] if args.key?(:confidence)
               @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
    +          @confidence = args[:confidence] if args.key?(:confidence)
               @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
             end
           end
    @@ -940,11 +1171,6 @@ module Google
           class Word
             include Google::Apis::Core::Hashable
           
    -        # A bounding polygon for the detected image annotation.
    -        # Corresponds to the JSON property `boundingBox`
    -        # @return [Google::Apis::VisionV1::BoundingPoly]
    -        attr_accessor :bounding_box
    -      
             # List of symbols in the word.
             # The order of the symbols follows the natural reading order.
             # Corresponds to the JSON property `symbols`
    @@ -956,15 +1182,20 @@ module Google
             # @return [Google::Apis::VisionV1::TextProperty]
             attr_accessor :property
           
    +        # A bounding polygon for the detected image annotation.
    +        # Corresponds to the JSON property `boundingBox`
    +        # @return [Google::Apis::VisionV1::BoundingPoly]
    +        attr_accessor :bounding_box
    +      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
               @symbols = args[:symbols] if args.key?(:symbols)
               @property = args[:property] if args.key?(:property)
    +          @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
             end
           end
           
    @@ -1003,6 +1234,11 @@ module Google
           class Image
             include Google::Apis::Core::Hashable
           
    +        # External image source (Google Cloud Storage image location).
    +        # Corresponds to the JSON property `source`
    +        # @return [Google::Apis::VisionV1::ImageSource]
    +        attr_accessor :source
    +      
             # Image content, represented as a stream of bytes.
             # Note: as with all `bytes` fields, protobuffers use a pure binary
             # representation, whereas JSON representations use base64.
    @@ -1011,19 +1247,14 @@ module Google
             # @return [String]
             attr_accessor :content
           
    -        # External image source (Google Cloud Storage image location).
    -        # Corresponds to the JSON property `source`
    -        # @return [Google::Apis::VisionV1::ImageSource]
    -        attr_accessor :source
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    -          @content = args[:content] if args.key?(:content)
               @source = args[:source] if args.key?(:source)
    +          @content = args[:content] if args.key?(:content)
             end
           end
           
    @@ -1057,20 +1288,20 @@ module Google
             # @return [String]
             attr_accessor :anger_likelihood
           
    -        # Joy likelihood.
    -        # Corresponds to the JSON property `joyLikelihood`
    -        # @return [String]
    -        attr_accessor :joy_likelihood
    -      
             # Face landmarking confidence. Range [0, 1].
             # Corresponds to the JSON property `landmarkingConfidence`
             # @return [Float]
             attr_accessor :landmarking_confidence
           
    -        # Detection confidence. Range [0, 1].
    -        # Corresponds to the JSON property `detectionConfidence`
    -        # @return [Float]
    -        attr_accessor :detection_confidence
    +        # Joy likelihood.
    +        # Corresponds to the JSON property `joyLikelihood`
    +        # @return [String]
    +        attr_accessor :joy_likelihood
    +      
    +        # Under-exposed likelihood.
    +        # Corresponds to the JSON property `underExposedLikelihood`
    +        # @return [String]
    +        attr_accessor :under_exposed_likelihood
           
             # Yaw angle, which indicates the leftward/rightward angle that the face is
             # pointing relative to the vertical plane perpendicular to the image. Range
    @@ -1079,10 +1310,10 @@ module Google
             # @return [Float]
             attr_accessor :pan_angle
           
    -        # Under-exposed likelihood.
    -        # Corresponds to the JSON property `underExposedLikelihood`
    -        # @return [String]
    -        attr_accessor :under_exposed_likelihood
    +        # Detection confidence. Range [0, 1].
    +        # Corresponds to the JSON property `detectionConfidence`
    +        # @return [Float]
    +        attr_accessor :detection_confidence
           
             # Blurred likelihood.
             # Corresponds to the JSON property `blurredLikelihood`
    @@ -1122,11 +1353,11 @@ module Google
               @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
               @landmarks = args[:landmarks] if args.key?(:landmarks)
               @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
    -          @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
               @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
    -          @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
    -          @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
    +          @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
               @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
    +          @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
    +          @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
               @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
               @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
               @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
    @@ -1184,6 +1415,11 @@ module Google
           class ImageContext
             include Google::Apis::Core::Hashable
           
    +        # Parameters for crop hints annotation request.
    +        # Corresponds to the JSON property `cropHintsParams`
    +        # @return [Google::Apis::VisionV1::CropHintsParams]
    +        attr_accessor :crop_hints_params
    +      
             # List of languages to use for TEXT_DETECTION. In most cases, an empty value
             # yields the best results since it enables automatic language detection. For
             # languages based on the Latin alphabet, setting `language_hints` is not
    @@ -1201,20 +1437,15 @@ module Google
             # @return [Google::Apis::VisionV1::LatLongRect]
             attr_accessor :lat_long_rect
           
    -        # Parameters for crop hints annotation request.
    -        # Corresponds to the JSON property `cropHintsParams`
    -        # @return [Google::Apis::VisionV1::CropHintsParams]
    -        attr_accessor :crop_hints_params
    -      
             def initialize(**args)
                update!(**args)
             end
           
             # Update properties of this object
             def update!(**args)
    +          @crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params)
               @language_hints = args[:language_hints] if args.key?(:language_hints)
               @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
    -          @crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params)
             end
           end
           
    @@ -1222,11 +1453,6 @@ module Google
           class Page
             include Google::Apis::Core::Hashable
           
    -        # Page height in pixels.
    -        # Corresponds to the JSON property `height`
    -        # @return [Fixnum]
    -        attr_accessor :height
    -      
             # Page width in pixels.
             # Corresponds to the JSON property `width`
             # @return [Fixnum]
    @@ -1242,16 +1468,21 @@ module Google
             # @return [Google::Apis::VisionV1::TextProperty]
             attr_accessor :property
           
    +        # Page height in pixels.
    +        # Corresponds to the JSON property `height`
    +        # @return [Fixnum]
    +        attr_accessor :height
    +      
             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)
               @blocks = args[:blocks] if args.key?(:blocks)
               @property = args[:property] if args.key?(:property)
    +          @height = args[:height] if args.key?(:height)
             end
           end
           
    @@ -1260,16 +1491,16 @@ module Google
           class AnnotateImageRequest
             include Google::Apis::Core::Hashable
           
    -        # Client image to perform Google Cloud Vision API tasks over.
    -        # Corresponds to the JSON property `image`
    -        # @return [Google::Apis::VisionV1::Image]
    -        attr_accessor :image
    -      
             # Requested features.
             # Corresponds to the JSON property `features`
             # @return [Array]
             attr_accessor :features
           
    +        # Client image to perform Google Cloud Vision API tasks over.
    +        # Corresponds to the JSON property `image`
    +        # @return [Google::Apis::VisionV1::Image]
    +        attr_accessor :image
    +      
             # Image context and/or feature-specific parameters.
             # Corresponds to the JSON property `imageContext`
             # @return [Google::Apis::VisionV1::ImageContext]
    @@ -1281,8 +1512,8 @@ module Google
           
             # Update properties of this object
             def update!(**args)
    -          @image = args[:image] if args.key?(:image)
               @features = args[:features] if args.key?(:features)
    +          @image = args[:image] if args.key?(:image)
               @image_context = args[:image_context] if args.key?(:image_context)
             end
           end
    @@ -1329,12 +1560,6 @@ module Google
           class Status
             include Google::Apis::Core::Hashable
           
    -        # 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
    -      
             # The status code, which should be an enum value of google.rpc.Code.
             # Corresponds to the JSON property `code`
             # @return [Fixnum]
    @@ -1347,46 +1572,21 @@ module Google
             # @return [String]
             attr_accessor :message
           
    +        # A list of messages that carry the error details.  There is 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)
    -          @details = args[:details] if args.key?(:details)
               @code = args[:code] if args.key?(:code)
               @message = args[:message] if args.key?(:message)
    -        end
    -      end
    -      
    -      # A single symbol representation.
    -      class Symbol
    -        include Google::Apis::Core::Hashable
    -      
    -        # The actual UTF-8 representation of the symbol.
    -        # Corresponds to the JSON property `text`
    -        # @return [String]
    -        attr_accessor :text
    -      
    -        # Additional information detected on the structural component.
    -        # Corresponds to the JSON property `property`
    -        # @return [Google::Apis::VisionV1::TextProperty]
    -        attr_accessor :property
    -      
    -        # A bounding polygon for the detected image annotation.
    -        # Corresponds to the JSON property `boundingBox`
    -        # @return [Google::Apis::VisionV1::BoundingPoly]
    -        attr_accessor :bounding_box
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @text = args[:text] if args.key?(:text)
    -          @property = args[:property] if args.key?(:property)
    -          @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
    +          @details = args[:details] if args.key?(:details)
             end
           end
           
    @@ -1483,6 +1683,37 @@ module Google
             end
           end
           
    +      # A single symbol representation.
    +      class Symbol
    +        include Google::Apis::Core::Hashable
    +      
    +        # Additional information detected on the structural component.
    +        # Corresponds to the JSON property `property`
    +        # @return [Google::Apis::VisionV1::TextProperty]
    +        attr_accessor :property
    +      
    +        # A bounding polygon for the detected image annotation.
    +        # Corresponds to the JSON property `boundingBox`
    +        # @return [Google::Apis::VisionV1::BoundingPoly]
    +        attr_accessor :bounding_box
    +      
    +        # The actual UTF-8 representation of the symbol.
    +        # Corresponds to the JSON property `text`
    +        # @return [String]
    +        attr_accessor :text
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @property = args[:property] if args.key?(:property)
    +          @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
    +          @text = args[:text] if args.key?(:text)
    +        end
    +      end
    +      
           # Set of crop hints that are used to generate new crops when serving images.
           class CropHintsAnnotation
             include Google::Apis::Core::Hashable
    @@ -1560,237 +1791,6 @@ module Google
               @longitude = args[:longitude] if args.key?(:longitude)
             end
           end
    -      
    -      # Represents a color in the RGBA color space. This representation is designed
    -      # for simplicity of conversion to/from color representations in various
    -      # languages over compactness; for example, the fields of this representation
    -      # can be trivially provided to the constructor of "java.awt.Color" in Java; it
    -      # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
    -      # method in iOS; and, with just a little work, it can be easily formatted into
    -      # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
    -      # Example (Java):
    -      # import com.google.type.Color;
    -      # // ...
    -      # public static java.awt.Color fromProto(Color protocolor) `
    -      # float alpha = protocolor.hasAlpha()
    -      # ? protocolor.getAlpha().getValue()
    -      # : 1.0;
    -      # return new java.awt.Color(
    -      # protocolor.getRed(),
    -      # protocolor.getGreen(),
    -      # protocolor.getBlue(),
    -      # alpha);
    -      # `
    -      # public static Color toProto(java.awt.Color color) `
    -      # float red = (float) color.getRed();
    -      # float green = (float) color.getGreen();
    -      # float blue = (float) color.getBlue();
    -      # float denominator = 255.0;
    -      # Color.Builder resultBuilder =
    -      # Color
    -      # .newBuilder()
    -      # .setRed(red / denominator)
    -      # .setGreen(green / denominator)
    -      # .setBlue(blue / denominator);
    -      # int alpha = color.getAlpha();
    -      # if (alpha != 255) `
    -      # result.setAlpha(
    -      # FloatValue
    -      # .newBuilder()
    -      # .setValue(((float) alpha) / denominator)
    -      # .build());
    -      # `
    -      # return resultBuilder.build();
    -      # `
    -      # // ...
    -      # Example (iOS / Obj-C):
    -      # // ...
    -      # static UIColor* fromProto(Color* protocolor) `
    -      # float red = [protocolor red];
    -      # float green = [protocolor green];
    -      # float blue = [protocolor blue];
    -      # FloatValue* alpha_wrapper = [protocolor alpha];
    -      # float alpha = 1.0;
    -      # if (alpha_wrapper != nil) `
    -      # alpha = [alpha_wrapper value];
    -      # `
    -      # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    -      # `
    -      # static Color* toProto(UIColor* color) `
    -      # CGFloat red, green, blue, alpha;
    -      # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
    -      # return nil;
    -      # `
    -      # Color* result = [Color alloc] init];
    -      # [result setRed:red];
    -      # [result setGreen:green];
    -      # [result setBlue:blue];
    -      # if (alpha <= 0.9999) `
    -      # [result setAlpha:floatWrapperWithValue(alpha)];
    -      # `
    -      # [result autorelease];
    -      # return result;
    -      # `
    -      # // ...
    -      # Example (JavaScript):
    -      # // ...
    -      # var protoToCssColor = function(rgb_color) `
    -      # var redFrac = rgb_color.red || 0.0;
    -      # var greenFrac = rgb_color.green || 0.0;
    -      # var blueFrac = rgb_color.blue || 0.0;
    -      # var red = Math.floor(redFrac * 255);
    -      # var green = Math.floor(greenFrac * 255);
    -      # var blue = Math.floor(blueFrac * 255);
    -      # if (!('alpha' in rgb_color)) `
    -      # return rgbToCssColor_(red, green, blue);
    -      # `
    -      # var alphaFrac = rgb_color.alpha.value || 0.0;
    -      # var rgbParams = [red, green, blue].join(',');
    -      # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
    -      # `;
    -      # var rgbToCssColor_ = function(red, green, blue) `
    -      # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
    -      # var hexString = rgbNumber.toString(16);
    -      # var missingZeros = 6 - hexString.length;
    -      # var resultBuilder = ['#'];
    -      # for (var i = 0; i < missingZeros; i++) `
    -      # resultBuilder.push('0');
    -      # `
    -      # resultBuilder.push(hexString);
    -      # return resultBuilder.join('');
    -      # `;
    -      # // ...
    -      class Color
    -        include Google::Apis::Core::Hashable
    -      
    -        # The amount of green in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `green`
    -        # @return [Float]
    -        attr_accessor :green
    -      
    -        # The amount of blue in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `blue`
    -        # @return [Float]
    -        attr_accessor :blue
    -      
    -        # The fraction of this color that should be applied to the pixel. That is,
    -        # the final pixel color is defined by the equation:
    -        # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
    -        # This means that a value of 1.0 corresponds to a solid color, whereas
    -        # a value of 0.0 corresponds to a completely transparent color. This
    -        # uses a wrapper message rather than a simple float scalar so that it is
    -        # possible to distinguish between a default value and the value being unset.
    -        # If omitted, this color object is to be rendered as a solid color
    -        # (as if the alpha value had been explicitly given with a value of 1.0).
    -        # Corresponds to the JSON property `alpha`
    -        # @return [Float]
    -        attr_accessor :alpha
    -      
    -        # The amount of red in the color as a value in the interval [0, 1].
    -        # Corresponds to the JSON property `red`
    -        # @return [Float]
    -        attr_accessor :red
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @green = args[:green] if args.key?(:green)
    -          @blue = args[:blue] if args.key?(:blue)
    -          @alpha = args[:alpha] if args.key?(:alpha)
    -          @red = args[:red] if args.key?(:red)
    -        end
    -      end
    -      
    -      # Stores image properties, such as dominant colors.
    -      class ImageProperties
    -        include Google::Apis::Core::Hashable
    -      
    -        # Set of dominant colors and their corresponding scores.
    -        # Corresponds to the JSON property `dominantColors`
    -        # @return [Google::Apis::VisionV1::DominantColorsAnnotation]
    -        attr_accessor :dominant_colors
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
    -        end
    -      end
    -      
    -      # Users describe the type of Google Cloud Vision API tasks to perform over
    -      # images by using *Feature*s. Each Feature indicates a type of image
    -      # detection task to perform. Features encode the Cloud Vision API
    -      # vertical to operate on and the number of top-scoring results to return.
    -      class Feature
    -        include Google::Apis::Core::Hashable
    -      
    -        # The feature type.
    -        # Corresponds to the JSON property `type`
    -        # @return [String]
    -        attr_accessor :type
    -      
    -        # Maximum number of results of this type.
    -        # Corresponds to the JSON property `maxResults`
    -        # @return [Fixnum]
    -        attr_accessor :max_results
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @type = args[:type] if args.key?(:type)
    -          @max_results = args[:max_results] if args.key?(:max_results)
    -        end
    -      end
    -      
    -      # Set of features pertaining to the image, computed by computer vision
    -      # methods over safe-search verticals (for example, adult, spoof, medical,
    -      # violence).
    -      class SafeSearchAnnotation
    -        include Google::Apis::Core::Hashable
    -      
    -        # Likelihood that this is a medical image.
    -        # Corresponds to the JSON property `medical`
    -        # @return [String]
    -        attr_accessor :medical
    -      
    -        # Violence likelihood.
    -        # Corresponds to the JSON property `violence`
    -        # @return [String]
    -        attr_accessor :violence
    -      
    -        # Represents the adult content likelihood for the image.
    -        # Corresponds to the JSON property `adult`
    -        # @return [String]
    -        attr_accessor :adult
    -      
    -        # Spoof likelihood. The likelihood that an modification
    -        # was made to the image's canonical version to make it appear
    -        # funny or offensive.
    -        # Corresponds to the JSON property `spoof`
    -        # @return [String]
    -        attr_accessor :spoof
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @medical = args[:medical] if args.key?(:medical)
    -          @violence = args[:violence] if args.key?(:violence)
    -          @adult = args[:adult] if args.key?(:adult)
    -          @spoof = args[:spoof] if args.key?(:spoof)
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb
    index 8e9a94ea0..b91b10f55 100644
    --- a/generated/google/apis/vision_v1/representations.rb
    +++ b/generated/google/apis/vision_v1/representations.rb
    @@ -22,6 +22,30 @@ module Google
       module Apis
         module VisionV1
           
    +      class Color
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Feature
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class ImageProperties
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class SafeSearchAnnotation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
           class DominantColorsAnnotation
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -46,7 +70,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class TextProperty
    +      class WebEntity
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -58,7 +82,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class WebEntity
    +      class TextProperty
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -82,19 +106,7 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Property
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class LocationInfo
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ImageSource
    +      class WebDetection
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -106,7 +118,19 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class WebDetection
    +      class ImageSource
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Property
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class LocationInfo
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -214,13 +238,13 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Symbol
    +      class LatLongRect
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class LatLongRect
    +      class Symbol
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
             include Google::Apis::Core::JsonObjectSupport
    @@ -239,27 +263,39 @@ module Google
           end
           
           class Color
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ImageProperties
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :red, as: 'red'
    +          property :alpha, as: 'alpha'
    +          property :blue, as: 'blue'
    +          property :green, as: 'green'
    +        end
           end
           
           class Feature
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :max_results, as: 'maxResults'
    +          property :type, as: 'type'
    +        end
    +      end
           
    -        include Google::Apis::Core::JsonObjectSupport
    +      class ImageProperties
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1::DominantColorsAnnotation::Representation
    +      
    +        end
           end
           
           class SafeSearchAnnotation
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :medical, as: 'medical'
    +          property :violence, as: 'violence'
    +          property :adult, as: 'adult'
    +          property :spoof, as: 'spoof'
    +        end
           end
           
           class DominantColorsAnnotation
    @@ -295,13 +331,12 @@ module Google
             end
           end
           
    -      class TextProperty
    +      class WebEntity
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::DetectedBreak, decorator: Google::Apis::VisionV1::DetectedBreak::Representation
    -      
    -          collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::DetectedLanguage, decorator: Google::Apis::VisionV1::DetectedLanguage::Representation
    -      
    +          property :entity_id, as: 'entityId'
    +          property :description, as: 'description'
    +          property :score, as: 'score'
             end
           end
           
    @@ -313,18 +348,23 @@ module Google
             end
           end
           
    -      class WebEntity
    +      class TextProperty
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :score, as: 'score'
    -          property :entity_id, as: 'entityId'
    -          property :description, as: 'description'
    +          collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::DetectedLanguage, decorator: Google::Apis::VisionV1::DetectedLanguage::Representation
    +      
    +          property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::DetectedBreak, decorator: Google::Apis::VisionV1::DetectedBreak::Representation
    +      
             end
           end
           
           class AnnotateImageResponse
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
    +      
    +          property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1::SafeSearchAnnotation::Representation
    +      
               property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
           
               property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::TextAnnotation, decorator: Google::Apis::VisionV1::TextAnnotation::Representation
    @@ -333,20 +373,16 @@ module Google
           
               collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
           
    -          collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::FaceAnnotation, decorator: Google::Apis::VisionV1::FaceAnnotation::Representation
    -      
               property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::ImageProperties, decorator: Google::Apis::VisionV1::ImageProperties::Representation
           
    +          collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::FaceAnnotation, decorator: Google::Apis::VisionV1::FaceAnnotation::Representation
    +      
               collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
           
               property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::CropHintsAnnotation, decorator: Google::Apis::VisionV1::CropHintsAnnotation::Representation
           
               property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::WebDetection, decorator: Google::Apis::VisionV1::WebDetection::Representation
           
    -          collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
    -      
    -          property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1::SafeSearchAnnotation::Representation
    -      
             end
           end
           
    @@ -370,6 +406,38 @@ module Google
             end
           end
           
    +      class WebDetection
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation
    +      
    +          collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    +      
    +          collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    +      
    +          collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    +      
    +          collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::WebEntity, decorator: Google::Apis::VisionV1::WebEntity::Representation
    +      
    +        end
    +      end
    +      
    +      class BatchAnnotateImagesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
    +      
    +        end
    +      end
    +      
    +      class ImageSource
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :gcs_image_uri, as: 'gcsImageUri'
    +          property :image_uri, as: 'imageUri'
    +        end
    +      end
    +      
           class Property
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -387,44 +455,12 @@ module Google
             end
           end
           
    -      class ImageSource
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :gcs_image_uri, as: 'gcsImageUri'
    -          property :image_uri, as: 'imageUri'
    -        end
    -      end
    -      
    -      class BatchAnnotateImagesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
    -      
    -        end
    -      end
    -      
    -      class WebDetection
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    -      
    -          collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::WebEntity, decorator: Google::Apis::VisionV1::WebEntity::Representation
    -      
    -          collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation
    -      
    -          collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    -      
    -          collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
    -      
    -        end
    -      end
    -      
           class Position
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :y, as: 'y'
    -          property :x, as: 'x'
               property :z, as: 'z'
    +          property :x, as: 'x'
    +          property :y, as: 'y'
             end
           end
           
    @@ -439,10 +475,10 @@ module Google
           class ColorInfo
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :score, as: 'score'
               property :pixel_fraction, as: 'pixelFraction'
               property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation
           
    +          property :score, as: 'score'
             end
           end
           
    @@ -454,8 +490,8 @@ module Google
               property :locale, as: 'locale'
               property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
           
    -          property :description, as: 'description'
               property :topicality, as: 'topicality'
    +          property :description, as: 'description'
               collection :properties, as: 'properties', class: Google::Apis::VisionV1::Property, decorator: Google::Apis::VisionV1::Property::Representation
           
               property :score, as: 'score'
    @@ -467,8 +503,8 @@ module Google
           class CropHint
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :confidence, as: 'confidence'
               property :importance_fraction, as: 'importanceFraction'
    +          property :confidence, as: 'confidence'
               property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
           
             end
    @@ -494,12 +530,12 @@ module Google
           class Word
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
    -      
               collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation
           
               property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
           
    +          property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
    +      
             end
           end
           
    @@ -518,9 +554,9 @@ module Google
           class Image
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :content, :base64 => true, as: 'content'
               property :source, as: 'source', class: Google::Apis::VisionV1::ImageSource, decorator: Google::Apis::VisionV1::ImageSource::Representation
           
    +          property :content, :base64 => true, as: 'content'
             end
           end
           
    @@ -534,11 +570,11 @@ module Google
               collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation
           
               property :anger_likelihood, as: 'angerLikelihood'
    -          property :joy_likelihood, as: 'joyLikelihood'
               property :landmarking_confidence, as: 'landmarkingConfidence'
    -          property :detection_confidence, as: 'detectionConfidence'
    -          property :pan_angle, as: 'panAngle'
    +          property :joy_likelihood, as: 'joyLikelihood'
               property :under_exposed_likelihood, as: 'underExposedLikelihood'
    +          property :pan_angle, as: 'panAngle'
    +          property :detection_confidence, as: 'detectionConfidence'
               property :blurred_likelihood, as: 'blurredLikelihood'
               property :headwear_likelihood, as: 'headwearLikelihood'
               property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
    @@ -567,33 +603,33 @@ module Google
           class ImageContext
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    +          property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::CropHintsParams, decorator: Google::Apis::VisionV1::CropHintsParams::Representation
    +      
               collection :language_hints, as: 'languageHints'
               property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation
           
    -          property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::CropHintsParams, decorator: Google::Apis::VisionV1::CropHintsParams::Representation
    -      
             end
           end
           
           class Page
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :height, as: 'height'
               property :width, as: 'width'
               collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation
           
               property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
           
    +          property :height, as: 'height'
             end
           end
           
           class AnnotateImageRequest
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          property :image, as: 'image', class: Google::Apis::VisionV1::Image, decorator: Google::Apis::VisionV1::Image::Representation
    -      
               collection :features, as: 'features', class: Google::Apis::VisionV1::Feature, decorator: Google::Apis::VisionV1::Feature::Representation
           
    +          property :image, as: 'image', class: Google::Apis::VisionV1::Image, decorator: Google::Apis::VisionV1::Image::Representation
    +      
               property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation
           
             end
    @@ -602,20 +638,9 @@ module Google
           class Status
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :details, as: 'details'
               property :code, as: 'code'
               property :message, as: 'message'
    -        end
    -      end
    -      
    -      class Symbol
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :text, as: 'text'
    -          property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
    -      
    -          property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
    -      
    +          collection :details, as: 'details'
             end
           end
           
    @@ -629,6 +654,17 @@ module Google
             end
           end
           
    +      class Symbol
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
    +      
    +          property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
    +      
    +          property :text, as: 'text'
    +        end
    +      end
    +      
           class CropHintsAnnotation
             # @private
             class Representation < Google::Apis::Core::JsonRepresentation
    @@ -644,42 +680,6 @@ module Google
               property :longitude, as: 'longitude'
             end
           end
    -      
    -      class Color
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :green, as: 'green'
    -          property :blue, as: 'blue'
    -          property :alpha, as: 'alpha'
    -          property :red, as: 'red'
    -        end
    -      end
    -      
    -      class ImageProperties
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1::DominantColorsAnnotation::Representation
    -      
    -        end
    -      end
    -      
    -      class Feature
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :type, as: 'type'
    -          property :max_results, as: 'maxResults'
    -        end
    -      end
    -      
    -      class SafeSearchAnnotation
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :medical, as: 'medical'
    -          property :violence, as: 'violence'
    -          property :adult, as: 'adult'
    -          property :spoof, as: 'spoof'
    -        end
    -      end
         end
       end
     end
    diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb
    index d0eec058b..f3a12cb3f 100644
    --- a/generated/google/apis/youtube_analytics_v1.rb
    +++ b/generated/google/apis/youtube_analytics_v1.rb
    @@ -25,7 +25,7 @@ module Google
         # @see http://developers.google.com/youtube/analytics/
         module YoutubeAnalyticsV1
           VERSION = 'V1'
    -      REVISION = '20170612'
    +      REVISION = '20170711'
     
           # Manage your YouTube account
           AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
    diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb
    index 850d0d6dc..8e2c42cb8 100644
    --- a/generated/google/apis/youtube_partner_v1.rb
    +++ b/generated/google/apis/youtube_partner_v1.rb
    @@ -25,7 +25,7 @@ module Google
         # @see https://developers.google.com/youtube/partner/
         module YoutubePartnerV1
           VERSION = 'V1'
    -      REVISION = '20170522'
    +      REVISION = '20170703'
     
           # View and manage your assets and associated content on YouTube
           AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
    diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb
    index 9e1ac2886..a256b34ac 100644
    --- a/generated/google/apis/youtubereporting_v1.rb
    +++ b/generated/google/apis/youtubereporting_v1.rb
    @@ -26,7 +26,7 @@ module Google
         # @see https://developers.google.com/youtube/reporting/v1/reports/
         module YoutubereportingV1
           VERSION = 'V1'
    -      REVISION = '20170613'
    +      REVISION = '20170711'
     
           # View YouTube Analytics reports for your YouTube content
           AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
    diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb
    index 64973b590..2783b231a 100644
    --- a/generated/google/apis/youtubereporting_v1/classes.rb
    +++ b/generated/google/apis/youtubereporting_v1/classes.rb
    @@ -22,234 +22,6 @@ module Google
       module Apis
         module YoutubereportingV1
           
    -      # A report's metadata including the URL from which the report itself can be
    -      # downloaded.
    -      class Report
    -        include Google::Apis::Core::Hashable
    -      
    -        # The server-generated ID of the report.
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
    -        # The end of the time period that the report instance covers. The value is
    -        # exclusive.
    -        # Corresponds to the JSON property `endTime`
    -        # @return [String]
    -        attr_accessor :end_time
    -      
    -        # The date/time when the job this report belongs to will expire/expired.
    -        # Corresponds to the JSON property `jobExpireTime`
    -        # @return [String]
    -        attr_accessor :job_expire_time
    -      
    -        # The URL from which the report can be downloaded (max. 1000 characters).
    -        # Corresponds to the JSON property `downloadUrl`
    -        # @return [String]
    -        attr_accessor :download_url
    -      
    -        # The start of the time period that the report instance covers. The value is
    -        # inclusive.
    -        # Corresponds to the JSON property `startTime`
    -        # @return [String]
    -        attr_accessor :start_time
    -      
    -        # The date/time when this report was created.
    -        # Corresponds to the JSON property `createTime`
    -        # @return [String]
    -        attr_accessor :create_time
    -      
    -        # The ID of the job that created this report.
    -        # Corresponds to the JSON property `jobId`
    -        # @return [String]
    -        attr_accessor :job_id
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @id = args[:id] if args.key?(:id)
    -          @end_time = args[:end_time] if args.key?(:end_time)
    -          @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
    -          @download_url = args[:download_url] if args.key?(:download_url)
    -          @start_time = args[:start_time] if args.key?(:start_time)
    -          @create_time = args[:create_time] if args.key?(:create_time)
    -          @job_id = args[:job_id] if args.key?(:job_id)
    -        end
    -      end
    -      
    -      # A generic empty message that you can re-use to avoid defining duplicated
    -      # empty messages in your APIs. A typical example is to use it as the request
    -      # or the response type of an API method. For instance:
    -      # service Foo `
    -      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    -      # `
    -      # The JSON representation for `Empty` is empty JSON object ````.
    -      class Empty
    -        include Google::Apis::Core::Hashable
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -        end
    -      end
    -      
    -      # A report type.
    -      class ReportType
    -        include Google::Apis::Core::Hashable
    -      
    -        # The date/time when this report type was/will be deprecated.
    -        # Corresponds to the JSON property `deprecateTime`
    -        # @return [String]
    -        attr_accessor :deprecate_time
    -      
    -        # The name of the report type (max. 100 characters).
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The ID of the report type (max. 100 characters).
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
    -        # True if this a system-managed report type; otherwise false. Reporting jobs
    -        # for system-managed report types are created automatically and can thus not
    -        # be used in the `CreateJob` method.
    -        # Corresponds to the JSON property `systemManaged`
    -        # @return [Boolean]
    -        attr_accessor :system_managed
    -        alias_method :system_managed?, :system_managed
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
    -          @name = args[:name] if args.key?(:name)
    -          @id = args[:id] if args.key?(:id)
    -          @system_managed = args[:system_managed] if args.key?(:system_managed)
    -        end
    -      end
    -      
    -      # Response message for ReportingService.ListReportTypes.
    -      class ListReportTypesResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The list of report types.
    -        # Corresponds to the JSON property `reportTypes`
    -        # @return [Array]
    -        attr_accessor :report_types
    -      
    -        # A token to retrieve next page of results.
    -        # Pass this value in the
    -        # ListReportTypesRequest.page_token
    -        # field in the subsequent call to `ListReportTypes` method to retrieve the next
    -        # page of results.
    -        # Corresponds to the JSON property `nextPageToken`
    -        # @return [String]
    -        attr_accessor :next_page_token
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @report_types = args[:report_types] if args.key?(:report_types)
    -          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
    -        end
    -      end
    -      
    -      # Response message for ReportingService.ListJobs.
    -      class ListJobsResponse
    -        include Google::Apis::Core::Hashable
    -      
    -        # The list of jobs.
    -        # Corresponds to the JSON property `jobs`
    -        # @return [Array]
    -        attr_accessor :jobs
    -      
    -        # A token to retrieve next page of results.
    -        # Pass this value in the
    -        # ListJobsRequest.page_token
    -        # field in the subsequent call to `ListJobs` method to retrieve the next
    -        # page of results.
    -        # Corresponds to the JSON property `nextPageToken`
    -        # @return [String]
    -        attr_accessor :next_page_token
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @jobs = args[:jobs] if args.key?(:jobs)
    -          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
    -        end
    -      end
    -      
    -      # A job creating reports of a specific type.
    -      class Job
    -        include Google::Apis::Core::Hashable
    -      
    -        # The creation date/time of the job.
    -        # Corresponds to the JSON property `createTime`
    -        # @return [String]
    -        attr_accessor :create_time
    -      
    -        # The type of reports this job creates. Corresponds to the ID of a
    -        # ReportType.
    -        # Corresponds to the JSON property `reportTypeId`
    -        # @return [String]
    -        attr_accessor :report_type_id
    -      
    -        # The date/time when this job will expire/expired. After a job expired, no
    -        # new reports are generated.
    -        # Corresponds to the JSON property `expireTime`
    -        # @return [String]
    -        attr_accessor :expire_time
    -      
    -        # The name of the job (max. 100 characters).
    -        # Corresponds to the JSON property `name`
    -        # @return [String]
    -        attr_accessor :name
    -      
    -        # The server-generated ID of the job (max. 40 characters).
    -        # Corresponds to the JSON property `id`
    -        # @return [String]
    -        attr_accessor :id
    -      
    -        # True if this a system-managed job that cannot be modified by the user;
    -        # otherwise false.
    -        # Corresponds to the JSON property `systemManaged`
    -        # @return [Boolean]
    -        attr_accessor :system_managed
    -        alias_method :system_managed?, :system_managed
    -      
    -        def initialize(**args)
    -           update!(**args)
    -        end
    -      
    -        # Update properties of this object
    -        def update!(**args)
    -          @create_time = args[:create_time] if args.key?(:create_time)
    -          @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
    -          @expire_time = args[:expire_time] if args.key?(:expire_time)
    -          @name = args[:name] if args.key?(:name)
    -          @id = args[:id] if args.key?(:id)
    -          @system_managed = args[:system_managed] if args.key?(:system_managed)
    -        end
    -      end
    -      
           # Response message for ReportingService.ListReports.
           class ListReportsResponse
             include Google::Apis::Core::Hashable
    @@ -297,6 +69,234 @@ module Google
               @resource_name = args[:resource_name] if args.key?(:resource_name)
             end
           end
    +      
    +      # A report type.
    +      class ReportType
    +        include Google::Apis::Core::Hashable
    +      
    +        # The date/time when this report type was/will be deprecated.
    +        # Corresponds to the JSON property `deprecateTime`
    +        # @return [String]
    +        attr_accessor :deprecate_time
    +      
    +        # The name of the report type (max. 100 characters).
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # True if this a system-managed report type; otherwise false. Reporting jobs
    +        # for system-managed report types are created automatically and can thus not
    +        # be used in the `CreateJob` method.
    +        # Corresponds to the JSON property `systemManaged`
    +        # @return [Boolean]
    +        attr_accessor :system_managed
    +        alias_method :system_managed?, :system_managed
    +      
    +        # The ID of the report type (max. 100 characters).
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
    +          @name = args[:name] if args.key?(:name)
    +          @system_managed = args[:system_managed] if args.key?(:system_managed)
    +          @id = args[:id] if args.key?(:id)
    +        end
    +      end
    +      
    +      # Response message for ReportingService.ListReportTypes.
    +      class ListReportTypesResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A token to retrieve next page of results.
    +        # Pass this value in the
    +        # ListReportTypesRequest.page_token
    +        # field in the subsequent call to `ListReportTypes` method to retrieve the next
    +        # page of results.
    +        # Corresponds to the JSON property `nextPageToken`
    +        # @return [String]
    +        attr_accessor :next_page_token
    +      
    +        # The list of report types.
    +        # Corresponds to the JSON property `reportTypes`
    +        # @return [Array]
    +        attr_accessor :report_types
    +      
    +        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)
    +          @report_types = args[:report_types] if args.key?(:report_types)
    +        end
    +      end
    +      
    +      # A generic empty message that you can re-use to avoid defining duplicated
    +      # empty messages in your APIs. A typical example is to use it as the request
    +      # or the response type of an API method. For instance:
    +      # service Foo `
    +      # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
    +      # `
    +      # The JSON representation for `Empty` is empty JSON object ````.
    +      class Empty
    +        include Google::Apis::Core::Hashable
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +        end
    +      end
    +      
    +      # A report's metadata including the URL from which the report itself can be
    +      # downloaded.
    +      class Report
    +        include Google::Apis::Core::Hashable
    +      
    +        # The start of the time period that the report instance covers. The value is
    +        # inclusive.
    +        # Corresponds to the JSON property `startTime`
    +        # @return [String]
    +        attr_accessor :start_time
    +      
    +        # The date/time when this report was created.
    +        # Corresponds to the JSON property `createTime`
    +        # @return [String]
    +        attr_accessor :create_time
    +      
    +        # The ID of the job that created this report.
    +        # Corresponds to the JSON property `jobId`
    +        # @return [String]
    +        attr_accessor :job_id
    +      
    +        # The server-generated ID of the report.
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        # The date/time when the job this report belongs to will expire/expired.
    +        # Corresponds to the JSON property `jobExpireTime`
    +        # @return [String]
    +        attr_accessor :job_expire_time
    +      
    +        # The end of the time period that the report instance covers. The value is
    +        # exclusive.
    +        # Corresponds to the JSON property `endTime`
    +        # @return [String]
    +        attr_accessor :end_time
    +      
    +        # The URL from which the report can be downloaded (max. 1000 characters).
    +        # Corresponds to the JSON property `downloadUrl`
    +        # @return [String]
    +        attr_accessor :download_url
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @start_time = args[:start_time] if args.key?(:start_time)
    +          @create_time = args[:create_time] if args.key?(:create_time)
    +          @job_id = args[:job_id] if args.key?(:job_id)
    +          @id = args[:id] if args.key?(:id)
    +          @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
    +          @end_time = args[:end_time] if args.key?(:end_time)
    +          @download_url = args[:download_url] if args.key?(:download_url)
    +        end
    +      end
    +      
    +      # Response message for ReportingService.ListJobs.
    +      class ListJobsResponse
    +        include Google::Apis::Core::Hashable
    +      
    +        # A token to retrieve next page of results.
    +        # Pass this value in the
    +        # ListJobsRequest.page_token
    +        # field in the subsequent call to `ListJobs` method to retrieve the next
    +        # page of results.
    +        # Corresponds to the JSON property `nextPageToken`
    +        # @return [String]
    +        attr_accessor :next_page_token
    +      
    +        # The list of jobs.
    +        # Corresponds to the JSON property `jobs`
    +        # @return [Array]
    +        attr_accessor :jobs
    +      
    +        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)
    +          @jobs = args[:jobs] if args.key?(:jobs)
    +        end
    +      end
    +      
    +      # A job creating reports of a specific type.
    +      class Job
    +        include Google::Apis::Core::Hashable
    +      
    +        # The creation date/time of the job.
    +        # Corresponds to the JSON property `createTime`
    +        # @return [String]
    +        attr_accessor :create_time
    +      
    +        # The type of reports this job creates. Corresponds to the ID of a
    +        # ReportType.
    +        # Corresponds to the JSON property `reportTypeId`
    +        # @return [String]
    +        attr_accessor :report_type_id
    +      
    +        # The date/time when this job will expire/expired. After a job expired, no
    +        # new reports are generated.
    +        # Corresponds to the JSON property `expireTime`
    +        # @return [String]
    +        attr_accessor :expire_time
    +      
    +        # The name of the job (max. 100 characters).
    +        # Corresponds to the JSON property `name`
    +        # @return [String]
    +        attr_accessor :name
    +      
    +        # True if this a system-managed job that cannot be modified by the user;
    +        # otherwise false.
    +        # Corresponds to the JSON property `systemManaged`
    +        # @return [Boolean]
    +        attr_accessor :system_managed
    +        alias_method :system_managed?, :system_managed
    +      
    +        # The server-generated ID of the job (max. 40 characters).
    +        # Corresponds to the JSON property `id`
    +        # @return [String]
    +        attr_accessor :id
    +      
    +        def initialize(**args)
    +           update!(**args)
    +        end
    +      
    +        # Update properties of this object
    +        def update!(**args)
    +          @create_time = args[:create_time] if args.key?(:create_time)
    +          @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
    +          @expire_time = args[:expire_time] if args.key?(:expire_time)
    +          @name = args[:name] if args.key?(:name)
    +          @system_managed = args[:system_managed] if args.key?(:system_managed)
    +          @id = args[:id] if args.key?(:id)
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/youtubereporting_v1/representations.rb b/generated/google/apis/youtubereporting_v1/representations.rb
    index 10d2f76f0..6be5a1e35 100644
    --- a/generated/google/apis/youtubereporting_v1/representations.rb
    +++ b/generated/google/apis/youtubereporting_v1/representations.rb
    @@ -22,42 +22,6 @@ module Google
       module Apis
         module YoutubereportingV1
           
    -      class Report
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Empty
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ReportType
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListReportTypesResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class ListJobsResponse
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
    -      class Job
    -        class Representation < Google::Apis::Core::JsonRepresentation; end
    -      
    -        include Google::Apis::Core::JsonObjectSupport
    -      end
    -      
           class ListReportsResponse
             class Representation < Google::Apis::Core::JsonRepresentation; end
           
    @@ -70,63 +34,40 @@ module Google
             include Google::Apis::Core::JsonObjectSupport
           end
           
    -      class Report
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :id, as: 'id'
    -          property :end_time, as: 'endTime'
    -          property :job_expire_time, as: 'jobExpireTime'
    -          property :download_url, as: 'downloadUrl'
    -          property :start_time, as: 'startTime'
    -          property :create_time, as: 'createTime'
    -          property :job_id, as: 'jobId'
    -        end
    -      end
    -      
    -      class Empty
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -        end
    -      end
    -      
           class ReportType
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :deprecate_time, as: 'deprecateTime'
    -          property :name, as: 'name'
    -          property :id, as: 'id'
    -          property :system_managed, as: 'systemManaged'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListReportTypesResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Empty
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
    +      end
    +      
    +      class Report
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListJobsResponse
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
           
    -          property :next_page_token, as: 'nextPageToken'
    -        end
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class Job
    -        # @private
    -        class Representation < Google::Apis::Core::JsonRepresentation
    -          property :create_time, as: 'createTime'
    -          property :report_type_id, as: 'reportTypeId'
    -          property :expire_time, as: 'expireTime'
    -          property :name, as: 'name'
    -          property :id, as: 'id'
    -          property :system_managed, as: 'systemManaged'
    -        end
    +        class Representation < Google::Apis::Core::JsonRepresentation; end
    +      
    +        include Google::Apis::Core::JsonObjectSupport
           end
           
           class ListReportsResponse
    @@ -144,6 +85,65 @@ module Google
               property :resource_name, as: 'resourceName'
             end
           end
    +      
    +      class ReportType
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :deprecate_time, as: 'deprecateTime'
    +          property :name, as: 'name'
    +          property :system_managed, as: 'systemManaged'
    +          property :id, as: 'id'
    +        end
    +      end
    +      
    +      class ListReportTypesResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
    +      
    +        end
    +      end
    +      
    +      class Empty
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +        end
    +      end
    +      
    +      class Report
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :start_time, as: 'startTime'
    +          property :create_time, as: 'createTime'
    +          property :job_id, as: 'jobId'
    +          property :id, as: 'id'
    +          property :job_expire_time, as: 'jobExpireTime'
    +          property :end_time, as: 'endTime'
    +          property :download_url, as: 'downloadUrl'
    +        end
    +      end
    +      
    +      class ListJobsResponse
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :next_page_token, as: 'nextPageToken'
    +          collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
    +      
    +        end
    +      end
    +      
    +      class Job
    +        # @private
    +        class Representation < Google::Apis::Core::JsonRepresentation
    +          property :create_time, as: 'createTime'
    +          property :report_type_id, as: 'reportTypeId'
    +          property :expire_time, as: 'expireTime'
    +          property :name, as: 'name'
    +          property :system_managed, as: 'systemManaged'
    +          property :id, as: 'id'
    +        end
    +      end
         end
       end
     end
    diff --git a/generated/google/apis/youtubereporting_v1/service.rb b/generated/google/apis/youtubereporting_v1/service.rb
    index 45a3595a2..e9959f0a1 100644
    --- a/generated/google/apis/youtubereporting_v1/service.rb
    +++ b/generated/google/apis/youtubereporting_v1/service.rb
    @@ -48,6 +48,52 @@ module Google
               @batch_path = 'batch'
             end
             
    +        # Lists report types.
    +        # @param [Boolean] include_system_managed
    +        #   If set to true, also system-managed report types will be returned;
    +        #   otherwise only the report types that can be used to create new reporting
    +        #   jobs will be returned.
    +        # @param [String] page_token
    +        #   A token identifying a page of results the server should return. Typically,
    +        #   this is the value of
    +        #   ListReportTypesResponse.next_page_token
    +        #   returned in response to the previous call to the `ListReportTypes` method.
    +        # @param [Fixnum] page_size
    +        #   Requested page size. Server may return fewer report types than requested.
    +        #   If unspecified, server will pick an appropriate default.
    +        # @param [String] on_behalf_of_content_owner
    +        #   The content owner's external ID on which behalf the user is acting on. If
    +        #   not set, the user is acting for himself (his own channel).
    +        # @param [String] quota_user
    +        #   Available 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::YoutubereportingV1::ListReportTypesResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def list_report_types(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/reportTypes', options)
    +          command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
    +          command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
    +          command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
    +          command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.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
    @@ -87,22 +133,12 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Lists jobs.
    +        # Deletes a job.
    +        # @param [String] job_id
    +        #   The ID of the job to delete.
             # @param [String] on_behalf_of_content_owner
             #   The content owner's external ID on which behalf the user is acting on. If
             #   not set, the user is acting for himself (his own channel).
    -        # @param [String] page_token
    -        #   A token identifying a page of results the server should return. Typically,
    -        #   this is the value of
    -        #   ListReportTypesResponse.next_page_token
    -        #   returned in response to the previous call to the `ListJobs` method.
    -        # @param [Boolean] include_system_managed
    -        #   If set to true, also system-managed jobs will be returned; otherwise only
    -        #   user-created jobs will be returned. System-managed jobs can neither be
    -        #   modified nor deleted.
    -        # @param [Fixnum] page_size
    -        #   Requested page size. Server may return fewer jobs than requested.
    -        #   If unspecified, server will pick an appropriate default.
             # @param [String] quota_user
             #   Available to use for quota purposes for server-side applications. Can be any
             #   arbitrary string assigned to a user, but should not exceed 40 characters.
    @@ -112,22 +148,20 @@ module Google
             #   Request-specific options
             #
             # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
    +        # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
    +        # @return [Google::Apis::YoutubereportingV1::Empty]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_jobs(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/jobs', options)
    -          command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
    -          command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
    +        def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:delete, 'v1/jobs/{jobId}', options)
    +          command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
    +          command.response_class = Google::Apis::YoutubereportingV1::Empty
    +          command.params['jobId'] = job_id unless job_id.nil?
               command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
    -          command.query['pageSize'] = page_size unless page_size.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
    @@ -167,6 +201,52 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    +        # Lists jobs.
    +        # @param [Boolean] include_system_managed
    +        #   If set to true, also system-managed jobs will be returned; otherwise only
    +        #   user-created jobs will be returned. System-managed jobs can neither be
    +        #   modified nor deleted.
    +        # @param [String] page_token
    +        #   A token identifying a page of results the server should return. Typically,
    +        #   this is the value of
    +        #   ListReportTypesResponse.next_page_token
    +        #   returned in response to the previous call to the `ListJobs` method.
    +        # @param [Fixnum] page_size
    +        #   Requested page size. Server may return fewer jobs than requested.
    +        #   If unspecified, server will pick an appropriate default.
    +        # @param [String] on_behalf_of_content_owner
    +        #   The content owner's external ID on which behalf the user is acting on. If
    +        #   not set, the user is acting for himself (his own channel).
    +        # @param [String] quota_user
    +        #   Available 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::YoutubereportingV1::ListJobsResponse] parsed result object
    +        # @yieldparam err [StandardError] error object if request failed
    +        #
    +        # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
    +        #
    +        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    +        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    +        # @raise [Google::Apis::AuthorizationError] Authorization is required
    +        def list_jobs(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/jobs', options)
    +          command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
    +          command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
    +          command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
    +          command.query['pageToken'] = page_token unless page_token.nil?
    +          command.query['pageSize'] = page_size unless page_size.nil?
    +          command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
    +          command.query['quotaUser'] = quota_user unless quota_user.nil?
    +          command.query['fields'] = fields unless fields.nil?
    +          execute_or_queue_command(command, &block)
    +        end
    +        
             # Creates a job and returns it.
             # @param [Google::Apis::YoutubereportingV1::Job] job_object
             # @param [String] on_behalf_of_content_owner
    @@ -201,9 +281,11 @@ module Google
               execute_or_queue_command(command, &block)
             end
             
    -        # Deletes a job.
    +        # Gets the metadata of a specific report.
             # @param [String] job_id
    -        #   The ID of the job to delete.
    +        #   The ID of the job.
    +        # @param [String] report_id
    +        #   The ID of the report to retrieve.
             # @param [String] on_behalf_of_content_owner
             #   The content owner's external ID on which behalf the user is acting on. If
             #   not set, the user is acting for himself (his own channel).
    @@ -216,19 +298,20 @@ module Google
             #   Request-specific options
             #
             # @yield [result, err] Result & error if block supplied
    -        # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
    +        # @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object
             # @yieldparam err [StandardError] error object if request failed
             #
    -        # @return [Google::Apis::YoutubereportingV1::Empty]
    +        # @return [Google::Apis::YoutubereportingV1::Report]
             #
             # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
             # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
             # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:delete, 'v1/jobs/{jobId}', options)
    -          command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
    -          command.response_class = Google::Apis::YoutubereportingV1::Empty
    +        def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    +          command =  make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
    +          command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
    +          command.response_class = Google::Apis::YoutubereportingV1::Report
               command.params['jobId'] = job_id unless job_id.nil?
    +          command.params['reportId'] = report_id unless report_id.nil?
               command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
               command.query['quotaUser'] = quota_user unless quota_user.nil?
               command.query['fields'] = fields unless fields.nil?
    @@ -290,89 +373,6 @@ module Google
               command.query['fields'] = fields unless fields.nil?
               execute_or_queue_command(command, &block)
             end
    -        
    -        # Gets the metadata of a specific report.
    -        # @param [String] job_id
    -        #   The ID of the job.
    -        # @param [String] report_id
    -        #   The ID of the report to retrieve.
    -        # @param [String] on_behalf_of_content_owner
    -        #   The content owner's external ID on which behalf the user is acting on. If
    -        #   not set, the user is acting for himself (his own channel).
    -        # @param [String] quota_user
    -        #   Available 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::YoutubereportingV1::Report] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::YoutubereportingV1::Report]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
    -          command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
    -          command.response_class = Google::Apis::YoutubereportingV1::Report
    -          command.params['jobId'] = job_id unless job_id.nil?
    -          command.params['reportId'] = report_id unless report_id.nil?
    -          command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
    -          command.query['quotaUser'] = quota_user unless quota_user.nil?
    -          command.query['fields'] = fields unless fields.nil?
    -          execute_or_queue_command(command, &block)
    -        end
    -        
    -        # Lists report types.
    -        # @param [String] on_behalf_of_content_owner
    -        #   The content owner's external ID on which behalf the user is acting on. If
    -        #   not set, the user is acting for himself (his own channel).
    -        # @param [String] page_token
    -        #   A token identifying a page of results the server should return. Typically,
    -        #   this is the value of
    -        #   ListReportTypesResponse.next_page_token
    -        #   returned in response to the previous call to the `ListReportTypes` method.
    -        # @param [Boolean] include_system_managed
    -        #   If set to true, also system-managed report types will be returned;
    -        #   otherwise only the report types that can be used to create new reporting
    -        #   jobs will be returned.
    -        # @param [Fixnum] page_size
    -        #   Requested page size. Server may return fewer report types than requested.
    -        #   If unspecified, server will pick an appropriate default.
    -        # @param [String] quota_user
    -        #   Available 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::YoutubereportingV1::ListReportTypesResponse] parsed result object
    -        # @yieldparam err [StandardError] error object if request failed
    -        #
    -        # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
    -        #
    -        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
    -        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
    -        # @raise [Google::Apis::AuthorizationError] Authorization is required
    -        def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
    -          command =  make_simple_command(:get, 'v1/reportTypes', options)
    -          command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
    -          command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
    -          command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
    -          command.query['pageToken'] = page_token unless page_token.nil?
    -          command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
    -          command.query['pageSize'] = page_size unless page_size.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
     
    diff --git a/lib/google/apis/version.rb b/lib/google/apis/version.rb
    index bf2067bb8..fe59c3056 100644
    --- a/lib/google/apis/version.rb
    +++ b/lib/google/apis/version.rb
    @@ -15,7 +15,7 @@
     module Google
       module Apis
         # Client library version
    -    VERSION = '0.13.0'
    +    VERSION = '0.13.1'
     
         # Current operating system
         # @private